public class GroupsDialog extends BaseDialogBean implements IContextListener, FilterViewSupport, ChangeViewSupport
| Modifier and Type | Class and Description |
|---|---|
class |
GroupsDialog.AuthorityNamePropertyResolver |
class |
GroupsDialog.AuthorityPropertyResolver
Simple dynamic resolver class to return authority properties at runtime
|
static class |
GroupsDialog.UserAuthorityDetails
Simple wrapper bean exposing user authority and person details for JSF results list
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
filterMode
Filter mode
|
protected java.lang.String |
group
Currently visible Group Authority
|
protected java.lang.String |
groupName |
protected java.util.List |
groups
Groups
|
protected UIRichList |
groupsRichList
Component references
|
static java.lang.String |
KEY_GROUP |
protected java.util.List |
location
Groups path breadcrumb location
|
static java.lang.String |
PARAM_GROUP |
static java.lang.String |
PARAM_GROUP_NAME |
protected UIRichList |
usersRichList |
protected java.lang.String |
viewMode
RichList view mode
|
browseBean, isFinished, navigator, parameters| Constructor and Description |
|---|
GroupsDialog()
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.
|
java.lang.String |
cancel()
Method handler called when the cancel button of the dialog is pressed
|
void |
clickGroup(javax.faces.event.ActionEvent event)
Action called when a Group 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.
|
void |
filterModeChanged(javax.faces.event.ActionEvent event) |
protected java.lang.String |
finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs the actual processing for the wizard.
|
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.lang.String |
getContainerSubTitle()
Returns the subtitle to be used for the dialog
|
java.util.List |
getFilterItems() |
java.lang.String |
getFilterMode() |
java.lang.String |
getGroup() |
java.lang.String |
getGroupName() |
java.util.List |
getGroups() |
UIRichList |
getGroupsRichList() |
java.lang.String |
getGroupsSearchCriteria() |
java.util.List |
getLocation() |
java.util.List |
getUsers() |
UIRichList |
getUsersRichList() |
java.util.List |
getViewItems() |
java.lang.String |
getViewMode() |
boolean |
isAllowSearchGroups() |
protected void |
removeFromBreadcrumb(java.lang.String group) |
void |
removeUser(javax.faces.event.ActionEvent event)
Remove specified user from the current group
|
void |
restored()
Called when the dialog is restored after a nested dialog is closed
|
java.lang.String |
searchGroups()
Event handler called when the user wishes to search for a group
|
void |
setAuthService(org.alfresco.service.cmr.security.AuthorityService authService) |
protected void |
setCurrentGroup(java.lang.String group,
java.lang.String groupName)
Set the current Group Authority.
|
void |
setFilterMode(java.lang.String filterMode) |
void |
setGroupsRichList(UIRichList groupsRichList) |
void |
setGroupsSearchCriteria(java.lang.String groupsSearchCriteria)
Simple setter
|
void |
setPersonService(org.alfresco.service.cmr.security.PersonService personService) |
void |
setUsersRichList(UIRichList usersRichList) |
void |
setViewMode(java.lang.String viewMode) |
java.lang.String |
showAllGroups()
Action handler to show all the sub-groups in the group
|
void |
spaceChanged()
Method called by UIContextService.spaceChanged() to inform all registered beans that
the current space has changed.
|
protected void |
updateUILocation(java.lang.String group)
Update the breadcrumb with the clicked Group location
|
void |
viewModeChanged(javax.faces.event.ActionEvent event) |
doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getAdditionalButtons, getCheckOutCheckInService, getContainerDescription, getContainerTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, init, isFinished, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchServicepublic static final java.lang.String KEY_GROUP
public static final java.lang.String PARAM_GROUP
public static final java.lang.String PARAM_GROUP_NAME
protected UIRichList groupsRichList
protected UIRichList usersRichList
protected java.util.List groups
protected java.lang.String group
protected java.lang.String groupName
protected java.lang.String viewMode
protected java.lang.String filterMode
protected java.util.List location
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 cancel()
IDialogBeancancel in interface IDialogBeancancel in class BaseDialogBeanpublic 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 restored()
IDialogBeanrestored in interface IDialogBeanrestored in class BaseDialogBeanpublic java.lang.Object getActionsContext()
IDialogBeangetActionsContext in interface IDialogBeangetActionsContext in class BaseDialogBeanpublic java.util.List getFilterItems()
getFilterItems in interface FilterViewSupportpublic void filterModeChanged(javax.faces.event.ActionEvent event)
filterModeChanged in interface FilterViewSupportpublic java.lang.String getFilterMode()
getFilterMode in interface FilterViewSupportpublic void setFilterMode(java.lang.String filterMode)
setFilterMode in interface FilterViewSupportpublic java.util.List getViewItems()
getViewItems in interface ChangeViewSupportpublic void viewModeChanged(javax.faces.event.ActionEvent event)
viewModeChanged in interface ChangeViewSupportpublic java.lang.String getViewMode()
getViewMode in interface ChangeViewSupportpublic void setViewMode(java.lang.String viewMode)
setViewMode in interface ChangeViewSupportpublic java.lang.String getGroup()
public java.lang.String getGroupName()
public void setAuthService(org.alfresco.service.cmr.security.AuthorityService authService)
public void setPersonService(org.alfresco.service.cmr.security.PersonService personService)
public UIRichList getGroupsRichList()
public void setGroupsRichList(UIRichList groupsRichList)
public UIRichList getUsersRichList()
public void setUsersRichList(UIRichList usersRichList)
public java.util.List getLocation()
public boolean isAllowSearchGroups()
public java.util.List getGroups()
public java.lang.String getGroupsSearchCriteria()
public java.lang.String searchGroups()
public java.lang.String showAllGroups()
public java.util.List getUsers()
protected void setCurrentGroup(java.lang.String group,
java.lang.String groupName)
Setting this value causes the UI to update and display the specified node as current.
group - The current group authority.public void clickGroup(javax.faces.event.ActionEvent event)
public void setGroupsSearchCriteria(java.lang.String groupsSearchCriteria)
groupsSearchCriteria - public void removeUser(javax.faces.event.ActionEvent event)
protected void updateUILocation(java.lang.String group)
protected void removeFromBreadcrumb(java.lang.String group)
public void contextUpdated()
IContextListenercontextUpdated in interface IContextListenerIContextListener.contextUpdated()public void areaChanged()
IContextListenerareaChanged in interface IContextListenerIContextListener.areaChanged()public void spaceChanged()
IContextListenerspaceChanged in interface IContextListenerIContextListener.spaceChanged()Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.