org.alfresco.web.bean.categories
Class DeleteCategoryDialog

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

public class DeleteCategoryDialog
extends BaseDialogBean

See Also:
Serialized Form

Field Summary
protected  UIRichList categoriesRichList
          Component references
protected  org.alfresco.service.cmr.search.CategoryService categoryService
           
 
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
browseBean, isFinished, navigator, parameters
 
Constructor Summary
DeleteCategoryDialog()
           
 
Method Summary
 void contextUpdated()
           
protected  java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs any post commit processing subclasses may want to provide
 java.lang.String finishDelete()
           
protected  java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome)
          Performs the actual processing for the wizard.
 Node getActionCategory()
           
 UIRichList getCategoriesRichList()
           
 Node getCategory()
           
 org.alfresco.service.cmr.repository.NodeRef getCategoryRef()
           
 java.lang.String getContainerTitle()
          Returns the title to be used for the dialog
 java.lang.String getCurrentCategoryId()
           
 java.lang.String getDescription()
           
 boolean getFinishButtonDisabled()
          Determines whether the finish button on the dialog should be disabled
 java.lang.String getFinishButtonLabel()
          Returns the label to use for the finish button
 java.util.List getLocation()
           
 java.util.Collection getMembers()
           
 int getMembersSize()
           
 java.lang.String getName()
           
 void init(java.util.Map parameters)
          Initialises the dialog bean
 void setActionCategory(Node node)
           
 void setCategoriesRichList(UIRichList categoriesRichList)
           
 void setCategory(Node category)
           
 void setCategoryRef(org.alfresco.service.cmr.repository.NodeRef categoryRef)
           
 void setCategoryService(org.alfresco.service.cmr.search.CategoryService categoryService)
           
 void setCurrentCategory(org.alfresco.service.cmr.repository.NodeRef ref)
          Set the current category node.
 void setDescription(java.lang.String description)
           
 void setLocation(java.util.List location)
           
 void setMembers(java.util.Collection members)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class org.alfresco.web.bean.dialog.BaseDialogBean
cancel, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, 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

categoryService

protected transient org.alfresco.service.cmr.search.CategoryService categoryService

categoriesRichList

protected UIRichList categoriesRichList
Component references

Constructor Detail

DeleteCategoryDialog

public DeleteCategoryDialog()
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

doPostCommitProcessing

protected java.lang.String doPostCommitProcessing(javax.faces.context.FacesContext context,
                                                  java.lang.String outcome)
Description copied from class: BaseDialogBean
Performs any post commit processing subclasses may want to provide

Overrides:
doPostCommitProcessing in class BaseDialogBean
Parameters:
context - FacesContext
outcome - The default outcome
Returns:
The outcome

getMembers

public java.util.Collection getMembers()

setMembers

public void setMembers(java.util.Collection members)

getMembersSize

public int getMembersSize()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

setCategoryService

public void setCategoryService(org.alfresco.service.cmr.search.CategoryService categoryService)

getCategoryRef

public org.alfresco.service.cmr.repository.NodeRef getCategoryRef()

setCategoryRef

public void setCategoryRef(org.alfresco.service.cmr.repository.NodeRef categoryRef)

getCategory

public Node getCategory()

setCategory

public void setCategory(Node category)

setActionCategory

public void setActionCategory(Node node)
Parameters:
node - Set the Node to be used for the current category screen action.

getActionCategory

public Node getActionCategory()

setLocation

public void setLocation(java.util.List location)

getLocation

public java.util.List getLocation()
Returns:
Breadcrumb location list

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

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

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

getFinishButtonLabel

public java.lang.String getFinishButtonLabel()
Description copied from interface: IDialogBean
Returns the label to use for the finish button

Specified by:
getFinishButtonLabel in interface IDialogBean
Overrides:
getFinishButtonLabel in class BaseDialogBean
Returns:
The finish button label

getCategoriesRichList

public UIRichList getCategoriesRichList()

setCategoriesRichList

public void setCategoriesRichList(UIRichList categoriesRichList)

contextUpdated

public void contextUpdated()
See Also:
IContextListener.contextUpdated()

getCurrentCategoryId

public java.lang.String getCurrentCategoryId()
Returns:
The ID of the currently displayed category or null if at the root.

setCurrentCategory

public void setCurrentCategory(org.alfresco.service.cmr.repository.NodeRef ref)
Set the current category node.

Setting this value causes the UI to update and display the specified node as current.

Parameters:
ref - The current category node.

finishDelete

public java.lang.String finishDelete()


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