diff --git a/config/alfresco/messages/webclient.properties b/config/alfresco/messages/webclient.properties index a36e0cd2e2..93804fbe05 100644 --- a/config/alfresco/messages/webclient.properties +++ b/config/alfresco/messages/webclient.properties @@ -466,6 +466,7 @@ add_role=Add Role space_owner=User ''{0}'' is the current owner of this space. users_and_groups=Users and Groups authority=Username +invite_users_summary=Users and Roles # Invite Content Users Wizard messages invite_content_title=Invite Content Users Wizard @@ -852,7 +853,6 @@ create_website_finish_instruction=To close this wizard and create your web proje create_website_summary_users=Users and Roles # Invite web users wizard messages -manage_invited_users=Manage Website Users invite_website_users=Invite Website Users invite_webusers_title=Invite Website Users invite_webusers_desc=Invite new users and create sandboxes for the web project. @@ -861,7 +861,6 @@ invite_webusers_step1_desc=Select users and their roles. invite_webusers_step2_title=Step Two - Notify Users invite_webusers_step2_desc=Notify the invited users. invite_webusers_finish_instruction=To close the wizard and create the user sandboxes click Finish. To review or change your selections click Back. -invite_webusers_summary_users=Users and Roles # Delete Website Dialog messages delete_website=Delete Web Project @@ -1223,10 +1222,6 @@ title_login=Alfresco Web Client - Login title_relogin=Alfresco Web Client - Logged Out title_error=Alfresco Web Client - System Error title_browse=Alfresco Web Client -title_inviteusers_invite=Invite Users - Invite -title_inviteusers_notify=Invite Users - Notify -title_invitecontentusers_invite=Invite Content Users - Invite -title_invitecontentusers_notify=Invite Content Users - Notify title_change_user_roles=Change User Roles title_remove_invited_user=Remove Invited User title_advanced_search=Advanced Search diff --git a/config/alfresco/web-client-config-wizards.xml b/config/alfresco/web-client-config-wizards.xml index c8d83ce3e3..586381d541 100644 --- a/config/alfresco/web-client-config-wizards.xml +++ b/config/alfresco/web-client-config-wizards.xml @@ -71,6 +71,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + folderPermissions = null; diff --git a/source/java/org/alfresco/web/bean/wizard/InviteUsersWizard.java b/source/java/org/alfresco/web/bean/wizard/InviteUsersWizard.java index 5d09d852a6..b3c6ec0dc7 100644 --- a/source/java/org/alfresco/web/bean/wizard/InviteUsersWizard.java +++ b/source/java/org/alfresco/web/bean/wizard/InviteUsersWizard.java @@ -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("
"); + } + + 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 diff --git a/source/web/WEB-INF/faces-config-navigation.xml b/source/web/WEB-INF/faces-config-navigation.xml index bff45ad3f5..878f5022f4 100644 --- a/source/web/WEB-INF/faces-config-navigation.xml +++ b/source/web/WEB-INF/faces-config-navigation.xml @@ -465,10 +465,6 @@ /jsp/roles/manage-invited-users.jsp - - inviteUsers - /jsp/wizard/invite-users/invite.jsp - editRoles /jsp/roles/edit-user-roles.jsp @@ -505,10 +501,6 @@ /jsp/roles/manage-content-users.jsp - - inviteUsers - /jsp/wizard/invite-content-users/invite.jsp - editRoles /jsp/roles/edit-content-user-roles.jsp diff --git a/source/web/jsp/roles/manage-content-users.jsp b/source/web/jsp/roles/manage-content-users.jsp index 701d910702..9aa5128286 100644 --- a/source/web/jsp/roles/manage-content-users.jsp +++ b/source/web/jsp/roles/manage-content-users.jsp @@ -81,7 +81,7 @@ <%-- Current object actions --%> - + diff --git a/source/web/jsp/roles/manage-invited-users.jsp b/source/web/jsp/roles/manage-invited-users.jsp index 73d0306f24..ddcf5784f4 100644 --- a/source/web/jsp/roles/manage-invited-users.jsp +++ b/source/web/jsp/roles/manage-invited-users.jsp @@ -81,7 +81,7 @@ <%-- Current object actions --%> - + diff --git a/source/web/jsp/wizard/invite-content-users/invite.jsp b/source/web/jsp/wizard/invite-content-users/invite.jsp deleted file mode 100644 index 5e2342d0a4..0000000000 --- a/source/web/jsp/wizard/invite-content-users/invite.jsp +++ /dev/null @@ -1,233 +0,0 @@ -<%-- - Copyright (C) 2005 Alfresco, Inc. - - Licensed under the Mozilla Public License version 1.1 - with a permitted attribution clause. You may obtain a - copy of the License at - - http://www.alfresco.org/legal/license.txt - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - either express or implied. See the License for the specific - language governing permissions and limitations under the - License. ---%> -<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> -<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> -<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> -<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> -<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> - -<%@ page buffer="32kb" contentType="text/html;charset=UTF-8" %> -<%@ page isELIgnored="false" %> -<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %> - - - - - - <%-- load a bundle of properties with I18N strings --%> - - - - - <%-- Main outer table --%> - - - <%-- Title bar --%> - - - - - <%-- Main area --%> - - <%-- Shelf --%> - - - <%-- Work Area --%> - - -
- <%@ include file="../../parts/titlebar.jsp" %> -
- <%@ include file="../../parts/shelf.jsp" %> - - - <%-- Breadcrumb --%> - <%@ include file="../../parts/breadcrumb.jsp" %> - - <%-- Status and Actions --%> - - - - - - - <%-- separator row with gradient shadow --%> - - - - - - - <%-- Details --%> - - - - - - - <%-- separator row with bottom panel graphics --%> - - - - - - -
- - <%-- Status and Actions inner contents table --%> - <%-- Generally this consists of an icon, textual summary and actions for the current object --%> - - - - - -
- -
''
-
-
- -
- - - - - - - - -
- <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %> -
- - - - - <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %> -
- - - - <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %> - - - - - - - - - - - - - - - - - <%-- Picker to select Users/Groups --%> - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
-
- 2. -
- - - - - - - - - - - - - - - - - - - - -
-
-
- <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %> -
- <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %> - - - - - - - - -
- -
- -
- <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %> -
-
-
- -
- -
- -
\ No newline at end of file diff --git a/source/web/jsp/wizard/invite-content-users/notify.jsp b/source/web/jsp/wizard/invite-content-users/notify.jsp deleted file mode 100644 index dca4970d27..0000000000 --- a/source/web/jsp/wizard/invite-content-users/notify.jsp +++ /dev/null @@ -1,220 +0,0 @@ -<%-- - Copyright (C) 2005 Alfresco, Inc. - - Licensed under the Mozilla Public License version 1.1 - with a permitted attribution clause. You may obtain a - copy of the License at - - http://www.alfresco.org/legal/license.txt - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - either express or implied. See the License for the specific - language governing permissions and limitations under the - License. ---%> -<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> -<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> -<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> -<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> -<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> - -<%@ page buffer="32kb" contentType="text/html;charset=UTF-8" %> -<%@ page isELIgnored="false" %> -<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %> - - - - - - <%-- load a bundle of properties with I18N strings --%> - - - - - <%-- Main outer table --%> - - - <%-- Title bar --%> - - - - - <%-- Main area --%> - - <%-- Shelf --%> - - - <%-- Work Area --%> - - -
- <%@ include file="../../parts/titlebar.jsp" %> -
- <%@ include file="../../parts/shelf.jsp" %> - - - <%-- Breadcrumb --%> - <%@ include file="../../parts/breadcrumb.jsp" %> - - <%-- Status and Actions --%> - - - - - - - <%-- separator row with gradient shadow --%> - - - - - - - <%-- Details --%> - - - - - - - <%-- separator row with bottom panel graphics --%> - - - - - - -
- - <%-- Status and Actions inner contents table --%> - <%-- Generally this consists of an icon, textual summary and actions for the current object --%> - - - - - -
- -
''
-
-
- -
- - - - - - - - -
- <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %> -
- - - - - <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %> -
- - - - <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %> - - - - - - - - - - - - - - - - - <%-- Enter the message subject and body --%> - - - - - - - - - - - - - - - - - - - - -
- - - - -
: -  * -
- - - - - - -
: - <%-- Templates drop-down selector --%> - - - -
-
: - -
- <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %> -
- <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %> - - - - - - - - - - - -
- -
- -
- -
- <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %> -
-
-
- -
- -
- -
\ No newline at end of file diff --git a/source/web/jsp/wizard/invite-users/invite.jsp b/source/web/jsp/wizard/invite-users/invite.jsp index bd51c92820..d3e964ce65 100644 --- a/source/web/jsp/wizard/invite-users/invite.jsp +++ b/source/web/jsp/wizard/invite-users/invite.jsp @@ -16,218 +16,47 @@ --%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> -<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> <%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> <%@ page buffer="32kb" contentType="text/html;charset=UTF-8" %> <%@ page isELIgnored="false" %> -<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %> - - - - - <%-- load a bundle of properties with I18N strings --%> - - - - - <%-- Main outer table --%> - + + + + + + + + + + + + + + + + + + + + + + + + - <%-- Title bar --%> - - - - - <%-- Main area --%> - - <%-- Shelf --%> - - - <%-- Work Area --%> - - -
- <%@ include file="../../parts/titlebar.jsp" %> -
- <%@ include file="../../parts/shelf.jsp" %> - - - <%-- Breadcrumb --%> - <%@ include file="../../parts/breadcrumb.jsp" %> - - <%-- Status and Actions --%> - - - - - - - <%-- separator row with gradient shadow --%> - - - - - - - <%-- Details --%> - - - - - - - <%-- separator row with bottom panel graphics --%> - - - - - - -
- - <%-- Status and Actions inner contents table --%> - <%-- Generally this consists of an icon, textual summary and actions for the current object --%> - - - - - -
- -
''
-
-
- -
- - - - - - - - -
- <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %> -
- - - - - <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %> -
- - - - <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %> - - - - - - - - - - - - - - - - - <%-- Picker to select Users/Groups --%> - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
-
- 2. -
- - - - - - - - - - - - - - - - - - - - -
-
-
- <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %> -
- <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %> - - - - - - - - -
- -
- -
- <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %> -
-
-
- -
- -
- -
\ No newline at end of file + + + + + + + + diff --git a/source/web/jsp/wizard/invite-users/notify.jsp b/source/web/jsp/wizard/invite-users/notify.jsp index 740aa959cd..1ed2bb7ba9 100644 --- a/source/web/jsp/wizard/invite-users/notify.jsp +++ b/source/web/jsp/wizard/invite-users/notify.jsp @@ -16,205 +16,68 @@ --%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> -<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> <%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> <%@ page buffer="32kb" contentType="text/html;charset=UTF-8" %> <%@ page isELIgnored="false" %> -<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %> - + + + - - - <%-- load a bundle of properties with I18N strings --%> - - - - - <%-- Main outer table --%> - - - <%-- Title bar --%> - - - - - <%-- Main area --%> - - <%-- Shelf --%> - - - <%-- Work Area --%> - - -
- <%@ include file="../../parts/titlebar.jsp" %> -
- <%@ include file="../../parts/shelf.jsp" %> - - - <%-- Breadcrumb --%> - <%@ include file="../../parts/breadcrumb.jsp" %> - - <%-- Status and Actions --%> - - - - - - - <%-- separator row with gradient shadow --%> - - - - - - - <%-- Details --%> - - - - - - - <%-- separator row with bottom panel graphics --%> - - - - - - -
- - <%-- Status and Actions inner contents table --%> - <%-- Generally this consists of an icon, textual summary and actions for the current object --%> - - - - - -
- -
''
-
-
- -
- - - - - - - - -
- <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %> -
- - - - - <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %> -
- - - - <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "white", "white"); %> - - - - - - - - - - - - - - - - - <%-- Enter the message subject and body --%> - - - - - - - - - - - - - - - - - - - - -
- - - - -
: -  * -
- - - - - - - -
: - <%-- Templates drop-down selector --%> - - - -
-
: - -
- <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "white"); %> -
- <% PanelGenerator.generatePanelStart(out, request.getContextPath(), "blue", "#D3E6FE"); %> - - - - - - - - - - - -
- -
- -
- -
- <% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "blue"); %> -
-
-
- -
- -
+ + + + + + + -
\ No newline at end of file + + + + + +  * + + + + + + + + + + + + + + +