public class SetPermissionsDialog extends UpdatePermissionsDialog
| Modifier and Type | Class and Description |
|---|---|
static class |
SetPermissionsDialog.UserGroupPerm
Simple wrapper class to represent a user/group and a permission combination
|
permissionServicebrowseBean, isFinished, navigator, parameters| Constructor and Description |
|---|
SetPermissionsDialog() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthorityWithPerm(java.lang.String authority,
java.lang.String permsission)
Add an authority with the specified permission to the list .
|
void |
addSelection(javax.faces.event.ActionEvent event)
Action handler called when the Add button is pressed to process the current selection
|
java.lang.String |
buildLabelForGroupAuthorityPerm(java.lang.String authority,
java.lang.String role)
Helper to build a label for a Group authority of the form: Groupname (permission)
|
java.lang.String |
buildLabelForUserAuthorityPerm(java.lang.String authority,
java.lang.String role)
Helper to build a label of the form: Firstname Lastname (permission)
|
protected java.lang.String |
finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
Performs the actual processing for the wizard.
|
protected org.alfresco.service.cmr.security.AuthorityService |
getAuthorityService()
Getter for authorityService
|
java.lang.String |
getContainerTitle()
Returns the title to be used for the dialog
|
javax.faces.model.SelectItem[] |
getFilters()
Property accessed by the Generic Picker component.
|
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
javax.faces.model.SelectItem[] |
getPermissions() |
protected org.alfresco.service.cmr.security.PersonService |
getPersonService()
Getter for personService
|
javax.faces.model.DataModel |
getUserPermsDataModel()
Returns the properties for current user-roles JSF DataModel
|
void |
init(java.util.Map parameters)
Initialises the dialog bean
|
javax.faces.model.SelectItem[] |
pickerCallback(int filterIndex,
java.lang.String contains)
Query callback method executed by the Generic Picker component.
|
void |
removeSelection(javax.faces.event.ActionEvent event)
Action handler called when the Remove button is pressed to remove a user+permission
|
void |
setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService) |
void |
setPersonService(org.alfresco.service.cmr.security.PersonService personService) |
createLock, getActiveNode, getAuthenticationService, getAvmLockingService, setActiveNode, setAuthenticationService, setAvmLockingServicegetAvmBrowseBean, getPermissionService, setAvmBrowseBean, setPermissionServicecancel, doPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getDefaultCancelOutcome, getDefaultFinishOutcome, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getFinishButtonLabel, getMoreActionsConfigId, getNamespaceService, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNamespaceService, setNavigator, setNodeService, setSearchServicepublic void setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)
authorityService - The authorityService to set.protected org.alfresco.service.cmr.security.AuthorityService getAuthorityService()
public void setPersonService(org.alfresco.service.cmr.security.PersonService personService)
personService - The PersonService to set.protected org.alfresco.service.cmr.security.PersonService getPersonService()
public void init(java.util.Map parameters)
IDialogBeaninit in interface IDialogBeaninit in class UpdatePermissionsDialogparameters - Map of parameters for the dialogpublic boolean getFinishButtonDisabled()
IDialogBeangetFinishButtonDisabled in interface IDialogBeangetFinishButtonDisabled in class BaseDialogBeanpublic java.lang.String getContainerTitle()
IDialogBeanIf this returns null the DialogManager will lookup the title via the dialog configuration
getContainerTitle in interface IDialogBeangetContainerTitle in class BaseDialogBeanprotected java.lang.String finishImpl(javax.faces.context.FacesContext context,
java.lang.String outcome)
throws java.lang.Exception
BaseDialogBeanfinishImpl in class BasePermissionsDialogcontext - FacesContextoutcome - The default outcomejava.lang.Exceptionpublic javax.faces.model.SelectItem[] getFilters()
public javax.faces.model.SelectItem[] pickerCallback(int filterIndex,
java.lang.String contains)
filterIndex - Index of the filter drop-down selectioncontains - Text from the contains textboxpublic void addSelection(javax.faces.event.ActionEvent event)
public void addAuthorityWithPerm(java.lang.String authority,
java.lang.String permsission)
authority - Authority to add (cannot be null)permsission - Permission for the authorities (cannot be null)public void removeSelection(javax.faces.event.ActionEvent event)
public javax.faces.model.DataModel getUserPermsDataModel()
public java.lang.String buildLabelForUserAuthorityPerm(java.lang.String authority,
java.lang.String role)
public java.lang.String buildLabelForGroupAuthorityPerm(java.lang.String authority,
java.lang.String role)
public javax.faces.model.SelectItem[] getPermissions()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.