org.alfresco.web.bean.wcm
Class AVMDetailsBean

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

public abstract class AVMDetailsBean
extends BaseDialogBean
implements NavigationSupport

Base backing bean provided access to the details of an AVM item

See Also:
Serialized Form

Field Summary
protected  AVMBrowseBean avmBrowseBean
          AVMBrowseBean bean reference
protected  java.util.Map panels
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
AVMDetailsBean()
           
 
Method Summary
 void expandPanel(javax.faces.event.ActionEvent event)
          Save the state of the panel that was expanded/collapsed
abstract  AVMNode getAvmNode()
           
protected  org.alfresco.service.cmr.avm.AVMService getAvmService()
           
 boolean getIsBrowseList()
           
 java.lang.String getName()
          Returns the name of the current node
 java.lang.String getNodeRefUrl()
          Return the Alfresco NodeRef URL for the current node
protected abstract  java.util.List getNodes()
           
protected  org.alfresco.service.cmr.repository.NodeService getNodeService()
           
 java.util.Map getPanels()
           
 java.lang.String getPath()
          Returns the Path of the current node
 void nextItem(javax.faces.event.ActionEvent event)
          Navigates to next item in the list of items for the current folder
 void previousItem(javax.faces.event.ActionEvent event)
          Navigates to the previous item in the list of items for the current folder
 void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
           
 void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setPanels(java.util.Map panels)
           
 
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, 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
 
Methods inherited from interface org.alfresco.web.bean.dialog.NavigationSupport
getCurrentItemId, getOutcome
 

Field Detail

avmBrowseBean

protected AVMBrowseBean avmBrowseBean
AVMBrowseBean bean reference


panels

protected java.util.Map panels
Constructor Detail

AVMDetailsBean

public AVMDetailsBean()
Method Detail

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Overrides:
setNodeService in class BaseDialogBean
Parameters:
nodeService - The NodeService to set

getNodeService

protected org.alfresco.service.cmr.repository.NodeService getNodeService()
Overrides:
getNodeService in class BaseDialogBean

setAvmService

public void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
Parameters:
avmService - The AVMService to set.

getAvmService

protected org.alfresco.service.cmr.avm.AVMService getAvmService()

setAvmBrowseBean

public void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
Parameters:
avmBrowseBean - The AVMBrowseBean to set.

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.

getAvmNode

public abstract AVMNode getAvmNode()
Returns:
the AVM node to display the details for

getPath

public java.lang.String getPath()
Returns the Path of the current node

Returns:
The path

getName

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

Returns:
Name of the current node

getNodeRefUrl

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

Returns:
the Alfresco NodeRef URL

getIsBrowseList

public boolean getIsBrowseList()
Returns:
if we are currently within the context of a Browse list (otherwise we are probably looking at an item in the Modified File list)

getNodes

protected abstract java.util.List getNodes()
Returns:
the sibling nodes for this item

expandPanel

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


nextItem

public void nextItem(javax.faces.event.ActionEvent event)
Navigates to next item in the list of items for the current folder

Specified by:
nextItem in interface NavigationSupport

previousItem

public void previousItem(javax.faces.event.ActionEvent event)
Navigates to the previous item in the list of items for the current folder

Specified by:
previousItem in interface NavigationSupport


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