org.alfresco.web.bean.content
Class DocumentLinkDetailsDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.BaseDetailsBean
          extended by org.alfresco.web.bean.content.DocumentLinkDetailsDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean, NavigationSupport

public class DocumentLinkDetailsDialog
extends BaseDetailsBean
implements NavigationSupport

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.alfresco.web.bean.BaseDetailsBean
imageResolver, panels, template, workflowProperties
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
DocumentLinkDetailsDialog()
           
 
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 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 getContainerSubTitle()
          Returns the subtitle to be used for the dialog
 java.lang.String getContainerTitle()
          Returns the title to be used for the dialog
 java.lang.String getCurrentItemId()
           
 Node getDocument()
          Returns the document this bean is currently representing
 java.lang.String getDownloadUrl()
          Returns the download URL to the content for the current document
protected  Node getLinkResolvedNode()
          Resolve the actual Node from any Link object that may be proxying it
 Node getNode()
          Returns the Node this bean is currently representing
 java.lang.String getOutcome()
           
protected  java.lang.String getPropertiesPanelId()
           
 java.util.Map getTemplateModel()
          Returns a model for use by a template on the Details page.
 java.lang.String getUrl()
          Returns the URL to download content for the current document
 boolean isLocked()
          Returns whether the current document is locked
 void nextItem(javax.faces.event.ActionEvent event)
           
 void previousItem(javax.faces.event.ActionEvent event)
           
 
Methods inherited from class org.alfresco.web.bean.BaseDetailsBean
applyTemplate, approve, cancelWorkflowEdit, expandPanel, getApproveStepName, getBookmarkUrl, getCifsPath, getCopyService, getHasCustomView, getHasTemplateView, getHasWebscriptView, getId, getName, getNodeRefUrl, getOwnableService, getPanels, getPermissionService, getRejectStepName, getTemplate, getTemplateRef, getWebdavUrl, getWebscriptUrl, getWorkflowProperties, reject, removeTemplate, saveWorkflow, setCopyService, setOwnableService, setPanels, setPermissionService, setTemplate, takeOwnership
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCheckOutCheckInService, getContainerDescription, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, init, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentLinkDetailsDialog

public DocumentLinkDetailsDialog()
Method Detail

getDocument

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

Returns:
The document Node

getLinkResolvedNode

protected Node getLinkResolvedNode()
Description copied from class: BaseDetailsBean
Resolve the actual Node from any Link object that may be proxying it

Specified by:
getLinkResolvedNode in class BaseDetailsBean
Returns:
current Node or Node resolved from any Link object

getNode

public Node getNode()
Description copied from class: BaseDetailsBean
Returns the Node this bean is currently representing

Specified by:
getNode in class BaseDetailsBean
Returns:
The Node

getPropertiesPanelId

protected java.lang.String getPropertiesPanelId()
Specified by:
getPropertiesPanelId in class BaseDetailsBean
Returns:
id of the properties panel component

getTemplateModel

public java.util.Map getTemplateModel()
Description copied from class: BaseDetailsBean
Returns a model for use by a template on the Details page.

Specified by:
getTemplateModel in class BaseDetailsBean
Returns:
model containing current current node 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

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

getContainerSubTitle

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

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

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

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

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

isLocked

public boolean isLocked()
Returns whether the current document is locked

Returns:
true if the document is checked out

getUrl

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

Returns:
Content url to download the current document


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