|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.stock.service.TicketCategoryService
@Transactional(readOnly=true) public final class TicketCategoryService
TicketCategoryService
| Method Summary | |
|---|---|
java.lang.String |
doCreateCategory(Category category,
javax.servlet.http.HttpServletRequest request)
Creates a category |
void |
doDeleteCategory(int nIdCategory)
Deletes a category |
java.lang.String |
doModifyCategory(Category category,
javax.servlet.http.HttpServletRequest request)
Modifies a category |
java.util.List<Category> |
findByFilter(CategoryFilter filter)
Finds all categories which match the given filter |
Category |
getCategory(int nIdCategory)
Get the category with the given id |
java.lang.String |
getCategoryClass()
Get the class of the category object |
Category |
getCategoryWithChildren(java.lang.Integer idCategory)
Finds a category and all his subcategories and fetch children |
Category |
getCategoryWithParent(int nIdCategory)
Finds a category and fetch parent |
java.lang.String |
getCreateTemplate()
Get the creation template of a service |
java.lang.String |
getDeleteJsp()
Return the jsp for deleting a product |
IProviderHome |
getHomeProvider()
Get the provider home |
ITicketCategoryHome<TicketCategory> |
getHomeTicketCategory()
Get the ITicketCategoryHome object |
static TicketCategoryService |
getInstance()
Get the single instance of this class |
java.lang.String |
getMessageNotAuthorizedForCreate()
Get the message when a user is not authorized to create a category |
java.lang.String |
getMessageNotAuthorizedForDelete()
Get the message when a user is not authorized to delete a category |
java.lang.String |
getMessageNotAuthorizedForModification()
Get the message when a user is not authorized to modify a category |
java.lang.String |
getModifyTemplate()
Get the modification template of a service |
ObjectDefinition |
getObjectDefinition()
Return the ObjectDefinition object of the service |
void |
init()
Init the object |
void |
initModelForCreation(java.util.Map<java.lang.String,java.lang.Object> model)
Initaliaze the model in parameter for a creation |
void |
initModelForModification(int nIdCategory,
java.util.Map<java.lang.String,java.lang.Object> model)
Initaliaze the model in parameter for a modification |
boolean |
isAuthorizedToCreate(fr.paris.lutece.portal.business.user.AdminUser user)
Checks if the given user is authorized to create a category |
boolean |
isAuthorizedToDelete(fr.paris.lutece.portal.business.user.AdminUser user)
Checks if the given user is authorized to delete a category |
boolean |
isAuthorizedToModify(fr.paris.lutece.portal.business.user.AdminUser user)
Checks if the given user is authorized to modify a category |
void |
setHomeProvider(IProviderHome homeProvider)
Set the provider home |
void |
setHomeTicketCategory(ITicketCategoryHome<TicketCategory> homeTicketCategory)
Set the ITicketCategoryHome object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public IProviderHome getHomeProvider()
public void setHomeProvider(IProviderHome homeProvider)
homeProvider - the new provider homepublic ITicketCategoryHome<TicketCategory> getHomeTicketCategory()
ITicketCategoryHome object
ITicketCategoryHome objectpublic void setHomeTicketCategory(ITicketCategoryHome<TicketCategory> homeTicketCategory)
ITicketCategoryHome object
homeTicketCategory - the new ITicketCategoryHome objectpublic static TicketCategoryService getInstance()
public java.lang.String getCreateTemplate()
getCreateTemplate in interface ICategoryServicepublic java.lang.String getModifyTemplate()
getModifyTemplate in interface ICategoryServicepublic java.lang.String getDeleteJsp()
getDeleteJsp in interface ICategoryServicepublic java.lang.String getCategoryClass()
getCategoryClass in interface ICategoryServicepublic void init()
init in interface ICategoryService
@Transactional
public java.lang.String doCreateCategory(Category category,
javax.servlet.http.HttpServletRequest request)
doCreateCategory in interface ICategoryServicecategory - The category to create in databaserequest - The HTTP request
@Transactional
public java.lang.String doModifyCategory(Category category,
javax.servlet.http.HttpServletRequest request)
doModifyCategory in interface ICategoryServicecategory - The category to modify in databaserequest - The HTTP request
@Transactional public void doDeleteCategory(int nIdCategory)
doDeleteCategory in interface ICategoryServicenIdCategory - The category id to delete in database
public void initModelForModification(int nIdCategory,
java.util.Map<java.lang.String,java.lang.Object> model)
initModelForModification in interface ICategoryServicenIdCategory - The category id to modifymodel - the model which will be passed in the modification templatepublic void initModelForCreation(java.util.Map<java.lang.String,java.lang.Object> model)
initModelForCreation in interface ICategoryServicemodel - the model which will be passed in the modification templatepublic Category getCategory(int nIdCategory)
getCategory in interface ICategoryServicenIdCategory - The category id
public Category getCategoryWithParent(int nIdCategory)
getCategoryWithParent in interface ICategoryServicenIdCategory - the id of the searched category
public ObjectDefinition getObjectDefinition()
getObjectDefinition in interface ICategoryServicepublic Category getCategoryWithChildren(java.lang.Integer idCategory)
getCategoryWithChildren in interface ICategoryServiceidCategory - the id of upper category
public java.util.List<Category> findByFilter(CategoryFilter filter)
findByFilter in interface ICategoryServicefilter - The filter
public boolean isAuthorizedToCreate(fr.paris.lutece.portal.business.user.AdminUser user)
isAuthorizedToCreate in interface ICategoryServiceuser - the user
public boolean isAuthorizedToModify(fr.paris.lutece.portal.business.user.AdminUser user)
isAuthorizedToModify in interface ICategoryServiceuser - the user
public boolean isAuthorizedToDelete(fr.paris.lutece.portal.business.user.AdminUser user)
isAuthorizedToDelete in interface ICategoryServiceuser - the user
public java.lang.String getMessageNotAuthorizedForCreate()
getMessageNotAuthorizedForCreate in interface ICategoryServicepublic java.lang.String getMessageNotAuthorizedForDelete()
getMessageNotAuthorizedForDelete in interface ICategoryServicepublic java.lang.String getMessageNotAuthorizedForModification()
getMessageNotAuthorizedForModification in interface ICategoryService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||