public class ServerAPIImpl extends Object implements ServerAPI
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ServerAPIImpl.SessionType |
| Modifier and Type | Field and Description |
|---|---|
protected APIAccessResolver |
accessResolver |
| Constructor and Description |
|---|
ServerAPIImpl() |
ServerAPIImpl(boolean cleanSession) |
ServerAPIImpl(boolean cleanSession,
APIAccessResolver accessResolver)
For Test Mock usage
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkMethodAccessibility(Object apiImpl,
String apiInterfaceName,
Method method,
Session session,
boolean isInTransaction) |
protected Class<?>[] |
getParameterTypes(List<String> classNameParameters) |
protected ServerAPIImpl.SessionType |
getSessionType(Session session) |
protected Object |
invokeAPI(Object[] parametersValues,
Object apiImpl,
Method method) |
protected Object |
invokeAPIInTransaction(Object[] parametersValues,
Object apiImpl,
Method method,
Session session,
String apiInterfaceName) |
protected Object |
invokeAPIOutsideTransaction(Object[] parametersValues,
Object apiImpl,
Method method,
String apiInterfaceName,
Session session) |
Object |
invokeMethod(Map<String,Serializable> options,
String apiInterfaceName,
String methodName,
List<String> classNameParameters,
Object[] parametersValues) |
protected boolean |
isNodeInAValidStateFor(Method method) |
protected void |
logNodeNotStartedMessage(String apiInterfaceName,
String methodName) |
protected void |
logTechnicalErrorMessage(String message) |
protected org.bonitasoft.engine.transaction.UserTransactionService |
selectUserTransactionService(Session session,
ServerAPIImpl.SessionType sessionType) |
protected final APIAccessResolver accessResolver
public ServerAPIImpl()
public ServerAPIImpl(boolean cleanSession)
public ServerAPIImpl(boolean cleanSession,
APIAccessResolver accessResolver)
cleanSession - accessResolver - public Object invokeMethod(Map<String,Serializable> options, String apiInterfaceName, String methodName, List<String> classNameParameters, Object[] parametersValues) throws ServerWrappedException
invokeMethod in interface ServerAPIServerWrappedExceptionprotected ServerAPIImpl.SessionType getSessionType(Session session)
protected Object invokeAPIOutsideTransaction(Object[] parametersValues, Object apiImpl, Method method, String apiInterfaceName, Session session) throws Throwable
Throwableprotected void checkMethodAccessibility(Object apiImpl, String apiInterfaceName, Method method, Session session, boolean isInTransaction)
protected void logNodeNotStartedMessage(String apiInterfaceName, String methodName)
protected void logTechnicalErrorMessage(String message)
protected boolean isNodeInAValidStateFor(Method method)
protected Object invokeAPIInTransaction(Object[] parametersValues, Object apiImpl, Method method, Session session, String apiInterfaceName) throws Throwable
Throwableprotected org.bonitasoft.engine.transaction.UserTransactionService selectUserTransactionService(Session session, ServerAPIImpl.SessionType sessionType) throws BonitaHomeNotSetException, InstantiationException, IllegalAccessException, ClassNotFoundException, IOException, BonitaHomeConfigurationException
protected Object invokeAPI(Object[] parametersValues, Object apiImpl, Method method) throws Throwable
Throwableprotected Class<?>[] getParameterTypes(List<String> classNameParameters) throws ClassNotFoundException
ClassNotFoundExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.