|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.system.ServiceFactory
public class ServiceFactory
Entry point for all client calls. Provides methods to obtain proxies for all remote facades.
OmeroContext
Field Summary | |
---|---|
protected OmeroContext |
ctx
the context instance which this
ServiceFactory uses to look up all of its state. |
Constructor Summary | |
---|---|
ServiceFactory()
default constructor which obtains the global static client context from
OmeroContext . |
|
ServiceFactory(Login login)
constructor which obtains a new (non-static) client context , passing
in the Properties representation of the Login for
configuration. |
|
ServiceFactory(OmeroContext context)
constructor which uses the provided OmeroContext for all
loookups. |
|
ServiceFactory(Properties properties)
constructor which obtains a new client context , passing
in the provided properties for configuration. |
|
ServiceFactory(Server server)
constructor which obtains a new (non-static) client context , passing
in the Properties representation of the Server for
configuration. |
|
ServiceFactory(Server server,
Login login)
constructor which obtains a new (non-static) client context , passing
in the Properties representation of both the Server and
the Login for configuration. |
|
ServiceFactory(String contextName)
constructor which finds the global static OmeroContext with the
given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OmeroContext ctx
context instance
which this
ServiceFactory
uses to look up all of its state.
Constructor Detail |
---|
public ServiceFactory()
client context
from
OmeroContext
. This can be done manually by calling
OmeroContext.getClientContext()
OmeroContext.CLIENT_CONTEXT
,
OmeroContext.getClientContext()
public ServiceFactory(Login login)
client context
, passing
in the Properties
representation of the Login
for
configuration.
Login.asProperties()
,
ServiceFactory(Properties)
public ServiceFactory(Server server)
client context
, passing
in the Properties
representation of the Server
for
configuration.
Server.asProperties()
,
ServiceFactory(Properties)
public ServiceFactory(Server server, Login login)
client context
, passing
in the Properties
representation of both the Server
and
the Login
for configuration.
Login.asProperties()
,
ServiceFactory(Properties)
public ServiceFactory(Properties properties)
client context
, passing
in the provided properties for configuration.
OmeroContext.getClientContext(Properties)
public ServiceFactory(OmeroContext context)
OmeroContext
for all
loookups.
public ServiceFactory(String contextName)
OmeroContext
with the
given name.
OmeroContext.CLIENT_CONTEXT
,
OmeroContext#INTERNAL_CONTEXT
,
OmeroContext.MANAGED_CONTEXT
Method Detail |
---|
@Deprecated public OmeroContext getContext()
public void setUmask(ome.model.internal.Permissions mask)
Principal
instance which will be passed to
the server-side on each invocation.
public IAdmin getAdminService()
public IAnalysis getAnalysisService()
public IConfig getConfigService()
public IContainer getContainerService()
public IDelete getDeleteService()
public ILdap getLdapService()
public IPixels getPixelsService()
public IProjection getProjectionService()
public IQuery getQueryService()
public IShare getShareService()
public ITypes getTypesService()
public IUpdate getUpdateService()
public IRenderingSettings getRenderingSettingsService()
public IRepositoryInfo getRepositoryInfoService()
public IMetadata getMetadataService()
public JobHandle createJobHandle()
JobHandle
proxy. This proxy will have to be
initialized using JobHandle.attach(long)
or
JobHandle.submit(ome.model.jobs.Job)
.
public RawPixelsStore createRawPixelsStore()
RawPixelsStore
proxy. This proxy will have to be
initialized using RawPixelsStore#setPixelsId(long)
public RawFileStore createRawFileStore()
RawFileStore
proxy. This proxy will have to be
initialized using RawFileStore.setFileId(long)
public RenderingEngine createRenderingEngine()
RenderingEngine
proxy. This proxy will have to be
initialized using RenderingEngine.lookupPixels(long)
and
RenderingEngine.load()
public Search createSearchService()
Search
proxy.
public ThumbnailStore createThumbnailService()
ThumbnailStore
proxy. This proxy will have to be
initialized using ThumbnailStore.setPixelsId(long)
public ISession getSessionService()
public ome.model.meta.Session getSession() throws ome.conditions.ApiUsageException
ome.conditions.ApiUsageException
public void setSession(ome.model.meta.Session session) throws ome.conditions.ApiUsageException
ome.conditions.ApiUsageException
public void closeSession() throws ome.conditions.ApiUsageException
ome.conditions.ApiUsageException
protected SessionInitializer getSessionInitializer()
public <T extends ServiceInterface> T getServiceByClass(Class<T> klass)
prefix
and
the class name of the service type.
protected String getPrefix()
getServiceByClass(Class)
to find the correct service
proxy in the ctx
String
, usually "internal-" or "managed-"protected String getDefaultContext()
context
name is provided to the
constructor. Subclasses can override to allow for easier creation.
|
||||||||||
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.