org.alfresco.repo.coci
Class WorkingCopyAspect

java.lang.Object
  extended by org.alfresco.repo.coci.WorkingCopyAspect
All Implemented Interfaces:
CopyServicePolicies.OnCopyNodePolicy, ClassPolicy, Policy

public class WorkingCopyAspect
extends java.lang.Object
implements CopyServicePolicies.OnCopyNodePolicy


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.copy.CopyServicePolicies.OnCopyNodePolicy
ARG_0, ARG_1, QNAME
 
Fields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE
 
Constructor Summary
WorkingCopyAspect()
           
 
Method Summary
 void beforeDeleteNode(NodeRef nodeRef)
          beforeDeleteNode policy behaviour
 CopyBehaviourCallback getCopyCallback(QName classRef, CopyDetails copyDetails)
          Called for all types and aspects before copying a node.
 void init()
          Initialise method
 void setLockService(LockService lockService)
          Set the lock service
 void setNodeService(NodeService nodeService)
          Set the node service
 void setPolicyComponent(PolicyComponent policyComponent)
          Sets the policy component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkingCopyAspect

public WorkingCopyAspect()
Method Detail

setPolicyComponent

public void setPolicyComponent(PolicyComponent policyComponent)
Sets the policy component

Parameters:
policyComponent - the policy component

setNodeService

public void setNodeService(NodeService nodeService)
Set the node service

Parameters:
nodeService - the node service

setLockService

public void setLockService(LockService lockService)
Set the lock service

Parameters:
lockService - the lock service

init

public void init()
Initialise method


beforeDeleteNode

public void beforeDeleteNode(NodeRef nodeRef)
beforeDeleteNode policy behaviour

Parameters:
nodeRef - the node reference about to be deleted

getCopyCallback

public CopyBehaviourCallback getCopyCallback(QName classRef,
                                             CopyDetails copyDetails)
Description copied from interface: CopyServicePolicies.OnCopyNodePolicy
Called for all types and aspects before copying a node.

Specified by:
getCopyCallback in interface CopyServicePolicies.OnCopyNodePolicy
Parameters:
classRef - the type or aspect qualified name
copyDetails - the details of the impending copy
Returns:
Returns WorkingCopyAspectCopyBehaviourCallback
See Also:
CopyServicePolicies


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