|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.unittree.service.sector.SectorService
public class SectorService
SectorService
Constructor Summary | |
---|---|
SectorService()
|
Method Summary | |
---|---|
void |
addSectorsToUnit(Unit unit,
java.util.List<java.lang.Integer> listIdsSector)
Add sectors to the unit |
java.util.List<Sector> |
findAll()
Find all sectors |
java.util.List<Sector> |
findByIdUnit(int nIdUnit)
find a list of sectors from a given id unit |
Sector |
findByPrimaryKey(int nIdSector)
Find a sector from its primary key |
java.util.List<java.lang.Integer> |
getIdsSectorByIdUnit(int nIdUnit)
Get the ids sector from a given id unit |
boolean |
hasSector(int nIdUnit,
int nIdSector)
Check if the unit has the sector |
boolean |
hasSectors(int nIdUnit)
Check if the unit has sectors |
void |
removeSector(int nIdUnit,
int nIdSector)
Remove the sectors from an unit |
void |
removeSectorsFromUnit(int nIdUnit)
Remove the sectors from an unit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SectorService()
Method Detail |
---|
public Sector findByPrimaryKey(int nIdSector)
findByPrimaryKey
in interface ISectorService
nIdSector
- the id sector
Sector
public java.util.List<Sector> findAll()
findAll
in interface ISectorService
Sector
public java.util.List<Sector> findByIdUnit(int nIdUnit)
findByIdUnit
in interface ISectorService
nIdUnit
- the id unit
Sector
public java.util.List<java.lang.Integer> getIdsSectorByIdUnit(int nIdUnit)
getIdsSectorByIdUnit
in interface ISectorService
nIdUnit
- the id unit
public boolean hasSector(int nIdUnit, int nIdSector)
hasSector
in interface ISectorService
nIdUnit
- the id unitnIdSector
- the id sector
public boolean hasSectors(int nIdUnit)
hasSectors
in interface ISectorService
nIdUnit
- the id unit
@Transactional(value="unittree.transactionManager") public void addSectorsToUnit(Unit unit, java.util.List<java.lang.Integer> listIdsSector)
addSectorsToUnit
in interface ISectorService
unit
- the unitlistIdsSector
- the list of ids sector@Transactional(value="unittree.transactionManager") public void removeSectorsFromUnit(int nIdUnit)
removeSectorsFromUnit
in interface ISectorService
nIdUnit
- the id unitpublic void removeSector(int nIdUnit, int nIdSector)
removeSector
in interface ISectorService
nIdUnit
- the id unitnIdSector
- the id sector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |