public class PatchDAOImpl extends AbstractPatchDAOImpl
| Modifier and Type | Class and Description |
|---|---|
static class |
PatchDAOImpl.Oracle
Oracle-specific DAO
|
static class |
PatchDAOImpl.PostgreSQL
PostgreSQL-specific DAO
|
PatchDAO.StringHandler| Modifier and Type | Field and Description |
|---|---|
protected org.mybatis.spring.SqlSessionTemplate |
template |
| Constructor and Description |
|---|
PatchDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
addSizeCurrentProp()
Add a cm:sizeCurrent property to person nodes that don't have it.
|
protected int |
deleteAclEntities(java.util.List aclIds) |
protected int |
deleteAclMemberEntitiesForAcls(java.util.List aclIds) |
protected int |
deleteDanglingAceEntities() |
void |
executeBatch() |
java.util.List |
getAclsThatInheritFromNonPrimaryParent()
Get acls that do not inherit from the primary parent.
|
java.util.List |
getAclsThatInheritWithInheritanceUnset()
Get acls that inherit with inheritance unset
|
protected java.util.List |
getAdmOldContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
Results are of the form:
|
java.util.List |
getAuthoritiesWithNonUtf8Crcs() |
protected long |
getAVMNodeEntitiesCountWhereNewInStore() |
protected java.util.List |
getAVMNodeEntitiesWithEmptyGUID(int maxResults) |
java.util.List |
getAvmNodesWithOldContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId) |
int |
getChildAssocCount() |
java.util.List |
getChildAssocsForCrcFix(java.lang.Long minAssocId,
java.lang.Long stopAtAssocId,
long rangeMultiplier,
long maxIdRange,
int maxResults)
The results map contains:
|
long |
getCountNodesWithAspects(java.util.Set qnames) |
java.util.List |
getDefiningAclsThatDoNotInheritCorrectlyFromThePrimaryParent()
Get defining acls with inheritance issues
|
protected long |
getDmNodeEntitiesCount() |
protected long |
getDmNodeEntitiesCountWithNewACLs(java.lang.Long above) |
protected long |
getMaxAclEntityId() |
long |
getMaxAdmNodeID() |
long |
getMaxAvmNodeID() |
java.lang.Long |
getMaxChildAssocId() |
java.util.List |
getNodesByAspectQNameId(java.lang.Long aspectQNameId,
java.lang.Long minNodeId,
java.lang.Long maxNodeId)
Find all the nodes ids with the given aspect
|
java.util.List |
getNodesByContentPropertyMimetypeId(java.lang.Long mimetypeId,
java.lang.Long minNodeId,
java.lang.Long maxNodeId)
Find all the nodes ids with the given content property set with the given mimetype
|
java.util.List |
getNodesByTypeQNameId(java.lang.Long typeQNameId,
java.lang.Long minNodeId,
java.lang.Long maxNodeId)
Find all the nodes ids with the given type
|
java.util.List |
getNodesByTypeUriId(java.lang.Long nsId,
java.lang.Long minNodeId,
java.lang.Long maxNodeId)
Find all the nodes ids with the given type uri
|
java.util.List |
getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName,
java.lang.String namePattern)
Query for a list of nodes that have a given type and share the same name pattern (SQL LIKE syntax)
|
protected java.util.List |
getNullVersionLayeredDirectoryNodeEntities(int maxResults) |
protected java.util.List |
getNullVersionLayeredFileNodeEntities(int maxResults) |
protected void |
getOldAttrAVMLocksImpl(org.apache.ibatis.session.ResultHandler resultHandler) |
protected void |
getOldAttrChainingURSImpl(org.apache.ibatis.session.ResultHandler resultHandler) |
protected java.util.List |
getOldAttrCustomNamesImpl() |
protected void |
getOldAttrPropertyBackedBeansImpl(org.apache.ibatis.session.ResultHandler resultHandler) |
protected void |
getOldAttrTenantsImpl(org.apache.ibatis.session.ResultHandler resultHandler) |
java.util.List |
getSharedAclsThatDoNotInheritCorrectlyFromTheirDefiningAcl()
Get shared acls that do not inherit correctly from the defining acl
|
java.util.List |
getSharedAclsThatDoNotInheritCorrectlyFromThePrimaryParent()
Get shared acls with inheritance issues
|
void |
migrateOldAttrDropTables()
Drop old attribute alf_*attribute* tables
|
protected java.util.List |
selectAllAclEntityIds() |
protected java.util.List |
selectNonDanglingAclEntityIds() |
void |
setLocaleDAO(LocaleDAO localeDAO) |
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) |
void |
startBatch() |
protected void |
updateAdmOldContentProperty(java.lang.Long nodeId,
java.lang.Long qnameId,
java.lang.Integer listIndex,
java.lang.Long localeId,
java.lang.Long longValue) |
protected int |
updateAVMNodeEntitiesNullifyAcl(java.util.List nodeIds) |
protected int |
updateAVMNodeEntitiesSetAcl(long aclId,
java.util.List nodeIds) |
int |
updateChildAssocCrc(java.lang.Long assocId,
java.lang.Long childNodeNameCrc,
java.lang.Long qnameCrc) |
int |
updateContentMimetypeIds(java.lang.Long oldMimetypeId,
java.lang.Long newMimetypeId)
Update all alf_content_data mimetype references.
|
deleteAclMembersForAcls, deleteAcls, deleteDanglingAces, getAVMNodesCountWhereNewInStore, getDmNodeCount, getDmNodeCountWithNewACLs, getEmptyGUIDS, getMaxAclId, getNullVersionLayeredDirectories, getNullVersionLayeredFiles, getOldAttrCustomNames, migrateOldAttrAVMLocks, migrateOldAttrChainingURS, migrateOldAttrPropertyBackedBeans, migrateOldAttrTenants, selectAllAclIds, selectNonDanglingAclIds, setContentDataDAO, updateAdmV31ContentProperties, updateAVMNodesNullifyAcl, updateAVMNodesSetAclpublic final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
public void setQnameDAO(QNameDAO qnameDAO)
public void setLocaleDAO(LocaleDAO localeDAO)
public void startBatch()
public void executeBatch()
protected long getAVMNodeEntitiesCountWhereNewInStore()
getAVMNodeEntitiesCountWhereNewInStore in class AbstractPatchDAOImplprotected java.util.List getAVMNodeEntitiesWithEmptyGUID(int maxResults)
getAVMNodeEntitiesWithEmptyGUID in class AbstractPatchDAOImplprotected java.util.List getNullVersionLayeredDirectoryNodeEntities(int maxResults)
getNullVersionLayeredDirectoryNodeEntities in class AbstractPatchDAOImplprotected java.util.List getNullVersionLayeredFileNodeEntities(int maxResults)
getNullVersionLayeredFileNodeEntities in class AbstractPatchDAOImplpublic long getMaxAvmNodeID()
public java.util.List getAvmNodesWithOldContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
public long getMaxAdmNodeID()
protected java.util.List getAdmOldContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
AbstractPatchDAOImpl
nodeId: java.lang.Long
qnameId: java.lang.Long
listIndex: java.lang.Integer
localeId: java.lang.Long
stringValue: java.lang.String
getAdmOldContentProperties in class AbstractPatchDAOImplminNodeId - inclusive lower bound for Node IDmaxNodeId - exclusive upper bound for Node IDprotected void updateAdmOldContentProperty(java.lang.Long nodeId,
java.lang.Long qnameId,
java.lang.Integer listIndex,
java.lang.Long localeId,
java.lang.Long longValue)
updateAdmOldContentProperty in class AbstractPatchDAOImplnodeId - part of the unique keyqnameId - part of the unique keylistIndex - part of the unique keylocaleId - part of the unique keylongValue - the new ContentData IDpublic int updateContentMimetypeIds(java.lang.Long oldMimetypeId,
java.lang.Long newMimetypeId)
PatchDAOoldMimetypeId - the ID to search fornewMimetypeId - the ID to change topublic int addSizeCurrentProp()
PatchDAOprotected int updateAVMNodeEntitiesNullifyAcl(java.util.List nodeIds)
updateAVMNodeEntitiesNullifyAcl in class AbstractPatchDAOImplprotected int updateAVMNodeEntitiesSetAcl(long aclId,
java.util.List nodeIds)
updateAVMNodeEntitiesSetAcl in class AbstractPatchDAOImplprotected long getMaxAclEntityId()
getMaxAclEntityId in class AbstractPatchDAOImplprotected long getDmNodeEntitiesCount()
getDmNodeEntitiesCount in class AbstractPatchDAOImplprotected long getDmNodeEntitiesCountWithNewACLs(java.lang.Long above)
getDmNodeEntitiesCountWithNewACLs in class AbstractPatchDAOImplprotected java.util.List selectAllAclEntityIds()
selectAllAclEntityIds in class AbstractPatchDAOImplprotected java.util.List selectNonDanglingAclEntityIds()
selectNonDanglingAclEntityIds in class AbstractPatchDAOImplprotected int deleteDanglingAceEntities()
deleteDanglingAceEntities in class AbstractPatchDAOImplprotected int deleteAclEntities(java.util.List aclIds)
deleteAclEntities in class AbstractPatchDAOImplprotected int deleteAclMemberEntitiesForAcls(java.util.List aclIds)
deleteAclMemberEntitiesForAcls in class AbstractPatchDAOImplpublic java.util.List getAuthoritiesWithNonUtf8Crcs()
public int getChildAssocCount()
public java.lang.Long getMaxChildAssocId()
public java.util.List getChildAssocsForCrcFix(java.lang.Long minAssocId,
java.lang.Long stopAtAssocId,
long rangeMultiplier,
long maxIdRange,
int maxResults)
PatchDAO
]]>
minAssocId - the minimum child assoc IDstopAtAssocId - the child assoc ID to stop at i.e. once this ID has been reached,
pull back no resultsrangeMultiplier - the ration of IDs to actual rows (how many IDs to select to get a row)maxIdRange - the largest ID range to use for selects. Normally, the ID range should be
allowed to grow in accordance with the general distribution of rows, but
if memory problems are encountered, then the range will need to be set down.maxResults - the number of child associations to fetchpublic int updateChildAssocCrc(java.lang.Long assocId,
java.lang.Long childNodeNameCrc,
java.lang.Long qnameCrc)
public java.util.List getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName,
java.lang.String namePattern)
PatchDAOtypeQName - the node typenamePattern - the SQL LIKE patternprotected void getOldAttrTenantsImpl(org.apache.ibatis.session.ResultHandler resultHandler)
getOldAttrTenantsImpl in class AbstractPatchDAOImplprotected void getOldAttrAVMLocksImpl(org.apache.ibatis.session.ResultHandler resultHandler)
getOldAttrAVMLocksImpl in class AbstractPatchDAOImplprotected void getOldAttrPropertyBackedBeansImpl(org.apache.ibatis.session.ResultHandler resultHandler)
getOldAttrPropertyBackedBeansImpl in class AbstractPatchDAOImplprotected void getOldAttrChainingURSImpl(org.apache.ibatis.session.ResultHandler resultHandler)
getOldAttrChainingURSImpl in class AbstractPatchDAOImplprotected java.util.List getOldAttrCustomNamesImpl()
getOldAttrCustomNamesImpl in class AbstractPatchDAOImplpublic void migrateOldAttrDropTables()
PatchDAOpublic java.util.List getAclsThatInheritFromNonPrimaryParent()
PatchDAOpublic java.util.List getAclsThatInheritWithInheritanceUnset()
PatchDAOpublic java.util.List getDefiningAclsThatDoNotInheritCorrectlyFromThePrimaryParent()
PatchDAOpublic java.util.List getSharedAclsThatDoNotInheritCorrectlyFromThePrimaryParent()
PatchDAOpublic java.util.List getSharedAclsThatDoNotInheritCorrectlyFromTheirDefiningAcl()
PatchDAOpublic long getCountNodesWithAspects(java.util.Set qnames)
qnames - the qnames to search forpublic java.util.List getNodesByTypeQNameId(java.lang.Long typeQNameId,
java.lang.Long minNodeId,
java.lang.Long maxNodeId)
PatchDAOtypeQNameId - - the id of the type qnameminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusivepublic java.util.List getNodesByTypeUriId(java.lang.Long nsId,
java.lang.Long minNodeId,
java.lang.Long maxNodeId)
PatchDAOnsId - - the id of the type qname uriminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusivepublic java.util.List getNodesByAspectQNameId(java.lang.Long aspectQNameId,
java.lang.Long minNodeId,
java.lang.Long maxNodeId)
PatchDAOaspectQNameId - - the id of the aspect qnameminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusivepublic java.util.List getNodesByContentPropertyMimetypeId(java.lang.Long mimetypeId,
java.lang.Long minNodeId,
java.lang.Long maxNodeId)
PatchDAOmimetypeId - - the id of the content data mimetypeminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusiveCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.