org.alfresco.web.bean.content
Class VersionedDocumentDetailsDialog

java.lang.Object
  extended by org.alfresco.web.bean.content.VersionedDocumentDetailsDialog
All Implemented Interfaces:
java.io.Serializable

public class VersionedDocumentDetailsDialog
extends java.lang.Object
implements java.io.Serializable

Bean with generic function helping the rendering of the versioned properties

See Also:
Serialized Form

Constructor Summary
VersionedDocumentDetailsDialog()
           
 
Method Summary
protected  org.alfresco.service.cmr.ml.ContentFilterLanguagesService getContentFilterLanguagesService()
           
protected  org.alfresco.service.cmr.ml.EditionService getEditionService()
           
 java.lang.String getFileType32()
           
 Node getFrozenStateDocument()
           
 org.alfresco.service.cmr.repository.NodeRef getFrozenStateNodeRef()
           
 Node getMultilingualContainerDocument()
           
protected  org.alfresco.service.cmr.ml.MultilingualContentService getMultilingualContentService()
           
 java.lang.String getName()
           
protected  org.alfresco.service.cmr.repository.NodeService getNodeService()
           
 java.lang.String getOutcome()
           
 java.util.List getTranslations()
          Returns a list of objects representing the translations of the given version of the mlContainer
 java.lang.String getUrl()
          Returns the URL to download content for the current document
 org.alfresco.service.cmr.version.Version getVersion()
           
 java.util.List getVersionHistory()
          Returns a list of objects representing the versions of the current document
protected  org.alfresco.service.cmr.version.VersionService getVersionService()
           
 void init()
           
 boolean isEmptyTranslation()
           
 boolean isFromPreviousEditon()
           
 void nextItem(javax.faces.event.ActionEvent event)
          Navigates to next item in the list of versioned content for the current VersionHistory
 void previousItem(javax.faces.event.ActionEvent event)
          Navigates to previous item in the list of versioned content for the current VersionHistory
 void setBrowseBean(BrowseBean browseBean)
           
 void setBrowsingVersion(javax.faces.event.ActionEvent event)
          Set which version of the current node that the user want to display the properties
 void setContentFilterLanguagesService(org.alfresco.service.cmr.ml.ContentFilterLanguagesService contentFilterLanguagesService)
           
 void setEditionService(org.alfresco.service.cmr.ml.EditionService editionService)
           
 void setMultilingualContentService(org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setVersionService(org.alfresco.service.cmr.version.VersionService versionService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionedDocumentDetailsDialog

public VersionedDocumentDetailsDialog()
Method Detail

init

public void init()

setBrowseBean

public void setBrowseBean(BrowseBean browseBean)
Parameters:
browseBean - The BrowseBean to set.

setBrowsingVersion

public void setBrowsingVersion(javax.faces.event.ActionEvent event)
Set which version of the current node that the user want to display the properties


nextItem

public void nextItem(javax.faces.event.ActionEvent event)
Navigates to next item in the list of versioned content for the current VersionHistory


previousItem

public void previousItem(javax.faces.event.ActionEvent event)
Navigates to previous item in the list of versioned content for the current VersionHistory


getTranslations

public java.util.List getTranslations()
Returns a list of objects representing the translations of the given version of the mlContainer

Returns:
List of translations

getVersionHistory

public java.util.List getVersionHistory()
Returns a list of objects representing the versions of the current document

Returns:
List of previous versions

isFromPreviousEditon

public boolean isFromPreviousEditon()
Returns:
true if the version is a translation of a previous edition

getUrl

public java.lang.String getUrl()
Returns the URL to download content for the current document

Returns:
Content url to download the current document

getFrozenStateDocument

public Node getFrozenStateDocument()
Returns:
the versioned node selected by the user

getFrozenStateNodeRef

public org.alfresco.service.cmr.repository.NodeRef getFrozenStateNodeRef()
Returns:
the versioned node ref selected by the user

getMultilingualContainerDocument

public Node getMultilingualContainerDocument()
Returns:
the edition of the mlContainer of the selected verion of the translation

getName

public java.lang.String getName()
Returns:
the name of selected version

getFileType32

public java.lang.String getFileType32()
Returns:
the file type image URL of the version

isEmptyTranslation

public boolean isEmptyTranslation()

getVersion

public org.alfresco.service.cmr.version.Version getVersion()
Returns:
the version to display of the document selected by the user

getOutcome

public java.lang.String getOutcome()
Returns:
the next page to display according to which page the dialog is coming from

setVersionService

public void setVersionService(org.alfresco.service.cmr.version.VersionService versionService)
Parameters:
versionService - the Version Service to set

getVersionService

protected org.alfresco.service.cmr.version.VersionService getVersionService()

setEditionService

public void setEditionService(org.alfresco.service.cmr.ml.EditionService editionService)
Parameters:
editionService - the Edition Service to set

getEditionService

protected org.alfresco.service.cmr.ml.EditionService getEditionService()

setNodeService

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

getNodeService

protected org.alfresco.service.cmr.repository.NodeService getNodeService()

setContentFilterLanguagesService

public void setContentFilterLanguagesService(org.alfresco.service.cmr.ml.ContentFilterLanguagesService contentFilterLanguagesService)
Parameters:
contentFilterLanguagesService - the Content Filter Languages Service to set

getContentFilterLanguagesService

protected org.alfresco.service.cmr.ml.ContentFilterLanguagesService getContentFilterLanguagesService()

setMultilingualContentService

public void setMultilingualContentService(org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService)
Parameters:
Multilingual - Content Service the Multilingual Content Service to set

getMultilingualContentService

protected org.alfresco.service.cmr.ml.MultilingualContentService getMultilingualContentService()


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