public interface UsageDAO
Modifier and Type | Interface and Description |
---|---|
static interface |
UsageDAO.MapHandler
A callback handler for iterating over the Map results
|
static interface |
UsageDAO.StringHandler
A callback handler for iterating over the String results
|
Modifier and Type | Method and Description |
---|---|
int |
deleteDeltas(long nodeId)
Delete usage deltas for given node entity id
|
int |
deleteDeltas(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Delete usage deltas for given nodeRef
|
Long |
getContentSizeForStoreForUser(org.alfresco.service.cmr.repository.StoreRef storeRef,
String userName)
Get user with a calculated usage
|
long |
getTotalDeltaSize(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean removeDeltas)
Get the total delta size for a node.
|
Set<org.alfresco.service.cmr.repository.NodeRef> |
getUsageDeltaNodes() |
void |
getUserContentSizesForStore(org.alfresco.service.cmr.repository.StoreRef storeRef,
UsageDAO.MapHandler resultsCallback)
New style content urls - Iterate and sum all content node sizes for user (owner/creator)
|
void |
getUsersWithoutUsage(org.alfresco.service.cmr.repository.StoreRef storeRef,
UsageDAO.MapHandler resultsCallback)
Iterate over all person nodes to get users without a calculated usage
|
void |
getUsersWithUsage(org.alfresco.service.cmr.repository.StoreRef storeRef,
UsageDAO.MapHandler resultsCallback)
Iterate over all person nodes to get users with a calculated usage
|
void |
insertDelta(org.alfresco.service.cmr.repository.NodeRef usageNodeRef,
long deltaSize)
Create a usage delta entry.
|
void insertDelta(org.alfresco.service.cmr.repository.NodeRef usageNodeRef, long deltaSize)
deltaSize
- the size changelong getTotalDeltaSize(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean removeDeltas)
nodeRef
- the node referenceremoveDeltas
- true to remove the deltas before returning the result.Set<org.alfresco.service.cmr.repository.NodeRef> getUsageDeltaNodes()
int deleteDeltas(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefint deleteDeltas(long nodeId)
nodeId
- longvoid getUserContentSizesForStore(org.alfresco.service.cmr.repository.StoreRef storeRef, UsageDAO.MapHandler resultsCallback)
storeRef
- the store to search inresultsCallback
- the callback to use while iterating over the content sizes (one row per user)void getUsersWithoutUsage(org.alfresco.service.cmr.repository.StoreRef storeRef, UsageDAO.MapHandler resultsCallback)
storeRef
- the store to search inresultsCallback
- the callback to use while iterating over the peoplevoid getUsersWithUsage(org.alfresco.service.cmr.repository.StoreRef storeRef, UsageDAO.MapHandler resultsCallback)
storeRef
- the store to search inresultsCallback
- the callback to use while iterating over the peopleCopyright © 2005–2017 Alfresco Software. All rights reserved.