public abstract class BaseInviteUsersWizard extends BaseWizardBean
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseInviteUsersWizard.UserGroupRole
Simple wrapper class to represent a user/group and a role combination
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowDuplicateAuthorities
True to allow duplicate authorities (with a different role)
|
protected TemplateMailHelperBean |
mailHelper
Helper providing template based mailing facilities
|
protected boolean |
maxUsersReturned
Flag to determine if the maximum number of users have been returned
|
protected static java.lang.String |
MSG_USERROLES
I18N message strings
|
protected org.alfresco.service.cmr.security.PermissionService |
permissionService
PermissionService bean reference
|
protected static java.lang.String |
STEP_NOTIFY |
protected java.util.List |
userGroupRoles
list of user/group role wrapper objects
|
browseBean, isFinished, navigator, parameters| Constructor and Description |
|---|
BaseInviteUsersWizard() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthorityWithRole(java.lang.String authority,
java.lang.String role)
Add an authority with the specified role to the list managed by this wizard.
|
void |
addSelection(javax.faces.event.ActionEvent event)
Action handler called when the Add button is pressed to process the current selection
|
java.lang.String |
buildLabelForGroupAuthorityRole(java.lang.String authority,
java.lang.String role)
Helper to build a label for a Group authority of the form:
Groupname (role)
|
java.lang.String |
buildLabelForUserAuthorityRole(java.lang.String authority,
java.lang.String role)
Helper to build a label of the form:
Firstname Lastname (Role)
|
java.lang.String |
cancel()
Method handler called when the cancel button of the dialog is pressed
|
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() |
java.util.List |
getEmailTemplates() |
protected abstract java.lang.String |
getEmailTemplateXPath() |
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
|
protected java.util.Set |
getGroups(java.lang.String search) |
protected java.util.Set |
getGroups(java.lang.String search,
boolean includeEveryone) |
boolean |
getHaveMaximumUsersBeenReturned() |
TemplateMailHelperBean |
getMailHelper() |
java.lang.String |
getMaximumUsersMsg() |
protected org.alfresco.service.namespace.NamespaceService |
getNamespaceService() |
protected abstract Node |
getNode() |
java.lang.String |
getNotify() |
protected org.alfresco.service.cmr.security.PermissionService |
getPermissionService() |
protected abstract java.util.Set |
getPermissionsForType() |
protected org.alfresco.service.cmr.security.PersonService |
getPersonService() |
javax.faces.model.SelectItem[] |
getRoles() |
java.lang.String |
getSummary() |
javax.faces.model.DataModel |
getUserRolesDataModel()
Returns the properties for current user-roles JSF DataModel
|
void |
init(java.util.Map parameters)
Initialises the wizard
|
java.lang.String |
next()
Called when the next button is pressed by the user
|
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+role
|
void |
setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService) |
void |
setMailSender(org.springframework.mail.javamail.JavaMailSender mailSender) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNotify(java.lang.String notify) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setPersonService(org.alfresco.service.cmr.security.PersonService personService) |
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitledoPostCommitProcessing, finish, formatErrorMessage, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getCheckOutCheckInService, getContainerDescription, getContainerSubTitle, getContainerTitle, getDictionaryService, getErrorMessageId, getErrorOutcome, getFileFolderService, getMoreActionsConfigId, getNodeService, getRuleService, getSearchService, getTransactionService, isFinished, restored, setBrowseBean, setDictionaryService, setFileFolderService, setNavigator, setNodeService, setSearchServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restoredprotected static final java.lang.String MSG_USERROLES
protected static final java.lang.String STEP_NOTIFY
protected transient org.alfresco.service.cmr.security.PermissionService permissionService
protected TemplateMailHelperBean mailHelper
protected java.util.List userGroupRoles
protected boolean allowDuplicateAuthorities
protected boolean maxUsersReturned
protected abstract java.util.Set getPermissionsForType()
protected abstract Node getNode()
public java.util.List getEmailTemplates()
protected abstract java.lang.String getEmailTemplateXPath()
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
setNamespaceService in class BaseDialogBeannamespaceService - The NamespaceService to set.protected org.alfresco.service.namespace.NamespaceService getNamespaceService()
getNamespaceService in class BaseDialogBeanpublic void setMailSender(org.springframework.mail.javamail.JavaMailSender mailSender)
mailSender - The JavaMailSender to set.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 setPersonService(org.alfresco.service.cmr.security.PersonService personService)
personService - The PersonService to set.protected org.alfresco.service.cmr.security.PersonService getPersonService()
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 init(java.util.Map parameters)
init in interface IDialogBeaninit in class BaseDialogBeanparameters - Map of parameters for the dialogprotected 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.ExceptionBaseDialogBean.finishImpl(javax.faces.context.FacesContext, java.lang.String)public java.lang.String cancel()
IDialogBeancancel in interface IDialogBeancancel in class BaseDialogBeanpublic boolean getFinishButtonDisabled()
IDialogBeangetFinishButtonDisabled in interface IDialogBeangetFinishButtonDisabled in class BaseDialogBeanBaseDialogBean.getFinishButtonDisabled()public javax.faces.model.DataModel getUserRolesDataModel()
public javax.faces.model.SelectItem[] pickerCallback(int filterIndex,
java.lang.String contains)
filterIndex - Index of the filter drop-down selectioncontains - Text from the contains textboxprotected java.util.Set getGroups(java.lang.String search)
protected java.util.Set getGroups(java.lang.String search,
boolean includeEveryone)
public void addSelection(javax.faces.event.ActionEvent event)
public void addAuthorityWithRole(java.lang.String authority,
java.lang.String role)
authority - Authority to add (cannot be null)role - Role for the authorities (cannot be null)public void removeSelection(javax.faces.event.ActionEvent event)
public javax.faces.model.SelectItem[] getFilters()
public javax.faces.model.SelectItem[] getRoles()
public java.lang.String getNotify()
public void setNotify(java.lang.String notify)
notify - The notify listbox selection to set.public java.lang.String next()
IWizardBeannext in interface IWizardBeannext in class BaseWizardBeanpublic TemplateMailHelperBean getMailHelper()
public java.lang.String buildLabelForUserAuthorityRole(java.lang.String authority,
java.lang.String role)
public java.lang.String buildLabelForGroupAuthorityRole(java.lang.String authority,
java.lang.String role)
public java.lang.String getSummary()
public boolean getHaveMaximumUsersBeenReturned()
public java.lang.String getMaximumUsersMsg()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.