org.bonitasoft.engine.api.impl
public class ServerAPIImpl extends Object implements ServerAPI
| 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) |
protected Class<?>[] |
getParameterTypes(List<String> classNameParameters) |
protected Object |
invokeAPI(Object[] parametersValues,
Object apiImpl,
Method method) |
protected Object |
invokeAPIInTransaction(Object[] parametersValues,
Object apiImpl,
Method method,
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,
org.bonitasoft.engine.api.impl.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 void checkMethodAccessibility(Object apiImpl, String apiInterfaceName, Method method, Session session)
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) throws Throwable
Throwableprotected org.bonitasoft.engine.transaction.UserTransactionService selectUserTransactionService(Session session, org.bonitasoft.engine.api.impl.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 © 2014 Bonitasoft S.A.. All rights reserved.