|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.dragon.service.administration.RoleGroupManagerImpl
public class RoleGroupManagerImpl
| Constructor Summary | |
|---|---|
RoleGroupManagerImpl()
|
|
| Method Summary | |
|---|---|
void |
addUser(java.lang.String idUser,
java.lang.String idRoleGroup)
Add the user matching the given idUser to the roleGroup matching the given idRoleGroup |
java.lang.String |
createRoleGroup(RoleGroupTO roleGroupTO)
Add a new Role Group in registry. |
java.util.List<RoleGroupTO> |
getAllRoleGroup()
Return the list of all role group in the registry |
RoleGroupTO |
getRoleGroup(java.lang.String idGroup)
Retrieve the role group matching the given name |
java.util.List<RoleGroupTO> |
getRoleGroupNotInUser(java.lang.String idUser)
Return the list of role group associate with user |
void |
init()
Create the "admin" group role if not already exists in database |
void |
removeRoleGroup(java.lang.String idGroup)
Remove the role group matching the given id from the registry. |
void |
removeUser(java.lang.String idUser,
java.lang.String idRoleGroup)
Remove the user matching the given idUser from the list of users of the roleGroup matching the given idRoleGroup. |
void |
setRoleDAO(RoleDAO roleDAO)
|
void |
setRoleGroupDAO(RoleGroupDAO roleGroupDAO)
|
void |
setRolesAndUsersTransfertObjectAssembler(RolesAndUsersTransfertObjectAssembler rolesAndUsersTransfertObjectAssembler)
|
void |
setUserDAO(UserDAO userDAO)
|
java.lang.String |
updateRoleGroup(RoleGroupTO roleGroupTO)
Update the role group in the registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoleGroupManagerImpl()
| Method Detail |
|---|
public void init()
RoleGroupManager
init in interface RoleGroupManager
public java.lang.String createRoleGroup(RoleGroupTO roleGroupTO)
throws RoleGroupException
RoleGroupManager
createRoleGroup in interface RoleGroupManagerroleGroupTO - the RoleGroupTO handling data of the RoleGroup
to create
RoleGroup
RoleGroupException - if you try to create an role group with name that already
exists or an role group without name
public java.util.List<RoleGroupTO> getAllRoleGroup()
throws RoleGroupException
RoleGroupManager
getAllRoleGroup in interface RoleGroupManagerList of all RoleGroupTO in the registry,
couldn't be null, can be empty
RoleGroupException
public java.util.List<RoleGroupTO> getRoleGroupNotInUser(java.lang.String idUser)
throws RoleGroupException
RoleGroupManager
getRoleGroupNotInUser in interface RoleGroupManageridUser - an User id
List of role group associate with user ,
couldn't be null, can be empty
RoleGroupException
public RoleGroupTO getRoleGroup(java.lang.String idGroup)
throws RoleGroupException
RoleGroupManager
getRoleGroup in interface RoleGroupManageridGroup - an RoleGroup name
RoleGroupTO handling data of the RoleGroup
that matches the given id
RoleGroupException - if no role group found for the given name
public void removeRoleGroup(java.lang.String idGroup)
throws RoleGroupException
RoleGroupManager
removeRoleGroup in interface RoleGroupManageridGroup - an RoleGroup id
RoleGroupException
public java.lang.String updateRoleGroup(RoleGroupTO roleGroupTO)
throws RoleGroupException
RoleGroupManager
updateRoleGroup in interface RoleGroupManagerroleGroupTO - the RoleGroupTO handling data of the RoleGroup
to update
RoleGroupException - if an error occurs during role group update : role group to
update doesn't exist or have the same name as an other
registered role group
public void removeUser(java.lang.String idUser,
java.lang.String idRoleGroup)
throws RoleGroupException
RoleGroupManager
removeUser in interface RoleGroupManageridUser - an User ididRoleGroup - a RoleGroup id
RoleGroupException - if no organization found for the given id
public void addUser(java.lang.String idUser,
java.lang.String idRoleGroup)
throws RoleGroupException
RoleGroupManager
addUser in interface RoleGroupManageridUser - an User ididRoleGroup - a RoleGroup id
RoleGroupException - if at least one of the given id doesn't exist in databasepublic void setRolesAndUsersTransfertObjectAssembler(RolesAndUsersTransfertObjectAssembler rolesAndUsersTransfertObjectAssembler)
public void setRoleGroupDAO(RoleGroupDAO roleGroupDAO)
public void setRoleDAO(RoleDAO roleDAO)
public void setUserDAO(UserDAO userDAO)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||