예제 #1
0
  @Override
  public LRSResponse updateAgentProfile(AgentProfileDocument profile) {
    HashMap<String, String> queryParams = new HashMap<String, String>();
    queryParams.put("profileId", profile.getId());
    queryParams.put("agent", profile.getAgent().toJSON(this.getVersion(), this.usePrettyJSON()));

    return updateDocument("agents/profile", queryParams, profile);
  }
예제 #2
0
  @Override
  public LRSResponse deleteAgentProfile(AgentProfileDocument profile) {
    HashMap<String, String> queryParams = new HashMap<String, String>();
    queryParams.put("profileId", profile.getId());
    queryParams.put("agent", profile.getAgent().toJSON(this.getVersion(), this.usePrettyJSON()));
    // TODO: need to pass Etag?

    return deleteDocument("agents/profile", queryParams);
  }