Class FolderContentsParameterConstraint
java.lang.Object
org.alfresco.repo.action.constraint.BaseParameterConstraint
org.alfresco.repo.action.constraint.FolderContentsParameterConstraint
- All Implemented Interfaces:
ParameterConstraint,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
Folder contents parameter constraint
- Author:
- Roy Wetherall
-
Field Summary
Fields inherited from class org.alfresco.repo.action.constraint.BaseParameterConstraint
actionService, allowableValues, cache, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the list of allowable values, calculating them every time it is called.voidsetDictionaryService(DictionaryService dictionaryService) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeInclusionFilter(List<String> nodeInclusionFilter) This optional property defines a list of file extensions which should be included in the result set from this class.voidsetNodeService(NodeService nodeService) voidsetRepository(Repository repository) voidsetSearchPath(String searchPath) voidsetSearchService(SearchService searchService) Methods inherited from class org.alfresco.repo.action.constraint.BaseParameterConstraint
getAllowableValues, getI18NLabel, getName, getValueDisplayLabel, init, isValidValue, setActionService, setBeanName, setCacheAllowableValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.service.cmr.action.ParameterConstraint
getValues
-
Constructor Details
-
FolderContentsParameterConstraint
public FolderContentsParameterConstraint()
-
-
Method Details
-
setNodeService
-
setSearchService
-
setSearchPath
-
setDictionaryService
-
setNamespaceService
-
setRepository
-
setNodeInclusionFilter
This optional property defines a list of file extensions which should be included in the result set from this class. By implication, all other file extensions will be excluded. (The dot should not be specified i.e. "txt" not ".txt"). If present, the cm:name of each candidate node will be checked against the values in this list and only those nodes whose cm:name ends with one of these file extensions will be included. If the property is not set then no inclusion filter is specified and all file extensions will be included.- Parameters:
nodeInclusionFilter- A list of file extensions- Since:
- 3.5
-
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:
-