|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.usage.RepoUsageComponentImpl
public class RepoUsageComponentImpl
Low-level implementation to answer repository usage queries
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.alfresco.repo.usage.RepoUsageComponent |
|---|
RepoUsageComponent.RestrictionObserver |
| Field Summary |
|---|
| Fields inherited from interface org.alfresco.repo.usage.RepoUsageComponent |
|---|
KEY_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 Summary | |
|---|---|
RepoUsageComponentImpl()
Defaults |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepoUsageComponentImpl()
| Method Detail |
|---|
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)
RepoUsageComponent
observeRestrictions 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)
RepoUsageComponent
updateUsage in interface RepoUsageComponentusageType - the type of usage data that must be updated
public RepoUsage getUsage()
RepoUsageComponentpre-loaded data will be used.
getUsage in interface RepoUsageComponentpublic RepoUsageStatus getUsageStatus()
getUsageStatus in interface RepoUsageComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||