public class MultilingualDocumentAspect extends Object implements CopyServicePolicies.OnCopyNodePolicy, NodeServicePolicies.BeforeDeleteChildAssociationPolicy, NodeServicePolicies.OnUpdatePropertiesPolicy
ml document aspectPolicy.ArgARG_0, ARG_1, QNAMEQNAMEARG_0, ARG_1, ARG_2, QNAME| Constructor and Description |
|---|
MultilingualDocumentAspect() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeDeleteChildAssociation(ChildAssociationRef childAssocRef)
Make sure that the child is no longer a translation and that the
associated container is cleaned up, if required.
|
CopyBehaviourCallback |
getCopyCallback(QName classRef,
CopyDetails copyDetails)
The copy of a cm:mlDocument can't keep the Multilingual aspect.
|
void |
init()
Initialise the Multilingual Aspect
Ensures that the
ml document aspect |
void |
onUpdateProperties(NodeRef nodeRef,
Map<QName,Serializable> before,
Map<QName,Serializable> after)
Ensure that the locale is unique inside the mlContainer.
|
void |
setMultilingualContentService(MultilingualContentService multilingualContentService) |
void |
setNodeService(NodeService nodeService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
public void init()
ml document aspectpublic void setPolicyComponent(PolicyComponent policyComponent)
policyComponent - the policy component to register behaviour withpublic void setMultilingualContentService(MultilingualContentService multilingualContentService)
multilingualContentService - the Multilingual Content Service to setpublic void setNodeService(NodeService nodeService)
nodeService - the Node Service to setpublic CopyBehaviourCallback getCopyCallback(QName classRef, CopyDetails copyDetails)
getCopyCallback in interface CopyServicePolicies.OnCopyNodePolicyclassRef - the type or aspect qualified namecopyDetails - the details of the impending copyDoNothingCopyBehaviourCallbackCopyServicePoliciespublic void beforeDeleteChildAssociation(ChildAssociationRef childAssocRef)
beforeDeleteChildAssociation in interface NodeServicePolicies.BeforeDeleteChildAssociationPolicychildAssocRef - the child association to be deletedpublic void onUpdateProperties(NodeRef nodeRef, Map<QName,Serializable> before, Map<QName,Serializable> after)
onUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicynodeRef - reference to the updated nodebefore - the node's properties before the changeafter - the node's properties after the changeCopyright © 2005–2021 Alfresco Software. All rights reserved.