Example #1
0
 public void deleteByIds(Set<Long> ids) {
   for (Long id : ids) {
     Resource resource = resourceDAO.getById(id);
     resourceDAO.delete(resource);
   }
   refreshProtectedResources();
 }
Example #2
0
 public Resource getResourceById(Long id) {
   return resourceDAO.getById(id);
 }