|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Transactional public interface RoleGroupManager
| 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 nameRoleGroup)
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 default role groups if they don't exist in database |
void |
removeRoleGroup(java.lang.String roleGroupId)
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. |
java.lang.String |
updateRoleGroup(RoleGroupTO roleGroupTO)
Update the role group in the registry. |
| Method Detail |
|---|
void init()
throws java.io.IOException,
RoleGroupException
java.io.IOException
RoleGroupException
java.lang.String createRoleGroup(RoleGroupTO roleGroupTO)
throws RoleGroupException
roleGroupTO - 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
@Transactional(readOnly=true)
java.util.List<RoleGroupTO> getAllRoleGroup()
throws RoleGroupException
List of all RoleGroupTO in the registry,
couldn't be null, can be empty
RoleGroupException
@Transactional(readOnly=true)
java.util.List<RoleGroupTO> getRoleGroupNotInUser(java.lang.String idUser)
throws RoleGroupException
idUser - an User id
List of role group associate with user ,
couldn't be null, can be empty
RoleGroupException
@Transactional(readOnly=true)
RoleGroupTO getRoleGroup(java.lang.String nameRoleGroup)
throws RoleGroupException
nameRoleGroup - an RoleGroup name
RoleGroupTO handling data of the RoleGroup
that matches the given id
RoleGroupException - if no role group found for the given name
void removeRoleGroup(java.lang.String roleGroupId)
throws RoleGroupException
roleGroupId - an RoleGroup id
RoleGroupException
java.lang.String updateRoleGroup(RoleGroupTO roleGroupTO)
throws RoleGroupException
roleGroupTO - 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
void addUser(java.lang.String idUser,
java.lang.String idRoleGroup)
throws RoleGroupException
idUser - an User ididRoleGroup - a RoleGroup id
RoleGroupException - if at least one of the given id doesn't exist in database
void removeUser(java.lang.String idUser,
java.lang.String idRoleGroup)
throws RoleGroupException
idUser - an User ididRoleGroup - a RoleGroup id
RoleGroupException - if no organization found for the given id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||