Class EmptyTranslationAspect

    • Constructor Detail

      • EmptyTranslationAspect

        public EmptyTranslationAspect()
    • Method Detail

      • init

        public void init()
        Initialise the Multilingual Empty Translation Aspect

        Ensures that the ml empty document aspect

      • setPolicyComponent

        public void setPolicyComponent​(PolicyComponent policyComponent)
        Parameters:
        policyComponent - the policy component to register behaviour with
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Parameters:
        nodeService - the Node Service to set
      • onCopyNode

        public void onCopyNode​(org.alfresco.service.namespace.QName classRef,
                               org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                               org.alfresco.service.cmr.repository.StoreRef destinationStoreRef,
                               boolean copyToNewNode,
                               PolicyScope copyDetails)
        Copy a cm:mlEmptyTranslation is not permit.
      • onContentUpdate

        public void onContentUpdate​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                    boolean newContent)
        If a content is added to a cm:mlEmptyTranslation, remove this aspect.
        Specified by:
        onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicy
        Parameters:
        nodeRef - the node reference