org.alfresco.web.bean.categories
Class EditNodeCategoriesDialog

java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.categories.EditNodeCategoriesDialog
All Implemented Interfaces:
java.io.Serializable, IDialogBean

public class EditNodeCategoriesDialog
extends BaseDialogBean

Implementation for the edit node categories dialog.

See Also:
Serialized Form

Field Summary
protected  org.alfresco.service.cmr.repository.NodeRef addedCategory
           
protected  java.util.List categories
           
protected  java.lang.String description
           
protected  Node node
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
EditNodeCategoriesDialog()
           
 
Method Summary
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 org.alfresco.service.cmr.repository.NodeRef getAddedCategory()
          Returns the last category added from the multi value editor
 java.util.List getCategories()
          Returns a Map of the initial categories on the node keyed by the NodeRef
 java.lang.String getContainerDescription()
          Returns the description to be used for the dialog
 java.lang.String getContainerTitle()
          Returns the title to be used for the dialog
protected  java.lang.String getErrorMessageId()
          The default message id to use in error messages
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 void init(java.util.Map parameters)
          Initialises the dialog bean
 void setAddedCategory(org.alfresco.service.cmr.repository.NodeRef addedCategory)
          Sets the category added from the multi value editor
 void setCategories(java.util.List categories)
          Sets the categories Map
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorOutcome, getFileFolderService, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, 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

node

protected Node node

addedCategory

protected org.alfresco.service.cmr.repository.NodeRef addedCategory

categories

protected java.util.List categories

description

protected java.lang.String description
Constructor Detail

EditNodeCategoriesDialog

public EditNodeCategoriesDialog()
Method Detail

init

public void init(java.util.Map parameters)
Description copied from interface: IDialogBean
Initialises the dialog bean

Specified by:
init in interface IDialogBean
Overrides:
init in class BaseDialogBean
Parameters:
parameters - Map of parameters for the dialog

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

getFinishButtonDisabled

public boolean getFinishButtonDisabled()
Description copied from interface: IDialogBean
Determines whether the finish button on the dialog should be disabled

Specified by:
getFinishButtonDisabled in interface IDialogBean
Overrides:
getFinishButtonDisabled in class BaseDialogBean
Returns:
true if the button should be disabled

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

getContainerDescription

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

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

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

getErrorMessageId

protected java.lang.String getErrorMessageId()
Description copied from class: BaseDialogBean
The default message id to use in error messages

Overrides:
getErrorMessageId in class BaseDialogBean
Returns:
The error message lookup id

getCategories

public java.util.List getCategories()
Returns a Map of the initial categories on the node keyed by the NodeRef

Returns:
Map of initial categories

setCategories

public void setCategories(java.util.List categories)
Sets the categories Map

Parameters:
categories -

getAddedCategory

public org.alfresco.service.cmr.repository.NodeRef getAddedCategory()
Returns the last category added from the multi value editor

Returns:
The last category added

setAddedCategory

public void setAddedCategory(org.alfresco.service.cmr.repository.NodeRef addedCategory)
Sets the category added from the multi value editor

Parameters:
addedCategory - The added category


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