Skip to content

Commit

Permalink
Add saving of OpenACD agent password as pinToken
Browse files Browse the repository at this point in the history
  • Loading branch information
danchang committed May 20, 2012
1 parent eb5b7c2 commit 8020029
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Expand Up @@ -426,7 +426,8 @@ private void updateAgent(OpenAcdAgent agent, OpenAcdAgentRestInfoFull agentRestI
agent.setGroup(agentGroup);

agent.setSecurity(agentRestInfo.getSecurity());

agent.getUser().setPintoken(agentRestInfo.getPassword());

agent.getSkills().clear();

OpenAcdSkill skill;
Expand Down
Expand Up @@ -617,6 +617,7 @@ static class OpenAcdAgentRestInfoFull {
private final int m_groupId;
private final String m_groupName;
private final String m_security;
private final String m_password;
private final List<OpenAcdSkillRestInfo> m_skills;
private final List<OpenAcdQueueRestInfo> m_queues;
private final List<OpenAcdClientRestInfo> m_clients;
Expand All @@ -630,6 +631,7 @@ public OpenAcdAgentRestInfoFull(OpenAcdAgent agent, List<OpenAcdSkillRestInfo> s
m_groupId = agent.getGroup().getId();
m_groupName = agent.getGroup().getName();
m_security = agent.getSecurity();
m_password = ""; // only used on updates, not rest get
m_skills = skills;
m_queues = queues;
m_clients = clients;
Expand Down Expand Up @@ -667,6 +669,10 @@ public String getSecurity() {
return m_security;
}

public String getPassword() {
return m_password;
}

public List<OpenAcdSkillRestInfo> getSkills() {
return m_skills;
}
Expand Down

0 comments on commit 8020029

Please sign in to comment.