Package org.alfresco.repo.model.ml
Class MLContainerType
java.lang.Object
org.alfresco.repo.model.ml.MLContainerType
- All Implemented Interfaces:
NodeServicePolicies.OnUpdatePropertiesPolicy,ClassPolicy,Policy
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 together
multilingual container type- Author:
- Yannick Pignot
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg -
Field Summary
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy
ARG_0, ARG_1, ARG_2, QNAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Initialise the Multilingual Container TypevoidonUpdateProperties(NodeRef nodeRef, Map<QName, Serializable> before, Map<QName, Serializable> after) The property locale of a cm:mlContainer represents the locale of the pivot translation.voidsetMultilingualContentService(MultilingualContentService multilingualContentService) voidsetNodeService(NodeService nodeService) voidsetPolicyComponent(PolicyComponent policyComponent)
-
Constructor Details
-
MLContainerType
public MLContainerType()
-
-
Method Details
-
init
public void init()Initialise the Multilingual Container TypeEnsures that the
ml empty document aspect -
setPolicyComponent
- Parameters:
policyComponent- the policy component to register behaviour with
-
setMultilingualContentService
- Parameters:
multilingualContentService- the Multilingual Content Service to set
-
setNodeService
- Parameters:
nodeService- the Node Service to set
-
onUpdateProperties
public void onUpdateProperties(NodeRef nodeRef, Map<QName, Serializable> before, Map<QName, 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
-