|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.policy.PolicyScope
public class PolicyScope
Policy scope.
Helper often used by policies which require information about a node to be gathered, for example onCopy or onCreateVersion.
Field Summary | |
---|---|
protected java.util.Map |
alwaysTraverseMap
Map of assocs that will always be traversed |
protected java.util.Map |
aspectCopyDetails
The aspects |
protected java.util.List |
childAssocs
The child associations |
protected org.alfresco.service.namespace.QName |
classRef
The class ref of the aspect |
protected java.util.Map |
properties
The properties |
protected java.util.List |
targetAssocs
The target associations |
Constructor Summary | |
---|---|
PolicyScope(org.alfresco.service.namespace.QName classRef)
Constructor |
Method Summary | |
---|---|
org.alfresco.repo.policy.AspectDetails |
addAspect(org.alfresco.service.namespace.QName aspect)
Add an aspect |
protected void |
addAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef)
Adds an association to be copied |
void |
addAssociation(org.alfresco.service.namespace.QName classRef,
org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef)
Add an association |
protected void |
addChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
Add a child association |
protected void |
addChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean alwaysTraverseAssociation)
Add a child association |
void |
addChildAssociation(org.alfresco.service.namespace.QName classRef,
org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
Adds a child association |
void |
addChildAssociation(org.alfresco.service.namespace.QName classRef,
org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean alwaysTraverseAssociation)
|
void |
addProperty(org.alfresco.service.namespace.QName classRef,
org.alfresco.service.namespace.QName qName,
java.io.Serializable value)
Add a property |
void |
addProperty(org.alfresco.service.namespace.QName qName,
java.io.Serializable value)
Add a property to the list |
java.util.Set |
getAspects()
Gets a list of the aspects |
java.util.List |
getAssociations()
Gets the map of associations to be copied |
java.util.List |
getAssociations(org.alfresco.service.namespace.QName classRef)
Get associations |
java.util.List |
getChildAssociations()
Gets the child associations to be copied |
java.util.List |
getChildAssociations(org.alfresco.service.namespace.QName classRef)
Get a child association |
java.util.Map |
getProperties()
Gets the map of properties |
java.util.Map |
getProperties(org.alfresco.service.namespace.QName classRef)
Get the properties |
protected boolean |
isChildAssociationRefAlwaysTraversed(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
Indicates whether a child association ref is always traversed or not |
boolean |
isChildAssociationRefAlwaysTraversed(org.alfresco.service.namespace.QName classRef,
org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
|
void |
removeAspect(org.alfresco.service.namespace.QName aspect)
Removes an aspect from the list |
void |
removeProperty(org.alfresco.service.namespace.QName qName)
Remove a property from the list |
void |
removeProperty(org.alfresco.service.namespace.QName classRef,
org.alfresco.service.namespace.QName qName)
Removes a property from the list |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map aspectCopyDetails
protected java.util.Map properties
protected java.util.List childAssocs
protected java.util.List targetAssocs
protected org.alfresco.service.namespace.QName classRef
protected java.util.Map alwaysTraverseMap
Constructor Detail |
---|
public PolicyScope(org.alfresco.service.namespace.QName classRef)
classRef
- the class referenceMethod Detail |
---|
public void addProperty(org.alfresco.service.namespace.QName classRef, org.alfresco.service.namespace.QName qName, java.io.Serializable value)
classRef
- the class referenceqName
- the qualified name of the propertyvalue
- the value of the propertypublic void removeProperty(org.alfresco.service.namespace.QName classRef, org.alfresco.service.namespace.QName qName)
classRef
- the class referenceqName
- the qualified namepublic java.util.Map getProperties(org.alfresco.service.namespace.QName classRef)
classRef
- the class ref
public void addChildAssociation(org.alfresco.service.namespace.QName classRef, org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
classRef
- qname
- childAssocRef
- public void addChildAssociation(org.alfresco.service.namespace.QName classRef, org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, boolean alwaysTraverseAssociation)
classRef
- childAssocRef
- alwaysTraverseAssociation
- public java.util.List getChildAssociations(org.alfresco.service.namespace.QName classRef)
classRef
-
public boolean isChildAssociationRefAlwaysTraversed(org.alfresco.service.namespace.QName classRef, org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
public void addAssociation(org.alfresco.service.namespace.QName classRef, org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef)
classRef
- qname
- nodeAssocRef
- public java.util.List getAssociations(org.alfresco.service.namespace.QName classRef)
classRef
-
public org.alfresco.repo.policy.AspectDetails addAspect(org.alfresco.service.namespace.QName aspect)
aspect
- the aspect class reference
public void removeAspect(org.alfresco.service.namespace.QName aspect)
aspect
- the aspect class referencepublic java.util.Set getAspects()
public void addProperty(org.alfresco.service.namespace.QName qName, java.io.Serializable value)
qName
- the qualified name of the propertyvalue
- the value of the propertypublic void removeProperty(org.alfresco.service.namespace.QName qName)
qName
- the qualified name of the propertypublic java.util.Map getProperties()
protected void addChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
childAssocRef
- the child association referenceprotected void addChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, boolean alwaysTraverseAssociation)
childAssocRef
- the child assoc referencealwaysDeepCopy
- indicates whether the assoc should always be traversedprotected boolean isChildAssociationRefAlwaysTraversed(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
childAssocRef
- the child association reference
public java.util.List getChildAssociations()
protected void addAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef)
qname
- the qualified name of the associationnodeAssocRef
- the association referencepublic java.util.List getAssociations()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |