org.alfresco.repo.action.constraint
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.BeanNameAware
public class FolderContentsParameterConstraint
- extends BaseParameterConstraint
Folder contents parameter constraint
Method Summary |
protected java.util.Map |
getAllowableValuesImpl()
Gets the list of allowable values, calculating them every time it is called. |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
|
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
|
void |
setNodeInclusionFilter(java.util.List nodeInclusionFilter)
This optional property defines a list of file extensions which should be included in the result set from
this class. |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
|
void |
setRepository(Repository repository)
|
void |
setSearchPath(java.lang.String searchPath)
|
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FolderContentsParameterConstraint
public FolderContentsParameterConstraint()
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 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 getAllowableValuesImpl()
- Description copied from class:
BaseParameterConstraint
- Gets the list of allowable values, calculating them every time it is called.
- Specified by:
getAllowableValuesImpl
in class BaseParameterConstraint
- Returns:
- Map map of allowable values
- See Also:
ParameterConstraint.getAllowableValues()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.