Class MLContainerType

    • Constructor Detail

      • MLContainerType

        public MLContainerType()
    • Method Detail

      • init

        public void init()
        Initialise the Multilingual Container Type

        Ensures 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:
        onUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicy
        Parameters:
        nodeRef - reference to the updated node
        before - the node's properties before the change
        after - the node's properties after the change