public interface CategoryFacade
Modifier and Type | Method and Description |
---|---|
Category |
createOrUpdateCategory(String name,
String desctription)
Creates a new category, or updates it if another one with given name exist;
|
List<Category> |
getAllCategories()
Get all categories from db.
|
Category |
getCategoryByName(String name)
Find category with given name in db.
|
Category createOrUpdateCategory(String name, String desctription) throws ServiceException
name
- name of the categorydesctription
- description of the categoryServiceException
- if something goes wrong on the db layer and service layer cannot deal with itList<Category> getAllCategories()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.