Package org.alfresco.repo.site
Class SiteAspect
- java.lang.Object
-
- org.alfresco.repo.site.SiteAspect
-
- All Implemented Interfaces:
NodeServicePolicies.OnMoveNodePolicy,NodeServicePolicies.OnUpdatePropertiesPolicy,ClassPolicy,Policy
public class SiteAspect extends Object implements NodeServicePolicies.OnMoveNodePolicy, NodeServicePolicies.OnUpdatePropertiesPolicy
Site aspect behaviour bean. Renames are not allowed, because the relationship between a site and its authorities is based on a pattern using the name.- Author:
- Nick Burch
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
-
-
Field Summary
-
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnMoveNodePolicy
QNAME
-
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy
ARG_0, ARG_1, ARG_2, QNAME
-
-
Constructor Summary
Constructors Constructor Description SiteAspect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()Initialise methodvoidonMoveNode(ChildAssociationRef oldChildAssocRef, ChildAssociationRef newChildAssocRef)Deny renames.voidonUpdateProperties(NodeRef nodeRef, Map<QName,Serializable> before, Map<QName,Serializable> after)Called after a node's properties have been changed.voidsetDictionaryService(DictionaryService dictionaryService)Set the dictionary servicevoidsetNodeService(NodeService nodeService)Set the node servicevoidsetPolicyComponent(PolicyComponent policyComponent)Set the policy component
-
-
-
Method Detail
-
setDictionaryService
public void setDictionaryService(DictionaryService dictionaryService)
Set the dictionary service- Parameters:
dictionaryService- dictionary service
-
setPolicyComponent
public void setPolicyComponent(PolicyComponent policyComponent)
Set the policy component- Parameters:
policyComponent- policy component
-
setNodeService
public void setNodeService(NodeService nodeService)
Set the node service- Parameters:
nodeService- node service
-
init
public void init()
Initialise method
-
onUpdateProperties
public void onUpdateProperties(NodeRef nodeRef, Map<QName,Serializable> before, Map<QName,Serializable> after)
Description copied from interface:NodeServicePolicies.OnUpdatePropertiesPolicyCalled after a node's properties have been changed.- Specified by:
onUpdatePropertiesin interfaceNodeServicePolicies.OnUpdatePropertiesPolicy- Parameters:
nodeRef- reference to the updated nodebefore- the node's properties before the changeafter- the node's properties after the change
-
onMoveNode
public void onMoveNode(ChildAssociationRef oldChildAssocRef, ChildAssociationRef newChildAssocRef)
Deny renames.- Specified by:
onMoveNodein interfaceNodeServicePolicies.OnMoveNodePolicy- Parameters:
oldChildAssocRef- the child association reference prior to the movenewChildAssocRef- the child association reference after the move
-
-