|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.myportal.service.CategoryService
public final class CategoryService
CategoryService
| Method Summary | |
|---|---|
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 |
java.util.Collection<Category> |
getCategoriesList()
Load the data of all the category objects and returns them in form of a collection |
static CategoryService |
getInstance()
Get the instance of CategoryService |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CategoryService getInstance()
CategoryService
CategoryServicepublic java.util.Collection<Category> getCategoriesList()
public fr.paris.lutece.util.ReferenceList getCategories()
public Category findByPrimaryKey(int nCategoryId)
nCategoryId - The category primary key
public Category createCategory(Category category)
category - The instance of the Category which contains the informations to store
public boolean removeCategory(int nCategoryId)
nCategoryId - The category Id
public Category updateCategory(Category category)
category - The instance of the Category which contains the data to store
public Category findFirstCategory()
Category
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||