|
||||||||||
| 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 ISectorServicenIdSector - the id sector
Sectorpublic java.util.List<Sector> findAll()
findAll in interface ISectorServiceSectorpublic java.util.List<Sector> findByIdUnit(int nIdUnit)
findByIdUnit in interface ISectorServicenIdUnit - the id unit
Sectorpublic java.util.List<java.lang.Integer> getIdsSectorByIdUnit(int nIdUnit)
getIdsSectorByIdUnit in interface ISectorServicenIdUnit - the id unit
public boolean hasSector(int nIdUnit,
int nIdSector)
hasSector in interface ISectorServicenIdUnit - the id unitnIdSector - the id sector
public boolean hasSectors(int nIdUnit)
hasSectors in interface ISectorServicenIdUnit - the id unit
@Transactional(value="unittree.transactionManager")
public void addSectorsToUnit(Unit unit,
java.util.List<java.lang.Integer> listIdsSector)
addSectorsToUnit in interface ISectorServiceunit - the unitlistIdsSector - the list of ids sector@Transactional(value="unittree.transactionManager") public void removeSectorsFromUnit(int nIdUnit)
removeSectorsFromUnit in interface ISectorServicenIdUnit - the id unit
public void removeSector(int nIdUnit,
int nIdSector)
removeSector in interface ISectorServicenIdUnit - the id unitnIdSector - the id sector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||