org.alfresco.web.bean.wcm
Class FileDetailsBean

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.wcm.AVMDetailsBean
          extended by org.alfresco.web.bean.wcm.FileDetailsBean
All Implemented Interfaces:
java.io.Serializable, IDialogBean, NavigationSupport

public class FileDetailsBean
extends AVMDetailsBean

Backing bean for File Details page.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.alfresco.web.bean.wcm.AVMDetailsBean
avmBrowseBean, panels
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
FileDetailsBean()
          Default constructor
 
Method Summary
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 AVMNode getAvmNode()
           
 java.lang.String getBrowserUrl()
          Returns the URL to the content for the current document
 java.lang.String getCancelButtonLabel()
          Returns the label to use for the cancel button
 java.lang.String getContainerTitle()
          Returns the title to be used for the dialog
 java.lang.String getCurrentItemId()
           
 Node getDocument()
           
 java.lang.String getDownloadUrl()
          Returns the download URL to the content for the current document
 java.lang.String getFileType32()
           
protected  java.util.List getNodes()
           
 java.lang.String getOutcome()
           
 java.lang.String getPreviewUrl()
          Returns the virtualisation server URL to the content for the current document
 java.util.List getVersionHistory()
           
 void revertNode(javax.faces.event.ActionEvent event)
          Revert a node back to a previous version
 void setActionService(org.alfresco.service.cmr.action.ActionService actionService)
           
 
Methods inherited from class org.alfresco.web.bean.wcm.AVMDetailsBean
expandPanel, getAvmService, getIsBrowseList, getName, getNodeRefUrl, getNodeService, getPanels, getPath, nextItem, previousItem, setAvmBrowseBean, setAvmService, setNodeService, setPanels
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getRuleService, getSearchService, getTransactionService, init, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setSearchService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDetailsBean

public FileDetailsBean()
Default constructor

Method Detail

setActionService

public void setActionService(org.alfresco.service.cmr.action.ActionService actionService)
Parameters:
actionService - The actionService to set.

getAvmNode

public AVMNode getAvmNode()
Specified by:
getAvmNode in class AVMDetailsBean
Returns:
the AVM node to display the details for
See Also:
AVMDetailsBean.getAvmNode()

getDocument

public Node getDocument()
Returns:
a Node wrapper of the AVM File Node - for property sheet support

getBrowserUrl

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

Returns:
Content url to the current document

getDownloadUrl

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

Returns:
Download url to the current document

getPreviewUrl

public java.lang.String getPreviewUrl()
Returns the virtualisation server URL to the content for the current document

Returns:
Preview url for the current document

getFileType32

public java.lang.String getFileType32()
Returns:
The 32x32 filetype icon for the file

getNodes

protected java.util.List getNodes()
Specified by:
getNodes in class AVMDetailsBean
Returns:
the sibling nodes for this item
See Also:
AVMDetailsBean.getNodes()

getVersionHistory

public java.util.List getVersionHistory()
Returns:
version history list for a node

revertNode

public void revertNode(javax.faces.event.ActionEvent event)
Revert a node back to a previous version


finishImpl

protected java.lang.String finishImpl(javax.faces.context.FacesContext context,
                                      java.lang.String outcome)
                               throws java.lang.Exception
Description copied from class: BaseDialogBean
Performs the actual processing for the wizard. NOTE: This method is called within the context of a transaction so no transaction handling is required

Specified by:
finishImpl in class BaseDialogBean
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome
Throws:
java.lang.Exception

getCancelButtonLabel

public java.lang.String getCancelButtonLabel()
Description copied from interface: IDialogBean
Returns the label to use for the cancel button

Specified by:
getCancelButtonLabel in interface IDialogBean
Overrides:
getCancelButtonLabel in class BaseDialogBean
Returns:
The cancel button label

getContainerTitle

public java.lang.String getContainerTitle()
Description copied from interface: IDialogBean
Returns the title to be used for the dialog

If this returns null the DialogManager will lookup the title via the dialog configuration

Specified by:
getContainerTitle in interface IDialogBean
Overrides:
getContainerTitle in class BaseDialogBean
Returns:
The title or null if the title is to be acquired via configuration

getCurrentItemId

public java.lang.String getCurrentItemId()

getOutcome

public java.lang.String getOutcome()


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