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
public class FolderContentsParameterConstraint extends BaseParameterConstraint
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 Constructor Description FolderContentsParameterConstraint()
-
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.voidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)voidsetNodeInclusionFilter(java.util.List<java.lang.String> nodeInclusionFilter)This optional property defines a list of file extensions which should be included in the result set from this class.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetRepository(Repository repository)voidsetSearchPath(java.lang.String searchPath)voidsetSearchService(org.alfresco.service.cmr.search.SearchService searchService)-
Methods inherited from class org.alfresco.repo.action.constraint.BaseParameterConstraint
getAllowableValues, getI18NLabel, getName, getValueDisplayLabel, init, isValidValue, setActionService, setBeanName, setCacheAllowableValues
-
-
-
-
Method Detail
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
setSearchService
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
-
setSearchPath
public void setSearchPath(java.lang.String searchPath)
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
-
setRepository
public void setRepository(Repository repository)
-
setNodeInclusionFilter
public void setNodeInclusionFilter(java.util.List<java.lang.String> nodeInclusionFilter)
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
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()
-
-