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 String |
CATEGORIES_DIALOG_CLASS_NAME |
protected UIRichList |
categoriesRichList
Component references
|
static String |
KEY_CATEGORY |
static String |
KEY_CATEGORY_FLAG |
static 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 String |
finishImpl(javax.faces.context.FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
Node |
getActionCategory() |
Object |
getActionsContext()
Returns the object to use as the context for the main and more
actions that may be configured by the dialog
|
String |
getCancelButtonLabel()
Returns the label to use for the cancel button
|
List<Node> |
getCategories() |
UIRichList |
getCategoriesRichList() |
Node |
getCategory() |
org.alfresco.service.cmr.repository.NodeRef |
getCategoryRef() |
org.alfresco.service.cmr.search.CategoryService |
getCategoryService() |
String |
getContainerSubTitle()
Returns the subtitle to be used for the dialog
|
Node |
getCurrentCategory() |
String |
getCurrentCategoryId() |
String |
getDescription() |
String |
getId() |
List<IBreadcrumbHandler> |
getLocation() |
Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getMembers() |
int |
getMembersCount() |
String |
getMoreActionsConfigId()
Returns the id of an action group to use for the more actions
|
String |
getName() |
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef() |
List<UIListItem> |
getViewItems() |
String |
getViewMode() |
protected void |
removeFromBreadcrumb(String categoryToRemove,
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(String description) |
void |
setLocation(List<IBreadcrumbHandler> location) |
void |
setMembers(Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> members) |
void |
setName(String name) |
void |
setupCategoryAction(javax.faces.event.ActionEvent event)
Set the Category to be used for next action dialog
|
void |
setViewMode(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 String KEY_CATEGORY
public static final String KEY_CATEGORY_FLAG
public static final String PARAM_CATEGORY_REF
public static final String CATEGORIES_DIALOG_CLASS_NAME
protected UIRichList categoriesRichList
public int getMembersCount()
public Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> getMembers()
public void setMembers(Collection<org.alfresco.service.cmr.repository.ChildAssociationRef> members)
public Node getActionCategory()
public String getName()
public void setName(String name)
public String getId()
public String getDescription()
public void setDescription(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 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 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(List<IBreadcrumbHandler> location)
public List<IBreadcrumbHandler> getLocation()
public List<Node> 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(String categoryToRemove, String categoryFlag)
Else current breadcrumb is updated accordingly to the current category
(for editing)
protected String finishImpl(javax.faces.context.FacesContext context, String outcome) throws Exception
BaseDialogBeanfinishImpl in class BaseDialogBeancontext - FacesContextoutcome - The default outcomeExceptionpublic String getContainerSubTitle()
IDialogBeanIf this returns null the DialogManager will lookup the subtitle via the dialog configuration
getContainerSubTitle in interface IDialogBeangetContainerSubTitle in class BaseDialogBeanpublic 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 List<UIListItem> getViewItems()
getViewItems in interface ChangeViewSupportpublic void restored()
IDialogBeanrestored in interface IDialogBeanrestored in class BaseDialogBeanpublic String getViewMode()
getViewMode in interface ChangeViewSupportpublic void setViewMode(String viewMode)
setViewMode in interface ChangeViewSupportpublic void viewModeChanged(javax.faces.event.ActionEvent event)
viewModeChanged in interface ChangeViewSupportevent - ActionEventpublic String getMoreActionsConfigId()
IDialogBeangetMoreActionsConfigId in interface IDialogBeangetMoreActionsConfigId in class BaseDialogBeanpublic org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Copyright © 2005–2018 Alfresco Software. All rights reserved.