@Override // @ApiMethod(name = "agent.get", httpMethod = "post") public AgentInfo getUser() throws IllegalArgumentException { ObjectifyService.begin(); AgentInfo userInfo = null; User user = getUserFromSession(); if (user != null) { userInfo = agentManager.getAgent(user.getEmail()); } return userInfo; }
@Override // @ApiMethod(name = "agents.get", httpMethod = "post") public List<AgentInfo> getAgents() throws IllegalArgumentException { ObjectifyService.begin(); return agentManager.getAgents(); }