public abstract class UserMembersBean extends BaseDialogBean implements IContextListener, FilterViewSupport
Modifier and Type | Class and Description |
---|---|
static class |
UserMembersBean.PermissionWrapper
Wrapper class for list data model to display current roles for user
|
Modifier and Type | Field and Description |
---|---|
protected BrowseBean |
browseBean
BrowseBean bean refernce
|
isFinished, navigator, parameters
Constructor and Description |
---|
UserMembersBean()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addRole(ActionEvent event)
Action handler called when the Add Role button is pressed to process the current selection
|
void |
areaChanged()
Method called by UIContextService.areaChanged() to inform all registered beans that
the user has changed area i.e.
|
String |
cancel()
Action called to Close the dialog
|
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(ActionEvent event) |
String |
finishOK()
Action handler called when the Finish button is clicked on the Edit User Roles page
|
protected AuthorityService |
getAuthorityService() |
List<UIListItem> |
getFilterItems() |
String |
getFilterMode() |
boolean |
getHasChangePermissions() |
abstract Node |
getNode()
Returns the node that is being acted upon
|
protected org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
protected OwnableService |
getOwnableService() |
String |
getOwner()
Return the owner username
|
protected org.alfresco.service.cmr.security.PermissionService |
getPermissionService() |
String |
getPersonAuthority() |
String |
getPersonName() |
DataModel |
getPersonRolesDataModel()
Returns the properties for current Person roles JSF DataModel
|
protected PersonService |
getPersonService() |
protected org.alfresco.service.cmr.search.SearchService |
getSearchService() |
List<Map> |
getUsers() |
UIRichList |
getUsersRichList() |
void |
inheritPermissionsValueChanged(ValueChangeEvent event)
Inherit parent Space permissions value changed by the user
|
boolean |
isInheritPermissions() |
String |
removeOK()
Action handler called when the OK button is clicked on the Remove User page
|
void |
removeRole(ActionEvent event)
Action handler called when the Remove button is pressed to remove a role from current user
|
static String |
roleListToString(FacesContext context,
List<String> list)
Convert a list of user Roles to a comma separated string list.
|
void |
setAuthorityService(AuthorityService authorityService) |
void |
setBrowseBean(BrowseBean browseBean) |
void |
setFilterMode(String filterMode) |
void |
setInheritPermissions(boolean inheritPermissions) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setOwnableService(OwnableService ownableService) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setPersonAuthority(String person) |
void |
setPersonName(String personName) |
void |
setPersonService(PersonService personService) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
void |
setupUserAction(ActionEvent event)
Action event called by all actions that need to setup a Person context on
the UserMembers bean before an action page is called.
|
void |
setUsersRichList(UIRichList usersRichList) |
void |
spaceChanged()
Method called by UIContextService.spaceChanged() to inform all registered beans that
the current space has changed.
|
doPostCommitProcessing, finish, finishImpl, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonDisabled, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getRuleService, getTransactionService, init, isFinished, restored, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator
protected BrowseBean browseBean
public abstract Node getNode()
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
setNodeService
in class BaseDialogBean
nodeService
- The NodeService to set.protected org.alfresco.service.cmr.repository.NodeService getNodeService()
getNodeService
in class BaseDialogBean
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
setSearchService
in class BaseDialogBean
searchService
- The search serviceprotected org.alfresco.service.cmr.search.SearchService getSearchService()
getSearchService
in class BaseDialogBean
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
permissionService
- The PermissionService to set.protected org.alfresco.service.cmr.security.PermissionService getPermissionService()
public void setAuthorityService(AuthorityService authorityService)
authorityService
- The AuthorityService to set.protected AuthorityService getAuthorityService()
public void setOwnableService(OwnableService ownableService)
ownableService
- The ownableService to set.protected OwnableService getOwnableService()
public void setPersonService(PersonService personService)
personService
- The personService to set.protected PersonService getPersonService()
public void setBrowseBean(BrowseBean browseBean)
setBrowseBean
in class BaseDialogBean
browseBean
- The BrowseBean to set.public UIRichList getUsersRichList()
public void setUsersRichList(UIRichList usersRichList)
usersRichList
- The usersRichList to set.public DataModel getPersonRolesDataModel()
public String getPersonAuthority()
public void setPersonAuthority(String person)
person
- The person person authority to set.public String getPersonName()
public void setPersonName(String personName)
personName
- The personName to set.public boolean getHasChangePermissions()
public boolean isInheritPermissions()
public void setInheritPermissions(boolean inheritPermissions)
inheritPermissions
- The inheritPermissions to set.public String getOwner()
public static String roleListToString(FacesContext context, List<String> list)
context
- FacesContextlist
- List of Role namespublic 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 void filterModeChanged(ActionEvent event)
filterModeChanged
in interface FilterViewSupport
FilterViewSupport.filterModeChanged(javax.faces.event.ActionEvent)
public List<UIListItem> getFilterItems()
getFilterItems
in interface FilterViewSupport
FilterViewSupport.getFilterItems()
public String getFilterMode()
getFilterMode
in interface FilterViewSupport
FilterViewSupport.getFilterMode()
public void setFilterMode(String filterMode)
setFilterMode
in interface FilterViewSupport
FilterViewSupport.setFilterMode(java.lang.String)
public String cancel()
cancel
in interface IDialogBean
cancel
in class BaseDialogBean
public void setupUserAction(ActionEvent event)
public void inheritPermissionsValueChanged(ValueChangeEvent event)
public void addRole(ActionEvent event)
public void removeRole(ActionEvent event)
public String finishOK()
public String removeOK()
Copyright © 2005–2017 Alfresco Software. All rights reserved.