public final class SectorHome extends Object
Modifier and Type | Method and Description |
---|---|
static Sector |
create(Sector sector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of sector
|
static Collection<Sector> |
findAll()
Returns a collection of sectors objects
|
static Sector |
findByPrimaryKey(int nKey)
Returns an instance of a sector whose identifier is specified in parameter
|
static fr.paris.lutece.util.ReferenceList |
findLocaleReferenceList(Locale locale)
Selects the reference list with the i18n string at the top (for front)
|
static fr.paris.lutece.util.ReferenceList |
findReferenceList()
Returns a referenceList of sectors
|
static int |
getIdByOrder(int nOrder)
Returns identifier in a distinct order
|
static int |
getMaxOrderSector()
Get the maximum order of sectors
|
static int |
getOrderById(int nOrder)
Returns the order
|
static void |
remove(Sector sector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the Sector whose identifier is specified in parameter
|
static Sector |
update(Sector sector,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the sector which is specified in parameter
|
static void |
updateOrder(int nOrder,
int nIdSector)
Update the order of a sector
|
public static Sector create(Sector sector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
sector
- The instance of the sector which contains the informations to storeplugin
- The Plugin objectpublic static Sector update(Sector sector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
sector
- The instance of the sector which contains the informations to storeplugin
- The Plugin objectpublic static void remove(Sector sector, fr.paris.lutece.portal.service.plugin.Plugin plugin)
sector
- The Sector object to removeplugin
- The Plugin objectpublic static Sector findByPrimaryKey(int nKey)
nKey
- The Primary key of the sectorpublic static Collection<Sector> findAll()
public static fr.paris.lutece.util.ReferenceList findReferenceList()
public static int getIdByOrder(int nOrder)
nOrder
- The order numberpublic static int getOrderById(int nOrder)
nOrder
- the orderpublic static void updateOrder(int nOrder, int nIdSector)
nOrder
- The order of a sectornIdSector
- The id of the sector to updatepublic static int getMaxOrderSector()
public static fr.paris.lutece.util.ReferenceList findLocaleReferenceList(Locale locale)
locale
- The localeCopyright © 2019 City of Paris. All rights reserved.