org.alfresco.web.bean.preview
Class DocumentPreviewBean

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.preview.BasePreviewBean
          extended by org.alfresco.web.bean.preview.DocumentPreviewBean
All Implemented Interfaces:
java.io.Serializable, IDialogBean, NavigationSupport

public class DocumentPreviewBean
extends BasePreviewBean
implements NavigationSupport

Backing bean for the Preview Document in Template action page

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.alfresco.web.bean.preview.BasePreviewBean
browseBean, imageResolver, navigator, template
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
isFinished, parameters
 
Constructor Summary
DocumentPreviewBean()
           
 
Method Summary
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 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 getNode()
          Returns the document this bean is currently representing
 java.lang.String getOutcome()
           
 java.util.Map getTemplateModel()
          Returns a model for use by a template on the Document Details page.
 void nextItem(javax.faces.event.ActionEvent event)
           
 void previousItem(javax.faces.event.ActionEvent event)
           
 
Methods inherited from class org.alfresco.web.bean.preview.BasePreviewBean
getId, getName, getTemplate, getTemplateRef, setBrowseBean, setNavigator, setTemplate
 
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, getNodeService, getRuleService, getSearchService, getTransactionService, init, isFinished, restored, setDictionaryService, setFileFolderService, setNamespaceService, setNodeService, setSearchService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentPreviewBean

public DocumentPreviewBean()
Method Detail

getNode

public Node getNode()
Returns the document this bean is currently representing

Specified by:
getNode in class BasePreviewBean
Returns:
The document Node

getTemplateModel

public java.util.Map getTemplateModel()
Returns a model for use by a template on the Document Details page.

Specified by:
getTemplateModel in class BasePreviewBean
Returns:
model containing current document and current space info.

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

getCurrentItemId

public java.lang.String getCurrentItemId()
Specified by:
getCurrentItemId in interface NavigationSupport

getOutcome

public java.lang.String getOutcome()
Specified by:
getOutcome in interface NavigationSupport

nextItem

public void nextItem(javax.faces.event.ActionEvent event)
Specified by:
nextItem in interface NavigationSupport

previousItem

public void previousItem(javax.faces.event.ActionEvent event)
Specified by:
previousItem in interface NavigationSupport

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

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


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