public class ExtensionVoter extends AbstractBoolVoter
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 and Description |
---|
ExtensionVoter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
boolVote(Object value) |
void |
setAllow(String allow) |
void |
setDeny(String deny) |
getFalseValue, getLevel, getTrueValue, isNot, setFalseValue, setLevel, setNot, setTrueValue, toString, vote
getName, isEnabled, setEnabled, setName
public void setAllow(String allow)
public void setDeny(String deny)
protected boolean boolVote(Object value)
boolVote
in class AbstractBoolVoter
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.