info.magnolia.voting.voters
Class BasePatternVoter
java.lang.Object
info.magnolia.voting.voters.BaseVoterImpl
info.magnolia.voting.voters.AbstractBoolVoter
info.magnolia.voting.voters.BasePatternVoter
- All Implemented Interfaces:
- Voter
- Direct Known Subclasses:
- URIPatternVoter, URIRegexVoter, URIStartsWithVoter
public abstract class BasePatternVoter
- extends AbstractBoolVoter
Voters which uses the urls to match against the pattern. The returned vote is
the length of the pattern. This allows overstearing less precise votes (like
allow /something/* but deny /somthing/otherthing/*). You can use the inverse
property which will then return the negative value on a match. This is not
the same thing as using the not property which will then vote if the pattern
does not match at all.
- Version:
- $Id$
- Author:
- philipp
BasePatternVoter
public BasePatternVoter()
init
public void init()
setTrueValue
public void setTrueValue(int positiveVoteValue)
- Overrides:
setTrueValue
in class AbstractBoolVoter
getPattern
public String getPattern()
setPattern
public void setPattern(String pattern)
isInverse
public boolean isInverse()
setInverse
public void setInverse(boolean inverse)
resolveURIFromValue
protected String resolveURIFromValue(Object value)
toString
public String toString()
- Overrides:
toString
in class AbstractBoolVoter
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.