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)
78416: Merged EOL (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 75791: ACE-2149: EOL AVM / WCM - Some (probably not all!) removal of AVM patch-related code and MyBatis config git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@82548 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -50,51 +50,30 @@ public abstract class AbstractPatchDAOImpl implements PatchDAO, BatchingDAO
|
||||
this.contentDataDAO = contentDataDAO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getMaxAclId()
|
||||
{
|
||||
return getMaxAclEntityId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getDmNodeCount()
|
||||
{
|
||||
return getDmNodeEntitiesCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getDmNodeCountWithNewACLs(Long above)
|
||||
{
|
||||
return getDmNodeEntitiesCountWithNewACLs(above);
|
||||
}
|
||||
|
||||
public List<Long> selectAllAclIds()
|
||||
{
|
||||
return selectAllAclEntityIds();
|
||||
}
|
||||
|
||||
public List<Long> selectNonDanglingAclIds()
|
||||
{
|
||||
return selectNonDanglingAclEntityIds();
|
||||
}
|
||||
|
||||
public int deleteDanglingAces()
|
||||
{
|
||||
return deleteDanglingAceEntities();
|
||||
}
|
||||
|
||||
public int deleteAcls(List<Long> aclIds)
|
||||
{
|
||||
return deleteAclEntities(aclIds);
|
||||
}
|
||||
|
||||
public int deleteAclMembersForAcls(List<Long> aclIds)
|
||||
{
|
||||
return deleteAclMemberEntitiesForAcls(aclIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* <p>
|
||||
* @see #getAdmOldContentProperties(Long, Long)
|
||||
*/
|
||||
@Override
|
||||
public void updateAdmV31ContentProperties(Long minNodeId, Long maxNodeId)
|
||||
{
|
||||
List<Map<String, Object>> props = getAdmOldContentProperties(minNodeId, maxNodeId);
|
||||
@@ -168,11 +147,6 @@ public abstract class AbstractPatchDAOImpl implements PatchDAO, BatchingDAO
|
||||
protected abstract long getMaxAclEntityId();
|
||||
protected abstract long getDmNodeEntitiesCount();
|
||||
protected abstract long getDmNodeEntitiesCountWithNewACLs(Long above);
|
||||
protected abstract List<Long> selectAllAclEntityIds();
|
||||
protected abstract List<Long> selectNonDanglingAclEntityIds();
|
||||
protected abstract int deleteDanglingAceEntities();
|
||||
protected abstract int deleteAclEntities(List<Long> aclIds);
|
||||
protected abstract int deleteAclMemberEntitiesForAcls(List<Long> aclIds);
|
||||
|
||||
// note: caller's row handler is expected to migrate the attrs
|
||||
@Override
|
||||
|
@@ -97,16 +97,6 @@ public interface PatchDAO
|
||||
*/
|
||||
public long getDmNodeCountWithNewACLs(Long above);
|
||||
|
||||
public List<Long> selectAllAclIds();
|
||||
|
||||
public List<Long> selectNonDanglingAclIds();
|
||||
|
||||
public int deleteDanglingAces();
|
||||
|
||||
public int deleteAcls(List<Long> aclIds);
|
||||
|
||||
public int deleteAclMembersForAcls(List<Long> aclIds);
|
||||
|
||||
/**
|
||||
* @return Returns the names of authorities with incorrect CRC values
|
||||
*/
|
||||
|
@@ -59,8 +59,6 @@ public class PatchDAOImpl extends AbstractPatchDAOImpl
|
||||
private static final String SELECT_ADM_MAX_NODE_ID = "alfresco.patch.select_admMaxNodeId";
|
||||
private static final String SELECT_ADM_OLD_CONTENT_PROPERTIES = "alfresco.patch.select_admOldContentProperties";
|
||||
private static final String SELECT_AUTHORITIES_AND_CRC = "alfresco.patch.select_authoritiesAndCrc";
|
||||
private static final String SELECT_PERMISSIONS_ALL_ACL_IDS = "alfresco.patch.select_AllAclIds";
|
||||
private static final String SELECT_PERMISSIONS_USED_ACL_IDS = "alfresco.patch.select_UsedAclIds";
|
||||
private static final String SELECT_PERMISSIONS_MAX_ACL_ID = "alfresco.patch.select_MaxAclId";
|
||||
private static final String SELECT_PERMISSIONS_DM_NODE_COUNT = "alfresco.patch.select_DmNodeCount";
|
||||
private static final String SELECT_PERMISSIONS_DM_NODE_COUNT_WITH_NEW_ACLS = "alfresco.patch.select_DmNodeCountWherePermissionsHaveChanged";
|
||||
@@ -74,10 +72,6 @@ public class PatchDAOImpl extends AbstractPatchDAOImpl
|
||||
private static final String UPDATE_CHILD_ASSOC_CRC = "alfresco.patch.update_childAssocCrc";
|
||||
private static final String UPDATE_CREATE_SIZE_CURRENT_PROPERTY = "alfresco.patch.update_CreateSizeCurrentProperty";
|
||||
|
||||
private static final String DELETE_PERMISSIONS_UNUSED_ACES = "alfresco.permissions.delete_UnusedAces";
|
||||
private static final String DELETE_PERMISSIONS_ACL_LIST = "alfresco.permissions.delete_AclList";
|
||||
private static final String DELETE_PERMISSIONS_ACL_MEMBERS_FOR_ACL_LIST = "alfresco.permissions.delete_AclMembersForAclList";
|
||||
|
||||
private static final String SELECT_OLD_ATTR_TENANTS = "alfresco.patch.select_oldAttrTenants";
|
||||
private static final String SELECT_OLD_ATTR_PBBS = "alfresco.patch.select_oldAttrPropertyBackedBeans";
|
||||
private static final String SELECT_OLD_ATTR_CHAINING_URS = "alfresco.patch.select_oldAttrChainingURS";
|
||||
@@ -236,38 +230,6 @@ public class PatchDAOImpl extends AbstractPatchDAOImpl
|
||||
return count == null ? 0L : count;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
protected List<Long> selectAllAclEntityIds()
|
||||
{
|
||||
return (List<Long>) template.selectList(SELECT_PERMISSIONS_ALL_ACL_IDS);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
protected List<Long> selectNonDanglingAclEntityIds()
|
||||
{
|
||||
return (List<Long>) template.selectList(SELECT_PERMISSIONS_USED_ACL_IDS);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int deleteDanglingAceEntities()
|
||||
{
|
||||
return template.delete(DELETE_PERMISSIONS_UNUSED_ACES);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int deleteAclEntities(List<Long> aclIds)
|
||||
{
|
||||
return template.delete(DELETE_PERMISSIONS_ACL_LIST, aclIds);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int deleteAclMemberEntitiesForAcls(List<Long> aclIds)
|
||||
{
|
||||
return template.delete(DELETE_PERMISSIONS_ACL_MEMBERS_FOR_ACL_LIST, aclIds);
|
||||
}
|
||||
|
||||
public List<String> getAuthoritiesWithNonUtf8Crcs()
|
||||
{
|
||||
final List<String> results = new ArrayList<String>(1000);
|
||||
|
Reference in New Issue
Block a user