All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jelastic.api.users.Collaboration 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.CollaborationRoleResponse;
import com.jelastic.api.Response;
import com.jelastic.api.users.response.PolicyResponse;
import com.jelastic.api.users.response.ApiTokenPermissionsResponse;
import com.jelastic.api.users.response.CollaborationResponse;
import com.jelastic.api.users.response.PoliciesResponse;
import com.jelastic.api.users.response.CollaborationResourceResponse;
import com.jelastic.api.ListResponse;
import com.jelastic.api.users.response.CollaborationResourceResponses;
import com.jelastic.api.users.response.CollaborationRolesResponse;
import com.jelastic.api.users.response.StringArrayResponse;
import com.jelastic.api.users.response.CollaborationsResponse;

/**
* @name Jelastic API Client
* @version 8.11.2
* @copyright Jelastic, Inc.
**/


@JelasticModuleName(name="jelastic")
public class Collaboration extends AbstractService {

  public static String SERVICE_PATH = "users/collaboration/";
  private String serviceUrl = SERVER_URL + SERVICE_PATH;
  private String appid = null;
  private String session = null;
  private String client_source = null;

  public Collaboration(){}

  public Collaboration(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 Collaboration(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 Collaboration(String appid, String session){
     this(appid, session, null);
  }

  public Collaboration(String appid){
     this(appid, null, null);
  }

  public String getAppid(){
     return appid;
  }

  public Collaboration setAppid(String appid){
     this.appid = appid;
     return this;
  }

  public String getSession(){
     return session;
  }

  public Collaboration setSession(String session){
     this.session = session;
     return this;
  }

  public String getServiceUrl(){
     return serviceUrl;
  }

  public Collaboration setServiceUrl(String serviceUrl){
     this.serviceUrl = serviceUrl;
     return this;
  }

  public String getServerUrl(){
     return serviceUrl;
  }

  public Collaboration setServerUrl(String serverUrl){
     this.serviceUrl = serverUrl + SERVICE_PATH;
     return this;
  }

  public Collaboration setClientSource(String client_source){
     this.client_source = client_source;
     return this;
  }

  public String getClientSource(){
     return client_source ;
  }

  public CollaborationRolesResponse getRoles(String appid, String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, CollaborationRolesResponse.class);
  }

  public CollaborationRolesResponse getRoles(String appid, String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, headers, CollaborationRolesResponse.class);
  }

  public Collaboration getRoles(final String appid, final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationRolesResponse response = getRoles(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getRoles(final String appid, final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRolesResponse response = getRoles(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRolesResponse getRoles(String appid, String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, CollaborationRolesResponse.class);
  }

  public CollaborationRolesResponse getRoles(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 (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, headers, CollaborationRolesResponse.class);
  }

  public Collaboration getRoles(final String appid, final String session, final Callback callback){
      new Thread(() -> {
              CollaborationRolesResponse response = getRoles(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getRoles(final String appid, final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRolesResponse response = getRoles(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRolesResponse getRoles(String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, CollaborationRolesResponse.class);
  }

  public CollaborationRolesResponse getRoles(String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, headers, CollaborationRolesResponse.class);
  }

  public Collaboration getRoles(final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationRolesResponse response = getRoles(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getRoles(final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRolesResponse response = getRoles(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRolesResponse getRoles(Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, CollaborationRolesResponse.class);
  }

  public CollaborationRolesResponse getRoles(Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, headers, CollaborationRolesResponse.class);
  }

  public Collaboration getRoles(final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationRolesResponse response = getRoles(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getRoles(final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRolesResponse response = getRoles(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRolesResponse getRoles(String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, CollaborationRolesResponse.class);
  }

  public CollaborationRolesResponse getRoles(String session, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, headers, CollaborationRolesResponse.class);
  }

  public Collaboration getRoles(final String session, final Callback callback){
      new Thread(() -> {
              CollaborationRolesResponse response = getRoles(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getRoles(final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRolesResponse response = getRoles(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRolesResponse getRoles(){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, CollaborationRolesResponse.class);
  }

  public Collaboration getRoles(final Callback callback){
      new Thread(() -> {
              CollaborationRolesResponse response = getRoles();
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRolesResponse getRoles(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 (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, CollaborationRolesResponse.class);
  }

  public CollaborationRolesResponse getRoles(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 (CollaborationRolesResponse) _call(appid, serviceUrl + "rest/getroles", _params, headers, CollaborationRolesResponse.class);
  }

  public CollaborationsResponse getMembers(String appid, String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getMembers(String appid, String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getMembers(final String appid, final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getMembers(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMembers(final String appid, final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getMembers(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getMembers(String appid, String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getMembers(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 (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getMembers(final String appid, final String session, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getMembers(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMembers(final String appid, final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getMembers(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getMembers(String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getMembers(String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getMembers(final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getMembers(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMembers(final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getMembers(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getMembers(Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getMembers(Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getMembers(final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getMembers(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMembers(final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getMembers(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getMembers(String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getMembers(String session, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getMembers(final String session, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getMembers(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMembers(final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getMembers(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getMembers(){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, CollaborationsResponse.class);
  }

  public Collaboration getMembers(final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getMembers();
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getMembers(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 (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getMembers(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 (CollaborationsResponse) _call(appid, serviceUrl + "rest/getmembers", _params, headers, CollaborationsResponse.class);
  }

  public CollaborationResponse editCollaboration(String appid, String session, Integer id, String displayName){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("displayName", displayName);
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editCollaboration(String appid, String session, Integer id, String displayName, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("displayName", displayName);
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, headers, CollaborationResponse.class);
  }

  public Collaboration editCollaboration(final String appid, final String session, final Integer id, final String displayName, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editCollaboration(appid, session, id, displayName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editCollaboration(final String appid, final String session, final Integer id, final String displayName, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editCollaboration(appid, session, id, displayName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse editCollaboration(String appid, String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editCollaboration(String appid, String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, headers, CollaborationResponse.class);
  }

  public Collaboration editCollaboration(final String appid, final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editCollaboration(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editCollaboration(final String appid, final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editCollaboration(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse editCollaboration(String session, Integer id, String displayName){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("displayName", displayName);
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editCollaboration(String session, Integer id, String displayName, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("displayName", displayName);
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, headers, CollaborationResponse.class);
  }

  public Collaboration editCollaboration(final String session, final Integer id, final String displayName, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editCollaboration(session, id, displayName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editCollaboration(final String session, final Integer id, final String displayName, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editCollaboration(session, id, displayName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse editCollaboration(Integer id, String displayName){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("displayName", displayName);
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editCollaboration(Integer id, String displayName, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("displayName", displayName);
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, headers, CollaborationResponse.class);
  }

  public Collaboration editCollaboration(final Integer id, final String displayName, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editCollaboration(id, displayName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editCollaboration(final Integer id, final String displayName, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editCollaboration(id, displayName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse editCollaboration(String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editCollaboration(String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, headers, CollaborationResponse.class);
  }

  public Collaboration editCollaboration(final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editCollaboration(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editCollaboration(final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editCollaboration(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse editCollaboration(Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editCollaboration(Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, headers, CollaborationResponse.class);
  }

  public Collaboration editCollaboration(final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editCollaboration(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editCollaboration(final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editCollaboration(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse editCollaboration(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 (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editCollaboration(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 (CollaborationResponse) _call(appid, serviceUrl + "rest/editcollaboration", _params, headers, CollaborationResponse.class);
  }

  public CollaborationsResponse getCollaborations(String appid, String session, Integer id, Integer ownerUid, String collaborationType){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("collaborationType", collaborationType);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getCollaborations(String appid, String session, Integer id, Integer ownerUid, String collaborationType, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("collaborationType", collaborationType);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getCollaborations(final String appid, final String session, final Integer id, final Integer ownerUid, final String collaborationType, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(appid, session, id, ownerUid, collaborationType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborations(final String appid, final String session, final Integer id, final Integer ownerUid, final String collaborationType, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(appid, session, id, ownerUid, collaborationType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getCollaborations(String appid, String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getCollaborations(String appid, String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getCollaborations(final String appid, final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborations(final String appid, final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getCollaborations(String appid, String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getCollaborations(String appid, String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getCollaborations(final String appid, final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborations(final String appid, final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getCollaborations(String appid, String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getCollaborations(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 (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getCollaborations(final String appid, final String session, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborations(final String appid, final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getCollaborations(String session, Integer id, Integer ownerUid, String collaborationType){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("collaborationType", collaborationType);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getCollaborations(String session, Integer id, Integer ownerUid, String collaborationType, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("collaborationType", collaborationType);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getCollaborations(final String session, final Integer id, final Integer ownerUid, final String collaborationType, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(session, id, ownerUid, collaborationType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborations(final String session, final Integer id, final Integer ownerUid, final String collaborationType, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(session, id, ownerUid, collaborationType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getCollaborations(Integer id, Integer ownerUid, String collaborationType){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("collaborationType", collaborationType);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getCollaborations(Integer id, Integer ownerUid, String collaborationType, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("collaborationType", collaborationType);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getCollaborations(final Integer id, final Integer ownerUid, final String collaborationType, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(id, ownerUid, collaborationType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborations(final Integer id, final Integer ownerUid, final String collaborationType, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(id, ownerUid, collaborationType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getCollaborations(String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getCollaborations(String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getCollaborations(final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborations(final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getCollaborations(Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getCollaborations(Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getCollaborations(final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborations(final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getCollaborations(String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getCollaborations(String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getCollaborations(final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborations(final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getCollaborations(Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getCollaborations(Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getCollaborations(final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborations(final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getCollaborations(String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getCollaborations(String session, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, headers, CollaborationsResponse.class);
  }

  public Collaboration getCollaborations(final String session, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborations(final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getCollaborations(){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public Collaboration getCollaborations(final Callback callback){
      new Thread(() -> {
              CollaborationsResponse response = getCollaborations();
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationsResponse getCollaborations(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 (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, CollaborationsResponse.class);
  }

  public CollaborationsResponse getCollaborations(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 (CollaborationsResponse) _call(appid, serviceUrl + "rest/getcollaborations", _params, headers, CollaborationsResponse.class);
  }

  public CollaborationResponse acceptCollaboration(String appid, String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/acceptcollaboration", _params, CollaborationResponse.class);
  }

  public CollaborationResponse acceptCollaboration(String appid, String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/acceptcollaboration", _params, headers, CollaborationResponse.class);
  }

  public Collaboration acceptCollaboration(final String appid, final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = acceptCollaboration(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration acceptCollaboration(final String appid, final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = acceptCollaboration(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse acceptCollaboration(String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/acceptcollaboration", _params, CollaborationResponse.class);
  }

  public CollaborationResponse acceptCollaboration(String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/acceptcollaboration", _params, headers, CollaborationResponse.class);
  }

  public Collaboration acceptCollaboration(final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = acceptCollaboration(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration acceptCollaboration(final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = acceptCollaboration(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse acceptCollaboration(Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/acceptcollaboration", _params, CollaborationResponse.class);
  }

  public CollaborationResponse acceptCollaboration(Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/acceptcollaboration", _params, headers, CollaborationResponse.class);
  }

  public Collaboration acceptCollaboration(final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = acceptCollaboration(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration acceptCollaboration(final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = acceptCollaboration(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse acceptCollaboration(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 (CollaborationResponse) _call(appid, serviceUrl + "rest/acceptcollaboration", _params, CollaborationResponse.class);
  }

  public CollaborationResponse acceptCollaboration(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 (CollaborationResponse) _call(appid, serviceUrl + "rest/acceptcollaboration", _params, headers, CollaborationResponse.class);
  }

  public Response rejectCollaboration(String appid, String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/rejectcollaboration", _params, Response.class);
  }

  public Response rejectCollaboration(String appid, String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/rejectcollaboration", _params, headers, Response.class);
  }

  public Collaboration rejectCollaboration(final String appid, final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              Response response = rejectCollaboration(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration rejectCollaboration(final String appid, final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = rejectCollaboration(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response rejectCollaboration(String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/rejectcollaboration", _params, Response.class);
  }

  public Response rejectCollaboration(String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/rejectcollaboration", _params, headers, Response.class);
  }

  public Collaboration rejectCollaboration(final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              Response response = rejectCollaboration(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration rejectCollaboration(final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = rejectCollaboration(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response rejectCollaboration(Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/rejectcollaboration", _params, Response.class);
  }

  public Response rejectCollaboration(Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/rejectcollaboration", _params, headers, Response.class);
  }

  public Collaboration rejectCollaboration(final Integer id, final Callback callback){
      new Thread(() -> {
              Response response = rejectCollaboration(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration rejectCollaboration(final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = rejectCollaboration(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response rejectCollaboration(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/rejectcollaboration", _params, Response.class);
  }

  public Response rejectCollaboration(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/rejectcollaboration", _params, headers, Response.class);
  }

  public Response leaveCollaboration(String appid, String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/leavecollaboration", _params, Response.class);
  }

  public Response leaveCollaboration(String appid, String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/leavecollaboration", _params, headers, Response.class);
  }

  public Collaboration leaveCollaboration(final String appid, final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              Response response = leaveCollaboration(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration leaveCollaboration(final String appid, final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = leaveCollaboration(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response leaveCollaboration(String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/leavecollaboration", _params, Response.class);
  }

  public Response leaveCollaboration(String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/leavecollaboration", _params, headers, Response.class);
  }

  public Collaboration leaveCollaboration(final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              Response response = leaveCollaboration(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration leaveCollaboration(final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = leaveCollaboration(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response leaveCollaboration(Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/leavecollaboration", _params, Response.class);
  }

  public Response leaveCollaboration(Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/leavecollaboration", _params, headers, Response.class);
  }

  public Collaboration leaveCollaboration(final Integer id, final Callback callback){
      new Thread(() -> {
              Response response = leaveCollaboration(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration leaveCollaboration(final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = leaveCollaboration(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response leaveCollaboration(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/leavecollaboration", _params, Response.class);
  }

  public Response leaveCollaboration(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/leavecollaboration", _params, headers, Response.class);
  }

  public CollaborationResponse inviteMember(String appid, String session, String email, String displayName, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("email", email);
      _params.put("displayName", displayName);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse inviteMember(String appid, String session, String email, String displayName, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("email", email);
      _params.put("displayName", displayName);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, headers, CollaborationResponse.class);
  }

  public Collaboration inviteMember(final String appid, final String session, final String email, final String displayName, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = inviteMember(appid, session, email, displayName, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration inviteMember(final String appid, final String session, final String email, final String displayName, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = inviteMember(appid, session, email, displayName, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse inviteMember(String appid, String session, String email){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("email", email);
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse inviteMember(String appid, String session, String email, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("email", email);
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, headers, CollaborationResponse.class);
  }

  public Collaboration inviteMember(final String appid, final String session, final String email, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = inviteMember(appid, session, email);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration inviteMember(final String appid, final String session, final String email, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = inviteMember(appid, session, email);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse inviteMember(String session, String email, String displayName, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("email", email);
      _params.put("displayName", displayName);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse inviteMember(String session, String email, String displayName, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("email", email);
      _params.put("displayName", displayName);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, headers, CollaborationResponse.class);
  }

  public Collaboration inviteMember(final String session, final String email, final String displayName, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = inviteMember(session, email, displayName, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration inviteMember(final String session, final String email, final String displayName, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = inviteMember(session, email, displayName, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse inviteMember(String email, String displayName, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("email", email);
      _params.put("displayName", displayName);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse inviteMember(String email, String displayName, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("email", email);
      _params.put("displayName", displayName);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, headers, CollaborationResponse.class);
  }

  public Collaboration inviteMember(final String email, final String displayName, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = inviteMember(email, displayName, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration inviteMember(final String email, final String displayName, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = inviteMember(email, displayName, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse inviteMember(String session, String email){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("email", email);
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse inviteMember(String session, String email, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("email", email);
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, headers, CollaborationResponse.class);
  }

  public Collaboration inviteMember(final String session, final String email, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = inviteMember(session, email);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration inviteMember(final String session, final String email, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = inviteMember(session, email);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse inviteMember(String email){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("email", email);
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse inviteMember(String email, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("email", email);
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, headers, CollaborationResponse.class);
  }

  public Collaboration inviteMember(final String email, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = inviteMember(email);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration inviteMember(final String email, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = inviteMember(email);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse inviteMember(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 (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse inviteMember(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 (CollaborationResponse) _call(appid, serviceUrl + "rest/invitemember", _params, headers, CollaborationResponse.class);
  }

  public Response resendMemberInvitation(String appid, String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/resendmemberinvitation", _params, Response.class);
  }

  public Response resendMemberInvitation(String appid, String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/resendmemberinvitation", _params, headers, Response.class);
  }

  public Collaboration resendMemberInvitation(final String appid, final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              Response response = resendMemberInvitation(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration resendMemberInvitation(final String appid, final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = resendMemberInvitation(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response resendMemberInvitation(String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/resendmemberinvitation", _params, Response.class);
  }

  public Response resendMemberInvitation(String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/resendmemberinvitation", _params, headers, Response.class);
  }

  public Collaboration resendMemberInvitation(final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              Response response = resendMemberInvitation(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration resendMemberInvitation(final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = resendMemberInvitation(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response resendMemberInvitation(Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/resendmemberinvitation", _params, Response.class);
  }

  public Response resendMemberInvitation(Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/resendmemberinvitation", _params, headers, Response.class);
  }

  public Collaboration resendMemberInvitation(final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              Response response = resendMemberInvitation(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration resendMemberInvitation(final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = resendMemberInvitation(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response resendMemberInvitation(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/resendmemberinvitation", _params, Response.class);
  }

  public Response resendMemberInvitation(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/resendmemberinvitation", _params, headers, Response.class);
  }

  public CollaborationResponse editMember(String appid, String session, Integer id, String displayName, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("displayName", displayName);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editMember(String appid, String session, Integer id, String displayName, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("displayName", displayName);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, headers, CollaborationResponse.class);
  }

  public Collaboration editMember(final String appid, final String session, final Integer id, final String displayName, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editMember(appid, session, id, displayName, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editMember(final String appid, final String session, final Integer id, final String displayName, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editMember(appid, session, id, displayName, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse editMember(String appid, String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editMember(String appid, String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, headers, CollaborationResponse.class);
  }

  public Collaboration editMember(final String appid, final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editMember(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editMember(final String appid, final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editMember(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse editMember(String session, Integer id, String displayName, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("displayName", displayName);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editMember(String session, Integer id, String displayName, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("displayName", displayName);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, headers, CollaborationResponse.class);
  }

  public Collaboration editMember(final String session, final Integer id, final String displayName, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editMember(session, id, displayName, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editMember(final String session, final Integer id, final String displayName, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editMember(session, id, displayName, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse editMember(Integer id, String displayName, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("displayName", displayName);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editMember(Integer id, String displayName, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("displayName", displayName);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, headers, CollaborationResponse.class);
  }

  public Collaboration editMember(final Integer id, final String displayName, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editMember(id, displayName, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editMember(final Integer id, final String displayName, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editMember(id, displayName, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse editMember(String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editMember(String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, headers, CollaborationResponse.class);
  }

  public Collaboration editMember(final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editMember(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editMember(final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editMember(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse editMember(Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editMember(Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, headers, CollaborationResponse.class);
  }

  public Collaboration editMember(final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editMember(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editMember(final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResponse response = editMember(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResponse editMember(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 (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, CollaborationResponse.class);
  }

  public CollaborationResponse editMember(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 (CollaborationResponse) _call(appid, serviceUrl + "rest/editmember", _params, headers, CollaborationResponse.class);
  }

  public Response suspendMember(String appid, String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/suspendmember", _params, Response.class);
  }

  public Response suspendMember(String appid, String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/suspendmember", _params, headers, Response.class);
  }

  public Collaboration suspendMember(final String appid, final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              Response response = suspendMember(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration suspendMember(final String appid, final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = suspendMember(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response suspendMember(String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/suspendmember", _params, Response.class);
  }

  public Response suspendMember(String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/suspendmember", _params, headers, Response.class);
  }

  public Collaboration suspendMember(final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              Response response = suspendMember(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration suspendMember(final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = suspendMember(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response suspendMember(Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/suspendmember", _params, Response.class);
  }

  public Response suspendMember(Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/suspendmember", _params, headers, Response.class);
  }

  public Collaboration suspendMember(final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              Response response = suspendMember(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration suspendMember(final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = suspendMember(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response suspendMember(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/suspendmember", _params, Response.class);
  }

  public Response suspendMember(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/suspendmember", _params, headers, Response.class);
  }

  public Response activateMember(String appid, String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/activatemember", _params, Response.class);
  }

  public Response activateMember(String appid, String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/activatemember", _params, headers, Response.class);
  }

  public Collaboration activateMember(final String appid, final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              Response response = activateMember(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration activateMember(final String appid, final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = activateMember(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response activateMember(String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/activatemember", _params, Response.class);
  }

  public Response activateMember(String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/activatemember", _params, headers, Response.class);
  }

  public Collaboration activateMember(final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              Response response = activateMember(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration activateMember(final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = activateMember(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response activateMember(Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/activatemember", _params, Response.class);
  }

  public Response activateMember(Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/activatemember", _params, headers, Response.class);
  }

  public Collaboration activateMember(final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              Response response = activateMember(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration activateMember(final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = activateMember(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response activateMember(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/activatemember", _params, Response.class);
  }

  public Response activateMember(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/activatemember", _params, headers, Response.class);
  }

  public Response deleteMember(String appid, String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deletemember", _params, Response.class);
  }

  public Response deleteMember(String appid, String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deletemember", _params, headers, Response.class);
  }

  public Collaboration deleteMember(final String appid, final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              Response response = deleteMember(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deleteMember(final String appid, final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deleteMember(appid, session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deleteMember(String session, Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deletemember", _params, Response.class);
  }

  public Response deleteMember(String session, Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deletemember", _params, headers, Response.class);
  }

  public Collaboration deleteMember(final String session, final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              Response response = deleteMember(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deleteMember(final String session, final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deleteMember(session, id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deleteMember(Integer id, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deletemember", _params, Response.class);
  }

  public Response deleteMember(Integer id, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deletemember", _params, headers, Response.class);
  }

  public Collaboration deleteMember(final Integer id, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              Response response = deleteMember(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deleteMember(final Integer id, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deleteMember(id, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deleteMember(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/deletemember", _params, Response.class);
  }

  public Response deleteMember(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/deletemember", _params, headers, Response.class);
  }

  public PolicyResponse addPolicy(String appid, String session, String name, String methods, String description, String uniqueName){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("uniqueName", uniqueName);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/addpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse addPolicy(String appid, String session, String name, String methods, String description, String uniqueName, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("uniqueName", uniqueName);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/addpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration addPolicy(final String appid, final String session, final String name, final String methods, final String description, final String uniqueName, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = addPolicy(appid, session, name, methods, description, uniqueName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addPolicy(final String appid, final String session, final String name, final String methods, final String description, final String uniqueName, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = addPolicy(appid, session, name, methods, description, uniqueName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse addPolicy(String appid, String session, String name, String methods, String description){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/addpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse addPolicy(String appid, String session, String name, String methods, String description, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/addpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration addPolicy(final String appid, final String session, final String name, final String methods, final String description, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = addPolicy(appid, session, name, methods, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addPolicy(final String appid, final String session, final String name, final String methods, final String description, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = addPolicy(appid, session, name, methods, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse addPolicy(String appid, String session, String name, String methods){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/addpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse addPolicy(String appid, String session, String name, String methods, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/addpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration addPolicy(final String appid, final String session, final String name, final String methods, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = addPolicy(appid, session, name, methods);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addPolicy(final String appid, final String session, final String name, final String methods, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = addPolicy(appid, session, name, methods);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse addPolicy(String name, String methods, String description){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/addpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse addPolicy(String name, String methods, String description, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/addpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration addPolicy(final String name, final String methods, final String description, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = addPolicy(name, methods, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addPolicy(final String name, final String methods, final String description, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = addPolicy(name, methods, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse addPolicy(String name, String methods){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/addpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse addPolicy(String name, String methods, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/addpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration addPolicy(final String name, final String methods, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = addPolicy(name, methods);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addPolicy(final String name, final String methods, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = addPolicy(name, methods);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse addPolicy(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 (PolicyResponse) _call(appid, serviceUrl + "rest/addpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse addPolicy(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 (PolicyResponse) _call(appid, serviceUrl + "rest/addpolicy", _params, headers, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(String appid, String session, int id, String name, String methods, String description, String uniqueName){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("uniqueName", uniqueName);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(String appid, String session, int id, String name, String methods, String description, String uniqueName, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("uniqueName", uniqueName);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration editPolicy(final String appid, final String session, final int id, final String name, final String methods, final String description, final String uniqueName, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(appid, session, id, name, methods, description, uniqueName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editPolicy(final String appid, final String session, final int id, final String name, final String methods, final String description, final String uniqueName, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(appid, session, id, name, methods, description, uniqueName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse editPolicy(String appid, String session, int id, String name, String methods, String description){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(String appid, String session, int id, String name, String methods, String description, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration editPolicy(final String appid, final String session, final int id, final String name, final String methods, final String description, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(appid, session, id, name, methods, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editPolicy(final String appid, final String session, final int id, final String name, final String methods, final String description, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(appid, session, id, name, methods, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse editPolicy(String appid, String session, int id, String name, String methods){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(String appid, String session, int id, String name, String methods, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration editPolicy(final String appid, final String session, final int id, final String name, final String methods, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(appid, session, id, name, methods);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editPolicy(final String appid, final String session, final int id, final String name, final String methods, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(appid, session, id, name, methods);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse editPolicy(String appid, String session, int id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(String appid, String session, int id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration editPolicy(final String appid, final String session, final int id, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editPolicy(final String appid, final String session, final int id, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse editPolicy(String session, int id, String name, String methods, String description, String uniqueName){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("uniqueName", uniqueName);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(String session, int id, String name, String methods, String description, String uniqueName, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("uniqueName", uniqueName);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration editPolicy(final String session, final int id, final String name, final String methods, final String description, final String uniqueName, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(session, id, name, methods, description, uniqueName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editPolicy(final String session, final int id, final String name, final String methods, final String description, final String uniqueName, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(session, id, name, methods, description, uniqueName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse editPolicy(int id, String name, String methods, String description, String uniqueName){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("uniqueName", uniqueName);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(int id, String name, String methods, String description, String uniqueName, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("uniqueName", uniqueName);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration editPolicy(final int id, final String name, final String methods, final String description, final String uniqueName, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(id, name, methods, description, uniqueName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editPolicy(final int id, final String name, final String methods, final String description, final String uniqueName, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(id, name, methods, description, uniqueName);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse editPolicy(String session, int id, String name, String methods, String description){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(String session, int id, String name, String methods, String description, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration editPolicy(final String session, final int id, final String name, final String methods, final String description, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(session, id, name, methods, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editPolicy(final String session, final int id, final String name, final String methods, final String description, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(session, id, name, methods, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse editPolicy(int id, String name, String methods, String description){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(int id, String name, String methods, String description, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("description", description);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration editPolicy(final int id, final String name, final String methods, final String description, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(id, name, methods, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editPolicy(final int id, final String name, final String methods, final String description, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(id, name, methods, description);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse editPolicy(String session, int id, String name, String methods){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(String session, int id, String name, String methods, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration editPolicy(final String session, final int id, final String name, final String methods, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(session, id, name, methods);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editPolicy(final String session, final int id, final String name, final String methods, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(session, id, name, methods);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse editPolicy(int id, String name, String methods){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(int id, String name, String methods, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("methods", methods);
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration editPolicy(final int id, final String name, final String methods, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(id, name, methods);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editPolicy(final int id, final String name, final String methods, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(id, name, methods);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse editPolicy(String session, int id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(String session, int id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration editPolicy(final String session, final int id, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editPolicy(final String session, final int id, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse editPolicy(int id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(int id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Collaboration editPolicy(final int id, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editPolicy(final int id, final Map headers, final Callback callback){
      new Thread(() -> {
              PolicyResponse response = editPolicy(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PolicyResponse editPolicy(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 (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, PolicyResponse.class);
  }

  public PolicyResponse editPolicy(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 (PolicyResponse) _call(appid, serviceUrl + "rest/editpolicy", _params, headers, PolicyResponse.class);
  }

  public Response deletePolicy(String appid, String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deletepolicy", _params, Response.class);
  }

  public Response deletePolicy(String appid, String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deletepolicy", _params, headers, Response.class);
  }

  public Collaboration deletePolicy(final String appid, final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              Response response = deletePolicy(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deletePolicy(final String appid, final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deletePolicy(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deletePolicy(String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deletepolicy", _params, Response.class);
  }

  public Response deletePolicy(String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deletepolicy", _params, headers, Response.class);
  }

  public Collaboration deletePolicy(final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              Response response = deletePolicy(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deletePolicy(final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deletePolicy(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deletePolicy(Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deletepolicy", _params, Response.class);
  }

  public Response deletePolicy(Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deletepolicy", _params, headers, Response.class);
  }

  public Collaboration deletePolicy(final Integer id, final Callback callback){
      new Thread(() -> {
              Response response = deletePolicy(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deletePolicy(final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deletePolicy(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deletePolicy(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/deletepolicy", _params, Response.class);
  }

  public Response deletePolicy(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/deletepolicy", _params, headers, Response.class);
  }

  public PoliciesResponse getPolicies(String appid, String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, PoliciesResponse.class);
  }

  public PoliciesResponse getPolicies(String appid, String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, headers, PoliciesResponse.class);
  }

  public Collaboration getPolicies(final String appid, final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              PoliciesResponse response = getPolicies(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getPolicies(final String appid, final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              PoliciesResponse response = getPolicies(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PoliciesResponse getPolicies(String appid, String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, PoliciesResponse.class);
  }

  public PoliciesResponse getPolicies(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 (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, headers, PoliciesResponse.class);
  }

  public Collaboration getPolicies(final String appid, final String session, final Callback callback){
      new Thread(() -> {
              PoliciesResponse response = getPolicies(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getPolicies(final String appid, final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              PoliciesResponse response = getPolicies(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PoliciesResponse getPolicies(String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, PoliciesResponse.class);
  }

  public PoliciesResponse getPolicies(String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, headers, PoliciesResponse.class);
  }

  public Collaboration getPolicies(final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              PoliciesResponse response = getPolicies(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getPolicies(final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              PoliciesResponse response = getPolicies(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PoliciesResponse getPolicies(Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, PoliciesResponse.class);
  }

  public PoliciesResponse getPolicies(Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, headers, PoliciesResponse.class);
  }

  public Collaboration getPolicies(final Integer id, final Callback callback){
      new Thread(() -> {
              PoliciesResponse response = getPolicies(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getPolicies(final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              PoliciesResponse response = getPolicies(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PoliciesResponse getPolicies(String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, PoliciesResponse.class);
  }

  public PoliciesResponse getPolicies(String session, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, headers, PoliciesResponse.class);
  }

  public Collaboration getPolicies(final String session, final Callback callback){
      new Thread(() -> {
              PoliciesResponse response = getPolicies(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getPolicies(final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              PoliciesResponse response = getPolicies(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PoliciesResponse getPolicies(){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, PoliciesResponse.class);
  }

  public Collaboration getPolicies(final Callback callback){
      new Thread(() -> {
              PoliciesResponse response = getPolicies();
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public PoliciesResponse getPolicies(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 (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, PoliciesResponse.class);
  }

  public PoliciesResponse getPolicies(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 (PoliciesResponse) _call(appid, serviceUrl + "rest/getpolicies", _params, headers, PoliciesResponse.class);
  }

  public ApiTokenPermissionsResponse getPolicyMethods(String appid, String session, Integer policyId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("policyId", policyId + "");
      _params.put("client_source", client_source);
      return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, ApiTokenPermissionsResponse.class);
  }

  public ApiTokenPermissionsResponse getPolicyMethods(String appid, String session, Integer policyId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("policyId", policyId + "");
      _params.put("client_source", client_source);
      return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, headers, ApiTokenPermissionsResponse.class);
  }

  public Collaboration getPolicyMethods(final String appid, final String session, final Integer policyId, final Callback callback){
      new Thread(() -> {
              ApiTokenPermissionsResponse response = getPolicyMethods(appid, session, policyId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getPolicyMethods(final String appid, final String session, final Integer policyId, final Map headers, final Callback callback){
      new Thread(() -> {
              ApiTokenPermissionsResponse response = getPolicyMethods(appid, session, policyId);
              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 Collaboration 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 Collaboration 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 session, Integer policyId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("policyId", policyId + "");
      _params.put("client_source", client_source);
      return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, ApiTokenPermissionsResponse.class);
  }

  public ApiTokenPermissionsResponse getPolicyMethods(String session, Integer policyId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("policyId", policyId + "");
      _params.put("client_source", client_source);
      return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, headers, ApiTokenPermissionsResponse.class);
  }

  public Collaboration getPolicyMethods(final String session, final Integer policyId, final Callback callback){
      new Thread(() -> {
              ApiTokenPermissionsResponse response = getPolicyMethods(session, policyId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getPolicyMethods(final String session, final Integer policyId, final Map headers, final Callback callback){
      new Thread(() -> {
              ApiTokenPermissionsResponse response = getPolicyMethods(session, policyId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ApiTokenPermissionsResponse getPolicyMethods(Integer policyId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("policyId", policyId + "");
      _params.put("client_source", client_source);
      return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, ApiTokenPermissionsResponse.class);
  }

  public ApiTokenPermissionsResponse getPolicyMethods(Integer policyId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("policyId", policyId + "");
      _params.put("client_source", client_source);
      return (ApiTokenPermissionsResponse) _call(appid, serviceUrl + "rest/getpolicymethods", _params, headers, ApiTokenPermissionsResponse.class);
  }

  public Collaboration getPolicyMethods(final Integer policyId, final Callback callback){
      new Thread(() -> {
              ApiTokenPermissionsResponse response = getPolicyMethods(policyId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getPolicyMethods(final Integer policyId, final Map headers, final Callback callback){
      new Thread(() -> {
              ApiTokenPermissionsResponse response = getPolicyMethods(policyId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ApiTokenPermissionsResponse getPolicyMethods(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 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 Collaboration getPolicyMethods(final String session, final Callback callback){
      new Thread(() -> {
              ApiTokenPermissionsResponse response = getPolicyMethods(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getPolicyMethods(final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              ApiTokenPermissionsResponse response = getPolicyMethods(session);
              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 Collaboration 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);
  }

  public ListResponse getCollaborationRoleMethods(String appid, String session, Integer collaborationId, Integer roleId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("roleId", roleId + "");
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, ListResponse.class);
  }

  public ListResponse getCollaborationRoleMethods(String appid, String session, Integer collaborationId, Integer roleId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("roleId", roleId + "");
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, headers, ListResponse.class);
  }

  public Collaboration getCollaborationRoleMethods(final String appid, final String session, final Integer collaborationId, final Integer roleId, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(appid, session, collaborationId, roleId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationRoleMethods(final String appid, final String session, final Integer collaborationId, final Integer roleId, final Map headers, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(appid, session, collaborationId, roleId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ListResponse getCollaborationRoleMethods(String appid, String session, Integer collaborationId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, ListResponse.class);
  }

  public ListResponse getCollaborationRoleMethods(String appid, String session, Integer collaborationId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, headers, ListResponse.class);
  }

  public Collaboration getCollaborationRoleMethods(final String appid, final String session, final Integer collaborationId, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(appid, session, collaborationId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationRoleMethods(final String appid, final String session, final Integer collaborationId, final Map headers, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(appid, session, collaborationId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ListResponse getCollaborationRoleMethods(String appid, String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, ListResponse.class);
  }

  public ListResponse getCollaborationRoleMethods(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 (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, headers, ListResponse.class);
  }

  public Collaboration getCollaborationRoleMethods(final String appid, final String session, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationRoleMethods(final String appid, final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ListResponse getCollaborationRoleMethods(String session, Integer collaborationId, Integer roleId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("roleId", roleId + "");
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, ListResponse.class);
  }

  public ListResponse getCollaborationRoleMethods(String session, Integer collaborationId, Integer roleId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("roleId", roleId + "");
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, headers, ListResponse.class);
  }

  public Collaboration getCollaborationRoleMethods(final String session, final Integer collaborationId, final Integer roleId, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(session, collaborationId, roleId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationRoleMethods(final String session, final Integer collaborationId, final Integer roleId, final Map headers, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(session, collaborationId, roleId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ListResponse getCollaborationRoleMethods(Integer collaborationId, Integer roleId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("roleId", roleId + "");
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, ListResponse.class);
  }

  public ListResponse getCollaborationRoleMethods(Integer collaborationId, Integer roleId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("roleId", roleId + "");
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, headers, ListResponse.class);
  }

  public Collaboration getCollaborationRoleMethods(final Integer collaborationId, final Integer roleId, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(collaborationId, roleId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationRoleMethods(final Integer collaborationId, final Integer roleId, final Map headers, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(collaborationId, roleId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ListResponse getCollaborationRoleMethods(String session, Integer collaborationId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, ListResponse.class);
  }

  public ListResponse getCollaborationRoleMethods(String session, Integer collaborationId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, headers, ListResponse.class);
  }

  public Collaboration getCollaborationRoleMethods(final String session, final Integer collaborationId, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(session, collaborationId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationRoleMethods(final String session, final Integer collaborationId, final Map headers, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(session, collaborationId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ListResponse getCollaborationRoleMethods(Integer collaborationId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, ListResponse.class);
  }

  public ListResponse getCollaborationRoleMethods(Integer collaborationId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, headers, ListResponse.class);
  }

  public Collaboration getCollaborationRoleMethods(final Integer collaborationId, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(collaborationId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationRoleMethods(final Integer collaborationId, final Map headers, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(collaborationId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ListResponse getCollaborationRoleMethods(String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, ListResponse.class);
  }

  public ListResponse getCollaborationRoleMethods(String session, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, headers, ListResponse.class);
  }

  public Collaboration getCollaborationRoleMethods(final String session, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationRoleMethods(final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ListResponse getCollaborationRoleMethods(){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, ListResponse.class);
  }

  public Collaboration getCollaborationRoleMethods(final Callback callback){
      new Thread(() -> {
              ListResponse response = getCollaborationRoleMethods();
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public ListResponse getCollaborationRoleMethods(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 (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, ListResponse.class);
  }

  public ListResponse getCollaborationRoleMethods(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 (ListResponse) _call(appid, serviceUrl + "rest/getcollaborationrolemethods", _params, headers, ListResponse.class);
  }

  public StringArrayResponse getCollaborationResourceMethods(String appid, String session, String resourceId, String resourceType){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("client_source", client_source);
      return (StringArrayResponse) _call(appid, serviceUrl + "rest/getcollaborationresourcemethods", _params, StringArrayResponse.class);
  }

  public StringArrayResponse getCollaborationResourceMethods(String appid, String session, String resourceId, String resourceType, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("client_source", client_source);
      return (StringArrayResponse) _call(appid, serviceUrl + "rest/getcollaborationresourcemethods", _params, headers, StringArrayResponse.class);
  }

  public Collaboration getCollaborationResourceMethods(final String appid, final String session, final String resourceId, final String resourceType, final Callback callback){
      new Thread(() -> {
              StringArrayResponse response = getCollaborationResourceMethods(appid, session, resourceId, resourceType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResourceMethods(final String appid, final String session, final String resourceId, final String resourceType, final Map headers, final Callback callback){
      new Thread(() -> {
              StringArrayResponse response = getCollaborationResourceMethods(appid, session, resourceId, resourceType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public StringArrayResponse getCollaborationResourceMethods(String session, String resourceId, String resourceType){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("client_source", client_source);
      return (StringArrayResponse) _call(appid, serviceUrl + "rest/getcollaborationresourcemethods", _params, StringArrayResponse.class);
  }

  public StringArrayResponse getCollaborationResourceMethods(String session, String resourceId, String resourceType, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("client_source", client_source);
      return (StringArrayResponse) _call(appid, serviceUrl + "rest/getcollaborationresourcemethods", _params, headers, StringArrayResponse.class);
  }

  public Collaboration getCollaborationResourceMethods(final String session, final String resourceId, final String resourceType, final Callback callback){
      new Thread(() -> {
              StringArrayResponse response = getCollaborationResourceMethods(session, resourceId, resourceType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResourceMethods(final String session, final String resourceId, final String resourceType, final Map headers, final Callback callback){
      new Thread(() -> {
              StringArrayResponse response = getCollaborationResourceMethods(session, resourceId, resourceType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public StringArrayResponse getCollaborationResourceMethods(String resourceId, String resourceType){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("client_source", client_source);
      return (StringArrayResponse) _call(appid, serviceUrl + "rest/getcollaborationresourcemethods", _params, StringArrayResponse.class);
  }

  public StringArrayResponse getCollaborationResourceMethods(String resourceId, String resourceType, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("client_source", client_source);
      return (StringArrayResponse) _call(appid, serviceUrl + "rest/getcollaborationresourcemethods", _params, headers, StringArrayResponse.class);
  }

  public Collaboration getCollaborationResourceMethods(final String resourceId, final String resourceType, final Callback callback){
      new Thread(() -> {
              StringArrayResponse response = getCollaborationResourceMethods(resourceId, resourceType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResourceMethods(final String resourceId, final String resourceType, final Map headers, final Callback callback){
      new Thread(() -> {
              StringArrayResponse response = getCollaborationResourceMethods(resourceId, resourceType);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public StringArrayResponse getCollaborationResourceMethods(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 (StringArrayResponse) _call(appid, serviceUrl + "rest/getcollaborationresourcemethods", _params, StringArrayResponse.class);
  }

  public StringArrayResponse getCollaborationResourceMethods(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 (StringArrayResponse) _call(appid, serviceUrl + "rest/getcollaborationresourcemethods", _params, headers, StringArrayResponse.class);
  }

  public Response checkEnvironmentRights(String appid, String session, String serviceMethod, boolean isAny){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("serviceMethod", serviceMethod);
      _params.put("isAny", isAny + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/checkenvironmentrights", _params, Response.class);
  }

  public Response checkEnvironmentRights(String appid, String session, String serviceMethod, boolean isAny, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("serviceMethod", serviceMethod);
      _params.put("isAny", isAny + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/checkenvironmentrights", _params, headers, Response.class);
  }

  public Collaboration checkEnvironmentRights(final String appid, final String session, final String serviceMethod, final boolean isAny, final Callback callback){
      new Thread(() -> {
              Response response = checkEnvironmentRights(appid, session, serviceMethod, isAny);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration checkEnvironmentRights(final String appid, final String session, final String serviceMethod, final boolean isAny, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = checkEnvironmentRights(appid, session, serviceMethod, isAny);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response checkEnvironmentRights(String appid, String session, String serviceMethod){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("serviceMethod", serviceMethod);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/checkenvironmentrights", _params, Response.class);
  }

  public Response checkEnvironmentRights(String appid, String session, String serviceMethod, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("serviceMethod", serviceMethod);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/checkenvironmentrights", _params, headers, Response.class);
  }

  public Collaboration checkEnvironmentRights(final String appid, final String session, final String serviceMethod, final Callback callback){
      new Thread(() -> {
              Response response = checkEnvironmentRights(appid, session, serviceMethod);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration checkEnvironmentRights(final String appid, final String session, final String serviceMethod, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = checkEnvironmentRights(appid, session, serviceMethod);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response checkEnvironmentRights(String session, String serviceMethod, boolean isAny){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("serviceMethod", serviceMethod);
      _params.put("isAny", isAny + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/checkenvironmentrights", _params, Response.class);
  }

  public Response checkEnvironmentRights(String session, String serviceMethod, boolean isAny, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("serviceMethod", serviceMethod);
      _params.put("isAny", isAny + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/checkenvironmentrights", _params, headers, Response.class);
  }

  public Collaboration checkEnvironmentRights(final String session, final String serviceMethod, final boolean isAny, final Callback callback){
      new Thread(() -> {
              Response response = checkEnvironmentRights(session, serviceMethod, isAny);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration checkEnvironmentRights(final String session, final String serviceMethod, final boolean isAny, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = checkEnvironmentRights(session, serviceMethod, isAny);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response checkEnvironmentRights(String serviceMethod, boolean isAny){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("serviceMethod", serviceMethod);
      _params.put("isAny", isAny + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/checkenvironmentrights", _params, Response.class);
  }

  public Response checkEnvironmentRights(String serviceMethod, boolean isAny, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("serviceMethod", serviceMethod);
      _params.put("isAny", isAny + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/checkenvironmentrights", _params, headers, Response.class);
  }

  public Collaboration checkEnvironmentRights(final String serviceMethod, final boolean isAny, final Callback callback){
      new Thread(() -> {
              Response response = checkEnvironmentRights(serviceMethod, isAny);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration checkEnvironmentRights(final String serviceMethod, final boolean isAny, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = checkEnvironmentRights(serviceMethod, isAny);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response checkEnvironmentRights(String session, String serviceMethod){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("serviceMethod", serviceMethod);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/checkenvironmentrights", _params, Response.class);
  }

  public Response checkEnvironmentRights(String session, String serviceMethod, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("serviceMethod", serviceMethod);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/checkenvironmentrights", _params, headers, Response.class);
  }

  public Collaboration checkEnvironmentRights(final String session, final String serviceMethod, final Callback callback){
      new Thread(() -> {
              Response response = checkEnvironmentRights(session, serviceMethod);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration checkEnvironmentRights(final String session, final String serviceMethod, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = checkEnvironmentRights(session, serviceMethod);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response checkEnvironmentRights(String serviceMethod){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("serviceMethod", serviceMethod);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/checkenvironmentrights", _params, Response.class);
  }

  public Response checkEnvironmentRights(String serviceMethod, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("serviceMethod", serviceMethod);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/checkenvironmentrights", _params, headers, Response.class);
  }

  public Collaboration checkEnvironmentRights(final String serviceMethod, final Callback callback){
      new Thread(() -> {
              Response response = checkEnvironmentRights(serviceMethod);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration checkEnvironmentRights(final String serviceMethod, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = checkEnvironmentRights(serviceMethod);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response checkEnvironmentRights(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/checkenvironmentrights", _params, Response.class);
  }

  public Response checkEnvironmentRights(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/checkenvironmentrights", _params, headers, Response.class);
  }

  public CollaborationRoleResponse addRole(String appid, String session, String name, String description, String policies, Boolean receiveNotification){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("receiveNotification", receiveNotification + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse addRole(String appid, String session, String name, String description, String policies, Boolean receiveNotification, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("receiveNotification", receiveNotification + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration addRole(final String appid, final String session, final String name, final String description, final String policies, final Boolean receiveNotification, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = addRole(appid, session, name, description, policies, receiveNotification);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addRole(final String appid, final String session, final String name, final String description, final String policies, final Boolean receiveNotification, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = addRole(appid, session, name, description, policies, receiveNotification);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse addRole(String appid, String session, String name){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse addRole(String appid, String session, String name, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration addRole(final String appid, final String session, final String name, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = addRole(appid, session, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addRole(final String appid, final String session, final String name, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = addRole(appid, session, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse addRole(String session, String name, String description, String policies, Boolean receiveNotification){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("receiveNotification", receiveNotification + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse addRole(String session, String name, String description, String policies, Boolean receiveNotification, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("receiveNotification", receiveNotification + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration addRole(final String session, final String name, final String description, final String policies, final Boolean receiveNotification, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = addRole(session, name, description, policies, receiveNotification);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addRole(final String session, final String name, final String description, final String policies, final Boolean receiveNotification, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = addRole(session, name, description, policies, receiveNotification);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse addRole(String name, String description, String policies, Boolean receiveNotification){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("receiveNotification", receiveNotification + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse addRole(String name, String description, String policies, Boolean receiveNotification, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("receiveNotification", receiveNotification + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration addRole(final String name, final String description, final String policies, final Boolean receiveNotification, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = addRole(name, description, policies, receiveNotification);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addRole(final String name, final String description, final String policies, final Boolean receiveNotification, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = addRole(name, description, policies, receiveNotification);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse addRole(String session, String name){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse addRole(String session, String name, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration addRole(final String session, final String name, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = addRole(session, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addRole(final String session, final String name, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = addRole(session, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse addRole(String name){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse addRole(String name, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration addRole(final String name, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = addRole(name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addRole(final String name, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = addRole(name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse addRole(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 (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse addRole(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 (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/addrole", _params, headers, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(String appid, String session, Integer id, String name, String description, String policies, Boolean receiveNotification){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("receiveNotification", receiveNotification + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(String appid, String session, Integer id, String name, String description, String policies, Boolean receiveNotification, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("receiveNotification", receiveNotification + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration editRole(final String appid, final String session, final Integer id, final String name, final String description, final String policies, final Boolean receiveNotification, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(appid, session, id, name, description, policies, receiveNotification);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editRole(final String appid, final String session, final Integer id, final String name, final String description, final String policies, final Boolean receiveNotification, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(appid, session, id, name, description, policies, receiveNotification);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse editRole(String appid, String session, Integer id, String name, String description, String policies){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(String appid, String session, Integer id, String name, String description, String policies, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration editRole(final String appid, final String session, final Integer id, final String name, final String description, final String policies, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(appid, session, id, name, description, policies);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editRole(final String appid, final String session, final Integer id, final String name, final String description, final String policies, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(appid, session, id, name, description, policies);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse editRole(String appid, String session, Integer id, String name){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(String appid, String session, Integer id, String name, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration editRole(final String appid, final String session, final Integer id, final String name, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(appid, session, id, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editRole(final String appid, final String session, final Integer id, final String name, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(appid, session, id, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse editRole(String appid, String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(String appid, String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration editRole(final String appid, final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editRole(final String appid, final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse editRole(String session, Integer id, String name, String description, String policies, Boolean receiveNotification){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("receiveNotification", receiveNotification + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(String session, Integer id, String name, String description, String policies, Boolean receiveNotification, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("receiveNotification", receiveNotification + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration editRole(final String session, final Integer id, final String name, final String description, final String policies, final Boolean receiveNotification, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(session, id, name, description, policies, receiveNotification);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editRole(final String session, final Integer id, final String name, final String description, final String policies, final Boolean receiveNotification, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(session, id, name, description, policies, receiveNotification);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse editRole(Integer id, String name, String description, String policies, Boolean receiveNotification){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("receiveNotification", receiveNotification + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(Integer id, String name, String description, String policies, Boolean receiveNotification, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("receiveNotification", receiveNotification + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration editRole(final Integer id, final String name, final String description, final String policies, final Boolean receiveNotification, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(id, name, description, policies, receiveNotification);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editRole(final Integer id, final String name, final String description, final String policies, final Boolean receiveNotification, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(id, name, description, policies, receiveNotification);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse editRole(String session, Integer id, String name, String description, String policies){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(String session, Integer id, String name, String description, String policies, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration editRole(final String session, final Integer id, final String name, final String description, final String policies, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(session, id, name, description, policies);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editRole(final String session, final Integer id, final String name, final String description, final String policies, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(session, id, name, description, policies);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse editRole(Integer id, String name, String description, String policies){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(Integer id, String name, String description, String policies, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("description", description);
      _params.put("policies", policies);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration editRole(final Integer id, final String name, final String description, final String policies, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(id, name, description, policies);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editRole(final Integer id, final String name, final String description, final String policies, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(id, name, description, policies);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse editRole(String session, Integer id, String name){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(String session, Integer id, String name, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration editRole(final String session, final Integer id, final String name, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(session, id, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editRole(final String session, final Integer id, final String name, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(session, id, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse editRole(Integer id, String name){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(Integer id, String name, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("name", name);
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration editRole(final Integer id, final String name, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(id, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editRole(final Integer id, final String name, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(id, name);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse editRole(String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration editRole(final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editRole(final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse editRole(Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Collaboration editRole(final Integer id, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration editRole(final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationRoleResponse response = editRole(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationRoleResponse editRole(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 (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, CollaborationRoleResponse.class);
  }

  public CollaborationRoleResponse editRole(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 (CollaborationRoleResponse) _call(appid, serviceUrl + "rest/editrole", _params, headers, CollaborationRoleResponse.class);
  }

  public Response deleteRole(String appid, String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleterole", _params, Response.class);
  }

  public Response deleteRole(String appid, String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleterole", _params, headers, Response.class);
  }

  public Collaboration deleteRole(final String appid, final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              Response response = deleteRole(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deleteRole(final String appid, final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deleteRole(appid, session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deleteRole(String session, Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleterole", _params, Response.class);
  }

  public Response deleteRole(String session, Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleterole", _params, headers, Response.class);
  }

  public Collaboration deleteRole(final String session, final Integer id, final Callback callback){
      new Thread(() -> {
              Response response = deleteRole(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deleteRole(final String session, final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deleteRole(session, id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deleteRole(Integer id){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleterole", _params, Response.class);
  }

  public Response deleteRole(Integer id, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("id", id + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleterole", _params, headers, Response.class);
  }

  public Collaboration deleteRole(final Integer id, final Callback callback){
      new Thread(() -> {
              Response response = deleteRole(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deleteRole(final Integer id, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deleteRole(id);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deleteRole(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/deleterole", _params, Response.class);
  }

  public Response deleteRole(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/deleterole", _params, headers, Response.class);
  }

  public CollaborationResourceResponses getCollaborationResources(String appid, String session, Integer collaborationId, String type, String resourceGroup){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("type", type);
      _params.put("resourceGroup", resourceGroup);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getCollaborationResources(String appid, String session, Integer collaborationId, String type, String resourceGroup, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("type", type);
      _params.put("resourceGroup", resourceGroup);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getCollaborationResources(final String appid, final String session, final Integer collaborationId, final String type, final String resourceGroup, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(appid, session, collaborationId, type, resourceGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResources(final String appid, final String session, final Integer collaborationId, final String type, final String resourceGroup, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(appid, session, collaborationId, type, resourceGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getCollaborationResources(String appid, String session, Integer collaborationId, String type){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("type", type);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getCollaborationResources(String appid, String session, Integer collaborationId, String type, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("type", type);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getCollaborationResources(final String appid, final String session, final Integer collaborationId, final String type, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(appid, session, collaborationId, type);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResources(final String appid, final String session, final Integer collaborationId, final String type, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(appid, session, collaborationId, type);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getCollaborationResources(String appid, String session, Integer collaborationId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getCollaborationResources(String appid, String session, Integer collaborationId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getCollaborationResources(final String appid, final String session, final Integer collaborationId, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(appid, session, collaborationId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResources(final String appid, final String session, final Integer collaborationId, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(appid, session, collaborationId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getCollaborationResources(String appid, String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getCollaborationResources(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 (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getCollaborationResources(final String appid, final String session, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResources(final String appid, final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getCollaborationResources(String session, Integer collaborationId, String type, String resourceGroup){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("type", type);
      _params.put("resourceGroup", resourceGroup);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getCollaborationResources(String session, Integer collaborationId, String type, String resourceGroup, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("type", type);
      _params.put("resourceGroup", resourceGroup);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getCollaborationResources(final String session, final Integer collaborationId, final String type, final String resourceGroup, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(session, collaborationId, type, resourceGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResources(final String session, final Integer collaborationId, final String type, final String resourceGroup, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(session, collaborationId, type, resourceGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getCollaborationResources(Integer collaborationId, String type, String resourceGroup){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("type", type);
      _params.put("resourceGroup", resourceGroup);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getCollaborationResources(Integer collaborationId, String type, String resourceGroup, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("type", type);
      _params.put("resourceGroup", resourceGroup);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getCollaborationResources(final Integer collaborationId, final String type, final String resourceGroup, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(collaborationId, type, resourceGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResources(final Integer collaborationId, final String type, final String resourceGroup, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(collaborationId, type, resourceGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getCollaborationResources(String session, Integer collaborationId, String type){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("type", type);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getCollaborationResources(String session, Integer collaborationId, String type, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("type", type);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getCollaborationResources(final String session, final Integer collaborationId, final String type, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(session, collaborationId, type);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResources(final String session, final Integer collaborationId, final String type, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(session, collaborationId, type);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getCollaborationResources(Integer collaborationId, String type){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("type", type);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getCollaborationResources(Integer collaborationId, String type, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("type", type);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getCollaborationResources(final Integer collaborationId, final String type, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(collaborationId, type);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResources(final Integer collaborationId, final String type, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(collaborationId, type);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getCollaborationResources(String session, Integer collaborationId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getCollaborationResources(String session, Integer collaborationId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getCollaborationResources(final String session, final Integer collaborationId, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(session, collaborationId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResources(final String session, final Integer collaborationId, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(session, collaborationId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getCollaborationResources(Integer collaborationId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getCollaborationResources(Integer collaborationId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getCollaborationResources(final Integer collaborationId, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(collaborationId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResources(final Integer collaborationId, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(collaborationId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getCollaborationResources(String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getCollaborationResources(String session, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getCollaborationResources(final String session, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getCollaborationResources(final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getCollaborationResources(){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public Collaboration getCollaborationResources(final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getCollaborationResources();
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getCollaborationResources(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 (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getCollaborationResources(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 (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getcollaborationresources", _params, headers, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getMemberResources(String appid, String session, Integer memberId, String resourceGroup){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("memberId", memberId + "");
      _params.put("resourceGroup", resourceGroup);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getMemberResources(String appid, String session, Integer memberId, String resourceGroup, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("memberId", memberId + "");
      _params.put("resourceGroup", resourceGroup);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getMemberResources(final String appid, final String session, final Integer memberId, final String resourceGroup, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(appid, session, memberId, resourceGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMemberResources(final String appid, final String session, final Integer memberId, final String resourceGroup, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(appid, session, memberId, resourceGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getMemberResources(String appid, String session, Integer memberId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("memberId", memberId + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getMemberResources(String appid, String session, Integer memberId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("memberId", memberId + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getMemberResources(final String appid, final String session, final Integer memberId, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(appid, session, memberId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMemberResources(final String appid, final String session, final Integer memberId, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(appid, session, memberId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getMemberResources(String appid, String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getMemberResources(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 (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getMemberResources(final String appid, final String session, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMemberResources(final String appid, final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(appid, session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getMemberResources(String session, Integer memberId, String resourceGroup){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("memberId", memberId + "");
      _params.put("resourceGroup", resourceGroup);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getMemberResources(String session, Integer memberId, String resourceGroup, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("memberId", memberId + "");
      _params.put("resourceGroup", resourceGroup);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getMemberResources(final String session, final Integer memberId, final String resourceGroup, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(session, memberId, resourceGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMemberResources(final String session, final Integer memberId, final String resourceGroup, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(session, memberId, resourceGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getMemberResources(Integer memberId, String resourceGroup){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("memberId", memberId + "");
      _params.put("resourceGroup", resourceGroup);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getMemberResources(Integer memberId, String resourceGroup, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("memberId", memberId + "");
      _params.put("resourceGroup", resourceGroup);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getMemberResources(final Integer memberId, final String resourceGroup, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(memberId, resourceGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMemberResources(final Integer memberId, final String resourceGroup, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(memberId, resourceGroup);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getMemberResources(String session, Integer memberId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("memberId", memberId + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getMemberResources(String session, Integer memberId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("memberId", memberId + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getMemberResources(final String session, final Integer memberId, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(session, memberId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMemberResources(final String session, final Integer memberId, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(session, memberId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getMemberResources(Integer memberId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("memberId", memberId + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getMemberResources(Integer memberId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("memberId", memberId + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getMemberResources(final Integer memberId, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(memberId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMemberResources(final Integer memberId, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(memberId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getMemberResources(String session){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getMemberResources(String session, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getMemberResources(final String session, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getMemberResources(final String session, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources(session);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getMemberResources(){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, CollaborationResourceResponses.class);
  }

  public Collaboration getMemberResources(final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getMemberResources();
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getMemberResources(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 (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getMemberResources(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 (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getmemberresources", _params, headers, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getResourceRoles(String appid, String session, String resourceId, String resourceType, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getresourceroles", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getResourceRoles(String appid, String session, String resourceId, String resourceType, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getresourceroles", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getResourceRoles(final String appid, final String session, final String resourceId, final String resourceType, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getResourceRoles(appid, session, resourceId, resourceType, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getResourceRoles(final String appid, final String session, final String resourceId, final String resourceType, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getResourceRoles(appid, session, resourceId, resourceType, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getResourceRoles(String session, String resourceId, String resourceType, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getresourceroles", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getResourceRoles(String session, String resourceId, String resourceType, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getresourceroles", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getResourceRoles(final String session, final String resourceId, final String resourceType, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getResourceRoles(session, resourceId, resourceType, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getResourceRoles(final String session, final String resourceId, final String resourceType, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getResourceRoles(session, resourceId, resourceType, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getResourceRoles(String resourceId, String resourceType, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getresourceroles", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getResourceRoles(String resourceId, String resourceType, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getresourceroles", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration getResourceRoles(final String resourceId, final String resourceType, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getResourceRoles(resourceId, resourceType, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration getResourceRoles(final String resourceId, final String resourceType, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = getResourceRoles(resourceId, resourceType, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses getResourceRoles(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 (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getresourceroles", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses getResourceRoles(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 (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/getresourceroles", _params, headers, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses addResources(String appid, String session, Integer collaborationId, String resources, boolean createRoleIfNeeded){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses addResources(String appid, String session, Integer collaborationId, String resources, boolean createRoleIfNeeded, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration addResources(final String appid, final String session, final Integer collaborationId, final String resources, final boolean createRoleIfNeeded, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = addResources(appid, session, collaborationId, resources, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addResources(final String appid, final String session, final Integer collaborationId, final String resources, final boolean createRoleIfNeeded, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = addResources(appid, session, collaborationId, resources, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses addResources(String appid, String session, Integer collaborationId, String resources){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses addResources(String appid, String session, Integer collaborationId, String resources, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration addResources(final String appid, final String session, final Integer collaborationId, final String resources, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = addResources(appid, session, collaborationId, resources);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addResources(final String appid, final String session, final Integer collaborationId, final String resources, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = addResources(appid, session, collaborationId, resources);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses addResources(String session, Integer collaborationId, String resources, boolean createRoleIfNeeded){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses addResources(String session, Integer collaborationId, String resources, boolean createRoleIfNeeded, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration addResources(final String session, final Integer collaborationId, final String resources, final boolean createRoleIfNeeded, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = addResources(session, collaborationId, resources, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addResources(final String session, final Integer collaborationId, final String resources, final boolean createRoleIfNeeded, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = addResources(session, collaborationId, resources, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses addResources(Integer collaborationId, String resources, boolean createRoleIfNeeded){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses addResources(Integer collaborationId, String resources, boolean createRoleIfNeeded, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration addResources(final Integer collaborationId, final String resources, final boolean createRoleIfNeeded, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = addResources(collaborationId, resources, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addResources(final Integer collaborationId, final String resources, final boolean createRoleIfNeeded, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = addResources(collaborationId, resources, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses addResources(String session, Integer collaborationId, String resources){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses addResources(String session, Integer collaborationId, String resources, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration addResources(final String session, final Integer collaborationId, final String resources, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = addResources(session, collaborationId, resources);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addResources(final String session, final Integer collaborationId, final String resources, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = addResources(session, collaborationId, resources);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses addResources(Integer collaborationId, String resources){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses addResources(Integer collaborationId, String resources, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration addResources(final Integer collaborationId, final String resources, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = addResources(collaborationId, resources);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration addResources(final Integer collaborationId, final String resources, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = addResources(collaborationId, resources);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses addResources(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 (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses addResources(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 (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/addresources", _params, headers, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponse setResource(String appid, String session, Integer collaborationId, String resourceId, String resourceType, String roleIds, Integer ownerUid, boolean createRoleIfNeeded){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("roleIds", roleIds);
      _params.put("ownerUid", ownerUid + "");
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, CollaborationResourceResponse.class);
  }

  public CollaborationResourceResponse setResource(String appid, String session, Integer collaborationId, String resourceId, String resourceType, String roleIds, Integer ownerUid, boolean createRoleIfNeeded, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("roleIds", roleIds);
      _params.put("ownerUid", ownerUid + "");
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, headers, CollaborationResourceResponse.class);
  }

  public Collaboration setResource(final String appid, final String session, final Integer collaborationId, final String resourceId, final String resourceType, final String roleIds, final Integer ownerUid, final boolean createRoleIfNeeded, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponse response = setResource(appid, session, collaborationId, resourceId, resourceType, roleIds, ownerUid, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration setResource(final String appid, final String session, final Integer collaborationId, final String resourceId, final String resourceType, final String roleIds, final Integer ownerUid, final boolean createRoleIfNeeded, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponse response = setResource(appid, session, collaborationId, resourceId, resourceType, roleIds, ownerUid, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponse setResource(String appid, String session, Integer collaborationId, String resourceId, String resourceType, String roleIds, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("roleIds", roleIds);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, CollaborationResourceResponse.class);
  }

  public CollaborationResourceResponse setResource(String appid, String session, Integer collaborationId, String resourceId, String resourceType, String roleIds, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("roleIds", roleIds);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, headers, CollaborationResourceResponse.class);
  }

  public Collaboration setResource(final String appid, final String session, final Integer collaborationId, final String resourceId, final String resourceType, final String roleIds, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponse response = setResource(appid, session, collaborationId, resourceId, resourceType, roleIds, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration setResource(final String appid, final String session, final Integer collaborationId, final String resourceId, final String resourceType, final String roleIds, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponse response = setResource(appid, session, collaborationId, resourceId, resourceType, roleIds, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponse setResource(String session, Integer collaborationId, String resourceId, String resourceType, String roleIds, Integer ownerUid, boolean createRoleIfNeeded){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("roleIds", roleIds);
      _params.put("ownerUid", ownerUid + "");
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, CollaborationResourceResponse.class);
  }

  public CollaborationResourceResponse setResource(String session, Integer collaborationId, String resourceId, String resourceType, String roleIds, Integer ownerUid, boolean createRoleIfNeeded, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("roleIds", roleIds);
      _params.put("ownerUid", ownerUid + "");
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, headers, CollaborationResourceResponse.class);
  }

  public Collaboration setResource(final String session, final Integer collaborationId, final String resourceId, final String resourceType, final String roleIds, final Integer ownerUid, final boolean createRoleIfNeeded, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponse response = setResource(session, collaborationId, resourceId, resourceType, roleIds, ownerUid, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration setResource(final String session, final Integer collaborationId, final String resourceId, final String resourceType, final String roleIds, final Integer ownerUid, final boolean createRoleIfNeeded, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponse response = setResource(session, collaborationId, resourceId, resourceType, roleIds, ownerUid, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponse setResource(Integer collaborationId, String resourceId, String resourceType, String roleIds, Integer ownerUid, boolean createRoleIfNeeded){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("roleIds", roleIds);
      _params.put("ownerUid", ownerUid + "");
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, CollaborationResourceResponse.class);
  }

  public CollaborationResourceResponse setResource(Integer collaborationId, String resourceId, String resourceType, String roleIds, Integer ownerUid, boolean createRoleIfNeeded, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("roleIds", roleIds);
      _params.put("ownerUid", ownerUid + "");
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, headers, CollaborationResourceResponse.class);
  }

  public Collaboration setResource(final Integer collaborationId, final String resourceId, final String resourceType, final String roleIds, final Integer ownerUid, final boolean createRoleIfNeeded, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponse response = setResource(collaborationId, resourceId, resourceType, roleIds, ownerUid, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration setResource(final Integer collaborationId, final String resourceId, final String resourceType, final String roleIds, final Integer ownerUid, final boolean createRoleIfNeeded, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponse response = setResource(collaborationId, resourceId, resourceType, roleIds, ownerUid, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponse setResource(String session, Integer collaborationId, String resourceId, String resourceType, String roleIds, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("roleIds", roleIds);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, CollaborationResourceResponse.class);
  }

  public CollaborationResourceResponse setResource(String session, Integer collaborationId, String resourceId, String resourceType, String roleIds, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("roleIds", roleIds);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, headers, CollaborationResourceResponse.class);
  }

  public Collaboration setResource(final String session, final Integer collaborationId, final String resourceId, final String resourceType, final String roleIds, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponse response = setResource(session, collaborationId, resourceId, resourceType, roleIds, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration setResource(final String session, final Integer collaborationId, final String resourceId, final String resourceType, final String roleIds, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponse response = setResource(session, collaborationId, resourceId, resourceType, roleIds, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponse setResource(Integer collaborationId, String resourceId, String resourceType, String roleIds, Integer ownerUid){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("roleIds", roleIds);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, CollaborationResourceResponse.class);
  }

  public CollaborationResourceResponse setResource(Integer collaborationId, String resourceId, String resourceType, String roleIds, Integer ownerUid, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resourceId", resourceId);
      _params.put("resourceType", resourceType);
      _params.put("roleIds", roleIds);
      _params.put("ownerUid", ownerUid + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, headers, CollaborationResourceResponse.class);
  }

  public Collaboration setResource(final Integer collaborationId, final String resourceId, final String resourceType, final String roleIds, final Integer ownerUid, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponse response = setResource(collaborationId, resourceId, resourceType, roleIds, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration setResource(final Integer collaborationId, final String resourceId, final String resourceType, final String roleIds, final Integer ownerUid, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponse response = setResource(collaborationId, resourceId, resourceType, roleIds, ownerUid);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponse setResource(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 (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, CollaborationResourceResponse.class);
  }

  public CollaborationResourceResponse setResource(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 (CollaborationResourceResponse) _call(appid, serviceUrl + "rest/setresource", _params, headers, CollaborationResourceResponse.class);
  }

  public CollaborationResourceResponses setResources(String appid, String session, Integer collaborationId, String resources, boolean createRoleIfNeeded){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses setResources(String appid, String session, Integer collaborationId, String resources, boolean createRoleIfNeeded, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration setResources(final String appid, final String session, final Integer collaborationId, final String resources, final boolean createRoleIfNeeded, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = setResources(appid, session, collaborationId, resources, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration setResources(final String appid, final String session, final Integer collaborationId, final String resources, final boolean createRoleIfNeeded, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = setResources(appid, session, collaborationId, resources, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses setResources(String appid, String session, Integer collaborationId, String resources){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses setResources(String appid, String session, Integer collaborationId, String resources, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration setResources(final String appid, final String session, final Integer collaborationId, final String resources, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = setResources(appid, session, collaborationId, resources);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration setResources(final String appid, final String session, final Integer collaborationId, final String resources, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = setResources(appid, session, collaborationId, resources);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses setResources(String session, Integer collaborationId, String resources, boolean createRoleIfNeeded){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses setResources(String session, Integer collaborationId, String resources, boolean createRoleIfNeeded, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration setResources(final String session, final Integer collaborationId, final String resources, final boolean createRoleIfNeeded, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = setResources(session, collaborationId, resources, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration setResources(final String session, final Integer collaborationId, final String resources, final boolean createRoleIfNeeded, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = setResources(session, collaborationId, resources, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses setResources(Integer collaborationId, String resources, boolean createRoleIfNeeded){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses setResources(Integer collaborationId, String resources, boolean createRoleIfNeeded, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("createRoleIfNeeded", createRoleIfNeeded + "");
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration setResources(final Integer collaborationId, final String resources, final boolean createRoleIfNeeded, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = setResources(collaborationId, resources, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration setResources(final Integer collaborationId, final String resources, final boolean createRoleIfNeeded, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = setResources(collaborationId, resources, createRoleIfNeeded);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses setResources(String session, Integer collaborationId, String resources){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses setResources(String session, Integer collaborationId, String resources, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration setResources(final String session, final Integer collaborationId, final String resources, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = setResources(session, collaborationId, resources);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration setResources(final String session, final Integer collaborationId, final String resources, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = setResources(session, collaborationId, resources);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses setResources(Integer collaborationId, String resources){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses setResources(Integer collaborationId, String resources, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("resources", resources);
      _params.put("client_source", client_source);
      return (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Collaboration setResources(final Integer collaborationId, final String resources, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = setResources(collaborationId, resources);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration setResources(final Integer collaborationId, final String resources, final Map headers, final Callback callback){
      new Thread(() -> {
              CollaborationResourceResponses response = setResources(collaborationId, resources);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public CollaborationResourceResponses setResources(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 (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, CollaborationResourceResponses.class);
  }

  public CollaborationResourceResponses setResources(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 (CollaborationResourceResponses) _call(appid, serviceUrl + "rest/setresources", _params, headers, CollaborationResourceResponses.class);
  }

  public Response deleteResources(String appid, String session, Integer collaborationId, List ids){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("ids", ids + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleteresources", _params, Response.class);
  }

  public Response deleteResources(String appid, String session, Integer collaborationId, List ids, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("ids", ids + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleteresources", _params, headers, Response.class);
  }

  public Collaboration deleteResources(final String appid, final String session, final Integer collaborationId, final List ids, final Callback callback){
      new Thread(() -> {
              Response response = deleteResources(appid, session, collaborationId, ids);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deleteResources(final String appid, final String session, final Integer collaborationId, final List ids, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deleteResources(appid, session, collaborationId, ids);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deleteResources(String session, Integer collaborationId, List ids){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("ids", ids + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleteresources", _params, Response.class);
  }

  public Response deleteResources(String session, Integer collaborationId, List ids, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("ids", ids + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleteresources", _params, headers, Response.class);
  }

  public Collaboration deleteResources(final String session, final Integer collaborationId, final List ids, final Callback callback){
      new Thread(() -> {
              Response response = deleteResources(session, collaborationId, ids);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deleteResources(final String session, final Integer collaborationId, final List ids, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deleteResources(session, collaborationId, ids);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deleteResources(Integer collaborationId, List ids){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("ids", ids + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleteresources", _params, Response.class);
  }

  public Response deleteResources(Integer collaborationId, List ids, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("collaborationId", collaborationId + "");
      _params.put("ids", ids + "");
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleteresources", _params, headers, Response.class);
  }

  public Collaboration deleteResources(final Integer collaborationId, final List ids, final Callback callback){
      new Thread(() -> {
              Response response = deleteResources(collaborationId, ids);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deleteResources(final Integer collaborationId, final List ids, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deleteResources(collaborationId, ids);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deleteResources(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/deleteresources", _params, Response.class);
  }

  public Response deleteResources(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/deleteresources", _params, headers, Response.class);
  }

  public Response deleteProjectFromResources(String appid, String session, String projectId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("projectId", projectId);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleteprojectfromresources", _params, Response.class);
  }

  public Response deleteProjectFromResources(String appid, String session, String projectId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("projectId", projectId);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleteprojectfromresources", _params, headers, Response.class);
  }

  public Collaboration deleteProjectFromResources(final String appid, final String session, final String projectId, final Callback callback){
      new Thread(() -> {
              Response response = deleteProjectFromResources(appid, session, projectId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deleteProjectFromResources(final String appid, final String session, final String projectId, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deleteProjectFromResources(appid, session, projectId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deleteProjectFromResources(String session, String projectId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("projectId", projectId);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleteprojectfromresources", _params, Response.class);
  }

  public Response deleteProjectFromResources(String session, String projectId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("projectId", projectId);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleteprojectfromresources", _params, headers, Response.class);
  }

  public Collaboration deleteProjectFromResources(final String session, final String projectId, final Callback callback){
      new Thread(() -> {
              Response response = deleteProjectFromResources(session, projectId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deleteProjectFromResources(final String session, final String projectId, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deleteProjectFromResources(session, projectId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deleteProjectFromResources(String projectId){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("projectId", projectId);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleteprojectfromresources", _params, Response.class);
  }

  public Response deleteProjectFromResources(String projectId, Map headers){
      Map _params = new HashMap();
      _params.put("appid", appid);
      _params.put("session", session);
      _params.put("projectId", projectId);
      _params.put("client_source", client_source);
      return (Response) _call(appid, serviceUrl + "rest/deleteprojectfromresources", _params, headers, Response.class);
  }

  public Collaboration deleteProjectFromResources(final String projectId, final Callback callback){
      new Thread(() -> {
              Response response = deleteProjectFromResources(projectId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Collaboration deleteProjectFromResources(final String projectId, final Map headers, final Callback callback){
      new Thread(() -> {
              Response response = deleteProjectFromResources(projectId);
              callback.fire(response);
      }, "callback").start();
      return this;
  }

  public Response deleteProjectFromResources(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/deleteprojectfromresources", _params, Response.class);
  }

  public Response deleteProjectFromResources(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/deleteprojectfromresources", _params, headers, Response.class);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy