|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.logic.HardWiredInterceptor
ome.services.licenses.LicenseWiring
public class LicenseWiring
Responsible for enforcing a generic licensing policy:
ILicense
are allowed.LicensedPrincipal
is required.token
must be valid, as
defined by LicenseStore.hasLicense(byte[])
.HardWiredInterceptor
subclass gets compiled in via the build
system.
HardWiredInterceptor
,
ome.tools.spring.AOPAdapter
Constructor Summary | |
---|---|
LicenseWiring()
|
Method Summary | |
---|---|
String |
getName()
Can be implemented by all subclasses, so that they can configure themselves in HardWiredInterceptor.selfConfigure(OmeroContext) . |
Object |
handleILicense(MethodInvocation mi,
Principal p)
This method implements special handling for calls to ILicense. |
Object |
invoke(MethodInvocation mi)
Interceptor method which enforces the LicenseWiring policy. |
Methods inherited from class ome.logic.HardWiredInterceptor |
---|
configure, getPrincipal, getServiceFactory, hasPassword, initializeUserAttributes, parse, selfConfigure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LicenseWiring()
Method Detail |
---|
public String getName()
HardWiredInterceptor
HardWiredInterceptor.selfConfigure(OmeroContext)
. If the method returns null,
HardWiredInterceptor.selfConfigure(OmeroContext)
will not run.
getName
in class HardWiredInterceptor
public Object handleILicense(MethodInvocation mi, Principal p) throws Throwable
Throwable
public Object invoke(MethodInvocation mi) throws Throwable
LicenseWiring
policy.
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.