org.alfresco.repo.model.ml
Class EmptyTranslationAspect
java.lang.Object
org.alfresco.repo.model.ml.EmptyTranslationAspect
- All Implemented Interfaces:
- ContentServicePolicies.OnContentUpdatePolicy, CopyServicePolicies.OnCopyNodePolicy, ClassPolicy, Policy
public class EmptyTranslationAspect
- extends java.lang.Object
- implements CopyServicePolicies.OnCopyNodePolicy, ContentServicePolicies.OnContentUpdatePolicy
Class containing behaviour for the multilingual empty translation aspect.
An empty translation is a document's properties translation. This kind of node
doesn't have a content.
ml empty document aspect
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmptyTranslationAspect
public EmptyTranslationAspect()
init
public void init()
- Initialise the Multilingual Empty Translation Aspect
Ensures that the ml empty document aspect
setPolicyComponent
public void setPolicyComponent(PolicyComponent policyComponent)
- Parameters:
policyComponent
- the policy component to register behaviour with
setNodeService
public void setNodeService(NodeService nodeService)
- Parameters:
nodeService
- the Node Service to set
onCopyNode
public void onCopyNode(QName classRef,
NodeRef sourceNodeRef,
StoreRef destinationStoreRef,
boolean copyToNewNode,
PolicyScope copyDetails)
- Copy a cm:mlEmptyTranslation is not permit.
onContentUpdate
public void onContentUpdate(NodeRef nodeRef,
boolean newContent)
- If a content is added to a cm:mlEmptyTranslation, remove this aspect.
- Specified by:
onContentUpdate
in interface ContentServicePolicies.OnContentUpdatePolicy
- Parameters:
nodeRef
- the node reference
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 namecopyDetails
- the details of the impending copy
- Returns:
- Returns
EmptyTranslationAspectCopyBehaviourCallback
- See Also:
CopyServicePolicies
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.