|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.unittree.service.unit.UnitUserService
public class UnitUserService
UnitUserService
| Constructor Summary | |
|---|---|
UnitUserService()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnitUserService()
| Method Detail |
|---|
public fr.paris.lutece.portal.business.user.AdminUser getUser(int nIdUser)
getUser in interface IUnitUserServicenIdUser - the id user
AdminUser
public List<fr.paris.lutece.portal.business.user.AdminUser> getUsers(int nIdUnit,
Map<String,Unit> mapIdUserUnit,
boolean isInDepthSearch)
AdminUser from a given id unit
getUsers in interface IUnitUserServicenIdUnit - the id unitmapIdUserUnit - the map of isInDepthSearch - true if it is an in depth search (search in the
sub units too)
AdminUser
public List<fr.paris.lutece.portal.business.user.AdminUser> getAvailableUsers(fr.paris.lutece.portal.business.user.AdminUser currentUser,
int nIdUnit,
boolean bMultiAffectationEnabled)
getAvailableUsers in interface IUnitUserServicecurrentUser - The current usernIdUnit - The id of the unitbMultiAffectationEnabled - True to include users already associated
to a unit, false to ignore them.
AdminUser
public List<fr.paris.lutece.portal.business.user.AdminUser> getAvailableUsers(fr.paris.lutece.portal.business.user.AdminUser currentUser,
int nIdUnit)
getAvailableUsers in interface IUnitUserServicecurrentUser - the current usernIdUnit - The id of the unit
AdminUser. 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.
public void doProcessAddUser(int nIdUser,
fr.paris.lutece.portal.business.user.AdminUser currentUser,
javax.servlet.http.HttpServletRequest request)
doProcessAddUser in interface IUnitUserServicenIdUser - the id usercurrentUser - the current userrequest - the HTTP requesst
public void doProcessModifyUser(int nIdUser,
fr.paris.lutece.portal.business.user.AdminUser currentUser,
javax.servlet.http.HttpServletRequest request)
doProcessModifyUser in interface IUnitUserServicenIdUser - the id usercurrentUser - the current userrequest - the HTTP request
public void doProcessRemoveUser(int nIdUser,
fr.paris.lutece.portal.business.user.AdminUser currentUser,
javax.servlet.http.HttpServletRequest request)
doProcessRemoveUser in interface IUnitUserServicenIdUser - the id usercurrentUser - the current userrequest - the HTTP request
public boolean isUserInUnit(int nIdUser,
int nIdUnit)
isUserInUnit in interface IUnitUserServicenIdUser - the id usernIdUnit - The id of the unit
@Transactional(value="unittree.transactionManager")
public boolean addUserToUnit(int nIdUnit,
int nIdUser)
addUserToUnit in interface IUnitUserServicenIdUnit - the id unitnIdUser - the id user
@Transactional(value="unittree.transactionManager")
public void removeUserFromUnit(int nIdUser,
int nIdUnit)
removeUserFromUnit in interface IUnitUserServicenIdUser - the id usernIdUnit - The id of the unit@Transactional(value="unittree.transactionManager") public void removeUsersFromUnit(int nIdUnit)
removeUsersFromUnit in interface IUnitUserServicenIdUnit - the id unitpublic boolean isMultiAffectationEnabled()
isMultiAffectationEnabled in interface IUnitUserService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||