public class NewsServiceImpl extends Object implements NewsService
| Constructor and Description |
|---|
NewsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(NewsModel obj) |
void |
addList(List<NewsModel> list) |
void |
delete(NewsModel condition) |
void |
edit(NewsModel obj) |
NewsModel |
get(String id) |
LangridList<NewsModel> |
getList(int index,
int count,
MatchingCondition[] conditions,
Order[] orders,
Scope scope) |
int |
getTotalCount(MatchingCondition[] conditions,
Scope scope) |
boolean |
isExist(String dataId) |
void |
setScopeParametar(String serviceGridId,
String userGridId,
String userId) |
public NewsServiceImpl()
throws ServiceManagerException
ServiceManagerExceptionpublic void add(NewsModel obj) throws ServiceManagerException
add in interface DataService<NewsModel>ServiceManagerExceptionpublic void addList(List<NewsModel> list) throws ServiceManagerException
addList in interface NewsServiceServiceManagerExceptionpublic void delete(NewsModel condition) throws ServiceManagerException
delete in interface DataService<NewsModel>ServiceManagerExceptionpublic void edit(NewsModel obj) throws ServiceManagerException
edit in interface DataService<NewsModel>ServiceManagerExceptionpublic NewsModel get(String id) throws ServiceManagerException
get in interface DataService<NewsModel>ServiceManagerExceptionpublic LangridList<NewsModel> getList(int index, int count, MatchingCondition[] conditions, Order[] orders, Scope scope) throws ServiceManagerException
getList in interface DataService<NewsModel>ServiceManagerExceptionpublic int getTotalCount(MatchingCondition[] conditions, Scope scope) throws ServiceManagerException
getTotalCount in interface DataService<NewsModel>ServiceManagerExceptionpublic void setScopeParametar(String serviceGridId, String userGridId, String userId)
setScopeParametar in interface DataService<NewsModel>public boolean isExist(String dataId) throws ServiceManagerException
isExist in interface DataService<NewsModel>ServiceManagerException