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