publish(new GroupAuthorityEvent(group));
}
@SuppressWarnings({ "unchecked", "rawtypes" })
public void updateState(Long[] resourceIds, boolean isEnabled) {
OqlBuilder query = OqlBuilder.from(Resource.class, "resource");
query.where("resource.id in (:ids)", resourceIds);
List<Resource> resources = entityDao.search(query);
for (Resource resource : resources) {
resource.setEnabled(isEnabled);
}
entityDao.saveOrUpdate(resources);