This commit is contained in:
@@ -64,12 +64,13 @@ public class ConferenceManagerBean implements IConferenceManager {
|
||||
* m<>thodes relatives aux roles
|
||||
* */
|
||||
|
||||
public void addRole(Role.RoleType roleType, String login, Integer confId) {
|
||||
public Role addRole(Role.RoleType roleType, String login, Integer confId) {
|
||||
User user = em.find(User.class, login);
|
||||
Conference conf = em.find(Conference.class, confId);
|
||||
Role role = new Role(roleType, user, conf);
|
||||
em.persist(role);
|
||||
em.flush();
|
||||
return role;
|
||||
}
|
||||
|
||||
public void removeRole(Role role) {
|
||||
|
||||
Reference in New Issue
Block a user