public class CategoryService extends Object implements fr.paris.lutece.portal.service.image.ImageResourceProvider
| Modifier and Type | Class and Description |
|---|---|
class |
CategoryService.CategoryDisplay
This class defines a CategoryDisplay object intended to be used in
freemarker templates
It provide the Category object and other informations.
|
| Modifier and Type | Method and Description |
|---|---|
static Collection<CategoryService.CategoryDisplay> |
getAllCategoriesDisplay(fr.paris.lutece.portal.business.user.AdminUser user)
Get all Category converted to CategoryDisplay objects
|
static Collection<CategoryService.CategoryDisplay> |
getAllCategoriesDisplay(int[] arrayIdCategory,
fr.paris.lutece.portal.business.user.AdminUser user)
Get all Category converted to CategoryDisplay objects and tagged with the
assigned value when lists of categories matched
|
static Collection<CategoryService.CategoryDisplay> |
getAllCategoriesDisplay(List<Category> listCategory,
fr.paris.lutece.portal.business.user.AdminUser user)
Get all Category converted to CategoryDisplay objects and tagged with the
assigned value when lists of categories matched
|
static CategoryService.CategoryDisplay |
getCategoryDisplay(int nIdCategory)
Return a CategoryDisplay object for a specified Category
|
fr.paris.lutece.portal.service.image.ImageResource |
getImageResource(int nIdCategory)
Get the resource for image
|
static CategoryService |
getInstance()
Get the unique instance of the service
|
static String |
getResourceImageCategory(int nCategoryId)
Management of the image associated to the Category
|
String |
getResourceTypeId()
Get the type of resource
|
public static CategoryService getInstance()
public fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nIdCategory)
getImageResource in interface fr.paris.lutece.portal.service.image.ImageResourceProvidernIdCategory - The identifier of Category objectpublic String getResourceTypeId()
getResourceTypeId in interface fr.paris.lutece.portal.service.image.ImageResourceProviderpublic static Collection<CategoryService.CategoryDisplay> getAllCategoriesDisplay(fr.paris.lutece.portal.business.user.AdminUser user)
user - The current userpublic static Collection<CategoryService.CategoryDisplay> getAllCategoriesDisplay(int[] arrayIdCategory, fr.paris.lutece.portal.business.user.AdminUser user)
arrayIdCategory - The array of Id categoriesuser - The current userpublic static Collection<CategoryService.CategoryDisplay> getAllCategoriesDisplay(List<Category> listCategory, fr.paris.lutece.portal.business.user.AdminUser user)
listCategory - The list of ca tuser - The current userpublic static CategoryService.CategoryDisplay getCategoryDisplay(int nIdCategory)
nIdCategory - The id of Categorypublic static String getResourceImageCategory(int nCategoryId)
nCategoryId - The Category identifierCopyright © 2020 City of Paris. All rights reserved.