public class EmptyTranslationAspect extends java.lang.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(org.alfresco.service.namespace.QName classRef,
CopyDetails copyDetails)
Called for all types and aspects before copying a node.
|
void |
init()
Initialise the Multilingual Empty Translation Aspect
|
void |
onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean newContent)
If a content is added to a cm:mlEmptyTranslation, remove this aspect.
|
void |
onCopyNode(org.alfresco.service.namespace.QName classRef,
org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.StoreRef destinationStoreRef,
boolean copyToNewNode,
PolicyScope copyDetails)
Copy a cm:mlEmptyTranslation is not permit.
|
void |
setNodeService(org.alfresco.service.cmr.repository.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(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - the Node Service to setpublic void onCopyNode(org.alfresco.service.namespace.QName classRef,
org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.StoreRef destinationStoreRef,
boolean copyToNewNode,
PolicyScope copyDetails)
public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean newContent)
onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicynodeRef - the node referencepublic CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)
CopyServicePolicies.OnCopyNodePolicygetCopyCallback in interface CopyServicePolicies.OnCopyNodePolicyclassRef - the type or aspect qualified namecopyDetails - the details of the impending copyEmptyTranslationAspectCopyBehaviourCallbackCopyServicePoliciesCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.