public class EmptyTranslationAspect extends Object implements CopyServicePolicies.OnCopyNodePolicy, ContentServicePolicies.OnContentUpdatePolicy
ml empty document aspect
Policy.Arg
ARG_0, ARG_1, QNAME
QNAME
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.OnContentUpdatePolicy
nodeRef
- the node referencepublic CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)
CopyServicePolicies.OnCopyNodePolicy
getCopyCallback
in interface CopyServicePolicies.OnCopyNodePolicy
classRef
- the type or aspect qualified namecopyDetails
- the details of the impending copyCopyServicePolicies
Copyright © 2005–2017 Alfresco Software. All rights reserved.