public class RepoUsageComponentImpl extends java.lang.Object implements RepoUsageComponent
RepoUsageComponent.RestrictionObserverKEY_USAGE_CURRENT, KEY_USAGE_DOCUMENTS, KEY_USAGE_LAST_UPDATE_DOCUMENTS, KEY_USAGE_LAST_UPDATE_USERS, KEY_USAGE_ROOT, KEY_USAGE_USERS, LOCK_TTL, LOCK_USAGE, LOCK_USAGE_DOCUMENTS, LOCK_USAGE_USERS| Constructor and Description |
|---|
RepoUsageComponentImpl()
Defaults
|
| 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 |
init()
Check that all properties are properly set
|
void |
observeRestrictions(RepoUsageComponent.RestrictionObserver observer)
Observe when restrictions change
|
void |
setAttributeService(AttributeService attributeService) |
void |
setAuthorityService(AuthorityService authorityService) |
void |
setCannedQueryDAO(CannedQueryDAO cannedQueryDAO) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setJobLockService(JobLockService jobLockService) |
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setRestrictions(RepoUsage restrictions)
Record changes to the restrictions imposed on the repository.
|
void |
setTransactionService(TransactionService transactionService) |
boolean |
updateUsage(RepoUsage.UsageType usageType)
Force an update of the current repository usage.
|
public void setTransactionService(TransactionService transactionService)
transactionService - service that tells if the server is read-only or notpublic void setAuthorityService(AuthorityService authorityService)
authorityService - service to check for admin rightspublic void setAttributeService(AttributeService attributeService)
attributeService - service used to store usage attributespublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - component to resolve types and subtypespublic void setJobLockService(JobLockService jobLockService)
jobLockService - service to prevent duplicate work when updating usagespublic void setCannedQueryDAO(CannedQueryDAO cannedQueryDAO)
cannedQueryDAO - DAO for executing queriespublic void setQnameDAO(QNameDAO qnameDAO)
qnameDAO - DAO for getting IDs of QNamespublic void observeRestrictions(RepoUsageComponent.RestrictionObserver observer)
RepoUsageComponentobserveRestrictions in interface RepoUsageComponentpublic void init()
public void setRestrictions(RepoUsage restrictions)
RepoUsageComponentcurrent restrictions
have changed.setRestrictions in interface RepoUsageComponentrestrictions - the new restrictions imposed on the repositorypublic RepoUsage getRestrictions()
getRestrictions in interface RepoUsageComponentpublic boolean updateUsage(RepoUsage.UsageType usageType)
RepoUsageComponentupdateUsage in interface RepoUsageComponentusageType - the type of usage data that must be updatedpublic RepoUsage getUsage()
RepoUsageComponentpre-loaded data will be used.getUsage in interface RepoUsageComponentpublic RepoUsageStatus getUsageStatus()
getUsageStatus in interface RepoUsageComponentCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.