com.jelastic.api.users.Authentication Maven / Gradle / Ivy
The newest version!
package com.jelastic.api.users;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import com.jelastic.api.AbstractService;
import com.jelastic.api.Callback;
import com.jelastic.api.client.annotation.JelasticModuleName;
import com.jelastic.api.core.utils.Transport;
import com.jelastic.api.users.response.ApiTokenTemplatesResponse;
import com.jelastic.api.users.response.SessionsResponse;
import com.jelastic.api.users.response.ApiTokenResponse;
import com.jelastic.api.Response;
import com.jelastic.api.users.response.ApiTokenPermissionsResponse;
import com.jelastic.api.users.response.AuthenticationResponse;
import com.jelastic.api.users.response.ApiTokensResponse;
/**
* @name Jelastic API Client
* @version 8.11.2
* @copyright Jelastic, Inc.
**/
@JelasticModuleName(name="jelastic")
public class Authentication extends AbstractService {
public static String SERVICE_PATH = "users/authentication/";
private String serviceUrl = SERVER_URL + SERVICE_PATH;
private String appid = null;
private String session = null;
private String client_source = null;
public Authentication(){}
public Authentication(Map _params){
this((String)_params.get("appid"), (String)_params.get("session"), (String)_params.get("serviceUrl"));
String serverUrl = (String) _params.get("serverUrl");
if (serverUrl != null) setServerUrl(serverUrl);
}
public Authentication(String appid, String session, String serviceUrl){
if (appid != null) this.appid = appid;
if (session != null) this.session = session;
if (serviceUrl != null) this.serviceUrl = serviceUrl;
}
public Authentication(String appid, String session){
this(appid, session, null);
}
public Authentication(String appid){
this(appid, null, null);
}
public String getAppid(){
return appid;
}
public Authentication setAppid(String appid){
this.appid = appid;
return this;
}
public String getSession(){
return session;
}
public Authentication setSession(String session){
this.session = session;
return this;
}
public String getServiceUrl(){
return serviceUrl;
}
public Authentication setServiceUrl(String serviceUrl){
this.serviceUrl = serviceUrl;
return this;
}
public String getServerUrl(){
return serviceUrl;
}
public Authentication setServerUrl(String serverUrl){
this.serviceUrl = serverUrl + SERVICE_PATH;
return this;
}
public Authentication setClientSource(String client_source){
this.client_source = client_source;
return this;
}
public String getClientSource(){
return client_source ;
}
public AuthenticationResponse signin(String appid, String login, String password){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("login", login);
_params.put("password", password);
_params.put("client_source", client_source);
return (AuthenticationResponse) _call(appid, serviceUrl + "rest/signin", _params, AuthenticationResponse.class);
}
public AuthenticationResponse signin(String appid, String login, String password, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("login", login);
_params.put("password", password);
_params.put("client_source", client_source);
return (AuthenticationResponse) _call(appid, serviceUrl + "rest/signin", _params, headers, AuthenticationResponse.class);
}
public Authentication signin(final String appid, final String login, final String password, final Callback callback){
new Thread(() -> {
AuthenticationResponse response = signin(appid, login, password);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication signin(final String appid, final String login, final String password, final Map headers, final Callback callback){
new Thread(() -> {
AuthenticationResponse response = signin(appid, login, password);
callback.fire(response);
}, "callback").start();
return this;
}
public AuthenticationResponse signin(String login, String password){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("login", login);
_params.put("password", password);
_params.put("client_source", client_source);
return (AuthenticationResponse) _call(appid, serviceUrl + "rest/signin", _params, AuthenticationResponse.class);
}
public AuthenticationResponse signin(String login, String password, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("login", login);
_params.put("password", password);
_params.put("client_source", client_source);
return (AuthenticationResponse) _call(appid, serviceUrl + "rest/signin", _params, headers, AuthenticationResponse.class);
}
public Authentication signin(final String login, final String password, final Callback callback){
new Thread(() -> {
AuthenticationResponse response = signin(login, password);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication signin(final String login, final String password, final Map headers, final Callback callback){
new Thread(() -> {
AuthenticationResponse response = signin(login, password);
callback.fire(response);
}, "callback").start();
return this;
}
public AuthenticationResponse signin(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (AuthenticationResponse) _call(appid, serviceUrl + "rest/signin", _params, AuthenticationResponse.class);
}
public AuthenticationResponse signin(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (AuthenticationResponse) _call(appid, serviceUrl + "rest/signin", _params, headers, AuthenticationResponse.class);
}
public Response signout(String appid, String session){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signout", _params, Response.class);
}
public Response signout(String appid, String session, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signout", _params, headers, Response.class);
}
public Authentication signout(final String appid, final String session, final Callback callback){
new Thread(() -> {
Response response = signout(appid, session);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication signout(final String appid, final String session, final Map headers, final Callback callback){
new Thread(() -> {
Response response = signout(appid, session);
callback.fire(response);
}, "callback").start();
return this;
}
public Response signout(String session){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signout", _params, Response.class);
}
public Response signout(String session, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signout", _params, headers, Response.class);
}
public Authentication signout(final String session, final Callback callback){
new Thread(() -> {
Response response = signout(session);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication signout(final String session, final Map headers, final Callback callback){
new Thread(() -> {
Response response = signout(session);
callback.fire(response);
}, "callback").start();
return this;
}
public Response signout(){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signout", _params, Response.class);
}
public Authentication signout(final Callback callback){
new Thread(() -> {
Response response = signout();
callback.fire(response);
}, "callback").start();
return this;
}
public Response signout(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signout", _params, Response.class);
}
public Response signout(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signout", _params, headers, Response.class);
}
public ApiTokenResponse createToken(String appid, String session, String password, String description, String tokenTemplate, String apiList, String expiresAt, Boolean isProtected){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("password", password);
_params.put("description", description);
_params.put("tokenTemplate", tokenTemplate);
_params.put("apiList", apiList);
_params.put("expiresAt", expiresAt);
_params.put("isProtected", isProtected + "");
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/createtoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse createToken(String appid, String session, String password, String description, String tokenTemplate, String apiList, String expiresAt, Boolean isProtected, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("password", password);
_params.put("description", description);
_params.put("tokenTemplate", tokenTemplate);
_params.put("apiList", apiList);
_params.put("expiresAt", expiresAt);
_params.put("isProtected", isProtected + "");
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/createtoken", _params, headers, ApiTokenResponse.class);
}
public Authentication createToken(final String appid, final String session, final String password, final String description, final String tokenTemplate, final String apiList, final String expiresAt, final Boolean isProtected, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = createToken(appid, session, password, description, tokenTemplate, apiList, expiresAt, isProtected);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication createToken(final String appid, final String session, final String password, final String description, final String tokenTemplate, final String apiList, final String expiresAt, final Boolean isProtected, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = createToken(appid, session, password, description, tokenTemplate, apiList, expiresAt, isProtected);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenResponse createToken(String appid, String session, String password, String description, String tokenTemplate, String apiList, String expiresAt){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("password", password);
_params.put("description", description);
_params.put("tokenTemplate", tokenTemplate);
_params.put("apiList", apiList);
_params.put("expiresAt", expiresAt);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/createtoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse createToken(String appid, String session, String password, String description, String tokenTemplate, String apiList, String expiresAt, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("password", password);
_params.put("description", description);
_params.put("tokenTemplate", tokenTemplate);
_params.put("apiList", apiList);
_params.put("expiresAt", expiresAt);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/createtoken", _params, headers, ApiTokenResponse.class);
}
public Authentication createToken(final String appid, final String session, final String password, final String description, final String tokenTemplate, final String apiList, final String expiresAt, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = createToken(appid, session, password, description, tokenTemplate, apiList, expiresAt);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication createToken(final String appid, final String session, final String password, final String description, final String tokenTemplate, final String apiList, final String expiresAt, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = createToken(appid, session, password, description, tokenTemplate, apiList, expiresAt);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenResponse createToken(String appid, String session, String password, String description, String tokenTemplate){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("password", password);
_params.put("description", description);
_params.put("tokenTemplate", tokenTemplate);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/createtoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse createToken(String appid, String session, String password, String description, String tokenTemplate, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("password", password);
_params.put("description", description);
_params.put("tokenTemplate", tokenTemplate);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/createtoken", _params, headers, ApiTokenResponse.class);
}
public Authentication createToken(final String appid, final String session, final String password, final String description, final String tokenTemplate, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = createToken(appid, session, password, description, tokenTemplate);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication createToken(final String appid, final String session, final String password, final String description, final String tokenTemplate, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = createToken(appid, session, password, description, tokenTemplate);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenResponse createToken(String appid, String session, String password, String description){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("password", password);
_params.put("description", description);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/createtoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse createToken(String appid, String session, String password, String description, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("password", password);
_params.put("description", description);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/createtoken", _params, headers, ApiTokenResponse.class);
}
public Authentication createToken(final String appid, final String session, final String password, final String description, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = createToken(appid, session, password, description);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication createToken(final String appid, final String session, final String password, final String description, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = createToken(appid, session, password, description);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenResponse createToken(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/createtoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse createToken(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/createtoken", _params, headers, ApiTokenResponse.class);
}
public Response deleteTokens(String appid, String session, String ids, String password){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("ids", ids);
_params.put("password", password);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/deletetokens", _params, Response.class);
}
public Response deleteTokens(String appid, String session, String ids, String password, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("ids", ids);
_params.put("password", password);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/deletetokens", _params, headers, Response.class);
}
public Authentication deleteTokens(final String appid, final String session, final String ids, final String password, final Callback callback){
new Thread(() -> {
Response response = deleteTokens(appid, session, ids, password);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication deleteTokens(final String appid, final String session, final String ids, final String password, final Map headers, final Callback callback){
new Thread(() -> {
Response response = deleteTokens(appid, session, ids, password);
callback.fire(response);
}, "callback").start();
return this;
}
public Response deleteTokens(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/deletetokens", _params, Response.class);
}
public Response deleteTokens(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/deletetokens", _params, headers, Response.class);
}
public ApiTokenResponse regenerateToken(String appid, String session, int id, String password){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("password", password);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/regeneratetoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse regenerateToken(String appid, String session, int id, String password, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("password", password);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/regeneratetoken", _params, headers, ApiTokenResponse.class);
}
public Authentication regenerateToken(final String appid, final String session, final int id, final String password, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = regenerateToken(appid, session, id, password);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication regenerateToken(final String appid, final String session, final int id, final String password, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = regenerateToken(appid, session, id, password);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenResponse regenerateToken(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/regeneratetoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse regenerateToken(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/regeneratetoken", _params, headers, ApiTokenResponse.class);
}
public ApiTokenResponse editToken(String appid, String session, int id, String password, String description, String tokenTemplate, String apiList, String expiresAt){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("password", password);
_params.put("description", description);
_params.put("tokenTemplate", tokenTemplate);
_params.put("apiList", apiList);
_params.put("expiresAt", expiresAt);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/edittoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse editToken(String appid, String session, int id, String password, String description, String tokenTemplate, String apiList, String expiresAt, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("password", password);
_params.put("description", description);
_params.put("tokenTemplate", tokenTemplate);
_params.put("apiList", apiList);
_params.put("expiresAt", expiresAt);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/edittoken", _params, headers, ApiTokenResponse.class);
}
public Authentication editToken(final String appid, final String session, final int id, final String password, final String description, final String tokenTemplate, final String apiList, final String expiresAt, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = editToken(appid, session, id, password, description, tokenTemplate, apiList, expiresAt);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication editToken(final String appid, final String session, final int id, final String password, final String description, final String tokenTemplate, final String apiList, final String expiresAt, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = editToken(appid, session, id, password, description, tokenTemplate, apiList, expiresAt);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenResponse editToken(String appid, String session, int id, String password, String description, String tokenTemplate, String apiList){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("password", password);
_params.put("description", description);
_params.put("tokenTemplate", tokenTemplate);
_params.put("apiList", apiList);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/edittoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse editToken(String appid, String session, int id, String password, String description, String tokenTemplate, String apiList, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("password", password);
_params.put("description", description);
_params.put("tokenTemplate", tokenTemplate);
_params.put("apiList", apiList);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/edittoken", _params, headers, ApiTokenResponse.class);
}
public Authentication editToken(final String appid, final String session, final int id, final String password, final String description, final String tokenTemplate, final String apiList, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = editToken(appid, session, id, password, description, tokenTemplate, apiList);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication editToken(final String appid, final String session, final int id, final String password, final String description, final String tokenTemplate, final String apiList, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = editToken(appid, session, id, password, description, tokenTemplate, apiList);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenResponse editToken(String appid, String session, int id, String password, String description, String tokenTemplate){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("password", password);
_params.put("description", description);
_params.put("tokenTemplate", tokenTemplate);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/edittoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse editToken(String appid, String session, int id, String password, String description, String tokenTemplate, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("password", password);
_params.put("description", description);
_params.put("tokenTemplate", tokenTemplate);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/edittoken", _params, headers, ApiTokenResponse.class);
}
public Authentication editToken(final String appid, final String session, final int id, final String password, final String description, final String tokenTemplate, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = editToken(appid, session, id, password, description, tokenTemplate);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication editToken(final String appid, final String session, final int id, final String password, final String description, final String tokenTemplate, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = editToken(appid, session, id, password, description, tokenTemplate);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenResponse editToken(String appid, String session, int id, String password, String description){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("password", password);
_params.put("description", description);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/edittoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse editToken(String appid, String session, int id, String password, String description, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("password", password);
_params.put("description", description);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/edittoken", _params, headers, ApiTokenResponse.class);
}
public Authentication editToken(final String appid, final String session, final int id, final String password, final String description, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = editToken(appid, session, id, password, description);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication editToken(final String appid, final String session, final int id, final String password, final String description, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = editToken(appid, session, id, password, description);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenResponse editToken(String appid, String session, int id, String password){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("password", password);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/edittoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse editToken(String appid, String session, int id, String password, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("id", id + "");
_params.put("password", password);
_params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/edittoken", _params, headers, ApiTokenResponse.class);
}
public Authentication editToken(final String appid, final String session, final int id, final String password, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = editToken(appid, session, id, password);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication editToken(final String appid, final String session, final int id, final String password, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenResponse response = editToken(appid, session, id, password);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenResponse editToken(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/edittoken", _params, ApiTokenResponse.class);
}
public ApiTokenResponse editToken(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokenResponse) _call(appid, serviceUrl + "rest/edittoken", _params, headers, ApiTokenResponse.class);
}
public ApiTokensResponse getTokens(String appid, String session, String ids){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("ids", ids);
_params.put("client_source", client_source);
return (ApiTokensResponse) _call(appid, serviceUrl + "rest/gettokens", _params, ApiTokensResponse.class);
}
public ApiTokensResponse getTokens(String appid, String session, String ids, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("ids", ids);
_params.put("client_source", client_source);
return (ApiTokensResponse) _call(appid, serviceUrl + "rest/gettokens", _params, headers, ApiTokensResponse.class);
}
public Authentication getTokens(final String appid, final String session, final String ids, final Callback callback){
new Thread(() -> {
ApiTokensResponse response = getTokens(appid, session, ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication getTokens(final String appid, final String session, final String ids, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokensResponse response = getTokens(appid, session, ids);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokensResponse getTokens(String appid, String session){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (ApiTokensResponse) _call(appid, serviceUrl + "rest/gettokens", _params, ApiTokensResponse.class);
}
public ApiTokensResponse getTokens(String appid, String session, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (ApiTokensResponse) _call(appid, serviceUrl + "rest/gettokens", _params, headers, ApiTokensResponse.class);
}
public Authentication getTokens(final String appid, final String session, final Callback callback){
new Thread(() -> {
ApiTokensResponse response = getTokens(appid, session);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication getTokens(final String appid, final String session, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokensResponse response = getTokens(appid, session);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokensResponse getTokens(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokensResponse) _call(appid, serviceUrl + "rest/gettokens", _params, ApiTokensResponse.class);
}
public ApiTokensResponse getTokens(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokensResponse) _call(appid, serviceUrl + "rest/gettokens", _params, headers, ApiTokensResponse.class);
}
public ApiTokenPermissionsResponse getTokenApiList(String appid, String session, boolean showPrivate, String sortParam){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("showPrivate", showPrivate + "");
_params.put("sortParam", sortParam);
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/gettokenapilist", _params, ApiTokenPermissionsResponse.class);
}
public ApiTokenPermissionsResponse getTokenApiList(String appid, String session, boolean showPrivate, String sortParam, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("showPrivate", showPrivate + "");
_params.put("sortParam", sortParam);
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/gettokenapilist", _params, headers, ApiTokenPermissionsResponse.class);
}
public Authentication getTokenApiList(final String appid, final String session, final boolean showPrivate, final String sortParam, final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getTokenApiList(appid, session, showPrivate, sortParam);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication getTokenApiList(final String appid, final String session, final boolean showPrivate, final String sortParam, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getTokenApiList(appid, session, showPrivate, sortParam);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenPermissionsResponse getTokenApiList(String appid, String session, boolean showPrivate){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("showPrivate", showPrivate + "");
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/gettokenapilist", _params, ApiTokenPermissionsResponse.class);
}
public ApiTokenPermissionsResponse getTokenApiList(String appid, String session, boolean showPrivate, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("showPrivate", showPrivate + "");
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/gettokenapilist", _params, headers, ApiTokenPermissionsResponse.class);
}
public Authentication getTokenApiList(final String appid, final String session, final boolean showPrivate, final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getTokenApiList(appid, session, showPrivate);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication getTokenApiList(final String appid, final String session, final boolean showPrivate, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getTokenApiList(appid, session, showPrivate);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenPermissionsResponse getTokenApiList(String appid, String session){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/gettokenapilist", _params, ApiTokenPermissionsResponse.class);
}
public ApiTokenPermissionsResponse getTokenApiList(String appid, String session, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/gettokenapilist", _params, headers, ApiTokenPermissionsResponse.class);
}
public Authentication getTokenApiList(final String appid, final String session, final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getTokenApiList(appid, session);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication getTokenApiList(final String appid, final String session, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getTokenApiList(appid, session);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenPermissionsResponse getTokenApiList(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/gettokenapilist", _params, ApiTokenPermissionsResponse.class);
}
public ApiTokenPermissionsResponse getTokenApiList(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/gettokenapilist", _params, headers, ApiTokenPermissionsResponse.class);
}
public ApiTokenTemplatesResponse getTokenTemplates(String appid, String session){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (ApiTokenTemplatesResponse) _call(appid, serviceUrl + "rest/gettokentemplates", _params, ApiTokenTemplatesResponse.class);
}
public ApiTokenTemplatesResponse getTokenTemplates(String appid, String session, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (ApiTokenTemplatesResponse) _call(appid, serviceUrl + "rest/gettokentemplates", _params, headers, ApiTokenTemplatesResponse.class);
}
public Authentication getTokenTemplates(final String appid, final String session, final Callback callback){
new Thread(() -> {
ApiTokenTemplatesResponse response = getTokenTemplates(appid, session);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication getTokenTemplates(final String appid, final String session, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenTemplatesResponse response = getTokenTemplates(appid, session);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenTemplatesResponse getTokenTemplates(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokenTemplatesResponse) _call(appid, serviceUrl + "rest/gettokentemplates", _params, ApiTokenTemplatesResponse.class);
}
public ApiTokenTemplatesResponse getTokenTemplates(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokenTemplatesResponse) _call(appid, serviceUrl + "rest/gettokentemplates", _params, headers, ApiTokenTemplatesResponse.class);
}
public SessionsResponse getSessions(String appid, String session){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (SessionsResponse) _call(appid, serviceUrl + "rest/getsessions", _params, SessionsResponse.class);
}
public SessionsResponse getSessions(String appid, String session, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (SessionsResponse) _call(appid, serviceUrl + "rest/getsessions", _params, headers, SessionsResponse.class);
}
public Authentication getSessions(final String appid, final String session, final Callback callback){
new Thread(() -> {
SessionsResponse response = getSessions(appid, session);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication getSessions(final String appid, final String session, final Map headers, final Callback callback){
new Thread(() -> {
SessionsResponse response = getSessions(appid, session);
callback.fire(response);
}, "callback").start();
return this;
}
public SessionsResponse getSessions(String session){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (SessionsResponse) _call(appid, serviceUrl + "rest/getsessions", _params, SessionsResponse.class);
}
public SessionsResponse getSessions(String session, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (SessionsResponse) _call(appid, serviceUrl + "rest/getsessions", _params, headers, SessionsResponse.class);
}
public Authentication getSessions(final String session, final Callback callback){
new Thread(() -> {
SessionsResponse response = getSessions(session);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication getSessions(final String session, final Map headers, final Callback callback){
new Thread(() -> {
SessionsResponse response = getSessions(session);
callback.fire(response);
}, "callback").start();
return this;
}
public SessionsResponse getSessions(){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (SessionsResponse) _call(appid, serviceUrl + "rest/getsessions", _params, SessionsResponse.class);
}
public Authentication getSessions(final Callback callback){
new Thread(() -> {
SessionsResponse response = getSessions();
callback.fire(response);
}, "callback").start();
return this;
}
public SessionsResponse getSessions(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (SessionsResponse) _call(appid, serviceUrl + "rest/getsessions", _params, SessionsResponse.class);
}
public SessionsResponse getSessions(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (SessionsResponse) _call(appid, serviceUrl + "rest/getsessions", _params, headers, SessionsResponse.class);
}
public Response signoutSessions(String appid, String session, String ids){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("ids", ids);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signoutsessions", _params, Response.class);
}
public Response signoutSessions(String appid, String session, String ids, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("ids", ids);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signoutsessions", _params, headers, Response.class);
}
public Authentication signoutSessions(final String appid, final String session, final String ids, final Callback callback){
new Thread(() -> {
Response response = signoutSessions(appid, session, ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication signoutSessions(final String appid, final String session, final String ids, final Map headers, final Callback callback){
new Thread(() -> {
Response response = signoutSessions(appid, session, ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Response signoutSessions(String session, String ids){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("ids", ids);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signoutsessions", _params, Response.class);
}
public Response signoutSessions(String session, String ids, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("ids", ids);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signoutsessions", _params, headers, Response.class);
}
public Authentication signoutSessions(final String session, final String ids, final Callback callback){
new Thread(() -> {
Response response = signoutSessions(session, ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication signoutSessions(final String session, final String ids, final Map headers, final Callback callback){
new Thread(() -> {
Response response = signoutSessions(session, ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Response signoutSessions(String ids){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("ids", ids);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signoutsessions", _params, Response.class);
}
public Response signoutSessions(String ids, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("ids", ids);
_params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signoutsessions", _params, headers, Response.class);
}
public Authentication signoutSessions(final String ids, final Callback callback){
new Thread(() -> {
Response response = signoutSessions(ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication signoutSessions(final String ids, final Map headers, final Callback callback){
new Thread(() -> {
Response response = signoutSessions(ids);
callback.fire(response);
}, "callback").start();
return this;
}
public Response signoutSessions(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signoutsessions", _params, Response.class);
}
public Response signoutSessions(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (Response) _call(appid, serviceUrl + "rest/signoutsessions", _params, headers, Response.class);
}
public ApiTokenPermissionsResponse getPolicyMethods(String appid, String session, String uniqueName){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("uniqueName", uniqueName);
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, ApiTokenPermissionsResponse.class);
}
public ApiTokenPermissionsResponse getPolicyMethods(String appid, String session, String uniqueName, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("uniqueName", uniqueName);
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, headers, ApiTokenPermissionsResponse.class);
}
public Authentication getPolicyMethods(final String appid, final String session, final String uniqueName, final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getPolicyMethods(appid, session, uniqueName);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication getPolicyMethods(final String appid, final String session, final String uniqueName, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getPolicyMethods(appid, session, uniqueName);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenPermissionsResponse getPolicyMethods(String appid, String session){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, ApiTokenPermissionsResponse.class);
}
public ApiTokenPermissionsResponse getPolicyMethods(String appid, String session, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, headers, ApiTokenPermissionsResponse.class);
}
public Authentication getPolicyMethods(final String appid, final String session, final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getPolicyMethods(appid, session);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication getPolicyMethods(final String appid, final String session, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getPolicyMethods(appid, session);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenPermissionsResponse getPolicyMethods(String uniqueName){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("uniqueName", uniqueName);
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, ApiTokenPermissionsResponse.class);
}
public ApiTokenPermissionsResponse getPolicyMethods(String uniqueName, Map headers){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("uniqueName", uniqueName);
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, headers, ApiTokenPermissionsResponse.class);
}
public Authentication getPolicyMethods(final String uniqueName, final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getPolicyMethods(uniqueName);
callback.fire(response);
}, "callback").start();
return this;
}
public Authentication getPolicyMethods(final String uniqueName, final Map headers, final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getPolicyMethods(uniqueName);
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenPermissionsResponse getPolicyMethods(){
Map _params = new HashMap();
_params.put("appid", appid);
_params.put("session", session);
_params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, ApiTokenPermissionsResponse.class);
}
public Authentication getPolicyMethods(final Callback callback){
new Thread(() -> {
ApiTokenPermissionsResponse response = getPolicyMethods();
callback.fire(response);
}, "callback").start();
return this;
}
public ApiTokenPermissionsResponse getPolicyMethods(Map _params){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, ApiTokenPermissionsResponse.class);
}
public ApiTokenPermissionsResponse getPolicyMethods(Map _params, Map headers){
if (!_params.containsKey("appid")) _params.put("appid", appid);
if (!_params.containsKey("session")) _params.put("session", session);
if (!_params.containsKey("client_source")) _params.put("client_source", client_source);
return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, headers, ApiTokenPermissionsResponse.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy