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. 
 | 
default void | 
computeInitialStatistics(String updaterName,
                        CoreSession session,
                        QuotaStatsInitialWork currentWorker)
Deprecated. 
 
since 10.1, use other signature 
 | 
void | 
computeInitialStatistics(String updaterName,
                        CoreSession session,
                        QuotaStatsInitialWork currentWorker,
                        String path)
Compute the initial statistics for the given @{code updaterName} for  
docPath. | 
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()  | 
default void | 
launchInitialStatisticsComputation(String updaterName,
                                  String repositoryName)
Deprecated. 
 
since 10.1, use other signature 
 | 
void | 
launchInitialStatisticsComputation(String updaterName,
                                  String repositoryName,
                                  String path)
Launch an asynchronously initial computation for the given  
updaterName on repositoryName
 for docPath. | 
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)
@Deprecated default void computeInitialStatistics(String updaterName, CoreSession session, QuotaStatsInitialWork currentWorker)
void computeInitialStatistics(String updaterName, CoreSession session, QuotaStatsInitialWork currentWorker, String path)
docPath.@Deprecated default void launchInitialStatisticsComputation(String updaterName, String repositoryName)
updaterName on repositoryName.void launchInitialStatisticsComputation(String updaterName, String repositoryName, String path)
updaterName on repositoryName
 for docPath.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 © 2019 Nuxeo. All rights reserved.