mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.2E to HEAD
17701: Fix for ETHREEOH-3691 - Blocker issue deleting a group 17703: ETHREEOH-3688 - Impossibility to open Edit Metadata page for folders from Details page 17705: ETHREEOH-3707 - Script error occurs when trying to invite external user to site 17706: ETHREEOH-3678 - Blocker issue: the column 'Path' is empty for 'Move to' and 'Copy to' actions at 'View Detail' page 17724: Merged DEV/TEMPORARY to V3.2 17720: ETHREEOH-3703: Bootstrapped content refers to ALC 17733: Fixes for ETHREEOH-3726, ETHREEOH-3660 and ETHREEOH-3629. 17960: *RECORD ONLY* Fix for unclosed InputStream in PresentationContainer (already fixed in SpringSurf/3.3). git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18163 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -104,10 +104,10 @@ public class UIDeployWebsite extends UIInput
|
|||||||
// If we have been grouping the checkboxes then the name will have been generated as follows
|
// If we have been grouping the checkboxes then the name will have been generated as follows
|
||||||
// name = this.getClientId(context) + ":group1:child";
|
// name = this.getClientId(context) + ":group1:child";
|
||||||
Set<String> keys = valuesMap.keySet();
|
Set<String> keys = valuesMap.keySet();
|
||||||
for( String key : keys)
|
for (String key : keys)
|
||||||
{
|
{
|
||||||
// Check whether the key matches the pattern for a child checkbox
|
// Check whether the key matches the pattern for a child checkbox
|
||||||
if(key.matches(this.getClientId(context) + ParentChildCheckboxHelper.helperChildPattern))
|
if (key.matches(this.getClientId(context) + ParentChildCheckboxHelper.helperChildPattern))
|
||||||
{
|
{
|
||||||
// Key does matches the pattern for a child
|
// Key does matches the pattern for a child
|
||||||
addValues(selectedNodes, valuesMap, key);
|
addValues(selectedNodes, valuesMap, key);
|
||||||
@@ -264,8 +264,6 @@ public class UIDeployWebsite extends UIInput
|
|||||||
if (servers.size() > 0)
|
if (servers.size() > 0)
|
||||||
{
|
{
|
||||||
ParentChildCheckboxHelper helper = new ParentChildCheckboxHelper(this.getClientId(context));
|
ParentChildCheckboxHelper helper = new ParentChildCheckboxHelper(this.getClientId(context));
|
||||||
//boolean first = true;
|
|
||||||
//String currentDisplayGroup = "";
|
|
||||||
boolean selected = false;
|
boolean selected = false;
|
||||||
|
|
||||||
for (DeploymentServerConfig server: servers)
|
for (DeploymentServerConfig server: servers)
|
||||||
@@ -280,18 +278,18 @@ public class UIDeployWebsite extends UIInput
|
|||||||
out.write("<input type='checkbox' id='");
|
out.write("<input type='checkbox' id='");
|
||||||
out.write(helper.groupParentId);
|
out.write(helper.groupParentId);
|
||||||
out.write("' value='");
|
out.write("' value='");
|
||||||
out.write(displayGroup);
|
out.write(Utils.encode(displayGroup));
|
||||||
out.write("'");
|
out.write("'");
|
||||||
out.write(" ");
|
out.write(" ");
|
||||||
out.write("onClick=\"select_all(\'");
|
out.write("onClick=\"select_all(\'");
|
||||||
out.write(helper.groupChildName);
|
out.write(helper.groupChildName);
|
||||||
out.write("\', this.checked);\" ");
|
out.write("\', this.checked);\" ");
|
||||||
out.write(" /> ");
|
out.write(" /> ");
|
||||||
out.write(displayGroup);
|
out.write(Utils.encode(displayGroup));
|
||||||
out.write("</p>");
|
out.write("</p>");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(helper.groupParentId.length() > 0)
|
if (helper.groupParentId.length() > 0)
|
||||||
{
|
{
|
||||||
// render the test server with a child checkbox
|
// render the test server with a child checkbox
|
||||||
renderCheckableServer(context, out, nodeService, server.getServerRef(), selected, helper.groupChildName, helper.groupParentId);
|
renderCheckableServer(context, out, nodeService, server.getServerRef(), selected, helper.groupChildName, helper.groupParentId);
|
||||||
@@ -342,13 +340,13 @@ public class UIDeployWebsite extends UIInput
|
|||||||
String displayGroup = (String)server.getProperties().get(DeploymentServerConfig.PROP_GROUP);
|
String displayGroup = (String)server.getProperties().get(DeploymentServerConfig.PROP_GROUP);
|
||||||
|
|
||||||
helper.setCurrentDisplayGroup(displayGroup);
|
helper.setCurrentDisplayGroup(displayGroup);
|
||||||
if(helper.newGroup)
|
if (helper.newGroup)
|
||||||
{
|
{
|
||||||
out.write("<p class='mainSubTitle'>");
|
out.write("<p class='mainSubTitle'>");
|
||||||
out.write("<input type='checkbox' id='");
|
out.write("<input type='checkbox' id='");
|
||||||
out.write(helper.groupParentId);
|
out.write(helper.groupParentId);
|
||||||
out.write("' value='");
|
out.write("' value='");
|
||||||
out.write(displayGroup);
|
out.write(Utils.encode(displayGroup));
|
||||||
out.write("'");
|
out.write("'");
|
||||||
out.write(" checked='checked' ");
|
out.write(" checked='checked' ");
|
||||||
|
|
||||||
@@ -357,11 +355,11 @@ public class UIDeployWebsite extends UIInput
|
|||||||
out.write("\', this.checked);\" ");
|
out.write("\', this.checked);\" ");
|
||||||
out.write(" /> ");
|
out.write(" /> ");
|
||||||
|
|
||||||
out.write(displayGroup);
|
out.write(Utils.encode(displayGroup));
|
||||||
out.write("</p>");
|
out.write("</p>");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(helper.groupParentId.length() > 0)
|
if (helper.groupParentId.length() > 0)
|
||||||
{
|
{
|
||||||
// render the live server with a child checkbox
|
// render the live server with a child checkbox
|
||||||
renderCheckableServer(context, out, nodeService, server.getServerRef(), selected, helper.groupChildName, helper.groupParentId);
|
renderCheckableServer(context, out, nodeService, server.getServerRef(), selected, helper.groupChildName, helper.groupParentId);
|
||||||
@@ -590,7 +588,7 @@ public class UIDeployWebsite extends UIInput
|
|||||||
|
|
||||||
out.write("<div class='deployPanelControl'>");
|
out.write("<div class='deployPanelControl'>");
|
||||||
out.write("<input type='checkbox' ");
|
out.write("<input type='checkbox' ");
|
||||||
if(checkBoxName != null && checkBoxName.length() > 0)
|
if (checkBoxName != null && checkBoxName.length() > 0)
|
||||||
{
|
{
|
||||||
out.write("name='");
|
out.write("name='");
|
||||||
out.write(checkBoxName);
|
out.write(checkBoxName);
|
||||||
@@ -599,7 +597,7 @@ public class UIDeployWebsite extends UIInput
|
|||||||
// If there is a parent checkbox
|
// If there is a parent checkbox
|
||||||
// generate java script of the form
|
// generate java script of the form
|
||||||
// onClick="select_one('xxx', 'area');"
|
// onClick="select_one('xxx', 'area');"
|
||||||
if(parentId != null && parentId.length() > 0 )
|
if (parentId != null && parentId.length() > 0 )
|
||||||
{
|
{
|
||||||
out.write("onClick=\"select_one(\'");
|
out.write("onClick=\"select_one(\'");
|
||||||
out.write(parentId);
|
out.write(parentId);
|
||||||
@@ -619,15 +617,6 @@ public class UIDeployWebsite extends UIInput
|
|||||||
|
|
||||||
renderPanelMiddle(out, contextPath, nodeService, server, true);
|
renderPanelMiddle(out, contextPath, nodeService, server, true);
|
||||||
|
|
||||||
// if (selected == false)
|
|
||||||
// {
|
|
||||||
// out.write("<div class='deployPanelServerStatus'><img src='");
|
|
||||||
// out.write(contextPath);
|
|
||||||
// out.write("/images/icons/info_icon.gif' style='vertical-align: -5px;' /> ");
|
|
||||||
// out.write(Application.getMessage(context, "deploy_server_not_selected"));
|
|
||||||
// out.write("</div>");
|
|
||||||
// }
|
|
||||||
|
|
||||||
renderPanelEnd(out, contextPath);
|
renderPanelEnd(out, contextPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -758,7 +747,7 @@ public class UIDeployWebsite extends UIInput
|
|||||||
* @return a sorted list of DeploymentServerConfig objects.
|
* @return a sorted list of DeploymentServerConfig objects.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
private List<DeploymentServerConfig> toSortedDeploymentServerConfig(NodeService nodeService, List<NodeRef> refs) {
|
private List<DeploymentServerConfig> toSortedDeploymentServerConfig(NodeService nodeService, List<NodeRef> refs) {
|
||||||
// Resolve the list of NodeRef to a list of DeploymentServerConfig.
|
// Resolve the list of NodeRef to a list of DeploymentServerConfig.
|
||||||
List<DeploymentServerConfig> servers = new ArrayList<DeploymentServerConfig>();
|
List<DeploymentServerConfig> servers = new ArrayList<DeploymentServerConfig>();
|
||||||
for (NodeRef ref : refs)
|
for (NodeRef ref : refs)
|
||||||
@@ -795,7 +784,7 @@ private List<DeploymentServerConfig> toSortedDeploymentServerConfig(NodeService
|
|||||||
{
|
{
|
||||||
this.newGroup = !this.currentDisplayGroup.equalsIgnoreCase(currentDisplayGroup);
|
this.newGroup = !this.currentDisplayGroup.equalsIgnoreCase(currentDisplayGroup);
|
||||||
this.currentDisplayGroup = currentDisplayGroup;
|
this.currentDisplayGroup = currentDisplayGroup;
|
||||||
if(this.newGroup)
|
if (this.newGroup)
|
||||||
{
|
{
|
||||||
changeGroup(currentDisplayGroup);
|
changeGroup(currentDisplayGroup);
|
||||||
}
|
}
|
||||||
@@ -807,7 +796,6 @@ private List<DeploymentServerConfig> toSortedDeploymentServerConfig(NodeService
|
|||||||
|
|
||||||
private void changeGroup(String newGroupName)
|
private void changeGroup(String newGroupName)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Examples of HTML naming scheme
|
// Examples of HTML naming scheme
|
||||||
// jsp17:group1:parent, jsp17:group1:child
|
// jsp17:group1:parent, jsp17:group1:child
|
||||||
// jsp17:group2:parent, jsp17:group2:child
|
// jsp17:group2:parent, jsp17:group2:child
|
||||||
|
Reference in New Issue
Block a user