org.alfresco.repo.model.ml
Class EditionServiceImpl

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

public class EditionServiceImpl
extends java.lang.Object
implements EditionService

Edition support implementation


Field Summary
static QName[] ML_CONTAINER_PROPERTIES_TO_VERSION
          List of properties to set persistent when an edition of the mlContainer is created
 
Constructor Summary
EditionServiceImpl()
           
 
Method Summary
 NodeRef createEdition(NodeRef startingTranslationNodeRef, java.util.Map versionProperties)
          Create a new edition of an existing cm:mlContainer using any one of the associated cm:mlDocument transalations.
 VersionHistory getEditions(NodeRef mlContainer)
          Get editions of an existing cm:mlContainer.
 java.util.Map getVersionedMetadatas(Version version)
          Get the the versioned metadata of a specific cm:mlDocument transalation version or a specific cm:mlContainer version
 java.util.List getVersionedTranslations(Version mlContainerEdition)
          Get the different cm:mlDocument transalation version histories of a specific edition of a cm:mlContainer
 void setFileFolderService(FileFolderService fileFolderService)
           
 void setMultilingualContentService(MultilingualContentService multilingualContentService)
           
 void setNodeArchiveService(NodeArchiveService nodeArchiveService)
           
 void setNodeService(NodeService nodeService)
           
 void setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter)
           
 void setVersionNodeService(NodeService versionNodeService)
           
 void setVersionService(VersionService versionService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 Detail

EditionServiceImpl

public EditionServiceImpl()
Method Detail

createEdition

public NodeRef createEdition(NodeRef startingTranslationNodeRef,
                             java.util.Map 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 java.util.Map 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
See Also:
the versioned metadata of a cm:mlDocument transalation added to the usual metadata versioned for a normal node., the versioned metadata of a cm:mlContainer added to the usual metadata versioned for a normal node.

getVersionedTranslations

public java.util.List 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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.