|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUnitDAO
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
Unit load(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnit - the id unitplugin - the plugin
Unit
List<Unit> selectByIdUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser - the id userplugin - the plugin
UnitList<Unit> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
Unit
List<Unit> selectByFilter(UnitFilter uFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
uFilter - the filterplugin - the plugin
UnitList<Integer> selectAllIdsUser(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
List<Integer> selectIdsUser(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnit - the id unitplugin - the plugin
int insert(Unit unit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
unit - the unitplugin - the plugin
boolean hasSubUnits(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnit - the id unitplugin - the plugin
void remove(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnit - the id unitplugin - the plugin
void update(Unit unit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
unit - the unitplugin - the plugin
void addUserToUnit(int nIdUnit,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnit - the id unitnIdUser - the id userplugin - the plugin
boolean isUserInUnit(int nIdUser,
int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser - the id usernIdUnit - The id of the unitplugin - the plugin
void removeUserFromUnit(int nIdUser,
int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser - the id usernIdUnit - The id of the unitplugin - the plugin
void removeUsersFromUnit(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUnit - the id unitplugin - the plugin
List<Unit> findBySectorId(int nIdSector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSector - id sectorplugin - the plugin
List<Unit> getUnitWithNoChildren(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
void 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 plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||