|
||||||||||
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 ICategoryService
public java.lang.String getModifyTemplate()
getModifyTemplate
in interface ICategoryService
public java.lang.String getDeleteJsp()
getDeleteJsp
in interface ICategoryService
public java.lang.String getCategoryClass()
getCategoryClass
in interface ICategoryService
public void init()
init
in interface ICategoryService
@Transactional public java.lang.String doCreateCategory(Category category, javax.servlet.http.HttpServletRequest request)
doCreateCategory
in interface ICategoryService
category
- 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 ICategoryService
category
- The category to modify in databaserequest
- The HTTP request
@Transactional public void doDeleteCategory(int nIdCategory)
doDeleteCategory
in interface ICategoryService
nIdCategory
- The category id to delete in databasepublic void initModelForModification(int nIdCategory, java.util.Map<java.lang.String,java.lang.Object> model)
initModelForModification
in interface ICategoryService
nIdCategory
- 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 ICategoryService
model
- the model which will be passed in the modification templatepublic Category getCategory(int nIdCategory)
getCategory
in interface ICategoryService
nIdCategory
- The category id
public Category getCategoryWithParent(int nIdCategory)
getCategoryWithParent
in interface ICategoryService
nIdCategory
- the id of the searched category
public ObjectDefinition getObjectDefinition()
getObjectDefinition
in interface ICategoryService
public Category getCategoryWithChildren(java.lang.Integer idCategory)
getCategoryWithChildren
in interface ICategoryService
idCategory
- the id of upper category
public java.util.List<Category> findByFilter(CategoryFilter filter)
findByFilter
in interface ICategoryService
filter
- The filter
public boolean isAuthorizedToCreate(fr.paris.lutece.portal.business.user.AdminUser user)
isAuthorizedToCreate
in interface ICategoryService
user
- the user
public boolean isAuthorizedToModify(fr.paris.lutece.portal.business.user.AdminUser user)
isAuthorizedToModify
in interface ICategoryService
user
- the user
public boolean isAuthorizedToDelete(fr.paris.lutece.portal.business.user.AdminUser user)
isAuthorizedToDelete
in interface ICategoryService
user
- the user
public java.lang.String getMessageNotAuthorizedForCreate()
getMessageNotAuthorizedForCreate
in interface ICategoryService
public java.lang.String getMessageNotAuthorizedForDelete()
getMessageNotAuthorizedForDelete
in interface ICategoryService
public java.lang.String getMessageNotAuthorizedForModification()
getMessageNotAuthorizedForModification
in interface ICategoryService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |