public class SiteAspect extends Object implements NodeServicePolicies.OnMoveNodePolicy, NodeServicePolicies.OnUpdatePropertiesPolicy
Policy.ArgQNAMEARG_0, ARG_1, ARG_2, QNAME| Constructor and Description |
|---|
SiteAspect() |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initialise method
|
void |
onMoveNode(ChildAssociationRef oldChildAssocRef,
ChildAssociationRef newChildAssocRef)
Deny renames.
|
void |
onUpdateProperties(NodeRef nodeRef,
Map<QName,Serializable> before,
Map<QName,Serializable> after)
Called after a node's properties have been changed.
|
void |
setDictionaryService(DictionaryService dictionaryService)
Set the dictionary service
|
void |
setNodeService(NodeService nodeService)
Set the node service
|
void |
setPolicyComponent(PolicyComponent policyComponent)
Set the policy component
|
public void setDictionaryService(DictionaryService dictionaryService)
dictionaryService - dictionary servicepublic void setPolicyComponent(PolicyComponent policyComponent)
policyComponent - policy componentpublic void setNodeService(NodeService nodeService)
nodeService - node servicepublic void init()
public void onUpdateProperties(NodeRef nodeRef, Map<QName,Serializable> before, Map<QName,Serializable> after)
NodeServicePolicies.OnUpdatePropertiesPolicyonUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicynodeRef - reference to the updated nodebefore - the node's properties before the changeafter - the node's properties after the changepublic void onMoveNode(ChildAssociationRef oldChildAssocRef, ChildAssociationRef newChildAssocRef)
onMoveNode in interface NodeServicePolicies.OnMoveNodePolicyoldChildAssocRef - the child association reference prior to the movenewChildAssocRef - the child association reference after the moveCopyright © 2005–2020 Alfresco Software. All rights reserved.