Package org.nuxeo.ecm.quota
Interface QuotaStatsService
- All Known Implementing Classes:
QuotaStatsServiceImpl
public interface QuotaStatsService
Service used to compute quota and statistics on documents.
- Since:
- 5.5
- Author:
- Thomas Roger
-
Method Summary
Modifier and TypeMethodDescriptionvoidactivateQuotaOnUserWorkspaces(long maxQuota, CoreSession session) Activates the quota on user personal workspacesbooleancanSetMaxQuota(long maxQuota, DocumentModel doc, CoreSession session) Test to see if quota allowed.default voidcomputeInitialStatistics(String updaterName, CoreSession session, QuotaStatsInitialWork currentWorker) Deprecated.since 10.1, use other signaturevoidcomputeInitialStatistics(String updaterName, CoreSession session, QuotaStatsInitialWork currentWorker, String path) Compute the initial statistics for the given @{code updaterName} fordocPath.getProgressStatus(String updaterName, String repositoryName) Returns the progress status ofupdaterName.longgetQuotaFromParent(DocumentModel doc, CoreSession session) Gets the quota from the first parent where quota has been set.longgetQuotaSetOnUserWorkspaces(CoreSession session) default voidlaunchInitialStatisticsComputation(String updaterName, String repositoryName) Deprecated.since 10.1, use other signaturevoidlaunchInitialStatisticsComputation(String updaterName, String repositoryName, String path) Launch an asynchronously initial computation for the givenupdaterNameonrepositoryNamefordocPath.voidlaunchSetMaxQuotaOnUserWorkspaces(long maxQuota, DocumentModel context, CoreSession session) Sets this maxQuota on all user workspacesvoidupdateStatistics(DocumentEventContext docCtx, Event event) Update the statistics for the givendocCtxandevent.
-
Method Details
-
getQuotaStatsUpdaters
List<QuotaStatsUpdater> getQuotaStatsUpdaters() -
updateStatistics
-
computeInitialStatistics
@Deprecated default void computeInitialStatistics(String updaterName, CoreSession session, QuotaStatsInitialWork currentWorker) Deprecated.since 10.1, use other signatureCompute the initial statistics for the given @{code updaterName}. -
computeInitialStatistics
void computeInitialStatistics(String updaterName, CoreSession session, QuotaStatsInitialWork currentWorker, String path) Compute the initial statistics for the given @{code updaterName} fordocPath.- Since:
- 10.1
-
launchInitialStatisticsComputation
@Deprecated default void launchInitialStatisticsComputation(String updaterName, String repositoryName) Deprecated.since 10.1, use other signatureLaunch an asynchronously initial computation for the givenupdaterNameonrepositoryName. -
launchInitialStatisticsComputation
Launch an asynchronously initial computation for the givenupdaterNameonrepositoryNamefordocPath.- Since:
- 10.1
-
getProgressStatus
Returns the progress status ofupdaterName. -
getQuotaFromParent
Gets the quota from the first parent where quota has been set. Returns -1 if no quota has been set. For user workspaces, only the first parent is investigated- Since:
- 5.7
-
canSetMaxQuota
Test to see if quota allowed. Skip user worskpaces, where validation rules don't apply.- Since:
- 5.7
-
launchSetMaxQuotaOnUserWorkspaces
Sets this maxQuota on all user workspaces- Since:
- 5.7
-
activateQuotaOnUserWorkspaces
Activates the quota on user personal workspaces- Since:
- 5.7
-
getQuotaSetOnUserWorkspaces
- Since:
- 5.7
-