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(ActionEvent event)
Clear the category action context - e.g.
|
void |
clickCategory(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(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() |
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(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(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(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(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, setSearchService
public 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 CategoryService getCategoryService()
public void setCategoryService(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()
IDialogBean
getActionsContext
in interface IDialogBean
getActionsContext
in class BaseDialogBean
public 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(ActionEvent event)
public void clearCategoryAction(ActionEvent event)
public void resetCategoryNavigation(ActionEvent event)
public void clickCategory(ActionEvent event)
protected void removeFromBreadcrumb(String categoryToRemove, String categoryFlag)
Else current breadcrumb is updated accordingly to the current category
(for editing)
protected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
public String getContainerSubTitle()
IDialogBean
If this returns null the DialogManager will lookup the subtitle via the dialog configuration
getContainerSubTitle
in interface IDialogBean
getContainerSubTitle
in class BaseDialogBean
public String getCancelButtonLabel()
IDialogBean
getCancelButtonLabel
in interface IDialogBean
getCancelButtonLabel
in class BaseDialogBean
public void contextUpdated()
IContextListener
contextUpdated
in interface IContextListener
IContextListener.contextUpdated()
public void areaChanged()
IContextListener
areaChanged
in interface IContextListener
IContextListener.areaChanged()
public void spaceChanged()
IContextListener
spaceChanged
in interface IContextListener
IContextListener.spaceChanged()
public List<UIListItem> getViewItems()
getViewItems
in interface ChangeViewSupport
public void restored()
IDialogBean
restored
in interface IDialogBean
restored
in class BaseDialogBean
public String getViewMode()
getViewMode
in interface ChangeViewSupport
public void setViewMode(String viewMode)
setViewMode
in interface ChangeViewSupport
public void viewModeChanged(ActionEvent event)
viewModeChanged
in interface ChangeViewSupport
event
- ActionEventpublic String getMoreActionsConfigId()
IDialogBean
getMoreActionsConfigId
in interface IDialogBean
getMoreActionsConfigId
in class BaseDialogBean
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Copyright © 2005–2017 Alfresco Software. All rights reserved.