Package org.cyclos.services.marketplace
Interface AdCategoryService
-
- All Superinterfaces:
CRUDService<AdCategoryDTO,AdCategoryData,AdCategoryVO>,Service
- All Known Subinterfaces:
AdCategoryServiceLocal
public interface AdCategoryService extends CRUDService<AdCategoryDTO,AdCategoryData,AdCategoryVO>
Service interface for ad categories
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsaveCategories(@NotNull List<AdCategoryDTO> categories)Saves several categoriesvoidsaveOrder(@NotNull List<Long> categoryIds)Updates the order field according to the sequence on AdCategoryVOs setPage<AdCategoryDetailedVO>search(@NotNull AdCategoryQuery params)Searches categories according to parametersvoidsortAlphabetically(AdCategoryVO adCategory)Updates the order field of categories child of the given category (or root if adCategoryVO is null) alphabetically (by name)-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
-
-
-
Method Detail
-
saveCategories
void saveCategories(@NotNull @NotNull List<AdCategoryDTO> categories) throws FrameworkExceptionSaves several categories- Throws:
FrameworkException
-
saveOrder
void saveOrder(@NotNull @NotNull List<Long> categoryIds) throws FrameworkExceptionUpdates the order field according to the sequence on AdCategoryVOs set- Throws:
FrameworkException
-
search
Page<AdCategoryDetailedVO> search(@NotNull @NotNull AdCategoryQuery params) throws FrameworkException
Searches categories according to parameters- Throws:
FrameworkException
-
sortAlphabetically
void sortAlphabetically(AdCategoryVO adCategory) throws FrameworkException
Updates the order field of categories child of the given category (or root if adCategoryVO is null) alphabetically (by name)- Throws:
FrameworkException
-
-