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: BasePatternVoter.java 41137 2011-01-06 18:19:25Z gjoseph $
- Author:
- philipp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BasePatternVoter
public BasePatternVoter()
init
public void init()
setTrueValue
public void setTrueValue(int positiveVoteValue)
- Overrides:
setTrueValue
in class AbstractBoolVoter
getPattern
public java.lang.String getPattern()
setPattern
public void setPattern(java.lang.String pattern)
isInverse
public boolean isInverse()
setInverse
public void setInverse(boolean inverse)
resolveURIFromValue
protected java.lang.String resolveURIFromValue(java.lang.Object value)
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractBoolVoter
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.