|
|||||||||
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.wizard.BaseWizardBean
org.alfresco.web.bean.wizard.BaseInviteUsersWizard
public abstract class BaseInviteUsersWizard
Backing bean for the Invite Users wizard(s)
Nested Class Summary | |
---|---|
static class |
BaseInviteUsersWizard.UserGroupRole
Simple wrapper class to represent a user/group and a role combination |
Field Summary | |
---|---|
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 |
Fields inherited from class org.alfresco.web.bean.dialog.BaseDialogBean |
---|
browseBean, isFinished, navigator, parameters |
Constructor Summary | |
---|---|
BaseInviteUsersWizard()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.alfresco.web.bean.wizard.BaseWizardBean |
---|
back, buildSummary, getBackButtonLabel, getDefaultCancelOutcome, getDefaultFinishOutcome, getFinishButtonLabel, getNextButtonDisabled, getNextButtonLabel, getStepDescription, getStepTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.web.bean.dialog.IDialogBean |
---|
finish, getActionsConfigId, getActionsContext, getAdditionalButtons, getCancelButtonLabel, getContainerDescription, getContainerSubTitle, getContainerTitle, getMoreActionsConfigId, isFinished, restored |
Field Detail |
---|
protected 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
Constructor Detail |
---|
public BaseInviteUsersWizard()
Method Detail |
---|
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 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(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 IDialogBean
init
in class BaseDialogBean
parameters
- Map of parameters for the dialogprotected java.lang.String finishImpl(javax.faces.context.FacesContext context, java.lang.String outcome) throws java.lang.Exception
BaseDialogBean
finishImpl
in class BaseDialogBean
context
- FacesContextoutcome
- The default outcome
java.lang.Exception
BaseDialogBean.finishImpl(javax.faces.context.FacesContext, java.lang.String)
public java.lang.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 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 textbox
protected 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()
IWizardBean
next
in interface IWizardBean
next
in class BaseWizardBean
public 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |