|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.domain.patch.AbstractPatchDAOImpl
public abstract class AbstractPatchDAOImpl
Abstract implementation for Patch DAO.
This provides additional queries used by patches.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.alfresco.repo.domain.patch.PatchDAO |
---|
PatchDAO.StringHandler |
Constructor Summary | |
---|---|
protected |
AbstractPatchDAOImpl()
|
Method Summary | |
---|---|
protected abstract int |
deleteAclEntities(java.util.List aclIds)
|
protected abstract int |
deleteAclMemberEntitiesForAcls(java.util.List aclIds)
|
int |
deleteAclMembersForAcls(java.util.List aclIds)
|
int |
deleteAcls(java.util.List aclIds)
|
protected abstract int |
deleteDanglingAceEntities()
|
int |
deleteDanglingAces()
|
protected abstract java.util.List |
getAdmOldContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
Results are of the form: |
protected abstract long |
getAVMNodeEntitiesCountWhereNewInStore()
|
protected abstract java.util.List |
getAVMNodeEntitiesWithEmptyGUID(int maxResults)
|
long |
getAVMNodesCountWhereNewInStore()
|
long |
getDmNodeCount()
How many DM nodes are there? |
long |
getDmNodeCountWithNewACLs(java.lang.Long above)
How many DM nodes are three with new ACls (to track patch progress) |
protected abstract long |
getDmNodeEntitiesCount()
|
protected abstract long |
getDmNodeEntitiesCountWithNewACLs(java.lang.Long above)
|
java.util.List |
getEmptyGUIDS(int count)
|
protected abstract long |
getMaxAclEntityId()
|
long |
getMaxAclId()
Get the max acl id |
java.util.List |
getNullVersionLayeredDirectories(int count)
|
protected abstract java.util.List |
getNullVersionLayeredDirectoryNodeEntities(int maxResults)
|
protected abstract java.util.List |
getNullVersionLayeredFileNodeEntities(int maxResults)
|
java.util.List |
getNullVersionLayeredFiles(int count)
|
protected abstract void |
getOldAttrAVMLocksImpl(org.apache.ibatis.session.ResultHandler resultHandler)
|
protected abstract void |
getOldAttrChainingURSImpl(org.apache.ibatis.session.ResultHandler resultHandler)
|
java.util.List |
getOldAttrCustomNames()
Get custom global attribute names (if any) |
protected abstract java.util.List |
getOldAttrCustomNamesImpl()
|
protected abstract void |
getOldAttrPropertyBackedBeansImpl(org.apache.ibatis.session.ResultHandler resultHandler)
|
protected abstract void |
getOldAttrTenantsImpl(org.apache.ibatis.session.ResultHandler resultHandler)
|
void |
migrateOldAttrAVMLocks(org.apache.ibatis.session.ResultHandler resultHandler)
Migrate old AVM Lock attributes (if any) |
void |
migrateOldAttrChainingURS(org.apache.ibatis.session.ResultHandler resultHandler)
Migrate old Chaining User Registry Synchronizer attributes (if any) |
void |
migrateOldAttrPropertyBackedBeans(org.apache.ibatis.session.ResultHandler resultHandler)
Migrate old Property-Backed Bean attributes (if any) |
void |
migrateOldAttrTenants(org.apache.ibatis.session.ResultHandler resultHandler)
Migrate old Tenant attributes (if any) |
protected abstract java.util.List |
selectAllAclEntityIds()
|
java.util.List |
selectAllAclIds()
|
protected abstract java.util.List |
selectNonDanglingAclEntityIds()
|
java.util.List |
selectNonDanglingAclIds()
|
void |
setContentDataDAO(ContentDataDAO contentDataDAO)
Set the DAO that supplies ContentData IDs |
protected abstract void |
updateAdmOldContentProperty(java.lang.Long nodeId,
java.lang.Long qnameId,
java.lang.Integer listIndex,
java.lang.Long localeId,
java.lang.Long longValue)
|
void |
updateAdmV31ContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
Migrates DM content properties from the old V3.1 format (String-based ContentData.toString() )
to the new V3.2 format (ID based storage using ContentDataDAO ). |
protected abstract int |
updateAVMNodeEntitiesNullifyAcl(java.util.List nodeIds)
|
protected abstract int |
updateAVMNodeEntitiesSetAcl(long aclId,
java.util.List nodeIds)
|
int |
updateAVMNodesNullifyAcl(java.util.List nodeIds)
|
int |
updateAVMNodesSetAcl(long aclId,
java.util.List nodeIds)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.ibatis.BatchingDAO |
---|
executeBatch, startBatch |
Constructor Detail |
---|
protected AbstractPatchDAOImpl()
Method Detail |
---|
public void setContentDataDAO(ContentDataDAO contentDataDAO)
ContentData
IDs
public long getAVMNodesCountWhereNewInStore()
getAVMNodesCountWhereNewInStore
in interface PatchDAO
public java.util.List getEmptyGUIDS(int count)
getEmptyGUIDS
in interface PatchDAO
public java.util.List getNullVersionLayeredDirectories(int count)
getNullVersionLayeredDirectories
in interface PatchDAO
public java.util.List getNullVersionLayeredFiles(int count)
getNullVersionLayeredFiles
in interface PatchDAO
public int updateAVMNodesNullifyAcl(java.util.List nodeIds)
updateAVMNodesNullifyAcl
in interface PatchDAO
public int updateAVMNodesSetAcl(long aclId, java.util.List nodeIds)
updateAVMNodesSetAcl
in interface PatchDAO
protected abstract long getAVMNodeEntitiesCountWhereNewInStore()
protected abstract java.util.List getAVMNodeEntitiesWithEmptyGUID(int maxResults)
protected abstract java.util.List getNullVersionLayeredDirectoryNodeEntities(int maxResults)
protected abstract java.util.List getNullVersionLayeredFileNodeEntities(int maxResults)
protected abstract int updateAVMNodeEntitiesNullifyAcl(java.util.List nodeIds)
protected abstract int updateAVMNodeEntitiesSetAcl(long aclId, java.util.List nodeIds)
public long getMaxAclId()
PatchDAO
getMaxAclId
in interface PatchDAO
public long getDmNodeCount()
PatchDAO
getDmNodeCount
in interface PatchDAO
public long getDmNodeCountWithNewACLs(java.lang.Long above)
PatchDAO
getDmNodeCountWithNewACLs
in interface PatchDAO
public java.util.List selectAllAclIds()
selectAllAclIds
in interface PatchDAO
public java.util.List selectNonDanglingAclIds()
selectNonDanglingAclIds
in interface PatchDAO
public int deleteDanglingAces()
deleteDanglingAces
in interface PatchDAO
public int deleteAcls(java.util.List aclIds)
deleteAcls
in interface PatchDAO
public int deleteAclMembersForAcls(java.util.List aclIds)
deleteAclMembersForAcls
in interface PatchDAO
public void updateAdmV31ContentProperties(java.lang.Long minNodeId, java.lang.Long maxNodeId)
ContentData.toString()
)
to the new V3.2 format (ID based storage using ContentDataDAO
).
updateAdmV31ContentProperties
in interface PatchDAO
minNodeId
- the inclusive node ID to limit the updates tomaxNodeId
- the exclusive node ID to limit the updates toAbstractPatchDAOImpl.getAdmOldContentProperties(Long, Long)
protected abstract java.util.List getAdmOldContentProperties(java.lang.Long minNodeId, java.lang.Long maxNodeId)
nodeId: java.lang.Long qnameId: java.lang.Long listIndex: java.lang.Integer localeId: java.lang.Long stringValue: java.lang.String
minNodeId
- inclusive lower bound for Node IDmaxNodeId
- exclusive upper bound for Node ID
protected abstract void updateAdmOldContentProperty(java.lang.Long nodeId, java.lang.Long qnameId, java.lang.Integer listIndex, java.lang.Long localeId, java.lang.Long longValue)
nodeId
- part of the unique keyqnameId
- part of the unique keylistIndex
- part of the unique keylocaleId
- part of the unique keylongValue
- the new ContentData IDprotected abstract long getMaxAclEntityId()
protected abstract long getDmNodeEntitiesCount()
protected abstract long getDmNodeEntitiesCountWithNewACLs(java.lang.Long above)
protected abstract java.util.List selectAllAclEntityIds()
protected abstract java.util.List selectNonDanglingAclEntityIds()
protected abstract int deleteDanglingAceEntities()
protected abstract int deleteAclEntities(java.util.List aclIds)
protected abstract int deleteAclMemberEntitiesForAcls(java.util.List aclIds)
public void migrateOldAttrTenants(org.apache.ibatis.session.ResultHandler resultHandler)
PatchDAO
migrateOldAttrTenants
in interface PatchDAO
protected abstract void getOldAttrTenantsImpl(org.apache.ibatis.session.ResultHandler resultHandler)
public void migrateOldAttrAVMLocks(org.apache.ibatis.session.ResultHandler resultHandler)
PatchDAO
migrateOldAttrAVMLocks
in interface PatchDAO
protected abstract void getOldAttrAVMLocksImpl(org.apache.ibatis.session.ResultHandler resultHandler)
public void migrateOldAttrPropertyBackedBeans(org.apache.ibatis.session.ResultHandler resultHandler)
PatchDAO
migrateOldAttrPropertyBackedBeans
in interface PatchDAO
protected abstract void getOldAttrPropertyBackedBeansImpl(org.apache.ibatis.session.ResultHandler resultHandler)
public void migrateOldAttrChainingURS(org.apache.ibatis.session.ResultHandler resultHandler)
PatchDAO
migrateOldAttrChainingURS
in interface PatchDAO
protected abstract void getOldAttrChainingURSImpl(org.apache.ibatis.session.ResultHandler resultHandler)
public java.util.List getOldAttrCustomNames()
PatchDAO
getOldAttrCustomNames
in interface PatchDAO
protected abstract java.util.List getOldAttrCustomNamesImpl()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |