@Override @RolesAllowed("user") @Transactional(readOnly = true) public Map getTaggedObjectsCount(@NotNull @Validate(Long.class) Set<Long> tagIds, Parameters options) { Map<Long, Long> counts = new HashMap<Long, Long>(); Iterator<Long> i = tagIds.iterator(); Long id; while (i.hasNext()) { id = i.next(); counts.put(id, countTaggedObjects(id)); } return counts; }
/** * 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); }
/** * IContainer bean injector. For use during configuration. Can only be called * once. * @param iContainer The value to set. */ public final void setIContainer(IContainer iContainer) { getBeanHelper().throwIfAlreadySet(this.iContainer, iContainer); this.iContainer = iContainer; }
if (!names.contains(name)) { names.add(name); builder = createLightQuery(ls, false); if (builder != null) { list.addAll(
@Override @RolesAllowed("user") @Transactional(readOnly = true) public Long countAnnotationsUsedNotOwned(@NotNull Class annotationType, long userID) { Set s = loadAnnotationsUsedNotOwned(annotationType, userID); if (s != null) return new Long(s.size()); return -1L; }
@Override @RolesAllowed("user") @Transactional(readOnly = true) public Map<Long, Set<IObject>> loadTagContent(@NotNull @Validate(Long.class) Set<Long> tagIds, Parameters options) { Map<Long, Set<IObject>> m = new HashMap<Long, Set<IObject>>(); Iterator<Long> i = tagIds.iterator(); Long id; while (i.hasNext()) { id = i.next(); m.put(id, loadObjects(id, options)); } return m; }
Query<List<IAnnotated>> q = getQueryFactory().lookup( PojosFindAnnotationsQueryDefinition.class.getName(), po.addIds(rootNodeIds).addClass(rootNodeType)
src = light.getLightSource(); if (!(src instanceof LightEmittingDiode)) { sb = createLightQuery(src, true); if (sb != null) { params = new Parameters(); params = new Parameters(); params.addId(pump.getId()); sb = createLightQuery(pump, true); if (sb != null) laser.setPump((LightSource)
@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());