Class MimetypeParameterConstraint
- java.lang.Object
-
- org.alfresco.repo.action.constraint.BaseParameterConstraint
-
- org.alfresco.repo.action.constraint.MimetypeParameterConstraint
-
- All Implemented Interfaces:
ParameterConstraint,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class MimetypeParameterConstraint extends BaseParameterConstraint
Mimetype parameter constraint- Author:
- Roy Wetherall
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMEName constant-
Fields inherited from class org.alfresco.repo.action.constraint.BaseParameterConstraint
actionService, allowableValues, cache, name
-
-
Constructor Summary
Constructors Constructor Description MimetypeParameterConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.String>getAllowableValuesImpl()Gets the list of allowable values, calculating them every time it is called.voidsetMimetypeMap(org.alfresco.repo.content.MimetypeMap mimetypeMap)Sets the mimetype map-
Methods inherited from class org.alfresco.repo.action.constraint.BaseParameterConstraint
getAllowableValues, getI18NLabel, getName, getValueDisplayLabel, init, isValidValue, setActionService, setBeanName, setCacheAllowableValues
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
Name constant- See Also:
- Constant Field Values
-
-
Method Detail
-
setMimetypeMap
public void setMimetypeMap(org.alfresco.repo.content.MimetypeMap mimetypeMap)
Sets the mimetype map- Parameters:
mimetypeMap- MimetypeMap
-
getAllowableValuesImpl
protected java.util.Map<java.lang.String,java.lang.String> getAllowableValuesImpl()
Description copied from class:BaseParameterConstraintGets the list of allowable values, calculating them every time it is called.- Specified by:
getAllowableValuesImplin classBaseParameterConstraint- Returns:
- map of allowable values
- See Also:
ParameterConstraint.getAllowableValues()
-
-