public class SiteAspect extends java.lang.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(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef,
org.alfresco.service.cmr.repository.ChildAssociationRef newChildAssocRef)
Deny renames.
|
void |
onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map before,
java.util.Map after)
Called after a node's properties have been changed.
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
setPolicyComponent(PolicyComponent policyComponent)
Set the policy component
|
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - dictionary servicepublic void setPolicyComponent(PolicyComponent policyComponent)
policyComponent - policy componentpublic void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - node servicepublic void init()
public void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map before,
java.util.Map 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(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef,
org.alfresco.service.cmr.repository.ChildAssociationRef newChildAssocRef)
onMoveNode in interface NodeServicePolicies.OnMoveNodePolicyoldChildAssocRef - the child association reference prior to the movenewChildAssocRef - the child association reference after the moveCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.