Class MultilingualDocumentAspect

    • Constructor Detail

      • MultilingualDocumentAspect

        public MultilingualDocumentAspect()
    • Method Detail

      • init

        public void init()
        Initialise the Multilingual Aspect Ensures that the ml 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
      • beforeDeleteChildAssociation

        public 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.
        Specified by:
        beforeDeleteChildAssociation in interface NodeServicePolicies.BeforeDeleteChildAssociationPolicy
        Parameters:
        childAssocRef - the child association to be deleted
      • 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)
        Ensure that the locale is unique inside the mlContainer. If the locale of a pivot translation is modified, the pivot locale reference of the mlContainer must be modified too.
        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