|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.unittree.business.sector.SectorDAO
public class SectorDAO
SectorDAO
Constructor Summary | |
---|---|
SectorDAO()
|
Method Summary | |
---|---|
void |
addSectorToUnit(int nIdUnit,
int nIdSector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a sector to an unit |
boolean |
hasSector(int nIdUnit,
int nIdSector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the given id unit has the given sector |
boolean |
hasSectors(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the given id unit has the given sector |
Sector |
load(int nIdSector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a sector |
java.util.List<Sector> |
loadAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load all sectors |
java.util.List<Sector> |
loadByIdUnit(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load sectors from a given id unit |
void |
removeSector(int nIdUnit,
int nIdSector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove sectors from a given id unit |
void |
removeSectorsFromUnit(int nIdUnit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove sectors 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 SectorDAO()
Method Detail |
---|
public Sector load(int nIdSector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ISectorDAO
nIdSector
- the id sectorplugin
- the plugin
Sector
public java.util.List<Sector> loadAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadAll
in interface ISectorDAO
plugin
- the plugin
Sector
public java.util.List<Sector> loadByIdUnit(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadByIdUnit
in interface ISectorDAO
nIdUnit
- the id unitplugin
- the plugin
Sector
public void addSectorToUnit(int nIdUnit, int nIdSector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addSectorToUnit
in interface ISectorDAO
nIdUnit
- the id unitnIdSector
- the id sectorplugin
- the pluginpublic boolean hasSector(int nIdUnit, int nIdSector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasSector
in interface ISectorDAO
nIdUnit
- the id unitnIdSector
- the id sectorplugin
- the plugin
public boolean hasSectors(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasSectors
in interface ISectorDAO
nIdUnit
- the id unitplugin
- the plugin
public void removeSectorsFromUnit(int nIdUnit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeSectorsFromUnit
in interface ISectorDAO
nIdUnit
- the id unitplugin
- the pluginpublic void removeSector(int nIdUnit, int nIdSector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeSector
in interface ISectorDAO
nIdUnit
- the id unitnIdSector
- the id sectorplugin
- the plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |