public class ResourceServiceImpl extends Object implements ResourceService
Constructor and Description |
---|
ResourceServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
add(ResourceModel resource) |
void |
approveResource(String resourceId) |
void |
delete(ResourceModel model) |
void |
deleteById(String resourceId) |
void |
edit(ResourceModel obj) |
ResourceModel |
get(String id) |
LangridList<ResourceModel> |
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 ResourceServiceImpl() throws ServiceManagerException
ServiceManagerException
public ResourceModel get(String id) throws ServiceManagerException
get
in interface DataService<ResourceModel>
ServiceManagerException
public LangridList<ResourceModel> getList(int index, int count, MatchingCondition[] conditions, Order[] orders, Scope scope) throws ServiceManagerException
getList
in interface DataService<ResourceModel>
ServiceManagerException
public int getTotalCount(MatchingCondition[] conditions, Scope scope) throws ServiceManagerException
getTotalCount
in interface DataService<ResourceModel>
ServiceManagerException
public void add(ResourceModel resource) throws ServiceManagerException
add
in interface DataService<ResourceModel>
ServiceManagerException
public void edit(ResourceModel obj) throws ServiceManagerException
edit
in interface DataService<ResourceModel>
ServiceManagerException
public void delete(ResourceModel model) throws ServiceManagerException
delete
in interface DataService<ResourceModel>
ServiceManagerException
public void deleteById(String resourceId) throws ServiceManagerException
deleteById
in interface ResourceService
ServiceManagerException
public void approveResource(String resourceId) throws ServiceManagerException
approveResource
in interface ResourceService
ServiceManagerException
public boolean isExist(String dataId) throws ServiceManagerException
isExist
in interface DataService<ResourceModel>
ServiceManagerException
public void setScopeParametar(String serviceGridId, String userGridId, String userId)
setScopeParametar
in interface DataService<ResourceModel>