public final class CategoryHome extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copy(Category category)
Copy of an instance of Form
|
static int |
countEntriesForCategory(Category category)
counts the entries for a given category
|
static int |
countPublishedAnnouncesForCategory(Category category)
Count the number of published announce of a given category
|
static void |
create(Category category)
Creation of an instance of category
|
static List<Category> |
findAll()
Returns a collection of categories objects
|
static Category |
findByPrimaryKey(int nKey)
Returns an instance of a category whose identifier is specified in parameter
|
static List<Category> |
findCategoriesForSector(Sector sector)
selects the categories list for a given sector
|
static fr.paris.lutece.util.ReferenceList |
findCategoriesReferenceList()
gets the categories reference list
|
static void |
remove(Category category)
Remove the Category whose identifier is specified in parameter
|
static Category |
update(Category category)
Update of the category which is specified in parameter
|
public static void create(Category category)
category
- The instance of the category which contains the informations to storepublic static Category update(Category category)
category
- The instance of the category which contains the informations to storepublic static void remove(Category category)
category
- The Category object to removepublic static Category findByPrimaryKey(int nKey)
nKey
- The Primary key of the categorypublic static List<Category> findAll()
public static List<Category> findCategoriesForSector(Sector sector)
sector
- the sectorpublic static fr.paris.lutece.util.ReferenceList findCategoriesReferenceList()
public static int countEntriesForCategory(Category category)
category
- the categorypublic static int countPublishedAnnouncesForCategory(Category category)
category
- The category to get the number of published announce ofpublic static void copy(Category category)
form
- The instance of the Form who must copyplugin
- the PluginCopyright © 2019 City of Paris. All rights reserved.