public class EmptyTranslationAspect extends Object implements CopyServicePolicies.OnCopyNodePolicy, ContentServicePolicies.OnContentUpdatePolicy
ml empty document aspectPolicy.ArgARG_0, ARG_1, QNAMEQNAME| Constructor and Description |
|---|
EmptyTranslationAspect() |
| Modifier and Type | Method and Description |
|---|---|
CopyBehaviourCallback |
getCopyCallback(QName classRef,
CopyDetails copyDetails)
Called for all types and aspects before copying a node.
|
void |
init()
Initialise the Multilingual Empty Translation Aspect
|
void |
onContentUpdate(NodeRef nodeRef,
boolean newContent)
If a content is added to a cm:mlEmptyTranslation, remove this aspect.
|
void |
onCopyNode(QName classRef,
NodeRef sourceNodeRef,
StoreRef destinationStoreRef,
boolean copyToNewNode,
PolicyScope copyDetails)
Copy a cm:mlEmptyTranslation is not permit.
|
void |
setNodeService(NodeService nodeService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
public void init()
Ensures that the ml empty document aspect
public void setPolicyComponent(PolicyComponent policyComponent)
policyComponent - the policy component to register behaviour withpublic void setNodeService(NodeService nodeService)
nodeService - the Node Service to setpublic void onCopyNode(QName classRef, NodeRef sourceNodeRef, StoreRef destinationStoreRef, boolean copyToNewNode, PolicyScope copyDetails)
public void onContentUpdate(NodeRef nodeRef, boolean newContent)
onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicynodeRef - the node referencepublic CopyBehaviourCallback getCopyCallback(QName classRef, CopyDetails copyDetails)
CopyServicePolicies.OnCopyNodePolicygetCopyCallback in interface CopyServicePolicies.OnCopyNodePolicyclassRef - the type or aspect qualified namecopyDetails - the details of the impending copyCopyServicePoliciesCopyright © 2005–2020 Alfresco Software. All rights reserved.