Examples of findAll()


Examples of org.apache.wookie.beans.util.IPersistenceManager.findAll()

    doGet(request, response);
  }

  private void instantiateOperation(HttpServletRequest request, IWidgetAdminManager manager){
        IPersistenceManager persistenceManager = PersistenceManagerFactory.getPersistenceManager();
    IWidget[] widgets = persistenceManager.findAll(IWidget.class);
    request.setAttribute("widgets", widgets); //$NON-NLS-1$
  }
  /**
   * Creates a table, looks for widget definitions with a string (the name of
   * the widget) and an instance of the widget which references the actual widget
View Full Code Here

Examples of org.apache.xbean.finder.ResourceFinder.findAll()

                final ResourceFinder finder = new ResourceFinder("", urls.toArray(new URL[urls.size()]));
                otherDD.putAll(getDescriptors(finder, false));

                // "persistence.xml" is done separately since we mange alist of url and not s single url
                try {
                    final List<URL> persistenceXmls = finder.findAll(ddDir + "persistence.xml");
                    if (persistenceXmls.size() > 1) {
                        final URL old = (URL) otherDD.get("persistence.xml");
                        if (old != null && !persistenceXmls.contains(old)) {
                            persistenceXmls.add(old);
                        }
View Full Code Here

Examples of org.cipres.treebase.domain.taxon.TaxonLabelHome.findAll()

    rt.setupContext();
    TaxonLabelHome tlHome = ContextManager.getTaxonLabelHome();
   
    // Map taxonlabels to the submissions that contain them
    Map<TaxonLabel,List<Submission>> submissions = new HashMap<TaxonLabel,List<Submission>> ();
    for (Object o : tlHome.findAll(Submission.class)) {
      Submission sub = (Submission) o;
      for (TaxonLabel tl : sub.getSubmittedTaxonLabelsReadOnly()) {
        if (! submissions.containsKey(tl)) {
          submissions.put(tl, new LinkedList<Submission> ());
        }
View Full Code Here

Examples of org.fao.geonet.repository.GroupRepository.findAll()

  public GroupMapper(ServiceContext context) throws Exception
  {

        final GroupRepository groupRepository = context.getBean(GroupRepository.class);

        for (Group record : groupRepository.findAll()) {
            String id = "" + record.getId();
            String name = record.getName();

            add(name, id);
        }
View Full Code Here

Examples of org.fao.geonet.repository.LanguageRepository.findAll()

                    .setEmail(email)
                    .setLogo(logoUUID)
                    .setWebsite(website);

            final LanguageRepository langRepository = context.getBean(LanguageRepository.class);
            java.util.List<Language> allLanguages = langRepository.findAll();
            for (Language l : allLanguages) {
                group.getLabelTranslations().put(l.getId(), name);
            }

            groupRepository.save(group);
View Full Code Here

Examples of org.fao.geonet.repository.MetadataCategoryRepository.findAll()

    public void addCategories(Metadata metadata, Iterable<String> categories, CategoryMapper localCateg, ServiceContext context,
                              Logger log, String serverCategory) {

        final MetadataCategoryRepository categoryRepository = context.getBean(MetadataCategoryRepository.class);
        Map<String, MetadataCategory> nameToCategoryMap = new HashMap<String, MetadataCategory>();
        for (MetadataCategory metadataCategory : categoryRepository.findAll()) {
            nameToCategoryMap.put(""+metadataCategory.getId(), metadataCategory);
        }
        for(String catId : categories)  {
            String name = localCateg.getName(catId);
View Full Code Here

Examples of org.fao.geonet.repository.MetadataRelationRepository.findAll()

        } else {
            spec = MetadataRelationSpecs.hasRelatedId(id);
        }

        HashSet<Integer> results = new HashSet<Integer>();
        for (MetadataRelation metadataRelation : relationRepository.findAll(spec)) {
            if (findMetadataId) {
                results.add(metadataRelation.getId().getMetadataId());
            } else {
                results.add(metadataRelation.getId().getRelatedId());
            }
View Full Code Here

Examples of org.fao.geonet.repository.MetadataRepository.findAll()

  //--------------------------------------------------------------------------

  public UriMapper(ServiceContext context, String harvestUuid) throws Exception
  {
        final MetadataRepository metadataRepository = context.getBean(MetadataRepository.class);
        final List<Metadata> metadataList = metadataRepository.findAll(MetadataSpecs.hasHarvesterUuid(harvestUuid));

    for (Metadata record : metadataList) {
      String uri  = record.getHarvestInfo().getUri();

      List<RecordInfo> records = hmUriRecords.get(uri);
View Full Code Here

Examples of org.fao.geonet.repository.OperationAllowedRepository.findAll()

      OperationAllowedRepository operationAllowedRepository = context.getBean(OperationAllowedRepository.class);

        final Specification<OperationAllowed> hasGroupId = OperationAllowedSpecs.hasGroupId(ReservedGroup.all.getId());
        final Specification<OperationAllowed> hasMetadataId = OperationAllowedSpecs.hasMetadataId(id);
        final Specifications<OperationAllowed> spec = Specifications.where(hasGroupId).and(hasMetadataId);
        List<OperationAllowed> opsAllowed = operationAllowedRepository.findAll(spec);
    return !opsAllowed.isEmpty();
  }

  //--------------------------------------------------------------------------
View Full Code Here

Examples of org.fao.geonet.repository.ServiceRepository.findAll()

            eltServices.setAttribute("package", "org.fao.geonet");
           
            java.util.List<Service> serviceList = null;
            ServiceRepository serviceRepo = context.getBean(ServiceRepository.class);
            if (serviceIdentifierToLoad == -1) {
                serviceList = serviceRepo.findAll();
            } else {
                serviceList = Collections.singletonList(serviceRepo.findOne(serviceIdentifierToLoad));
            }

            for (Service service : serviceList) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.