|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.dialog.BaseDialogBean
org.alfresco.web.bean.wcm.BasePermissionsDialog
org.alfresco.web.bean.wcm.UpdatePermissionsDialog
org.alfresco.web.bean.wcm.SetPermissionsDialog
public class SetPermissionsDialog
Class for SetPermissions dialog
Nested Class Summary | |
---|---|
static class |
SetPermissionsDialog.UserGroupPerm
Simple wrapper class to represent a user/group and a permission combination |
Field Summary |
---|
Fields inherited from class org.alfresco.web.bean.wcm.BasePermissionsDialog |
---|
permissionService |
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean |
---|
browseBean, isFinished, navigator, parameters |
Constructor Summary | |
---|---|
SetPermissionsDialog()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.alfresco.web.bean.wcm.UpdatePermissionsDialog |
---|
createLock, getActiveNode, getAuthenticationService, getAvmLockingService, setActiveNode, setAuthenticationService, setAvmLockingService |
Methods inherited from class org.alfresco.web.bean.wcm.BasePermissionsDialog |
---|
getAvmBrowseBean, getPermissionService, setAvmBrowseBean, setPermissionService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetPermissionsDialog()
Method Detail |
---|
public 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)
IDialogBean
init
in interface IDialogBean
init
in class UpdatePermissionsDialog
parameters
- Map of parameters for the dialogpublic boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled
in interface IDialogBean
getFinishButtonDisabled
in class BaseDialogBean
public java.lang.String getContainerTitle()
IDialogBean
If this returns null the DialogManager will lookup the title via the dialog configuration
getContainerTitle
in interface IDialogBean
getContainerTitle
in class BaseDialogBean
protected java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome) throws java.lang.Exception
BaseDialogBean
finishImpl
in class BasePermissionsDialog
context
- FacesContextoutcome
- The default outcome
java.lang.Exception
public 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 textbox
public 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |