Subversion Repositories SmartDukaan

Rev

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

Rev 4793 Rev 5168
Line 56... Line 56...
56
    	for (String agentRole : roles) {
56
    	for (String agentRole : roles) {
57
    		agentMapper.insertAgentRole(agent.getId(), agentRole);
57
    		agentMapper.insertAgentRole(agent.getId(), agentRole);
58
    	}
58
    	}
59
    	
59
    	
60
    }
60
    }
-
 
61
 
-
 
62
	public void changeAgentRole(long id, List<String> roles) {
-
 
63
		agentMapper.removeAgentRoles(id);
-
 
64
		for(String agentRole : roles) {
-
 
65
			agentMapper.insertAgentRole(id, agentRole);
-
 
66
		}
-
 
67
		
-
 
68
	}
61
}
69
}