| Constructor and Description |
|---|
UnitDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUserToUnit(int nIdUnit,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add an user to an unit
|
List<Unit> |
findBySectorId(int nIdSector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return all the Unit of the Sector
|
List<Unit> |
getUnitWithNoChildren(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return all the Unit with no children (level 0)
|
boolean |
hasSubUnits(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the given id unit has sub units or not
|
int |
insert(Unit unit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new unit
|
boolean |
isUserInUnit(int nIdUser,
int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the user is in the unit
|
Unit |
load(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the unit
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get new primary key
|
void |
remove(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a unit
|
void |
removeUserFromUnit(int nIdUser,
int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a given user from the unit
|
void |
removeUsersFromUnit(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove users from a given id unit
|
List<Unit> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select all units
|
List<Integer> |
selectAllIdsUser(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select all ids user
|
List<Unit> |
selectByFilter(UnitFilter cmFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the units by filter
|
List<Unit> |
selectByIdUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load an unit by id user
|
List<Integer> |
selectIdsUser(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select the ids user from a given id unit
|
void |
update(Unit unit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a unit
|
void |
updateParent(int nIdUnitToMove,
int nIdNewParent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the parent of a unit
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey in interface IUnitDAOplugin - the pluginpublic int insert(Unit unit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public Unit load(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public List<Unit> selectByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByIdUser in interface IUnitDAOnIdUser - the id userplugin - the pluginUnitpublic List<Unit> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void remove(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
public boolean hasSubUnits(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasSubUnits in interface IUnitDAOnIdUnit - the id unitplugin - the pluginpublic void removeUserFromUnit(int nIdUser,
int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeUserFromUnit in interface IUnitDAOnIdUser - the id usernIdUnit - The id of the unitplugin - the pluginpublic void removeUsersFromUnit(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeUsersFromUnit in interface IUnitDAOnIdUnit - the id unitplugin - the pluginpublic void update(Unit unit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public List<Unit> selectByFilter(UnitFilter cmFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByFilter in interface IUnitDAOcmFilter - the filterplugin - the pluginUnitpublic List<Integer> selectAllIdsUser(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAllIdsUser in interface IUnitDAOplugin - the pluginpublic List<Integer> selectIdsUser(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdsUser in interface IUnitDAOnIdUnit - the id unitplugin - the pluginpublic void addUserToUnit(int nIdUnit,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
addUserToUnit in interface IUnitDAOnIdUnit - the id unitnIdUser - the id userplugin - the pluginpublic boolean isUserInUnit(int nIdUser,
int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
isUserInUnit in interface IUnitDAOnIdUser - the id usernIdUnit - The id of the unitplugin - the pluginpublic List<Unit> findBySectorId(int nIdSector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findBySectorId in interface IUnitDAOnIdSector - id sectorplugin - the pluginpublic List<Unit> getUnitWithNoChildren(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getUnitWithNoChildren in interface IUnitDAOplugin - the pluginpublic void updateParent(int nIdUnitToMove,
int nIdNewParent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateParent in interface IUnitDAOnIdUnitToMove - The id of the unit to change the parent of.nIdNewParent - The id of the new parent of the unit.plugin - The pluginCopyright © 2015 City of Paris. All rights reserved.