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  updaterNameonrepositoryName. | 
| 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  docCtxandevent. | 
List<QuotaStatsUpdater> getQuotaStatsUpdaters()
void updateStatistics(DocumentEventContext docCtx, Event event)
void 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)
boolean canSetMaxQuota(long maxQuota, DocumentModel doc, CoreSession session)
void launchSetMaxQuotaOnUserWorkspaces(long maxQuota, DocumentModel context, CoreSession session)
void activateQuotaOnUserWorkspaces(long maxQuota, CoreSession session)
long getQuotaSetOnUserWorkspaces(CoreSession session)
Copyright © 2017 Nuxeo. All rights reserved.