예제 #1
0
  // --------------------------------------------------------------------------------
  public void login(String user, String apiKey) {
    try {
      session = new MSession(user, apiKey);
      session.init();

      state = STATE_LOGIN_SUCCESS;
      notify1();

      zoneMap = session.getZone();
      state = STATE_ZONE_SUCCESS;
      notify1();
    } catch (Exception e) {
      handleError(e);
    }
  }
예제 #2
0
 // --------------------------------------------------------------------------------
 public void onDomainSelect(Map domainData) {
   try {
     recordMap = session.getRecord((String) domainData.get("name"));
     state = STATE_RECORD_SUCCESS;
     notify1();
   } catch (Exception e) {
     handleError(e);
   }
 }
예제 #3
0
 // --------------------------------------------------------------------------------
 public void updateRecord(String recordId, String fieldName, String value) {
   try {
     recordMap = session.updateRecord(recordId, fieldName, value);
     state = STATE_RECORD_SUCCESS;
     notify1();
   } catch (Exception e) {
     handleError(e);
   }
 }