public interface PatchDAO
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PatchDAO.StringHandler
A callback handler for iterating over the string results
|
| Modifier and Type | Method and Description |
|---|---|
int |
addSizeCurrentProp()
Add a cm:sizeCurrent property to person nodes that don't have it.
|
int |
deleteAclMembersForAcls(java.util.List aclIds) |
int |
deleteAcls(java.util.List aclIds) |
int |
deleteDanglingAces() |
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
|
java.util.List |
getAuthoritiesWithNonUtf8Crcs() |
long |
getAVMNodesCountWhereNewInStore() |
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
|
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)
|
java.util.List |
getEmptyGUIDS(int count) |
long |
getMaxAclId()
Get the max acl id
|
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 uriId,
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)
|
java.util.List |
getNullVersionLayeredDirectories(int count) |
java.util.List |
getNullVersionLayeredFiles(int count) |
java.util.List |
getOldAttrCustomNames()
Get custom global attribute names (if any)
|
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 |
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 |
migrateOldAttrDropTables()
Drop old attribute alf_*attribute* tables
|
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)
|
java.util.List |
selectAllAclIds() |
java.util.List |
selectNonDanglingAclIds() |
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). |
int |
updateAVMNodesNullifyAcl(java.util.List nodeIds) |
int |
updateAVMNodesSetAcl(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.
|
long getAVMNodesCountWhereNewInStore()
java.util.List getEmptyGUIDS(int count)
java.util.List getNullVersionLayeredDirectories(int count)
java.util.List getNullVersionLayeredFiles(int count)
long getMaxAvmNodeID()
java.util.List getAvmNodesWithOldContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
int updateAVMNodesNullifyAcl(java.util.List nodeIds)
int updateAVMNodesSetAcl(long aclId,
java.util.List nodeIds)
long getMaxAdmNodeID()
void updateAdmV31ContentProperties(java.lang.Long minNodeId,
java.lang.Long maxNodeId)
ContentData.toString())
to the new V3.2 format (ID based storage using ContentDataDAO).minNodeId - the inclusive node ID to limit the updates tomaxNodeId - the exclusive node ID to limit the updates toint updateContentMimetypeIds(java.lang.Long oldMimetypeId,
java.lang.Long newMimetypeId)
oldMimetypeId - the ID to search fornewMimetypeId - the ID to change toint addSizeCurrentProp()
long getMaxAclId()
long getDmNodeCount()
long getDmNodeCountWithNewACLs(java.lang.Long above)
above - java.util.List selectAllAclIds()
java.util.List selectNonDanglingAclIds()
int deleteDanglingAces()
int deleteAcls(java.util.List aclIds)
int deleteAclMembersForAcls(java.util.List aclIds)
java.util.List getAuthoritiesWithNonUtf8Crcs()
int getChildAssocCount()
java.lang.Long getMaxChildAssocId()
java.util.List getChildAssocsForCrcFix(java.lang.Long minAssocId,
java.lang.Long stopAtAssocId,
long rangeMultiplier,
long maxIdRange,
int maxResults)
]]>
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 fetchint updateChildAssocCrc(java.lang.Long assocId,
java.lang.Long childNodeNameCrc,
java.lang.Long qnameCrc)
java.util.List getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName,
java.lang.String namePattern)
typeQName - the node typenamePattern - the SQL LIKE patternvoid migrateOldAttrTenants(org.apache.ibatis.session.ResultHandler resultHandler)
void migrateOldAttrAVMLocks(org.apache.ibatis.session.ResultHandler resultHandler)
void migrateOldAttrPropertyBackedBeans(org.apache.ibatis.session.ResultHandler resultHandler)
void migrateOldAttrChainingURS(org.apache.ibatis.session.ResultHandler resultHandler)
void migrateOldAttrDropTables()
java.util.List getOldAttrCustomNames()
java.util.List getSharedAclsThatDoNotInheritCorrectlyFromThePrimaryParent()
java.util.List getDefiningAclsThatDoNotInheritCorrectlyFromThePrimaryParent()
java.util.List getAclsThatInheritFromNonPrimaryParent()
java.util.List getAclsThatInheritWithInheritanceUnset()
java.util.List getSharedAclsThatDoNotInheritCorrectlyFromTheirDefiningAcl()
long getCountNodesWithAspects(java.util.Set qnames)
qnames - the qnames to search forjava.util.List getNodesByTypeQNameId(java.lang.Long typeQNameId,
java.lang.Long minNodeId,
java.lang.Long maxNodeId)
typeQNameId - - the id of the type qnameminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusivejava.util.List getNodesByTypeUriId(java.lang.Long uriId,
java.lang.Long minNodeId,
java.lang.Long maxNodeId)
uriId - - the id of the type qname uriminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusivejava.util.List getNodesByAspectQNameId(java.lang.Long aspectQNameId,
java.lang.Long minNodeId,
java.lang.Long maxNodeId)
aspectQNameId - - the id of the aspect qnameminNodeId - - min node id in the result set - inclusivemaxNodeId - - max node id in the result set - exclusivejava.util.List getNodesByContentPropertyMimetypeId(java.lang.Long mimetypeId,
java.lang.Long minNodeId,
java.lang.Long maxNodeId)
mimetypeId - - 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.