mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.0 to HEAD
12310: Merged V2.2 to V3.0 12306: Merged V2.1 to V2.2 12212: Final set of XSS and HTML encoding fixes for ETWOONE-90 12312: Merged V2.2 to V3.0 12311: Merged V2.1 to V2.2 11667: Fix for ETWOONE-389 - Current page number not always visible on the browse screen. 12316: Fix for merge issue 12317: Merged 2.1 to 3.0 12313: Fix for regression introduced when fixing ETWOONE-91. Also fixes ETHREEOH-1043 12319: Final set of XSS fixes specific to 3.0 codeline see ETWOONE-90 12321: Missing file from previous checkin 12324: Merged 2.2 to 3.0 12320: Merged 2.1 to 2.2 11682: Fix for ETWOONE-87: Behavior of delete cascade 12326: Merge 2.1 to 3.0 11615: Fix for ETWOONE-188: After session has timed out, expanding a space in the Navigator results in unfriendly error git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12531 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -27,6 +27,7 @@ package org.alfresco.web.bean.spaces;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.transaction.UserTransaction;
|
||||
@@ -65,10 +66,25 @@ public class DeleteSpaceDialog extends BaseDialogBean
|
||||
|
||||
private String deleteMode = DELETE_ALL;
|
||||
|
||||
protected boolean hasMultipleParents = false;
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
// Dialog implementation
|
||||
|
||||
@Override
|
||||
public void init(Map<String, String> parameters)
|
||||
{
|
||||
super.init(parameters);
|
||||
|
||||
this.hasMultipleParents = false;
|
||||
|
||||
String strHasMultipleParents = this.parameters.get("hasMultipleParents");
|
||||
if (strHasMultipleParents != null && "true".equals(strHasMultipleParents))
|
||||
{
|
||||
this.hasMultipleParents = true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String finishImpl(FacesContext context, String outcome)
|
||||
throws Exception
|
||||
@@ -249,4 +265,12 @@ public class DeleteSpaceDialog extends BaseDialogBean
|
||||
{
|
||||
this.deleteMode = deleteMode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if the space has multiple parents
|
||||
*/
|
||||
public boolean getHasMultipleParents()
|
||||
{
|
||||
return this.hasMultipleParents;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user