Ejemplo n.º 1
0
 public void loadSync(String itemId) throws ClearBladeException {
   loadSetup(itemId);
   PlatformResponse<String> result = request.execute();
   if (result.getError()) {
     throw new ClearBladeException("Call to Load failed:" + result.getData());
   } else {
     this.json = convertJsonArrayToJsonObject(result.getData());
   }
 }
Ejemplo n.º 2
0
 public Item[] saveSync() throws ClearBladeException {
   saveSetup();
   PlatformResponse<String> result = request.execute();
   if (result.getError()) {
     throw new ClearBladeException("Call to Load failed:" + result.getData());
   } else {
     this.json = convertJsonArrayToJsonObject(result.getData());
   }
   Item[] ret = {this};
   return ret;
 }