public interface IUnitDAO
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 uFilter,
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
|
int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the pluginUnit load(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnit
- the id unitplugin
- the pluginUnit
List<Unit> selectByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser
- the id userplugin
- the pluginUnit
List<Unit> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the pluginUnit
List<Unit> selectByFilter(UnitFilter uFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
uFilter
- the filterplugin
- the pluginUnit
List<Integer> selectAllIdsUser(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the pluginList<Integer> selectIdsUser(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnit
- the id unitplugin
- the pluginint insert(Unit unit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
unit
- the unitplugin
- the pluginboolean hasSubUnits(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnit
- the id unitplugin
- the pluginvoid remove(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnit
- the id unitplugin
- the pluginvoid update(Unit unit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
unit
- the unitplugin
- the pluginvoid addUserToUnit(int nIdUnit, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnit
- the id unitnIdUser
- the id userplugin
- the pluginboolean isUserInUnit(int nIdUser, int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser
- the id usernIdUnit
- The id of the unitplugin
- the pluginvoid removeUserFromUnit(int nIdUser, int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser
- the id usernIdUnit
- The id of the unitplugin
- the pluginvoid removeUsersFromUnit(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnit
- the id unitplugin
- the pluginList<Unit> findBySectorId(int nIdSector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSector
- id sectorplugin
- the pluginList<Unit> getUnitWithNoChildren(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the pluginvoid updateParent(int nIdUnitToMove, int nIdNewParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnitToMove
- The id of the unit to change the parent of.nIdNewParent
- The id of the new parent of the unit.plugin
- The pluginCopyright © 2017 City of Paris. All rights reserved.