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(NodeRef nodeRef)
Delete usage deltas for given nodeRef
|
Long |
getContentSizeForStoreForUser(StoreRef storeRef,
String userName)
Get user with a calculated usage
|
long |
getTotalDeltaSize(NodeRef nodeRef,
boolean removeDeltas)
Get the total delta size for a node.
|
Set<NodeRef> |
getUsageDeltaNodes() |
void |
getUserContentSizesForStore(StoreRef storeRef,
UsageDAO.MapHandler resultsCallback)
New style content urls - Iterate and sum all content node sizes for user (owner/creator)
|
void |
getUsersWithoutUsage(StoreRef storeRef,
UsageDAO.MapHandler resultsCallback)
Iterate over all person nodes to get users without a calculated usage
|
void |
getUsersWithUsage(StoreRef storeRef,
UsageDAO.MapHandler resultsCallback)
Iterate over all person nodes to get users with a calculated usage
|
void |
insertDelta(NodeRef usageNodeRef,
long deltaSize)
Create a usage delta entry.
|
void insertDelta(NodeRef usageNodeRef, long deltaSize)
deltaSize - the size changelong getTotalDeltaSize(NodeRef nodeRef, boolean removeDeltas)
nodeRef - the node referenceremoveDeltas - true to remove the deltas before returning the result.int deleteDeltas(NodeRef nodeRef)
nodeRef - NodeRefint deleteDeltas(long nodeId)
nodeId - longvoid getUserContentSizesForStore(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(StoreRef storeRef, UsageDAO.MapHandler resultsCallback)
storeRef - the store to search inresultsCallback - the callback to use while iterating over the peoplevoid getUsersWithUsage(StoreRef storeRef, UsageDAO.MapHandler resultsCallback)
storeRef - the store to search inresultsCallback - the callback to use while iterating over the peopleCopyright © 2005–2021 Alfresco Software. All rights reserved.