mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. Refactored Invite Space/Content Users wizard pages to use new wizard framework
- conversion of invite/notify pages to dialog pages - config for new wizards - actions now execute new wizards - Summary pages added to new wizards git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4438 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -61,6 +61,7 @@ public abstract class InviteUsersWizard extends BaseWizardBean
|
||||
private static Log logger = LogFactory.getLog(InviteUsersWizard.class);
|
||||
|
||||
/** I18N message strings */
|
||||
protected static final String MSG_USERROLES = "invite_users_summary";
|
||||
private static final String MSG_USERS = "users";
|
||||
private static final String MSG_GROUPS = "groups";
|
||||
private static final String MSG_INVITED_TO = "invited_to";
|
||||
@@ -549,6 +550,26 @@ public abstract class InviteUsersWizard extends BaseWizardBean
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return summary text for the wizard
|
||||
*/
|
||||
public String getSummary()
|
||||
{
|
||||
FacesContext fc = FacesContext.getCurrentInstance();
|
||||
|
||||
// build a summary section to list the invited users and there roles
|
||||
StringBuilder buf = new StringBuilder(128);
|
||||
for (UserGroupRole userRole : this.userGroupRoles)
|
||||
{
|
||||
buf.append(userRole.getLabel());
|
||||
buf.append("<br>");
|
||||
}
|
||||
|
||||
return buildSummary(
|
||||
new String[] {Application.getMessage(fc, MSG_USERROLES)},
|
||||
new String[] {buf.toString()});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Simple wrapper class to represent a user/group and a role combination
|
||||
|
Reference in New Issue
Block a user