info.magnolia.module.templatingkit.voters
Class SiteURIPatternVoter
java.lang.Object
info.magnolia.voting.voters.BaseVoterImpl
info.magnolia.voting.voters.AbstractBoolVoter
info.magnolia.voting.voters.BasePatternVoter
info.magnolia.module.templatingkit.voters.SiteURIPatternVoter
- All Implemented Interfaces:
- info.magnolia.voting.Voter
public class SiteURIPatternVoter
- extends info.magnolia.voting.voters.BasePatternVoter
Simple URI Pattern Voter that works only for a site defined in configuration.
It is possible to restrict the action to a specific domain.
- Version:
- $Id$
- Author:
- Matteo Pelucco
Methods inherited from class info.magnolia.voting.voters.BasePatternVoter |
getPattern, init, isInverse, resolveURIFromValue, setInverse, setTrueValue, toString |
Methods inherited from class info.magnolia.voting.voters.AbstractBoolVoter |
getFalseValue, getLevel, getTrueValue, isNot, setFalseValue, setLevel, setNot, vote |
Methods inherited from class info.magnolia.voting.voters.BaseVoterImpl |
getName, isEnabled, setEnabled, setName |
SiteURIPatternVoter
public SiteURIPatternVoter()
boolVote
protected boolean boolVote(Object value)
- Specified by:
boolVote
in class info.magnolia.voting.voters.AbstractBoolVoter
getDomain
public String getDomain()
setDomain
public void setDomain(String domain)
setSite
public void setSite(String site)
getSite
public String getSite()
setPattern
public void setPattern(String pattern)
- Overrides:
setPattern
in class info.magnolia.voting.voters.BasePatternVoter
Copyright © 2008-2013 Magnolia International Ltd.. All Rights Reserved.