Package org.alfresco.repo.model.ml
Class MLContainerType
- java.lang.Object
-
- org.alfresco.repo.model.ml.MLContainerType
-
- All Implemented Interfaces:
NodeServicePolicies.OnUpdatePropertiesPolicy,ClassPolicy,Policy
public class MLContainerType extends java.lang.Object implements NodeServicePolicies.OnUpdatePropertiesPolicy
Class containing behaviour for the multilingual multilingual container type. A multilingual container type is fonctionally named 'Logical Document'. It links each translation of a semantical message togethermultilingual container type- Author:
- Yannick Pignot
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
-
-
Constructor Summary
Constructors Constructor Description MLContainerType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()Initialise the Multilingual Container TypevoidonUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> before, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> after)The property locale of a cm:mlContainer represents the locale of the pivot translation.voidsetMultilingualContentService(MultilingualContentService multilingualContentService)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetPolicyComponent(PolicyComponent policyComponent)
-
-
-
Method Detail
-
init
public void init()
Initialise the Multilingual Container TypeEnsures that the
ml empty document aspect
-
setPolicyComponent
public void setPolicyComponent(PolicyComponent policyComponent)
- Parameters:
policyComponent- the policy component to register behaviour with
-
setMultilingualContentService
public void setMultilingualContentService(MultilingualContentService multilingualContentService)
- Parameters:
multilingualContentService- the Multilingual Content Service to set
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
- Parameters:
nodeService- the Node Service to set
-
onUpdateProperties
public void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> before, java.util.Map<org.alfresco.service.namespace.QName,java.io.Serializable> after)The property locale of a cm:mlContainer represents the locale of the pivot translation. Since the pivot must be an existing translation and the pivot can t be empty, some tests must be performed when the locale of the mlContainer is updated.- Specified by:
onUpdatePropertiesin interfaceNodeServicePolicies.OnUpdatePropertiesPolicy- Parameters:
nodeRef- reference to the updated nodebefore- the node's properties before the changeafter- the node's properties after the change
-
-