Class EditionServiceImpl

java.lang.Object
org.alfresco.repo.model.ml.EditionServiceImpl
All Implemented Interfaces:
EditionService

public class EditionServiceImpl extends Object implements EditionService
Edition support implementation
Author:
Yannick Pignot
  • Field Details

    • ML_CONTAINER_PROPERTIES_TO_VERSION

      public static final QName[] ML_CONTAINER_PROPERTIES_TO_VERSION
      List of properties to set persistent when an edition of the mlContainer is created
  • Constructor Details

    • EditionServiceImpl

      public EditionServiceImpl()
  • Method Details

    • createEdition

      public NodeRef createEdition(NodeRef startingTranslationNodeRef, Map<String,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(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 Map<QName,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 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(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(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