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 java.lang.String |
KEY_USAGE_CURRENT |
static java.lang.String |
KEY_USAGE_DOCUMENTS |
static java.lang.String |
KEY_USAGE_LAST_UPDATE_DOCUMENTS |
static java.lang.String |
KEY_USAGE_LAST_UPDATE_USERS |
static java.lang.String |
KEY_USAGE_ROOT |
static java.lang.String |
KEY_USAGE_USERS |
static java.lang.Long |
LOCK_TTL |
static org.alfresco.service.namespace.QName |
LOCK_USAGE |
static org.alfresco.service.namespace.QName |
LOCK_USAGE_DOCUMENTS |
static org.alfresco.service.namespace.QName |
LOCK_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
|
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 java.lang.Long LOCK_TTL
static final org.alfresco.service.namespace.QName LOCK_USAGE
static final org.alfresco.service.namespace.QName LOCK_USAGE_USERS
static final org.alfresco.service.namespace.QName LOCK_USAGE_DOCUMENTS
static final java.lang.String KEY_USAGE_ROOT
static final java.lang.String KEY_USAGE_CURRENT
static final java.lang.String KEY_USAGE_LAST_UPDATE_USERS
static final java.lang.String KEY_USAGE_USERS
static final java.lang.String KEY_USAGE_LAST_UPDATE_DOCUMENTS
static final java.lang.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 updatedRepoUsage getUsage()
pre-loaded data will be used.RepoUsageStatus getUsageStatus()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.