public class TypeConstraint extends Object
Constructor and Description |
---|
TypeConstraint() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
boolean |
matches(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Returns true if the nodeRef matches the constraints, false otherwise.
|
protected void |
preprocessExcludedTypes(List<String> typeNames)
Processes the user-defined list of types into valid QNames & models, it validates them
against the dictionary and also supports wildcards
|
protected void |
preprocessExpectedTypes(List<String> typeNames)
Processes the user-defined list of types into valid QNames & models, it validates them
against the dictionary and also supports wildcards
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setExcludedTypes(List<String> excludedTypes) |
void |
setExpectedTypes(List<String> expectedTypes) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
public static final String WILDCARD
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void init()
protected void preprocessExcludedTypes(List<String> typeNames)
protected void preprocessExpectedTypes(List<String> typeNames)
public boolean matches(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefCopyright © 2005–2017 Alfresco Software. All rights reserved.