info.magnolia.module.templatingkit.voters
Class SiteURIPatternVoter

java.lang.Object
  extended by info.magnolia.voting.voters.BaseVoterImpl
      extended by info.magnolia.voting.voters.AbstractBoolVoter
          extended by info.magnolia.voting.voters.BasePatternVoter
              extended by 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

Constructor Summary
SiteURIPatternVoter()
           
 
Method Summary
protected  boolean boolVote(Object value)
           
 String getDomain()
           
 String getSite()
           
 void setDomain(String domain)
           
 void setPattern(String pattern)
           
 void setSite(String site)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SiteURIPatternVoter

public SiteURIPatternVoter()
Method Detail

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-2014 Magnolia International Ltd.. All Rights Reserved.