org.alfresco.web.bean.spaces
Class SpaceDetailsDialog

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

public class SpaceDetailsDialog
extends BaseDetailsBean
implements NavigationSupport

Backing bean provided access to the details of a Space

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
SpaceDetailsDialog()
          Default constructor
 
Method Summary
 void applyClassifiable()
          Applies the classifiable aspect to the current document
 void applyRSSTemplate(javax.faces.event.ActionEvent event)
          Action handler to apply the selected RSS Template and FeedSource aspect to the current Space
static java.lang.String buildRSSFeedURL(Node space)
          Build URL for an RSS space based on the 'feedsource' aspect property.
 java.lang.String cancel()
          Action handler to clear the current Space properties before returning to the browse screen, as the user may have modified the properties!
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 java.lang.String getBrowseUrl()
          Returns the URL to access the browse page for the current node
 java.lang.String getCancelButtonLabel()
          Returns the label to use for the cancel button
 java.lang.String getCategoriesOverviewHTML()
          Returns a list of objects representing the categories applied to the current space
 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()
           
protected  Node getLinkResolvedNode()
          Resolve the actual document 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.lang.String getRSSFeedURL()
           
 java.lang.String getRSSTemplate()
           
 Node getSpace()
          Returns the Space this bean is currently representing
 java.util.Map getTemplateModel()
          Returns a model for use by a template on the Space Details page.
static boolean hasRSSFeed(Node space)
           
 boolean isCategorised()
          Determines whether the current space has any categories applied
 boolean isLocked()
          Returns whether the current sapce is locked
 boolean isRSSFeed()
           
 void nextItem(javax.faces.event.ActionEvent event)
          Navigates to next item in the list of Spaces
 void previousItem(javax.faces.event.ActionEvent event)
          Navigates to the previous item in the list Spaces
 void removeRSSTemplate(javax.faces.event.ActionEvent event)
          Action handler to remove a RSS template from the current Space
 void setRSSTemplate(java.lang.String rssTemplate)
           
 
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
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

SpaceDetailsDialog

public SpaceDetailsDialog()
Default constructor

Method Detail

getNode

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

Specified by:
getNode in class BaseDetailsBean
Returns:
The Node

getSpace

public Node getSpace()
Returns the Space this bean is currently representing

Returns:
The Space Node

getBrowseUrl

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

Returns:
The bookmark URL

getLinkResolvedNode

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

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

getTemplateModel

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

Specified by:
getTemplateModel in class BaseDetailsBean
Returns:
model containing current current space info.

getPropertiesPanelId

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

nextItem

public void nextItem(javax.faces.event.ActionEvent event)
Navigates to next item in the list of Spaces

Specified by:
nextItem in interface NavigationSupport

previousItem

public void previousItem(javax.faces.event.ActionEvent event)
Navigates to the previous item in the list Spaces

Specified by:
previousItem in interface NavigationSupport

cancel

public java.lang.String cancel()
Action handler to clear the current Space properties before returning to the browse screen, as the user may have modified the properties!

Specified by:
cancel in interface IDialogBean
Overrides:
cancel in class BaseDialogBean
Returns:
The outcome to return

isCategorised

public boolean isCategorised()
Determines whether the current space has any categories applied

Returns:
true if the document has categories attached

getCategoriesOverviewHTML

public java.lang.String getCategoriesOverviewHTML()
Returns a list of objects representing the categories applied to the current space

Returns:
List of categories

applyClassifiable

public void applyClassifiable()
Applies the classifiable aspect to the current document


isLocked

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

Returns:
true if the document is checked out

isRSSFeed

public boolean isRSSFeed()
Returns:
true if the current space has an RSS feed applied

hasRSSFeed

public static boolean hasRSSFeed(Node space)
Returns:
true if the current space has an RSS feed applied

getRSSFeedURL

public java.lang.String getRSSFeedURL()
Returns:
RSS Feed URL for the current space

buildRSSFeedURL

public static java.lang.String buildRSSFeedURL(Node space)
Build URL for an RSS space based on the 'feedsource' aspect property.

Parameters:
space - Node to build RSS template URL for
Returns:
URL for the RSS feed for a space

getRSSTemplate

public java.lang.String getRSSTemplate()
Returns:
Returns the current RSS Template ID.

setRSSTemplate

public void setRSSTemplate(java.lang.String rssTemplate)
Parameters:
rssTemplate - The RSS Template Id to set.

applyRSSTemplate

public void applyRSSTemplate(javax.faces.event.ActionEvent event)
Action handler to apply the selected RSS Template and FeedSource aspect to the current Space


removeRSSTemplate

public void removeRSSTemplate(javax.faces.event.ActionEvent event)
Action handler to remove a RSS template from the current Space


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

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

getOutcome

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


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