|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.voting.voters.BaseVoterImpl info.magnolia.voting.voters.AbstractBoolVoter info.magnolia.voting.voters.ExtensionVoter
public class ExtensionVoter
Parameters (as Magnolia's configuration nodes):
false
if the extension is not a valid mimetype (as configured in config:/server/MIMEMapping.
false
if the allow list exists, but the extension is not in the allow list.
false
if the deny list exists and the extension is in the deny list.
true
in all other cases.
Constructor Summary | |
---|---|
ExtensionVoter()
|
Method Summary | |
---|---|
protected boolean |
boolVote(java.lang.Object value)
|
void |
setAllow(java.lang.String allow)
|
void |
setDeny(java.lang.String deny)
|
Methods inherited from class info.magnolia.voting.voters.AbstractBoolVoter |
---|
getFalseValue, getLevel, getTrueValue, isNot, setFalseValue, setLevel, setNot, setTrueValue, toString, 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 |
---|
public ExtensionVoter()
Method Detail |
---|
public void setAllow(java.lang.String allow)
public void setDeny(java.lang.String deny)
protected boolean boolVote(java.lang.Object value)
boolVote
in class AbstractBoolVoter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |