|
|||||||||
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 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(QName classRef)
Constructor |
Method Summary | |
---|---|
org.alfresco.repo.policy.AspectDetails |
addAspect(QName aspect)
Add an aspect |
protected void |
addAssociation(AssociationRef nodeAssocRef)
Adds an association to be copied |
void |
addAssociation(QName classRef,
AssociationRef nodeAssocRef)
Add an association |
protected void |
addChildAssociation(ChildAssociationRef childAssocRef)
Add a child association |
protected void |
addChildAssociation(ChildAssociationRef childAssocRef,
boolean alwaysTraverseAssociation)
Add a child association |
void |
addChildAssociation(QName classRef,
ChildAssociationRef childAssocRef)
Adds a child association |
void |
addChildAssociation(QName classRef,
ChildAssociationRef childAssocRef,
boolean alwaysTraverseAssociation)
|
void |
addProperty(QName classRef,
QName qName,
java.io.Serializable value)
Add a property |
void |
addProperty(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(QName classRef)
Get associations |
java.util.List |
getChildAssociations()
Gets the child associations to be copied |
java.util.List |
getChildAssociations(QName classRef)
Get a child association |
java.util.Map |
getProperties()
Gets the map of properties |
java.util.Map |
getProperties(QName classRef)
Get the properties |
protected boolean |
isChildAssociationRefAlwaysTraversed(ChildAssociationRef childAssocRef)
Indicates whether a child association ref is always traversed or not |
boolean |
isChildAssociationRefAlwaysTraversed(QName classRef,
ChildAssociationRef childAssocRef)
|
void |
removeAspect(QName aspect)
Removes an aspect from the list |
void |
removeProperty(QName qName)
Remove a property from the list |
void |
removeProperty(QName classRef,
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 QName classRef
protected java.util.Map alwaysTraverseMap
Constructor Detail |
---|
public PolicyScope(QName classRef)
classRef
- the class referenceMethod Detail |
---|
public void addProperty(QName classRef, QName qName, java.io.Serializable value)
classRef
- the class referenceqName
- the qualified name of the propertyvalue
- the value of the propertypublic void removeProperty(QName classRef, QName qName)
classRef
- the class referenceqName
- the qualified namepublic java.util.Map getProperties(QName classRef)
classRef
- the class ref
public void addChildAssociation(QName classRef, ChildAssociationRef childAssocRef)
classRef
- qname
- childAssocRef
- public void addChildAssociation(QName classRef, ChildAssociationRef childAssocRef, boolean alwaysTraverseAssociation)
classRef
- childAssocRef
- alwaysTraverseAssociation
- public java.util.List getChildAssociations(QName classRef)
classRef
-
public boolean isChildAssociationRefAlwaysTraversed(QName classRef, ChildAssociationRef childAssocRef)
public void addAssociation(QName classRef, AssociationRef nodeAssocRef)
classRef
- qname
- nodeAssocRef
- public java.util.List getAssociations(QName classRef)
classRef
-
public org.alfresco.repo.policy.AspectDetails addAspect(QName aspect)
aspect
- the aspect class reference
public void removeAspect(QName aspect)
aspect
- the aspect class referencepublic java.util.Set getAspects()
public void addProperty(QName qName, java.io.Serializable value)
qName
- the qualified name of the propertyvalue
- the value of the propertypublic void removeProperty(QName qName)
qName
- the qualified name of the propertypublic java.util.Map getProperties()
protected void addChildAssociation(ChildAssociationRef childAssocRef)
childAssocRef
- the child association referenceprotected void addChildAssociation(ChildAssociationRef childAssocRef, boolean alwaysTraverseAssociation)
childAssocRef
- the child assoc referencealwaysDeepCopy
- indicates whether the assoc should always be traversedprotected boolean isChildAssociationRefAlwaysTraversed(ChildAssociationRef childAssocRef)
childAssocRef
- the child association reference
public java.util.List getChildAssociations()
protected void addAssociation(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 |