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 String |
MSG_USERROLES
I18N message strings
|
protected org.alfresco.service.cmr.security.PermissionService |
permissionService
PermissionService bean reference
|
protected static String |
STEP_NOTIFY |
protected List<BaseInviteUsersWizard.UserGroupRole> |
userGroupRoles
list of user/group role wrapper objects
|
browseBean, isFinished, navigator, parameters
Constructor and Description |
---|
BaseInviteUsersWizard() |
Modifier and Type | Method and Description |
---|---|
void |
addAuthorityWithRole(String authority,
String role)
Add an authority with the specified role to the list managed by this wizard.
|
void |
addSelection(ActionEvent event)
Action handler called when the Add button is pressed to process the current selection
|
String |
buildLabelForGroupAuthorityRole(String authority,
String role)
Helper to build a label for a Group authority of the form:
Groupname (role)
|
String |
buildLabelForUserAuthorityRole(String authority,
String role)
Helper to build a label of the form:
Firstname Lastname (Role)
|
String |
cancel()
Method handler called when the cancel button of the dialog is pressed
|
protected String |
finishImpl(FacesContext context,
String outcome)
Performs the actual processing for the wizard.
|
protected AuthorityService |
getAuthorityService() |
List<SelectItem> |
getEmailTemplates() |
protected abstract String |
getEmailTemplateXPath() |
SelectItem[] |
getFilters()
Property accessed by the Generic Picker component.
|
boolean |
getFinishButtonDisabled()
Determines whether the finish button on the dialog should be disabled
|
protected Set<String> |
getGroups(String search) |
protected Set<String> |
getGroups(String search,
boolean includeEveryone) |
boolean |
getHaveMaximumUsersBeenReturned() |
TemplateMailHelperBean |
getMailHelper() |
String |
getMaximumUsersMsg() |
protected org.alfresco.service.namespace.NamespaceService |
getNamespaceService() |
protected abstract Node |
getNode() |
String |
getNotify() |
protected org.alfresco.service.cmr.security.PermissionService |
getPermissionService() |
protected abstract Set<String> |
getPermissionsForType() |
protected PersonService |
getPersonService() |
SelectItem[] |
getRoles() |
String |
getSummary() |
DataModel |
getUserRolesDataModel()
Returns the properties for current user-roles JSF DataModel
|
void |
init(Map<String,String> parameters)
Initialises the wizard
|
String |
next()
Called when the next button is pressed by the user
|
SelectItem[] |
pickerCallback(int filterIndex,
String contains)
Query callback method executed by the Generic Picker component.
|
void |
removeSelection(ActionEvent event)
Action handler called when the Remove button is pressed to remove a user+role
|
void |
setAuthorityService(AuthorityService authorityService) |
void |
setMailSender(org.springframework.mail.javamail.JavaMailSender mailSender) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNotify(String notify) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setPersonService(PersonService personService) |
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitle
doPostCommitProcessing, 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, setSearchService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored
protected static final String MSG_USERROLES
protected static final String STEP_NOTIFY
protected transient org.alfresco.service.cmr.security.PermissionService permissionService
protected TemplateMailHelperBean mailHelper
protected List<BaseInviteUsersWizard.UserGroupRole> userGroupRoles
protected boolean allowDuplicateAuthorities
protected boolean maxUsersReturned
protected abstract Set<String> getPermissionsForType()
protected abstract Node getNode()
public List<SelectItem> getEmailTemplates()
protected abstract String getEmailTemplateXPath()
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
setNamespaceService
in class BaseDialogBean
namespaceService
- The NamespaceService to set.protected org.alfresco.service.namespace.NamespaceService getNamespaceService()
getNamespaceService
in class BaseDialogBean
public 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(PersonService personService)
personService
- The PersonService to set.protected PersonService getPersonService()
public void setAuthorityService(AuthorityService authorityService)
authorityService
- The authorityService to set.protected AuthorityService getAuthorityService()
public void init(Map<String,String> parameters)
init
in interface IDialogBean
init
in class BaseDialogBean
parameters
- Map of parameters for the dialogprotected String finishImpl(FacesContext context, String outcome) throws Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcomeException
BaseDialogBean.finishImpl(javax.faces.context.FacesContext, java.lang.String)
public String cancel()
IDialogBean
cancel
in interface IDialogBean
cancel
in class BaseDialogBean
public boolean getFinishButtonDisabled()
IDialogBean
getFinishButtonDisabled
in interface IDialogBean
getFinishButtonDisabled
in class BaseDialogBean
BaseDialogBean.getFinishButtonDisabled()
public DataModel getUserRolesDataModel()
public SelectItem[] pickerCallback(int filterIndex, String contains)
filterIndex
- Index of the filter drop-down selectioncontains
- Text from the contains textboxpublic void addSelection(ActionEvent event)
public void addAuthorityWithRole(String authority, String role)
authority
- Authority to add (cannot be null)role
- Role for the authorities (cannot be null)public void removeSelection(ActionEvent event)
public SelectItem[] getFilters()
public SelectItem[] getRoles()
public String getNotify()
public void setNotify(String notify)
notify
- The notify listbox selection to set.public String next()
IWizardBean
next
in interface IWizardBean
next
in class BaseWizardBean
public TemplateMailHelperBean getMailHelper()
public String buildLabelForUserAuthorityRole(String authority, String role)
public String buildLabelForGroupAuthorityRole(String authority, String role)
public String getSummary()
public boolean getHaveMaximumUsersBeenReturned()
public String getMaximumUsersMsg()
Copyright © 2005–2017 Alfresco Software. All rights reserved.