info.magnolia.voting.voters
Class ExtensionVoter
java.lang.Object
info.magnolia.voting.voters.BaseVoterImpl
info.magnolia.voting.voters.AbstractBoolVoter
info.magnolia.voting.voters.ExtensionVoter
- All Implemented Interfaces:
- Voter
public class ExtensionVoter
- extends AbstractBoolVoter
Parameters (as Magnolia's configuration nodes):
- allow: comma separated lists of allowed extensions.
- deny: comma separated lists of denied extensions.
Returns:
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.
- Version:
- $Revision: 44895 $ ($Author: dlipp $)
- Author:
- fgiust
ExtensionVoter
public ExtensionVoter()
setAllow
public void setAllow(String allow)
setDeny
public void setDeny(String deny)
boolVote
protected boolean boolVote(Object value)
- Specified by:
boolVote
in class AbstractBoolVoter
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.