public class DefaultAccountingService extends java.lang.Object implements uk.ac.ed.epcc.webapp.Contexed, AccountingService
| Constructor and Description |
|---|
DefaultAccountingService(uk.ac.ed.epcc.webapp.AppContext c) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allow(uk.ac.ed.epcc.webapp.session.SessionService user,
RecordSelector sel)
Does the User have access to all the specified records
|
void |
cleanup() |
DefaultAccountingService |
copy(uk.ac.ed.epcc.webapp.AppContext p) |
uk.ac.ed.epcc.webapp.AppContext |
getContext() |
java.lang.Class<? super AccountingService> |
getType() |
UsageManager |
getUsageManager()
Get the default
UsageManager |
UsageManager |
getUsageManager(java.lang.String name)
Get a named non-default
UsageManager |
UsageProducer |
getUsageProducer()
Get the default
UsageProducer
Usually this will return the same as AccountingService.getUsageManager() |
UsageProducer |
getUsageProducer(java.lang.String name)
Get a named
UsageProducer
A name of the format manager:producer will select a specific
producer from a named manager. |
public DefaultAccountingService(uk.ac.ed.epcc.webapp.AppContext c)
public UsageManager getUsageManager()
AccountingServiceUsageManagergetUsageManager in interface AccountingServiceUsageManagerpublic UsageManager getUsageManager(java.lang.String name)
AccountingServiceUsageManagergetUsageManager in interface AccountingServiceUsageManagerpublic UsageProducer getUsageProducer()
AccountingServiceUsageProducer
Usually this will return the same as AccountingService.getUsageManager()getUsageProducer in interface AccountingServiceUsageProducerpublic UsageProducer getUsageProducer(java.lang.String name)
AccountingServiceUsageProducer
A name of the format manager:producer will select a specific
producer from a named manager. A bare name may return a manager or
generate the UsageProducer directly using the tag as a name.getUsageProducer in interface AccountingServiceUsageProducerpublic boolean allow(uk.ac.ed.epcc.webapp.session.SessionService user,
RecordSelector sel)
allow in interface AccountingServiceuser - AppUser making requestsel - RecordSelector requestedpublic uk.ac.ed.epcc.webapp.AppContext getContext()
getContext in interface uk.ac.ed.epcc.webapp.Contexedpublic void cleanup()
cleanup in interface uk.ac.ed.epcc.webapp.AppContextService<AccountingService>public DefaultAccountingService copy(uk.ac.ed.epcc.webapp.AppContext p) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic java.lang.Class<? super AccountingService> getType()
getType in interface uk.ac.ed.epcc.webapp.AppContextService<AccountingService>