/** * Retrieves the annotation of the given type. * * @param type The type of annotation to retrieve. * @param include The collection of name spaces to include. * @param exclude The collection of name spaces to exclude. * @param options The options if any. * @return See above. */ private List<IObject> getAnnotation(@NotNull Class type, Set<String> include, Set<String> exclude, Parameters options) { return getAnnotation(type, include, exclude, null, null, options); }
@Override @RolesAllowed("user") @Transactional(readOnly = true) public Long countSpecifiedAnnotations( @NotNull Class type, Set<String> include, Set<String> exclude, Parameters options) { List list = getAnnotation(type, include, exclude, options); if (list != null) return new Long(list.size()); return -1L; }
Parameters options) List<IObject> list = getAnnotation(type, include, exclude, options); Iterator<IObject> i; if (FILE_TYPE.equals(type.getName()) && list != null) {
List<IObject> list = getAnnotation(type, include, exclude, rootNodeType, rootNodeIds, options); Map<Long, Set<A>> map = new HashMap<Long, Set<A>>(rootNodeIds.size());