org.alfresco.email.server
Class AliasableAspect

java.lang.Object
  extended by org.alfresco.email.server.AliasableAspect
All Implemented Interfaces:
NodeServicePolicies.OnAddAspectPolicy, NodeServicePolicies.OnUpdatePropertiesPolicy, ClassPolicy, Policy

public class AliasableAspect
extends java.lang.Object
implements NodeServicePolicies.OnAddAspectPolicy, NodeServicePolicies.OnUpdatePropertiesPolicy

Class that supports functionality of aliasable aspect.

Since:
2.2

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
 
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
 
Field Summary
static java.lang.String SEARCH_TEMPLATE
           
 
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnAddAspectPolicy
QNAME
 
Fields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE
 
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy
ARG_0, ARG_1, ARG_2, QNAME
 
Fields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE
 
Constructor Summary
AliasableAspect()
           
 
Method Summary
 void initialise()
          Spring initilaise method used to register the policy behaviours
 void onAddAspect(NodeRef nodeRef, QName aspectTypeQName)
          Called after an aspect has been added to a node
 void onUpdateProperties(NodeRef nodeRef, java.util.Map before, java.util.Map after)
          Called after a node's properties have been changed.
 void setNodeService(NodeService nodeService)
           
 void setPolicyComponent(PolicyComponent policyComponent)
           
 void setSearchService(SearchService searchService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEARCH_TEMPLATE

public static final java.lang.String SEARCH_TEMPLATE
Constructor Detail

AliasableAspect

public AliasableAspect()
Method Detail

setSearchService

public void setSearchService(SearchService searchService)
Parameters:
searchService - Alfresco Search Service

setNodeService

public void setNodeService(NodeService nodeService)
Parameters:
nodeService - Alfresco Node Service

setPolicyComponent

public void setPolicyComponent(PolicyComponent policyComponent)
Parameters:
policyComponent - Alfresco Policy Component

initialise

public void initialise()
Spring initilaise method used to register the policy behaviours


onAddAspect

public void onAddAspect(NodeRef nodeRef,
                        QName aspectTypeQName)
Description copied from interface: NodeServicePolicies.OnAddAspectPolicy
Called after an aspect has been added to a node

Specified by:
onAddAspect in interface NodeServicePolicies.OnAddAspectPolicy
Parameters:
nodeRef - the node to which the aspect was added
aspectTypeQName - the type of the aspect
Throws:
org.alfresco.error.AlfrescoRuntimeException - Throws if the alias property is duplicated.
See Also:
NodeServicePolicies.OnAddAspectPolicy.onAddAspect(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName)

onUpdateProperties

public void onUpdateProperties(NodeRef nodeRef,
                               java.util.Map before,
                               java.util.Map after)
Description copied from interface: NodeServicePolicies.OnUpdatePropertiesPolicy
Called after a node's properties have been changed.

Specified by:
onUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicy
Parameters:
nodeRef - reference to the updated node
before - the node's properties before the change
after - the node's properties after the change
Throws:
org.alfresco.error.AlfrescoRuntimeException - Throws if the alias property is duplicated.
See Also:
NodeServicePolicies.OnUpdatePropertiesPolicy.onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef, java.util.Map, java.util.Map)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.