public interface RepoUsageComponent
Modifier and Type | Interface and Description |
---|---|
static interface |
RepoUsageComponent.RestrictionObserver
Interface for observers of repository restriction changes
|
Modifier and Type | Field and Description |
---|---|
static String |
KEY_USAGE_CURRENT |
static String |
KEY_USAGE_DOCUMENTS |
static String |
KEY_USAGE_LAST_UPDATE_DOCUMENTS |
static String |
KEY_USAGE_LAST_UPDATE_USERS |
static String |
KEY_USAGE_ROOT |
static String |
KEY_USAGE_USERS |
Modifier and Type | Method and Description |
---|---|
RepoUsage |
getRestrictions() |
RepoUsage |
getUsage()
Get the current repository usage data.
|
RepoUsageStatus |
getUsageStatus()
Calculate and retrieve full status alerts based on the usage and license expiry state.
|
void |
observeRestrictions(RepoUsageComponent.RestrictionObserver observer)
Observe when restrictions change
|
boolean |
resetUsage(RepoUsage.UsageType usageType)
Force a reset of the current repository usage.
|
void |
setRestrictions(RepoUsage restrictions)
Record changes to the restrictions imposed on the repository.
|
boolean |
updateUsage(RepoUsage.UsageType usageType)
Force an update of the current repository usage.
|
static final String KEY_USAGE_ROOT
static final String KEY_USAGE_CURRENT
static final String KEY_USAGE_LAST_UPDATE_USERS
static final String KEY_USAGE_USERS
static final String KEY_USAGE_LAST_UPDATE_DOCUMENTS
static final String KEY_USAGE_DOCUMENTS
void observeRestrictions(RepoUsageComponent.RestrictionObserver observer)
void setRestrictions(RepoUsage restrictions)
current restrictions
have changed.restrictions
- the new restrictions imposed on the repositoryRepoUsage getRestrictions()
boolean updateUsage(RepoUsage.UsageType usageType)
usageType
- the type of usage data that must be updatedboolean resetUsage(RepoUsage.UsageType usageType)
usageType
- the type of usage data that must be resetRepoUsage getUsage()
RepoUsageStatus getUsageStatus()
Copyright © 2005–2017 Alfresco Software. All rights reserved.