|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.calendar.service.CategoryService
public class CategoryService
This classe provide services for Category
| Nested Class Summary | |
|---|---|
class |
CategoryService.CategoryDisplay
This class defines a CategoryDisplay object intended to be used in freemarker templates It provide the Category object and other informations. |
| Method Summary | |
|---|---|
static java.util.Collection<CategoryService.CategoryDisplay> |
getAllCategoriesDisplay(fr.paris.lutece.portal.business.user.AdminUser user)
Get all Category converted to CategoryDisplay objects |
static java.util.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 java.util.Collection<CategoryService.CategoryDisplay> |
getAllCategoriesDisplay(java.util.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 java.lang.String |
getResourceImageCategory(int nCategoryId)
Management of the image associated to the Category |
java.lang.String |
getResourceTypeId()
Get the type of resource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 object
public java.lang.String getResourceTypeId()
getResourceTypeId in interface fr.paris.lutece.portal.service.image.ImageResourceProviderpublic static java.util.Collection<CategoryService.CategoryDisplay> getAllCategoriesDisplay(fr.paris.lutece.portal.business.user.AdminUser user)
user - The current user
public static java.util.Collection<CategoryService.CategoryDisplay> getAllCategoriesDisplay(int[] arrayIdCategory,
fr.paris.lutece.portal.business.user.AdminUser user)
arrayIdCategory - The array of Id categoriesuser - The current user
public static java.util.Collection<CategoryService.CategoryDisplay> getAllCategoriesDisplay(java.util.List<Category> listCategory,
fr.paris.lutece.portal.business.user.AdminUser user)
listCategory - The list of ca tuser - The current user
public static CategoryService.CategoryDisplay getCategoryDisplay(int nIdCategory)
nIdCategory - The id of Category
public static java.lang.String getResourceImageCategory(int nCategoryId)
nCategoryId - The Category identifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||