io.cloudboost.CloudRole Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JavaSDK Show documentation
Show all versions of JavaSDK Show documentation
An open source Java SDK for CloudBoost developing apps
package io.cloudboost;
import io.cloudboost.beans.CBResponse;
import io.cloudboost.json.JSONArray;
import io.cloudboost.json.JSONException;
import io.cloudboost.json.JSONObject;
import io.cloudboost.util.CBParser;
import java.util.ArrayList;
/**
*
* @author cloudboost
*
*/
public class CloudRole extends CloudObject{
private CloudRole thisObj;
public CloudRole(String roleName){
super("Role");
try{
this.document.put("_type", "role");
this.document.put("name", roleName);
JSONArray col = new JSONArray(this.document.get("_modifiedColumns").toString());
ArrayList modified = new ArrayList();
for(int i=0; i