Package org.alfresco.repo.model.ml
Class EditionServiceImpl
java.lang.Object
org.alfresco.repo.model.ml.EditionServiceImpl
- All Implemented Interfaces:
EditionService
Edition support implementation
- Author:
- Yannick Pignot
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QName[]List of properties to set persistent when an edition of the mlContainer is created -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateEdition(NodeRef startingTranslationNodeRef, Map<String, Serializable> versionProperties) Create a new edition of an existing cm:mlContainer using any one of the associated cm:mlDocument transalations.getEditions(NodeRef mlContainer) Get editions of an existing cm:mlContainer.getVersionedMetadatas(Version version) Get the the versioned metadata of a specific cm:mlDocument transalation version or a specific cm:mlContainer versiongetVersionedTranslations(Version mlContainerEdition) Get the different cm:mlDocument transalation version histories of a specific edition of a cm:mlContainervoidsetFileFolderService(FileFolderService fileFolderService) voidsetMultilingualContentService(MultilingualContentService multilingualContentService) voidsetNodeArchiveService(NodeArchiveService nodeArchiveService) voidsetNodeService(NodeService nodeService) voidsetPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter) voidsetVersionNodeService(NodeService versionNodeService) voidsetVersionService(VersionService versionService)
-
Field Details
-
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:
createEditionin interfaceEditionService- Parameters:
startingTranslationNodeRef- The specific cm:mlDocument to use as the starting point of the new edition. All other translations will be removed.
-
getEditions
Get editions of an existing cm:mlContainer.- Specified by:
getEditionsin interfaceEditionService- Parameters:
mlContainer- An existing cm:mlContainer- Returns:
- The Version History of the mlContainer
-
getVersionedMetadatas
Get the the versioned metadata of a specific cm:mlDocument transalation version or a specific cm:mlContainer version- Specified by:
getVersionedMetadatasin interfaceEditionService- 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
Get the different cm:mlDocument transalation version histories of a specific edition of a cm:mlContainer- Specified by:
getVersionedTranslationsin interfaceEditionService- Parameters:
mlContainerEdition- An existing version of a mlContainer- Returns:
- The list of cm:mlDocument transalation versions of the edition
-
setNodeService
- Parameters:
nodeService- the Node Service to set
-
setVersionService
- Parameters:
versionService- the Version Service to set
-
setMultilingualContentService
- Parameters:
multilingualContentService- the Multilingual Content Service to set
-
setVersionNodeService
- Parameters:
versionNodeService- the Version Store Node Service to set
-
setPolicyBehaviourFilter
- Parameters:
policyBehaviourFilter- the Behaviour Filter to set
-
setNodeArchiveService
- Parameters:
nodeArchiveService- the node Archive Service to set
-
setFileFolderService
- Parameters:
fileFolderService- the fileFolder Service to set
-