public class CategoriesDialog extends BaseDialogBean implements IContextListener, ChangeViewSupport
| Modifier and Type | Class and Description |
|---|---|
class |
CategoriesDialog.CategoryBreadcrumbHandler
Class to handle breadcrumb interaction for Categories pages
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CATEGORIES_DIALOG_CLASS_NAME |
protected UIRichList |
categoriesRichList
Component references
|
static java.lang.String |
KEY_CATEGORY |
static java.lang.String |
KEY_CATEGORY_FLAG |
static java.lang.String |
PARAM_CATEGORY_REF |
browseBean, isFinished, navigator, parameters| Constructor and Description |
|---|
CategoriesDialog()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
areaChanged()
Method called by UIContextService.areaChanged() to inform all registered beans that
the user has changed area i.e.
|
void |
clearCategoryAction(javax.faces.event.ActionEvent event)
Clear the category action context - e.g.
|
void |
clickCategory(javax.faces.event.ActionEvent event)
Action called when a category folder is clicked.
|
void |
contextUpdated()
Method called by UIContextService.notifyBeans() to inform all registered beans that
all UI Beans should refresh dump all cached data and settings.
|
protected java.lang.String |
finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs the actual processing for the wizard.
|
Node |
getActionCategory() |
java.lang.Object |
getActionsContext()
Returns the object to use as the context for the main and more
actions that may be configured by the dialog
|
java.lang.String |
getCancelButtonLabel()
Returns the label to use for the cancel button
|
java.util.List |
getCategories() |
UIRichList |
getCategoriesRichList() |
Node |
getCategory() |
org.alfresco.service.cmr.repository.NodeRef |
getCategoryRef() |
org.alfresco.service.cmr.search.CategoryService |
getCategoryService() |
java.lang.String |
getContainerSubTitle()
Returns the subtitle to be used for the dialog
|
Node |
getCurrentCategory() |
java.lang.String |
getCurrentCategoryId() |
java.lang.String |
getDescription() |
java.lang.String |
getId() |
java.util.List |
getLocation() |
java.util.Collection |
getMembers() |
int |
getMembersCount() |
java.lang.String |
getMoreActionsConfigId()
Returns the id of an action group to use for the more actions
|
java.lang.String |
getName() |
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef() |
java.util.List |
getViewItems() |
java.lang.String |
getViewMode() |
protected void |
removeFromBreadcrumb(java.lang.String categoryToRemove,
java.lang.String categoryFlag)
If category.equals(handler.label) then the breadcrumb reverts one step back
(for deleting) |
void |
resetCategoryNavigation(javax.faces.event.ActionEvent event)
Reset the current category navigation point - e.g.
|
void |
restored()
Called when the dialog is restored after a nested dialog is closed
|
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) |
void |
setupCategoryAction(javax.faces.event.ActionEvent event)
Set the Category to be used for next action dialog
|
void |
setViewMode(java.lang.String viewMode) |
void |
spaceChanged()
Method called by UIContextService.spaceChanged() to inform all registered beans that
the current space has changed.
|
void |
viewModeChanged(javax.faces.event.ActionEvent event)
Change the current view mode based on user selection
|
cancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getAdditionalButtons, getCheckOutCheckInService, getContainerDescription, getContainerTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getFinishButtonLabel, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, init, isFinished, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchServicepublic static final java.lang.String KEY_CATEGORY
public static final java.lang.String KEY_CATEGORY_FLAG
public static final java.lang.String PARAM_CATEGORY_REF
public static final java.lang.String CATEGORIES_DIALOG_CLASS_NAME
protected UIRichList categoriesRichList
public int getMembersCount()
public java.util.Collection getMembers()
public void setMembers(java.util.Collection members)
public Node getActionCategory()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getId()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public org.alfresco.service.cmr.search.CategoryService getCategoryService()
public void setCategoryService(org.alfresco.service.cmr.search.CategoryService categoryService)
public Node getCategory()
public void setCategory(Node category)
public org.alfresco.service.cmr.repository.NodeRef getCategoryRef()
public void setCategoryRef(org.alfresco.service.cmr.repository.NodeRef categoryRef)
public UIRichList getCategoriesRichList()
public void setCategoriesRichList(UIRichList categoriesRichList)
public java.lang.Object getActionsContext()
IDialogBeangetActionsContext in interface IDialogBeangetActionsContext in class BaseDialogBeanpublic void setActionCategory(Node node)
node - Set the Node to be used for the current category screen action.public Node getCurrentCategory()
public java.lang.String getCurrentCategoryId()
public void setCurrentCategory(org.alfresco.service.cmr.repository.NodeRef ref)
Setting this value causes the UI to update and display the specified node as current.
ref - The current category node.public void setLocation(java.util.List location)
public java.util.List getLocation()
public java.util.List getCategories()
public void setupCategoryAction(javax.faces.event.ActionEvent event)
public void clearCategoryAction(javax.faces.event.ActionEvent event)
public void resetCategoryNavigation(javax.faces.event.ActionEvent event)
public void clickCategory(javax.faces.event.ActionEvent event)
protected void removeFromBreadcrumb(java.lang.String categoryToRemove,
java.lang.String categoryFlag)
Else current breadcrumb is updated accordingly to the current category
(for editing)
protected java.lang.String finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
throws java.lang.Exception
BaseDialogBeanfinishImpl in class BaseDialogBeancontext - FacesContextoutcome - The default outcomejava.lang.Exceptionpublic java.lang.String getContainerSubTitle()
IDialogBeanIf this returns null the DialogManager will lookup the subtitle via the dialog configuration
getContainerSubTitle in interface IDialogBeangetContainerSubTitle in class BaseDialogBeanpublic java.lang.String getCancelButtonLabel()
IDialogBeangetCancelButtonLabel in interface IDialogBeangetCancelButtonLabel in class BaseDialogBeanpublic void contextUpdated()
IContextListenercontextUpdated in interface IContextListenerIContextListener.contextUpdated()public void areaChanged()
IContextListenerareaChanged in interface IContextListenerIContextListener.areaChanged()public void spaceChanged()
IContextListenerspaceChanged in interface IContextListenerIContextListener.spaceChanged()public java.util.List getViewItems()
getViewItems in interface ChangeViewSupportpublic void restored()
IDialogBeanrestored in interface IDialogBeanrestored in class BaseDialogBeanpublic java.lang.String getViewMode()
getViewMode in interface ChangeViewSupportpublic void setViewMode(java.lang.String viewMode)
setViewMode in interface ChangeViewSupportpublic void viewModeChanged(javax.faces.event.ActionEvent event)
viewModeChanged in interface ChangeViewSupportevent - ActionEventpublic java.lang.String getMoreActionsConfigId()
IDialogBeangetMoreActionsConfigId in interface IDialogBeangetMoreActionsConfigId in class BaseDialogBeanpublic org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.