@Service @Repository @Transactional public class CategoryServiceImpl extends AbstractPagingAndSortingService implements CategoryService
Constructor and Description |
---|
CategoryServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deleteCategory(Long categoryId) |
List<CategoryModel> |
getCategories() |
List<CategoryModel> |
getCategories(int startPage,
int itemsPerPage,
String sortColumn,
String direction) |
List<CategoryModel> |
getCategories(String catalogId) |
List<CategoryModel> |
getCategories(String catalogId,
int startPage,
int itemsPerPage,
String sortColumn,
String direction) |
Optional<CategoryModel> |
getCategory(Long categoryId) |
Optional<CategoryModel> |
getCategory(String catalogId,
String name) |
CategoryModel |
saveCategory(CategoryModel category) |
createPageRequest
public List<CategoryModel> getCategories()
getCategories
in interface CategoryService
public List<CategoryModel> getCategories(String catalogId)
getCategories
in interface CategoryService
public List<CategoryModel> getCategories(int startPage, int itemsPerPage, String sortColumn, String direction)
getCategories
in interface CategoryService
public List<CategoryModel> getCategories(String catalogId, int startPage, int itemsPerPage, String sortColumn, String direction)
getCategories
in interface CategoryService
public Optional<CategoryModel> getCategory(Long categoryId)
getCategory
in interface CategoryService
public Optional<CategoryModel> getCategory(String catalogId, String name)
getCategory
in interface CategoryService
public CategoryModel saveCategory(CategoryModel category)
saveCategory
in interface CategoryService
public void deleteCategory(Long categoryId)
deleteCategory
in interface CategoryService
Copyright © 2016-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Apache Log4j Audit, Log4j, Log4j Audit, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.