Class EditionServiceImpl

  • All Implemented Interfaces:
    EditionService

    public class EditionServiceImpl
    extends java.lang.Object
    implements EditionService
    Edition support implementation
    Author:
    Yannick Pignot
    • Field Detail

      • ML_CONTAINER_PROPERTIES_TO_VERSION

        public static final org.alfresco.service.namespace.QName[] ML_CONTAINER_PROPERTIES_TO_VERSION
        List of properties to set persistent when an edition of the mlContainer is created
    • Constructor Detail

      • EditionServiceImpl

        public EditionServiceImpl()
    • Method Detail

      • createEdition

        public org.alfresco.service.cmr.repository.NodeRef createEdition​(org.alfresco.service.cmr.repository.NodeRef startingTranslationNodeRef,
                                                                         java.util.Map<java.lang.String,​java.io.Serializable> versionProperties)
        Create a new edition of an existing cm:mlContainer using any one of the associated cm:mlDocument transalations. If startingTranslationNodeRef is multilingual, it will be copied. The copy will become the pivot translation of the new Edition of the cm:mlContainer. The reference of the copy will be returned.
        Specified by:
        createEdition in interface EditionService
        Parameters:
        startingTranslationNodeRef - The specific cm:mlDocument to use as the starting point of the new edition. All other translations will be removed.
      • getEditions

        public VersionHistory getEditions​(org.alfresco.service.cmr.repository.NodeRef mlContainer)
        Get editions of an existing cm:mlContainer.
        Specified by:
        getEditions in interface EditionService
        Parameters:
        mlContainer - An existing cm:mlContainer
        Returns:
        The Version History of the mlContainer
      • getVersionedMetadatas

        public java.util.Map<org.alfresco.service.namespace.QName,​java.io.Serializable> getVersionedMetadatas​(Version version)
        Get the the versioned metadata of a specific cm:mlDocument transalation version or a specific cm:mlContainer version
        Specified by:
        getVersionedMetadatas in interface EditionService
        Parameters:
        version - An existing version of a cm:mlDocument translation version or an existing version of a cm:mlContainer version.
        Returns:
        The versioned metadata
      • getVersionedTranslations

        public java.util.List<VersionHistory> getVersionedTranslations​(Version mlContainerEdition)
        Get the different cm:mlDocument transalation version histories of a specific edition of a cm:mlContainer
        Specified by:
        getVersionedTranslations in interface EditionService
        Parameters:
        mlContainerEdition - An existing version of a mlContainer
        Returns:
        The list of cm:mlDocument transalation versions of the edition
      • setNodeService

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

        public void setVersionService​(VersionService versionService)
        Parameters:
        versionService - the Version Service to set
      • setMultilingualContentService

        public void setMultilingualContentService​(MultilingualContentService multilingualContentService)
        Parameters:
        multilingualContentService - the Multilingual Content Service to set
      • setVersionNodeService

        public void setVersionNodeService​(org.alfresco.service.cmr.repository.NodeService versionNodeService)
        Parameters:
        versionNodeService - the Version Store Node Service to set
      • setPolicyBehaviourFilter

        public void setPolicyBehaviourFilter​(BehaviourFilter policyBehaviourFilter)
        Parameters:
        policyBehaviourFilter - the Behaviour Filter to set
      • setNodeArchiveService

        public void setNodeArchiveService​(NodeArchiveService nodeArchiveService)
        Parameters:
        nodeArchiveService - the node Archive Service to set
      • setFileFolderService

        public void setFileFolderService​(FileFolderService fileFolderService)
        Parameters:
        fileFolderService - the fileFolder Service to set