public interface QuotaStatsService
| Modifier and Type | Method and Description |
|---|---|
void |
activateQuotaOnUserWorkspaces(long maxQuota,
CoreSession session)
Activates the quota on user personal workspaces
|
boolean |
canSetMaxQuota(long maxQuota,
DocumentModel doc,
CoreSession session)
Test to see if quota allowed.
|
void |
computeInitialStatistics(String updaterName,
CoreSession session,
QuotaStatsInitialWork currentWorker)
Compute the initial statistics for the given @{code updaterName}.
|
String |
getProgressStatus(String updaterName,
String repositoryName)
Returns the progress status of
updaterName. |
long |
getQuotaFromParent(DocumentModel doc,
CoreSession session)
Gets the quota from the first parent where quota has been set.
|
long |
getQuotaSetOnUserWorkspaces(CoreSession session) |
List<QuotaStatsUpdater> |
getQuotaStatsUpdaters() |
void |
launchInitialStatisticsComputation(String updaterName,
String repositoryName)
Launch an asynchronously initial computation for the given
updaterName on repositoryName. |
void |
launchSetMaxQuotaOnUserWorkspaces(long maxQuota,
DocumentModel context,
CoreSession session)
Sets this maxQuota on all user workspaces
|
void |
updateStatistics(DocumentEventContext docCtx,
Event event)
Update the statistics for the given
docCtx and event. |
List<QuotaStatsUpdater> getQuotaStatsUpdaters()
void updateStatistics(DocumentEventContext docCtx, Event event) throws ClientException
ClientExceptionvoid computeInitialStatistics(String updaterName, CoreSession session, QuotaStatsInitialWork currentWorker)
void launchInitialStatisticsComputation(String updaterName, String repositoryName)
updaterName on repositoryName.String getProgressStatus(String updaterName, String repositoryName)
updaterName.long getQuotaFromParent(DocumentModel doc, CoreSession session) throws ClientException
ClientExceptionboolean canSetMaxQuota(long maxQuota,
DocumentModel doc,
CoreSession session)
throws ClientException
ClientExceptionvoid launchSetMaxQuotaOnUserWorkspaces(long maxQuota,
DocumentModel context,
CoreSession session)
throws ClientException
ClientExceptionvoid activateQuotaOnUserWorkspaces(long maxQuota,
CoreSession session)
throws ClientException
ClientExceptionlong getQuotaSetOnUserWorkspaces(CoreSession session) throws ClientException
ClientExceptionCopyright © 2014 Nuxeo SA. All rights reserved.