Examples of addAll()


Examples of org.exoplatform.services.jcr.dataflow.PlainChangesLog.addAll()

   {
      PlainChangesLog cLog = new PlainChangesLogImpl(sessionId);

      if (rootPath.equals(Constants.ROOT_PATH))
      {
         cLog.addAll(items);
         clear();
      }
      else
      {
         cLog.addAll(getDescendantsChanges(rootPath));
View Full Code Here

Examples of org.exoplatform.services.jcr.dataflow.PlainChangesLogImpl.addAll()

   {
      PlainChangesLog cLog = new PlainChangesLogImpl(sessionId);

      if (rootPath.equals(Constants.ROOT_PATH))
      {
         cLog.addAll(items);
         clear();
      }
      else
      {
         cLog.addAll(getDescendantsChanges(rootPath));
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.session.SessionChangesLog.addAll()

         ItemDataRemoveVisitor remover =
            new ItemDataRemoveVisitor(session.getTransientNodesManager(), null, session.getWorkspace()
               .getNodeTypesHolder(), session.getAccessManager(), session.getUserState());
         nodeData().accept(remover);

         changes.addAll(remover.getRemovedStates());
      }
      catch (ItemNotFoundException e)
      {
         LOG.debug("No corresponding node in workspace: " + srcWorkspaceName);
         return;
View Full Code Here

Examples of org.exoplatform.services.token.attribute.Attributes.addAll()

      System.out.println("\n\nAdd:");
      List<Attribute> attrList = new ArrayList<Attribute>();
      attrList.add(new Attribute("caption", "New Table"));
      attrList.add(1, new Attribute("border", "2"));
      attrList.add(2, new Attribute("bgcolor", "blue"));
      assertEquals(true, attrs.addAll(0, attrList));
      for (Attribute attr : attrs)
      {
         System.out.println("NAME: " + attr.getName() + " & " + "VALUE: " + attr.getValue());
      }
View Full Code Here

Examples of org.fao.geonet.domain.statistic.SearchRequest.addAll()

        request.setSortBy(this.sortBy);
        request.setSpatialFilter(this.spatialFilter);

        // stores each QueryInfo object into the database
        if (this.queryInfos != null && !this.autoGenQuery) {
            request.addAll(this.queryInfos);
        } else {
            if (this.autoGenQuery) {
                if (Log.isDebugEnabled(Geonet.SEARCH_LOGGER)) {
                    Log.debug(Geonet.SEARCH_LOGGER, "Guiservice/autogenerated query not inserted into database: " + this.luceneQuery);
                }
View Full Code Here

Examples of org.gdbms.engine.data.metadata.DefaultSpatialDriverMetadata.addAll()

   
    public SpatialDriverMetadata getDriverMetadata() throws DriverException {
       DriverMetadata dmd = dataSource.getDriverMetadata();
       DefaultSpatialDriverMetadata ret = new DefaultSpatialDriverMetadata();
       ret.addSpatialField(getMetadata().getFieldName(0), getGeometryType());
       ret.addAll(dmd);
      
       return ret;
    }

    public int getType(String driverType) {
View Full Code Here

Examples of org.geotools.data.memory.MemoryFeatureCollection.addAll()

            //get the data from the source
            try{
                //cache these features in a local feature collection while we deal with them
                SimpleFeatureCollection localSource = new MemoryFeatureCollection(getSchema());
                fromSource = this.fs.getFeatures(filter);
                localSource.addAll(fromSource);
                fromSource = localSource;
            }catch (Exception ex){
                //something happened getting data from source
                //return what we have from the cache
                logger.log(Level.INFO, "Error getting data for cache from source feature store.", ex);
View Full Code Here

Examples of org.geotools.data.simple.SimpleFeatureCollection.addAll()

            //get the data from the source
            try{
                //cache these features in a local feature collection while we deal with them
                SimpleFeatureCollection localSource = new MemoryFeatureCollection(getSchema());
                fromSource = this.fs.getFeatures(filter);
                localSource.addAll(fromSource);
                fromSource = localSource;
            }catch (Exception ex){
                //something happened getting data from source
                //return what we have from the cache
                logger.log(Level.INFO, "Error getting data for cache from source feature store.", ex);
View Full Code Here

Examples of org.geotools.data.wfs.feature.LenientBuilder.addAll()

                    SimpleFeature f = iter.next();
                   
                    String nextFid = ts.nextFid(schema.getTypeName());
                    Object[] values = f.getAttributes().toArray();
                   
                    build.addAll( values );
                    newFeature = build.buildFeature( nextFid );
                   
                    r.add(newFeature.getIdentifier());
                } catch (IllegalAttributeException e) {
                    throw (IOException) new IOException( e.getLocalizedMessage() );
View Full Code Here

Examples of org.geotools.feature.DefaultFeatureCollection.addAll()

            MessageDialog.openError(display.getActiveShell(), Messages.differenceOp_inputError, fromLayer.getName() + Messages.differenceOp_multiGeoms);
            return;
        }
       
        final DefaultFeatureCollection diffFeatures = new DefaultFeatureCollection();
        diffFeatures.addAll(diffSource.getFeatures());
       
        FeatureStore<SimpleFeatureType, SimpleFeature> destStore = (FeatureStore<SimpleFeatureType, SimpleFeature>)ds.getFeatureSource("diff"); //$NON-NLS-1$
       
        // TODO: figure out whatever this FeatureReader is doing; and make it a feature collection instead
        destStore.addFeatures(DataUtilities.collection(new FeatureReader<SimpleFeatureType, SimpleFeature>(){
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.