public ManagementAPI getManagementAPI(String queryList){ RESTRemoteManagementAPI remoteManagementAPI = getRESTAccess(RESTRemoteManagementAPI.class); return AccessorProxyUtil.getRemoteClientAPI(ManagementAPI.class, remoteManagementAPI, queryList); }
@Override public QueryDefinitionAPI getQueryDefinitionAPI(final String queryList) { final RemoteQueryDefinitionAPI remoteQueryRuntimeAPI = getRESTAccess(RemoteQueryDefinitionAPI.class); return AccessorProxyUtil.getRemoteClientAPI(QueryDefinitionAPI.class, remoteQueryRuntimeAPI, queryList); }
@Override public BAMAPI getBAMAPI(final String queryList) { final RemoteBAMAPI remoteBAMAPI = getRESTAccess(RemoteBAMAPI.class); return AccessorProxyUtil.getRemoteClientAPI(BAMAPI.class, remoteBAMAPI, queryList); }
public IdentityAPI getIdentityAPI(String queryList){ RESTRemoteIdentityAPI remoteIdentityAPI = getRESTAccess(RESTRemoteIdentityAPI.class); return AccessorProxyUtil.getRemoteClientAPI(IdentityAPI.class, remoteIdentityAPI, queryList); }
public RepairAPI getRepairAPI(String queryList){ RESTRemoteRepairAPI remoteRepairAPI = getRESTAccess(RESTRemoteRepairAPI.class); return AccessorProxyUtil.getRemoteClientAPI(RepairAPI.class, remoteRepairAPI, queryList); }
public WebAPI getWebAPI(String queryList){ RESTRemoteWebAPI remoteWebAPI = getRESTAccess(RESTRemoteWebAPI.class); return AccessorProxyUtil.getRemoteClientAPI(WebAPI.class, remoteWebAPI, queryList); }
public CommandAPI getCommandAPI(String queryList){ RemoteCommandAPI remoteCommandAPI = getRESTAccess(RemoteCommandAPI.class); CommandAPI commandAPI = AccessorProxyUtil.getRemoteClientAPI(CommandAPI.class, remoteCommandAPI, queryList); //add REST interceptor RESTClientAPIInterceptor restInterceptor = new RESTClientAPIInterceptor(commandAPI); Class<CommandAPI> clazz = CommandAPI.class; return clazz.cast(Proxy.newProxyInstance(APIAccessor.class.getClassLoader(), new Class[] {clazz}, restInterceptor)); }
public RuntimeAPI getRuntimeAPI(String queryList){ RESTRemoteRuntimeAPI remoteRuntimeAPI = getRESTAccess(RESTRemoteRuntimeAPI.class); RuntimeAPI runtimeAPI = AccessorProxyUtil.getRemoteClientAPI(RuntimeAPI.class, remoteRuntimeAPI, queryList); //add REST interceptor RESTClientAPIInterceptor restInterceptor = new RESTClientAPIInterceptor(runtimeAPI); Class<RuntimeAPI> clazz = RuntimeAPI.class; return clazz.cast(Proxy.newProxyInstance(APIAccessor.class.getClassLoader(), new Class[] {clazz}, restInterceptor)); }
public CommandAPI getCommandAPI(String queryList){ RemoteCommandAPI remoteCommandAPI = getRESTAccess(RemoteCommandAPI.class); CommandAPI commandAPI = AccessorProxyUtil.getRemoteClientAPI(CommandAPI.class, remoteCommandAPI, queryList); //add REST interceptor RESTClientAPIInterceptor restInterceptor = new RESTClientAPIInterceptor(commandAPI); Class<CommandAPI> clazz = CommandAPI.class; return clazz.cast(Proxy.newProxyInstance(APIAccessor.class.getClassLoader(), new Class[] {clazz}, restInterceptor)); }
public RuntimeAPI getRuntimeAPI(final String queryList) { try { return AccessorProxyUtil.getRemoteClientAPI(RuntimeAPI.class, Misc.lookup(AccessorUtil.RUNTIMEAPI_JNDINAME, jndiEnvironment), queryList); } catch (final NamingException e) { throw new BonitaRuntimeException(e); } }
public QueryDefinitionAPI getQueryDefinitionAPI(final String queryList) { try { return AccessorProxyUtil.getRemoteClientAPI(QueryDefinitionAPI.class, Misc.lookup(AccessorUtil.QUERYDEFINITION_JNDINAME, jndiEnvironment), queryList); } catch (final NamingException e) { throw new BonitaRuntimeException(e); } }
public RepairAPI getRepairAPI(final String queryList) { try { return AccessorProxyUtil.getRemoteClientAPI(RepairAPI.class, Misc.lookup(AccessorUtil.REPAIRAPI_JNDINAME, jndiEnvironment), queryList); } catch (final NamingException e) { throw new BonitaRuntimeException(e); } }
public ManagementAPI getManagementAPI(final String queryList) { try { return AccessorProxyUtil.getRemoteClientAPI(ManagementAPI.class, Misc.lookup(AccessorUtil.MANAGEMENT_JNDINAME, jndiEnvironment), queryList); } catch (final NamingException e) { throw new BonitaRuntimeException(e); } }
public IdentityAPI getIdentityAPI(final String queryList) { try { return AccessorProxyUtil.getRemoteClientAPI(IdentityAPI.class, Misc.lookup(AccessorUtil.IDENTITYAPI_JNDINAME, jndiEnvironment), queryList); } catch (final NamingException e) { throw new BonitaRuntimeException(e); } }
public IdentityAPI getIdentityAPI(final String queryList) { try { return AccessorProxyUtil.getRemoteClientAPI(IdentityAPI.class, Misc.lookup(AccessorUtil.IDENTITYAPI_JNDINAME, jndiEnvironment), queryList); } catch (final NamingException e) { throw new BonitaRuntimeException(e); } }
public QueryRuntimeAPI getQueryRuntimeAPI(final String queryList) { try { return AccessorProxyUtil.getRemoteClientAPI(QueryRuntimeAPI.class, Misc.lookup(AccessorUtil.QUERYRUNTIME_JNDINAME, jndiEnvironment), queryList); } catch (final NamingException e) { throw new BonitaRuntimeException(e); } }
public WebAPI getWebAPI(final String queryList) { try { return AccessorProxyUtil.getRemoteClientAPI(WebAPI.class, Misc.lookup(AccessorUtil.WEBAPI_JNDINAME, jndiEnvironment), queryList); } catch (final NamingException e) { throw new BonitaRuntimeException(e); } }
public RepairAPI getRepairAPI(final String queryList) { try { return AccessorProxyUtil.getRemoteClientAPI(RepairAPI.class, Misc.lookup(AccessorUtil.REPAIRAPI_JNDINAME, jndiEnvironment), queryList); } catch (final NamingException e) { throw new BonitaRuntimeException(e); } }
public BAMAPI getBAMAPI(final String queryList) { try { return AccessorProxyUtil.getRemoteClientAPI(BAMAPI.class, Misc.lookup(AccessorUtil.BAMAPI_JNDINAME, jndiEnvironment), queryList); } catch (final NamingException e) { throw new BonitaRuntimeException(e); } } }
public CommandAPI getCommandAPI(final String queryList) { CommandAPI ejbCommandAPI; try { ejbCommandAPI = AccessorProxyUtil.getRemoteClientAPI(CommandAPI.class, Misc.lookup(AccessorUtil.COMMANDAPI_JNDINAME, jndiEnvironment), queryList); } catch (final NamingException e) { throw new BonitaRuntimeException(e); } return new EJBCommandAPIInterceptor(ejbCommandAPI); }