public interface ResourceDao
Modifier and Type | Method and Description |
---|---|
void |
addResource(Resource resource) |
void |
clear() |
void |
deleteResource(String resourceGridId,
String resourceId) |
void |
deleteResourcesOfGrid(String gridId) |
void |
deleteResourcesOfUser(String userGridId,
String userId) |
Resource |
getResource(String resourceGridId,
String resourceId) |
boolean |
isResourceExist(String resourceGridId,
String resourceId) |
List<Resource> |
listAllResources(String resourceGridId) |
List<Resource> |
listResourcesOfUser(String userGridId,
String userId) |
ResourceSearchResult |
searchResources(int startIndex,
int maxCount,
String resourceGridId,
MatchingCondition[] conditions,
Order[] orders) |
void clear() throws DaoException
DaoException
List<Resource> listAllResources(String resourceGridId) throws DaoException
DaoException
List<Resource> listResourcesOfUser(String userGridId, String userId) throws DaoException
DaoException
ResourceSearchResult searchResources(int startIndex, int maxCount, String resourceGridId, MatchingCondition[] conditions, Order[] orders) throws DaoException
DaoException
void addResource(Resource resource) throws DaoException, ResourceAlreadyExistsException
void deleteResource(String resourceGridId, String resourceId) throws ResourceNotFoundException, DaoException
void deleteResourcesOfGrid(String gridId) throws DaoException
DaoException
void deleteResourcesOfUser(String userGridId, String userId) throws DaoException
DaoException
Resource getResource(String resourceGridId, String resourceId) throws ResourceNotFoundException, DaoException
boolean isResourceExist(String resourceGridId, String resourceId) throws DaoException
DaoException