public class MultilingualDocumentAspect extends Object implements CopyServicePolicies.OnCopyNodePolicy, NodeServicePolicies.BeforeDeleteChildAssociationPolicy, NodeServicePolicies.OnUpdatePropertiesPolicy
ml document aspect
Policy.Arg
ARG_0, ARG_1, QNAME
QNAME
ARG_0, ARG_1, ARG_2, QNAME
Constructor and Description |
---|
MultilingualDocumentAspect() |
Modifier and Type | Method and Description |
---|---|
void |
beforeDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
Make sure that the child is no longer a translation and that the
associated container is cleaned up, if required.
|
CopyBehaviourCallback |
getCopyCallback(org.alfresco.service.namespace.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(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after)
Ensure that the locale is unique inside the mlContainer.
|
void |
setMultilingualContentService(MultilingualContentService multilingualContentService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
public void init()
ml document aspect
public 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(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the Node Service to setpublic CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)
getCopyCallback
in interface CopyServicePolicies.OnCopyNodePolicy
classRef
- the type or aspect qualified namecopyDetails
- the details of the impending copyDoNothingCopyBehaviourCallback
CopyServicePolicies
public void beforeDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
beforeDeleteChildAssociation
in interface NodeServicePolicies.BeforeDeleteChildAssociationPolicy
childAssocRef
- the child association to be deletedpublic void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, Map<org.alfresco.service.namespace.QName,Serializable> before, Map<org.alfresco.service.namespace.QName,Serializable> after)
onUpdateProperties
in interface NodeServicePolicies.OnUpdatePropertiesPolicy
nodeRef
- reference to the updated nodebefore
- the node's properties before the changeafter
- the node's properties after the changeCopyright © 2005–2017 Alfresco Software. All rights reserved.