|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PatchDAO
Additional DAO services for patches
Nested Class Summary | |
---|---|
static interface |
PatchDAO.StringHandler
A callback handler for iterating over the string results |
Method Summary | |
---|---|
int |
deleteAclMembersForAcls(java.util.List aclIds)
|
int |
deleteAcls(java.util.List aclIds)
|
void |
deleteAllOldAttrs()
Delete all old attributes (from alf_*attribute* tables) |
int |
deleteDanglingAces()
|
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 |
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 |
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) |
void |
getUsersWithoutUsageProp(org.alfresco.service.cmr.repository.StoreRef storeRef,
PatchDAO.StringHandler handler)
Iterate over all person nodes with missing usage property (for one-off patch) |
void |
migrateOldAttrAVMLocks(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
Migrate old AVM Lock attributes (if any) |
void |
migrateOldAttrChainingURS(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
Migrate old Chaining User Registry Synchronizer attributes (if any) |
void |
migrateOldAttrPropertyBackedBeans(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
Migrate old Property-Backed Bean attributes (if any) |
void |
migrateOldAttrTenants(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
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. |
Method Detail |
---|
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 to
void getUsersWithoutUsageProp(org.alfresco.service.cmr.repository.StoreRef storeRef, PatchDAO.StringHandler handler)
storeRef
- the store to search inhandler
- the callback to use while iterating over the peoplelong 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 fetch
int 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 pattern
void migrateOldAttrTenants(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
void migrateOldAttrAVMLocks(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
void migrateOldAttrPropertyBackedBeans(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
void migrateOldAttrChainingURS(com.ibatis.sqlmap.client.event.RowHandler rowHandler)
java.util.List getOldAttrCustomNames()
void deleteAllOldAttrs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |