|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LicenseStore
Provides local extensions of ILicense
for validating license tokens
and tracking license timeouts.
Method Summary | |
---|---|
void |
enterMethod(byte[] token,
Principal p)
Increments the number of currently active methods associated with a single license and prevents timeouts during the method call. |
void |
exitMethod(byte[] token,
Principal p)
Decrements the number of active methods associated with a single license and timestamps the last use of the license. |
boolean |
hasLicense(byte[] token)
Checks for the validity of a token and that the Not responsible for timeouts. |
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 securitySystem)
Injector which allows the central SecuritySystem instance to be
injected in the store post-constructor (since the
main instance may be constructed statically. |
Methods inherited from interface ome.services.licenses.ILicense |
---|
acquireLicense, getAvailableLicenseCount, getLicenseTimeout, getTotalLicenseCount, releaseLicense, resetLicenses |
Method Detail |
---|
void enterMethod(byte[] token, Principal p) throws InvalidLicenseException, LicenseTimeout
hasLicense(byte[])
within its synchronization boundaries,
also responsible for timeouts.
InvalidLicenseException
LicenseTimeout
void exitMethod(byte[] token, Principal p)
boolean hasLicense(byte[] token) throws InvalidLicenseException
InvalidLicenseException
void setStaticSecuritySystem(SecuritySystem securitySystem)
SecuritySystem
instance to be
injected in the store
post-constructor (since the
main instance may be constructed statically.
Implementation may want to prevent the setter from being called multiple
times, and may want to synchronize access for the same reason.
ome.logic.AbstractBean
of LicenseBean
which
will hopefully go away in the future.void setSessionManager(SessionManager sessionManager)
LicenseStore
needs to have
access more to the SessionManager
rather than the
SecuritySystem
since during session-creation, no user is logged
in.
|
||||||||||
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.