Examples of load()


Examples of pt.webdetails.cdf.dd.cdf.CdfTemplates.load()

    String method = requestParams.getStringParameter( REQUEST_PARAM_OPERATION, null );

    final CdfTemplates cdfTemplates = new CdfTemplates( GET_RESOURCE );

    if ( method.equals( OPERATION_LOAD ) ) {
      Object result = cdfTemplates.load();
      JsonUtils.buildJsonResult( out, true, result );
    } else if ( method.equals( OPERATION_SAVE ) ) {
      String file = requestParams.getStringParameter( REQUEST_PARAM_FILE, null ),
        structure = requestParams.getStringParameter( CdeConstants.MethodParams.CDF_STRUCTURE, null );
      cdfTemplates.save( file, structure );
View Full Code Here

Examples of pt.webdetails.cdf.dd.structure.DashboardStructure.load()

      final DashboardStructure dashboardStructure = new DashboardStructure();
      Object result = null;

      if ( OPERATION_LOAD.equalsIgnoreCase( operation ) ) {
        String file = getRequestParameters().getStringParameter( "file", null );
        JsonUtils.buildJsonResult( getResponse().getOutputStream(), true, dashboardStructure.load( file ) );
        return;
      } else if ( OPERATION_DELETE.equalsIgnoreCase( operation ) ) {
        dashboardStructure.delete( toHashMap( getRequestParameters() ) );

      } else if ( OPERATION_SAVE.equalsIgnoreCase( operation ) ) {
View Full Code Here

Examples of pt.webdetails.cpf.persistence.ISimplePersistence.load()

    ISimplePersistence sp;
    try {
      sp = getSimplePersistence();
      Filter filter = new Filter();
      filter.where( "name" ).equalTo( viewName ).and().where( "user" ).equalTo( user );
      List<View> views = sp.load( View.class, filter );

      return ( views != null && views.size() > 0 ) ? views.get( 0 ) : null;
    } catch ( Exception e ) {
      logger.error( "Error while getting view.", e );
      return null;
View Full Code Here

Examples of pt.webdetails.cpf.persistence.SimplePersistence.load()

  public View getView( String viewName, String user ) {
    SimplePersistence sp = SimplePersistence.getInstance();
    Filter filter = new Filter();
    filter.where( "name" ).equalTo( viewName ).and().where( "user" ).equalTo( user );
    List<View> views = sp.load( View.class, filter );

    return ( views != null && views.size() > 0 ) ? views.get( 0 ) : null;
  }

  public JSONObject listViews( String user ) {
View Full Code Here

Examples of railo.runtime.orm.ORMSession.load()

    if(Decision.isSimpleValue(idOrFilter)){
      // id,unique
      if(Decision.isCastableToBoolean(uniqueOrOptions)){
        // id,unique=true
        if(Caster.toBooleanValue(uniqueOrOptions))
          return session.load(pc,name, Caster.toString(idOrFilter));
        // id,unique=false
        return session.loadAsArray(pc,name, Caster.toString(idOrFilter));
      }
      else if(Decision.isString(uniqueOrOptions)){
        return session.loadAsArray(pc,name,Caster.toString(idOrFilter),Caster.toString(uniqueOrOptions));
View Full Code Here

Examples of restx.specs.RestxSpecLoader.load()

                .getResources(Pattern.compile(".*\\.spec\\.yaml"));

        List<RestxSpec> loaded = Lists.newArrayList();

        for (String specResource : specResources) {
            loaded.add(loader.load(specResource));
        }

        return loaded;
    }

View Full Code Here

Examples of rocket.beans.rebind.placeholder.PlaceHolderResolver.load()

      final String fileName = element.getAttribute(Constants.PLACE_HOLDERS_FILE_ATTRIBUTE);
      if (Tester.isNullOrEmpty(fileName)) {
        continue;
      }

      placeHolderResolver.load(fileName);
    }

    return placeHolderResolver;
  }
View Full Code Here

Examples of ru.decipher.proxy.source.ProxySourceSite.load()

            site.init();
        }
        processor.shutdown();
        Set<HttpProxyConfig> result = new HashSet<>();
        for (ProxySourceSite site : sites) {
            result.addAll(site.load());
        }
        return result;
    }
}
View Full Code Here

Examples of ru.snake.spritepacker.core.TextureLoader.load()

    List<Sprite> spritelist = new ArrayList<Sprite>(images.length);

    TextureLoader textureLoader = factory.getTextureLoader();

    for (File each : images) {
      Texture texture = textureLoader.load(each);

      if (texture == null) {
        continue;
      }
View Full Code Here

Examples of ru.spbu.math.ontologycomparison.zhukova.logic.builder.loader.impl.OntologyManager.load()

            final OntologyManager firstOntologyManager = new OntologyManager(firstFile, this.main);
            final IOntologyGraph[] firstOntologyGraph = {null};
            Thread firstGraphThread = new Thread(new Runnable() {
                public void run() {
                    try {
                        firstOntologyGraph[0] = firstOntologyManager.load(new ClassAnnotationVisitor(), new PropertyVisitor());
                    } catch (Throwable e1) {
                        handleException(e1);
                    }
                }
            });
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.