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
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy
ARG_0, ARG_1, ARG_2, QNAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()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
-
Constructor Details
-
SiteAspect
public SiteAspect()
-
-
Method Details
-
setDictionaryService
Set the dictionary service- Parameters:
dictionaryService- dictionary service
-
setPolicyComponent
Set the policy component- Parameters:
policyComponent- policy component
-
setNodeService
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
Deny renames.- Specified by:
onMoveNodein interfaceNodeServicePolicies.OnMoveNodePolicy- Parameters:
oldChildAssocRef- the child association reference prior to the movenewChildAssocRef- the child association reference after the move
-