mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
78429: Merged EOL (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 75801: ACE-2149: EOL AVM / WCM - Thorough sweep of 'avm' and 'wcm' references - Picked up on many 'deployment' and related classes and configuration - Repo starts git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@82558 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -767,7 +767,6 @@ public class AclDAOImpl implements AclDAO
|
||||
|
||||
// Retrieve dependent nodes
|
||||
List<Long> nodeIds = aclCrudDAO.getADMNodesByAcl(aclId, -1);
|
||||
nodeIds.addAll(aclCrudDAO.getAVMNodesByAcl(aclId, -1));
|
||||
|
||||
if (nodeIds.size() > 0)
|
||||
{
|
||||
@@ -853,7 +852,7 @@ public class AclDAOImpl implements AclDAO
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void deleteAclForNode(long aclId, boolean isAVMNode)
|
||||
public void deleteAclForNode(long aclId)
|
||||
{
|
||||
Acl dbAcl = getAcl(aclId);
|
||||
if (dbAcl.getAclType() == ACLType.DEFINING)
|
||||
@@ -868,19 +867,12 @@ public class AclDAOImpl implements AclDAO
|
||||
Long defining = dbAcl.getInheritsFrom();
|
||||
if (aclCrudDAO.getAcl(defining) == null)
|
||||
{
|
||||
if (! isAVMNode)
|
||||
// ADM
|
||||
if (getADMNodesByAcl(aclId, 1).size() == 0)
|
||||
{
|
||||
// ADM
|
||||
if (getADMNodesByAcl(aclId, 1).size() == 0)
|
||||
{
|
||||
// delete acl members & acl
|
||||
aclCrudDAO.deleteAclMembersByAcl(aclId);
|
||||
aclCrudDAO.deleteAcl(aclId);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO: AVM
|
||||
// delete acl members & acl
|
||||
aclCrudDAO.deleteAclMembersByAcl(aclId);
|
||||
aclCrudDAO.deleteAcl(aclId);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1544,15 +1536,6 @@ public class AclDAOImpl implements AclDAO
|
||||
return aclCrudDAO.getAcl(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public List<Long> getAVMNodesByAcl(long aclEntityId, int maxResults)
|
||||
{
|
||||
return aclCrudDAO.getAVMNodesByAcl(aclEntityId, maxResults);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user