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
ServiceManagerException
public void add(NewsModel obj) throws ServiceManagerException
add
in interface DataService<NewsModel>
ServiceManagerException
public void addList(List<NewsModel> list) throws ServiceManagerException
addList
in interface NewsService
ServiceManagerException
public void delete(NewsModel condition) throws ServiceManagerException
delete
in interface DataService<NewsModel>
ServiceManagerException
public void edit(NewsModel obj) throws ServiceManagerException
edit
in interface DataService<NewsModel>
ServiceManagerException
public NewsModel get(String id) throws ServiceManagerException
get
in interface DataService<NewsModel>
ServiceManagerException
public LangridList<NewsModel> getList(int index, int count, MatchingCondition[] conditions, Order[] orders, Scope scope) throws ServiceManagerException
getList
in interface DataService<NewsModel>
ServiceManagerException
public int getTotalCount(MatchingCondition[] conditions, Scope scope) throws ServiceManagerException
getTotalCount
in interface DataService<NewsModel>
ServiceManagerException
public 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