org.alfresco.web.bean.preview
Class BasePreviewBean

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

public abstract class BasePreviewBean
extends BaseDialogBean

Backing bean for the Preview Document in Template action page

See Also:
Serialized Form

Field Summary
protected  BrowseBean browseBean
          BrowseBean instance
protected  org.alfresco.service.cmr.repository.TemplateImageResolver imageResolver
          Template Image resolver helper
protected  NavigationBean navigator
          The NavigationBean bean reference
protected  org.alfresco.service.cmr.repository.NodeRef template
          The selected Template Id
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
isFinished, parameters
 
Constructor Summary
BasePreviewBean()
           
 
Method Summary
 java.lang.String getId()
          Returns the id of the current node
 java.lang.String getName()
          Returns the name of the current node
abstract  Node getNode()
          Returns the node this bean is currently working with
 java.lang.String getTemplate()
           
abstract  java.util.Map getTemplateModel()
          Returns a model for use by the template on the Preview page.
 org.alfresco.service.cmr.repository.NodeRef getTemplateRef()
           
 void setBrowseBean(BrowseBean browseBean)
           
 void setNavigator(NavigationBean navigator)
           
 void setTemplate(java.lang.String template)
           
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, finishImpl, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, 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
 

Field Detail

browseBean

protected BrowseBean browseBean
BrowseBean instance


navigator

protected NavigationBean navigator
The NavigationBean bean reference


template

protected org.alfresco.service.cmr.repository.NodeRef template
The selected Template Id


imageResolver

protected org.alfresco.service.cmr.repository.TemplateImageResolver imageResolver
Template Image resolver helper

Constructor Detail

BasePreviewBean

public BasePreviewBean()
Method Detail

setBrowseBean

public void setBrowseBean(BrowseBean browseBean)
Overrides:
setBrowseBean in class BaseDialogBean
Parameters:
browseBean - The BrowseBean to set.

setNavigator

public void setNavigator(NavigationBean navigator)
Overrides:
setNavigator in class BaseDialogBean
Parameters:
navigator - The NavigationBean to set.

getNode

public abstract Node getNode()
Returns the node this bean is currently working with

Returns:
The current Node

getId

public java.lang.String getId()
Returns the id of the current node

Returns:
The id

getName

public java.lang.String getName()
Returns the name of the current node

Returns:
Name of the current node

getTemplateModel

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

Returns:
model containing current document/space info.

getTemplateRef

public org.alfresco.service.cmr.repository.NodeRef getTemplateRef()
Returns:
the current template as a full NodeRef

getTemplate

public java.lang.String getTemplate()
Returns:
Returns the template Id.

setTemplate

public void setTemplate(java.lang.String template)
Parameters:
template - The template Id to set.


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