Subversion Repositories SmartDukaan

Rev

Rev 3390 | Rev 5286 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3390 Rev 4793
Line 136... Line 136...
136
    }
136
    }
137
 
137
 
138
    public static List<Agent> getAgents() {
138
    public static List<Agent> getAgents() {
139
        return new ArrayList<Agent>(agentsMapById.values());
139
        return new ArrayList<Agent>(agentsMapById.values());
140
    }
140
    }
-
 
141
    
-
 
142
    public static void removeAgent(Long id, String emailId) {
-
 
143
    	agentsMapById.remove(id);
-
 
144
    	agentsMapByEmailId.remove(emailId);
-
 
145
    }
-
 
146
    
-
 
147
    public static void addAgent(Agent agent) {
-
 
148
    	agentsMapById.put(agent.getId(), agent);
-
 
149
    	agentsMapByEmailId.put(agent.getEmailId(), agent);
-
 
150
    }
-
 
151
    
141
}
152
}