|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.logic.AbstractLevel2Service
ome.services.licenses.LicenseBean
@Transactional(readOnly=true) public class LicenseBean
Implementation of the ILicense
service interface. LicenseBean
primarily delegates to a LicenseStore
instance which is created from
a hard-coded class name. This class name can be changed via the
tools/licenses/build.xml script.
ILicense
Field Summary |
---|
Fields inherited from class ome.logic.AbstractLevel2Service |
---|
iQuery, iUpdate, metadata, queryFactory, sec |
Constructor Summary | |
---|---|
LicenseBean()
|
Method Summary | |
---|---|
byte[] |
acquireLicense()
See ILicense.acquireLicense() |
void |
enterMethod(byte[] token,
Principal p)
See LicenseStore#enterValid(byte[]) |
void |
exitMethod(byte[] token,
Principal p)
See LicenseStore#exitMethod(byte[]) |
long |
getAvailableLicenseCount()
See ILicense.getAvailableLicenseCount() |
long |
getLicenseTimeout()
See ILicense.getLicenseTimeout() |
Class<? extends ServiceInterface> |
getServiceInterface()
|
long |
getTotalLicenseCount()
See ILicense.getTotalLicenseCount() |
boolean |
hasLicense(byte[] token)
See LicenseStore.hasLicense(byte[]) |
boolean |
releaseLicense(byte[] token)
See ILicense.releaseLicense(byte[]) |
void |
resetLicenses()
See ILicense.resetLicenses() |
void |
setSessionManager(SessionManager sessionManager)
Starting with OmeroSessions, the LicenseStore needs to have
access more to the SessionManager rather than the
SecuritySystem since during session-creation, no user is logged
in. |
void |
setStaticSecuritySystem(SecuritySystem security)
This injector does not synchronize or check for null as specified in the LicenseStore.setStaticSecuritySystem(SecuritySystem) method, but
delegates to the STORE instance which should implement that
logic. |
Methods inherited from class ome.logic.AbstractLevel2Service |
---|
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setSecuritySystem, setUpdateService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LicenseBean()
Method Detail |
---|
public final Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface
in interface SelfConfigurableService
public void setStaticSecuritySystem(SecuritySystem security)
LicenseStore.setStaticSecuritySystem(SecuritySystem)
method, but
delegates to the STORE
instance which should implement that
logic.
setStaticSecuritySystem
in interface LicenseStore
public void setSessionManager(SessionManager sessionManager)
LicenseStore
LicenseStore
needs to have
access more to the SessionManager
rather than the
SecuritySystem
since during session-creation, no user is logged
in.
setSessionManager
in interface LicenseStore
public byte[] acquireLicense() throws NoAvailableLicensesException
ILicense.acquireLicense()
acquireLicense
in interface ILicense
NoAvailableLicensesException
public long getAvailableLicenseCount()
ILicense.getAvailableLicenseCount()
getAvailableLicenseCount
in interface ILicense
public long getTotalLicenseCount()
ILicense.getTotalLicenseCount()
getTotalLicenseCount
in interface ILicense
public long getLicenseTimeout()
ILicense.getLicenseTimeout()
getLicenseTimeout
in interface ILicense
public boolean releaseLicense(byte[] token) throws InvalidLicenseException
ILicense.releaseLicense(byte[])
releaseLicense
in interface ILicense
InvalidLicenseException
public void resetLicenses()
ILicense.resetLicenses()
resetLicenses
in interface ILicense
public boolean hasLicense(byte[] token)
LicenseStore.hasLicense(byte[])
hasLicense
in interface LicenseStore
public void enterMethod(byte[] token, Principal p)
LicenseStore#enterValid(byte[])
enterMethod
in interface LicenseStore
public void exitMethod(byte[] token, Principal p)
LicenseStore#exitMethod(byte[])
exitMethod
in interface LicenseStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.