/** * @return the {@link PlatformLoginAPI} * @throws BonitaHomeNotSetException * @throws ServerAPIException * @throws UnknownAPITypeException */ public static PlatformLoginAPI getPlatformLoginAPI() throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { return getAPI(PlatformLoginAPI.class); }
protected PlatformAPI getPlatformAPI(PlatformSession session) throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { return PlatformAPIAccessor.getPlatformAPI(session); }
public PlatformLoginAPI getPlatformLoginAPI() throws BonitaException { return PlatformAPIAccessor.getPlatformLoginAPI(); }
private static ServerAPI getServerAPI() throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { return PlatformAPIAccessor.getServerAPI(); }
private static ServerAPI getServerAPI() throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { return PlatformAPIAccessor.getServerAPI(); }
static <T> T getAPI(final Class<T> clazz, final PlatformSession session) throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { final ServerAPI serverAPI = getServerAPI(); final ClientInterceptor sessionInterceptor = new ClientInterceptor(clazz.getName(), serverAPI, session); return (T) Proxy.newProxyInstance(APIAccessor.class.getClassLoader(), new Class[] { clazz }, sessionInterceptor); }
/** * @return the {@link PlatformLoginAPI} * @throws BonitaHomeNotSetException * @throws ServerAPIException * @throws UnknownAPITypeException */ public static PlatformLoginAPI getPlatformLoginAPI() throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { return getAPI(PlatformLoginAPI.class); }
public PlatformAPI getPlatformAPI(final PlatformSession session) throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { return PlatformAPIAccessor.getPlatformAPI(session); }
protected PlatformLoginAPI getPlatformLoginAPI() throws BonitaException { return PlatformAPIAccessor.getPlatformLoginAPI(); }
static <T> T getAPI(final Class<T> clazz) throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { final ServerAPI serverAPI = getServerAPI(); final ClientInterceptor sessionInterceptor = new ClientInterceptor(clazz.getName(), serverAPI); return (T) Proxy.newProxyInstance(APIAccessor.class.getClassLoader(), new Class[] { clazz }, sessionInterceptor); }
/** * @param session * a {@link PlatformSession} created using the {@link PlatformLoginAPI} * @return * the {@link PlatformAPI} * @throws InvalidSessionException * @throws BonitaHomeNotSetException * @throws ServerAPIException * @throws UnknownAPITypeException */ public static PlatformAPI getPlatformAPI(final PlatformSession session) throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { return getAPI(PlatformAPI.class, session); }
protected void stopAndStartPlatform() throws BonitaException { final PlatformSession loginPlatform = loginOnPlatform(); final PlatformAPI platformAPI = PlatformAPIAccessor.getPlatformAPI(loginPlatform); platformAPI.stopNode(); platformAPI.startNode(); logoutOnPlatform(loginPlatform); }
static <T> T getAPI(final Class<T> clazz, final PlatformSession session) throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { final ServerAPI serverAPI = getServerAPI(); final ClientInterceptor sessionInterceptor = new ClientInterceptor(clazz.getName(), serverAPI, session); return (T) Proxy.newProxyInstance(APIAccessor.class.getClassLoader(), new Class[] { clazz }, sessionInterceptor); }
/** * @param session * a {@link PlatformSession} created using the {@link PlatformLoginAPI} * @return * the {@link PlatformAPI} * @throws InvalidSessionException * @throws BonitaHomeNotSetException * @throws ServerAPIException * @throws UnknownAPITypeException */ public static PlatformAPI getPlatformAPI(final PlatformSession session) throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { return getAPI(PlatformAPI.class, session); }
static <T> T getAPI(final Class<T> clazz) throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { final ServerAPI serverAPI = getServerAPI(); final ClientInterceptor sessionInterceptor = new ClientInterceptor(clazz.getName(), serverAPI); return (T) Proxy.newProxyInstance(APIAccessor.class.getClassLoader(), new Class[] { clazz }, sessionInterceptor); }
/** * @param session * a {@link PlatformSession} created using the {@link PlatformLoginAPI} * @return * the {@link PlatformCommandAPI} * @throws BonitaHomeNotSetException * @throws ServerAPIException * @throws UnknownAPITypeException * @throws InvalidSessionException */ public static PlatformCommandAPI getPlatformCommandAPI(final PlatformSession session) throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { return getAPI(PlatformCommandAPI.class, session); }
/** * @param session * a {@link PlatformSession} created using the {@link PlatformLoginAPI} * @return * the {@link PlatformCommandAPI} * @throws BonitaHomeNotSetException * @throws ServerAPIException * @throws UnknownAPITypeException * @throws InvalidSessionException */ public static PlatformCommandAPI getPlatformCommandAPI(final PlatformSession session) throws BonitaHomeNotSetException, ServerAPIException, UnknownAPITypeException { return getAPI(PlatformCommandAPI.class, session); }