org.alfresco.repo.site
Class SiteAspect
java.lang.Object
org.alfresco.repo.site.SiteAspect
- All Implemented Interfaces:
- NodeServicePolicies.OnMoveNodePolicy, ClassPolicy, Policy
public class SiteAspect
- extends java.lang.Object
- implements NodeServicePolicies.OnMoveNodePolicy
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.
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy |
Policy.Arg |
Method Summary |
void |
init()
Initialise method |
void |
onMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef,
org.alfresco.service.cmr.repository.ChildAssociationRef newChildAssocRef)
Deny renames. |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SiteAspect
public SiteAspect()
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.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(org.alfresco.service.cmr.repository.NodeService nodeService)
- Set the node service
- Parameters:
nodeService
- node service
init
public void init()
- Initialise method
onMoveNode
public void onMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef oldChildAssocRef,
org.alfresco.service.cmr.repository.ChildAssociationRef newChildAssocRef)
- Deny renames.
- Specified by:
onMoveNode
in interface NodeServicePolicies.OnMoveNodePolicy
- Parameters:
oldChildAssocRef
- the child association reference prior to the movenewChildAssocRef
- the child association reference after the move
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.