public class MultilingualDocumentAspect extends java.lang.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(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,
java.util.Map before,
java.util.Map 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 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(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.OnCopyNodePolicyclassRef - the type or aspect qualified namecopyDetails - the details of the impending copyDoNothingCopyBehaviourCallbackCopyServicePoliciespublic void beforeDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
beforeDeleteChildAssociation in interface NodeServicePolicies.BeforeDeleteChildAssociationPolicychildAssocRef - the child association to be deletedpublic void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map before,
java.util.Map 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 - 2010 Alfresco Software, Inc. All Rights Reserved.