public final class CategoryService extends Object
| Modifier and Type | Method and Description |
|---|---|
Category |
createCategory(Category category)
Create an instance of the category class
|
Category |
findByPrimaryKey(int nCategoryId)
Returns an instance of a category whose identifier is specified in parameter
|
Category |
findFirstCategory()
Find the first category (order by the ID category)
|
fr.paris.lutece.util.ReferenceList |
getCategories()
Load the data of all the category objects and returns them in form of a ReferenceList
|
Collection<Category> |
getCategoriesList()
Load the data of all the category objects and returns them in form of a collection
|
boolean |
removeCategory(int nCategoryId)
Remove the category whose identifier is specified in parameter.
|
Category |
updateCategory(Category category)
Update of the category which is specified in parameter
|
public static final String BEAN_NAME
public Collection<Category> getCategoriesList()
public fr.paris.lutece.util.ReferenceList getCategories()
public Category findByPrimaryKey(int nCategoryId)
nCategoryId - The category primary keypublic Category createCategory(Category category)
category - The instance of the Category which contains the informations to storepublic boolean removeCategory(int nCategoryId)
nCategoryId - The category Idpublic Category updateCategory(Category category)
category - The instance of the Category which contains the data to storeCopyright © 2018 City of Paris. All rights reserved.