@Override public String batchDelete( Model model, @RequestParam("items") Long[] items, HttpServletRequest request, HttpServletResponse response) throws RebirthException { List<CircleTopicEntity> list = circleService.findByIds(CircleTopicEntity.class, Arrays.asList(items)); circleService.delete(list); return "circle/circleDeatil"; }
@PostFilter("hasPermission(filterObject, 'read')") public List<PersonMatch> searchForPersonBy(final SearchCriteria searchCriteria) { if (StringUtils.hasText(searchCriteria.getIdentifierValue())) { final String identifierValue = searchCriteria.getIdentifierValue(); final Person person = this.findPersonByIdentifier( searchCriteria.getIdentifierType().getName(), identifierValue); if (person != null) return new ArrayList<PersonMatch>( Arrays.asList(new PersonMatchImpl(person, 100, new ArrayList<FieldMatch>()))); else return new ArrayList<PersonMatch>(); } final List<Person> persons = this.personRepository.searchByCriteria(searchCriteria); return createMatches(persons); }
@Override protected Iterable<PropertyDescriptor<?>> createConfigurationCapabilities() { return Arrays.<PropertyDescriptor<?>>asList(ROLES); }