public class TypeConstraint
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
WILDCARD |
| 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(java.util.List 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(java.util.List typeNames)
Processes the user-defined list of types into valid QNames & models, it validates them
against the dictionary and also supports wildcards
|
void |
setExcludedTypes(java.util.List excludedTypes) |
void |
setExpectedTypes(java.util.List expectedTypes) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
public static final java.lang.String WILDCARD
public void setExpectedTypes(java.util.List expectedTypes)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setExcludedTypes(java.util.List excludedTypes)
public void init()
protected void preprocessExcludedTypes(java.util.List typeNames)
excludeTypeNames - protected void preprocessExpectedTypes(java.util.List typeNames)
excludeTypeNames - public boolean matches(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.