public interface IUnitUserService
Modifier and Type | Method and Description |
---|---|
boolean |
addUserToUnit(int nIdUnit,
int nIdUser)
Add an user to an unit
|
void |
doProcessAddUser(int nIdUser,
fr.paris.lutece.portal.business.user.AdminUser currentUser,
javax.servlet.http.HttpServletRequest request)
Do process adding the user to the unit
|
void |
doProcessModifyUser(int nIdUser,
fr.paris.lutece.portal.business.user.AdminUser currentUser,
javax.servlet.http.HttpServletRequest request)
Do process modifying the user
|
void |
doProcessRemoveUser(int nIdUser,
fr.paris.lutece.portal.business.user.AdminUser currentUser,
javax.servlet.http.HttpServletRequest request)
Do process removing an user from an unit
|
List<fr.paris.lutece.portal.business.user.AdminUser> |
getAvailableUsers(fr.paris.lutece.portal.business.user.AdminUser currentUser,
int nIdUnit)
Get the list of available users for a given unit.
|
List<fr.paris.lutece.portal.business.user.AdminUser> |
getAvailableUsers(fr.paris.lutece.portal.business.user.AdminUser currentUser,
int nIdUnit,
boolean bMultiAffectationEnabled)
Get the list of available users for a given unit.
|
fr.paris.lutece.portal.business.user.AdminUser |
getUser(int nIdUser)
Get the user from a given id user
|
List<fr.paris.lutece.portal.business.user.AdminUser> |
getUsers(int nIdUnit,
Map<String,Unit> mapIdUserUnit,
boolean isInDepthSearch)
Get the list of
AdminUser from a given id unit |
boolean |
isMultiAffectationEnabled()
Check if users can be affected to several units at the same time or not
|
boolean |
isUserInUnit(int nIdUser,
int nIdUnit)
Check if the given user is in a given unit
|
void |
removeUserFromUnit(int nIdUser,
int nIdUnit)
Remove the user from a unit
|
void |
removeUsersFromUnit(int nIdUnit)
Remove users from a given id unit
|
fr.paris.lutece.portal.business.user.AdminUser getUser(int nIdUser)
nIdUser
- the id userAdminUser
List<fr.paris.lutece.portal.business.user.AdminUser> getUsers(int nIdUnit, Map<String,Unit> mapIdUserUnit, boolean isInDepthSearch)
AdminUser
from a given id unitnIdUnit
- the id unitmapIdUserUnit
- the map of isInDepthSearch
- true if it is an in depth search (search in the sub units too)AdminUser
List<fr.paris.lutece.portal.business.user.AdminUser> getAvailableUsers(fr.paris.lutece.portal.business.user.AdminUser currentUser, int nIdUnit)
currentUser
- the current usernIdUnit
- The id of the unitAdminUser
. If multi affectation is not enabled, return users that can be administered by the current user and that are not
associated with any unit. Otherwise returns users that are not associated directly or transitively to the unit and that the current user can
administer.List<fr.paris.lutece.portal.business.user.AdminUser> getAvailableUsers(fr.paris.lutece.portal.business.user.AdminUser currentUser, int nIdUnit, boolean bMultiAffectationEnabled)
currentUser
- The current usernIdUnit
- The id of the unitbMultiAffectationEnabled
- True to include users already associated to a unit, false to ignore them.AdminUser
void doProcessAddUser(int nIdUser, fr.paris.lutece.portal.business.user.AdminUser currentUser, javax.servlet.http.HttpServletRequest request)
nIdUser
- the id usercurrentUser
- the current userrequest
- the HTTP requesstvoid doProcessModifyUser(int nIdUser, fr.paris.lutece.portal.business.user.AdminUser currentUser, javax.servlet.http.HttpServletRequest request)
nIdUser
- the id usercurrentUser
- the current userrequest
- the HTTP requestvoid doProcessRemoveUser(int nIdUser, fr.paris.lutece.portal.business.user.AdminUser currentUser, javax.servlet.http.HttpServletRequest request)
nIdUser
- the id usercurrentUser
- the current userrequest
- the HTTP requestboolean isUserInUnit(int nIdUser, int nIdUnit)
nIdUser
- the id usernIdUnit
- The id of the unit@Transactional(value="unittree.transactionManager") boolean addUserToUnit(int nIdUnit, int nIdUser)
nIdUnit
- the id unitnIdUser
- the id user@Transactional(value="unittree.transactionManager") void removeUserFromUnit(int nIdUser, int nIdUnit)
nIdUser
- the id usernIdUnit
- The id of the unit@Transactional(value="unittree.transactionManager") void removeUsersFromUnit(int nIdUnit)
nIdUnit
- the id unitboolean isMultiAffectationEnabled()
Copyright © 2019 City of Paris. All rights reserved.