public class CliServiceContext extends Object implements ServiceContext
| Modifier and Type | Field and Description |
|---|---|
protected String |
authenticationToken |
protected AgrosystServiceConfig |
config |
protected ProjectionHelper |
projectionHelper |
protected AgrosystTopiaApplicationContext |
rootContext |
protected SecurityContext |
securityContext |
protected ServiceFactory |
serviceFactory |
protected static Long |
TEST_RUN_ID |
protected Method |
testMethod |
protected AgrosystTopiaPersistenceContext |
transaction |
| Constructor and Description |
|---|
CliServiceContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
close() |
AgrosystServiceConfig |
getConfig() |
Date |
getCurrentDate() |
AgrosystTopiaDaoSupplier |
getDaoSupplier() |
com.google.gson.Gson |
getGson() |
AgrosystTopiaPersistenceContext |
getPersistenceContext() |
AgrosystTopiaPersistenceContext |
getPersistenceContext(boolean create) |
SecurityContext |
getSecurityContext() |
SecurityContext |
getSecurityContextAsUser(String userId) |
ServiceFactory |
getServiceFactory() |
org.nuiton.topia.persistence.TopiaTransaction |
getTransaction() |
org.nuiton.topia.persistence.TopiaTransaction |
getTransaction(boolean create) |
<I> I |
newInstance(Class<I> clazz) |
<E extends AgrosystService> |
newService(Class<E> clazz) |
ServiceContext |
newServiceContext() |
void |
setAuthenticationToken(String authenticationToken) |
protected static final Long TEST_RUN_ID
protected Method testMethod
protected AgrosystTopiaPersistenceContext transaction
protected AgrosystTopiaApplicationContext rootContext
protected ServiceFactory serviceFactory
protected AgrosystServiceConfig config
protected String authenticationToken
protected SecurityContext securityContext
protected ProjectionHelper projectionHelper
public void setAuthenticationToken(String authenticationToken)
public ServiceFactory getServiceFactory()
public ServiceContext newServiceContext()
newServiceContext in interface ServiceContextpublic void close()
close in interface ServiceContextpublic Date getCurrentDate()
getCurrentDate in interface ServiceContextpublic org.nuiton.topia.persistence.TopiaTransaction getTransaction()
getTransaction in interface ServiceContextpublic org.nuiton.topia.persistence.TopiaTransaction getTransaction(boolean create)
getTransaction in interface ServiceContextpublic AgrosystTopiaDaoSupplier getDaoSupplier()
getDaoSupplier in interface ServiceContextpublic AgrosystTopiaPersistenceContext getPersistenceContext()
getPersistenceContext in interface ServiceContextpublic AgrosystTopiaPersistenceContext getPersistenceContext(boolean create)
getPersistenceContext in interface ServiceContextpublic <E extends AgrosystService> E newService(Class<E> clazz)
newService in interface ServiceContextpublic <I> I newInstance(Class<I> clazz)
newInstance in interface ServiceContextpublic AgrosystServiceConfig getConfig()
getConfig in interface ServiceContextpublic void cleanup()
public SecurityContext getSecurityContext()
getSecurityContext in interface ServiceContextpublic SecurityContext getSecurityContextAsUser(String userId)
getSecurityContextAsUser in interface ServiceContextpublic com.google.gson.Gson getGson()
getGson in interface ServiceContextCopyright © 2013–2014 Inra. All rights reserved.