org.alfresco.web.bean
Class BaseDetailsBean

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.BaseDetailsBean
All Implemented Interfaces:
java.io.Serializable, IDialogBean
Direct Known Subclasses:
DocumentDetailsDialog, DocumentLinkDetailsDialog, ForumDetailsDialog, ForumsDetailsDialog, SpaceDetailsDialog, SpaceLinkDetailsDialog, TopicDetailsDialog, WebSiteDetailsDialog

public abstract class BaseDetailsBean
extends BaseDialogBean

Backing bean provided access to the details of a Node

See Also:
Serialized Form

Field Summary
protected  org.alfresco.service.cmr.repository.TemplateImageResolver imageResolver
          Template Image resolver helper
protected  java.util.Map panels
           
protected  java.lang.String template
          Selected template Id
protected  java.util.Map workflowProperties
          The map of workflow properties
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
BaseDetailsBean()
           
 
Method Summary
 void applyTemplate(javax.faces.event.ActionEvent event)
          Action handler to apply the selected Template and Templatable aspect to the current node
 void approve(javax.faces.event.ActionEvent event)
          Event handler called to handle the approve step of the simple workflow
 java.lang.String cancelWorkflowEdit()
          Cancel Workflow Edit dialog
 void expandPanel(javax.faces.event.ActionEvent event)
          Save the state of the panel that was expanded/collapsed
 java.lang.String getApproveStepName()
          Returns the name of the approve step of the attached workflow
 java.lang.String getBookmarkUrl()
          Returns the URL to access the details page for the current node
 java.lang.String getCifsPath()
          Returns the CIFS path for the current node
protected  org.alfresco.service.cmr.repository.CopyService getCopyService()
           
 boolean getHasCustomView()
           
 boolean getHasTemplateView()
           
 boolean getHasWebscriptView()
           
 java.lang.String getId()
          Returns the id of the current node
protected abstract  Node getLinkResolvedNode()
          Resolve the actual Node from any Link object that may be proxying it
 java.lang.String getName()
          Returns the name of the current node
abstract  Node getNode()
          Returns the Node this bean is currently representing
 java.lang.String getNodeRefUrl()
          Return the Alfresco NodeRef URL for the current node
protected  org.alfresco.service.cmr.security.OwnableService getOwnableService()
           
 java.util.Map getPanels()
           
protected  org.alfresco.service.cmr.security.PermissionService getPermissionService()
           
protected abstract  java.lang.String getPropertiesPanelId()
           
 java.lang.String getRejectStepName()
          Returns the name of the reject step of the attached workflow
 java.lang.String getTemplate()
           
abstract  java.util.Map getTemplateModel()
          Returns a model for use by a template on the Details page.
 java.lang.String getTemplateRef()
           
 java.lang.String getWebdavUrl()
          Returns the WebDAV URL for the current node
 java.lang.String getWebscriptUrl()
           
 java.util.Map getWorkflowProperties()
          Returns the properties for the attached workflow as a map
 void reject(javax.faces.event.ActionEvent event)
          Event handler called to handle the approve step of the simple workflow
 void removeTemplate(javax.faces.event.ActionEvent event)
          Action handler to remove a custom view template from the current node
 java.lang.String saveWorkflow()
          Saves the details of the workflow stored in workflowProperties to the current node
 void setCopyService(org.alfresco.service.cmr.repository.CopyService copyService)
          Sets the copy service instance the bean should use
 void setOwnableService(org.alfresco.service.cmr.security.OwnableService ownableService)
          Sets the ownable service instance the bean should use
 void setPanels(java.util.Map panels)
           
 void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
           
 void setTemplate(java.lang.String template)
           
 void takeOwnership(javax.faces.event.ActionEvent event)
          Action Handler to take Ownership of the current node
 
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, 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
 

Field Detail

template

protected java.lang.String template
Selected template Id


workflowProperties

protected java.util.Map workflowProperties
The map of workflow properties


panels

protected java.util.Map panels

imageResolver

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

Constructor Detail

BaseDetailsBean

public BaseDetailsBean()
Method Detail

setOwnableService

public void setOwnableService(org.alfresco.service.cmr.security.OwnableService ownableService)
Sets the ownable service instance the bean should use

Parameters:
ownableService - The OwnableService

getOwnableService

protected org.alfresco.service.cmr.security.OwnableService getOwnableService()

setCopyService

public void setCopyService(org.alfresco.service.cmr.repository.CopyService copyService)
Sets the copy service instance the bean should use

Parameters:
copyService - The CopyService

getCopyService

protected org.alfresco.service.cmr.repository.CopyService getCopyService()

setPermissionService

public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
Parameters:
permissionService - The PermissionService to set.

getPermissionService

protected org.alfresco.service.cmr.security.PermissionService getPermissionService()

getPanels

public java.util.Map getPanels()
Returns:
Returns the panels expanded state map.

setPanels

public void setPanels(java.util.Map panels)
Parameters:
panels - The panels expanded state map.

getNode

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

Returns:
The 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

getNodeRefUrl

public java.lang.String getNodeRefUrl()
Return the Alfresco NodeRef URL for the current node

Returns:
the Alfresco NodeRef URL

getWebdavUrl

public java.lang.String getWebdavUrl()
Returns the WebDAV URL for the current node

Returns:
The WebDAV url

getCifsPath

public java.lang.String getCifsPath()
Returns the CIFS path for the current node

Returns:
The CIFS path

getBookmarkUrl

public java.lang.String getBookmarkUrl()
Returns the URL to access the details page for the current node

Returns:
The bookmark URL

getLinkResolvedNode

protected abstract Node getLinkResolvedNode()
Resolve the actual Node from any Link object that may be proxying it

Returns:
current Node or Node resolved from any Link object

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.

getHasCustomView

public boolean getHasCustomView()
Returns:
true if the current node has a custom Template or Webscript view applied and references a template/webscript that currently exists in the system.

getHasTemplateView

public boolean getHasTemplateView()
Returns:
true if the current node has a Template based custom view available

getHasWebscriptView

public boolean getHasWebscriptView()
Returns:
true if the current node has a Webscript based custom view available

getTemplateRef

public java.lang.String getTemplateRef()
Returns:
String of the NodeRef for the custom view for the node

getWebscriptUrl

public java.lang.String getWebscriptUrl()
Returns:
Webscript URL for the custom view for the node

getTemplateModel

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

Returns:
model containing current current node info.

getWorkflowProperties

public java.util.Map getWorkflowProperties()
Returns the properties for the attached workflow as a map

Returns:
Properties of the attached workflow, null if there is no workflow

cancelWorkflowEdit

public java.lang.String cancelWorkflowEdit()
Cancel Workflow Edit dialog


saveWorkflow

public java.lang.String saveWorkflow()
Saves the details of the workflow stored in workflowProperties to the current node

Returns:
The outcome string

getApproveStepName

public java.lang.String getApproveStepName()
Returns the name of the approve step of the attached workflow

Returns:
The name of the approve step or null if there is no workflow

approve

public void approve(javax.faces.event.ActionEvent event)
Event handler called to handle the approve step of the simple workflow

Parameters:
event - The event that was triggered

getRejectStepName

public java.lang.String getRejectStepName()
Returns the name of the reject step of the attached workflow

Returns:
The name of the reject step or null if there is no workflow

reject

public void reject(javax.faces.event.ActionEvent event)
Event handler called to handle the approve step of the simple workflow

Parameters:
event - The event that was triggered

applyTemplate

public void applyTemplate(javax.faces.event.ActionEvent event)
Action handler to apply the selected Template and Templatable aspect to the current node


removeTemplate

public void removeTemplate(javax.faces.event.ActionEvent event)
Action handler to remove a custom view template from the current node


takeOwnership

public void takeOwnership(javax.faces.event.ActionEvent event)
Action Handler to take Ownership of the current node


getPropertiesPanelId

protected abstract java.lang.String getPropertiesPanelId()
Returns:
id of the properties panel component

expandPanel

public void expandPanel(javax.faces.event.ActionEvent event)
Save the state of the panel that was expanded/collapsed



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