Examples of IPluginManager


Examples of org.pentaho.platform.api.engine.IPluginManager

    }

    for ( int i = 0; i < RETRY_COUNT; i++ ) {
      try {
        if ( !StringUtils.isEmpty( actionId ) ) {
          IPluginManager pluginManager = PentahoSystem.get( IPluginManager.class );
          clazz = pluginManager.loadClass( actionId );
          return clazz;
        } else if ( !StringUtils.isEmpty( actionClass ) ) {
          clazz = Class.forName( actionClass );
          return clazz;
        }
View Full Code Here

Examples of org.pentaho.platform.api.engine.IPluginManager

  public Response getSystemResource( @PathParam( "path" ) String path, @Context HttpServletResponse response )
    throws IOException {

    String pluginId = CdfEngine.getEnvironment().getPluginId();

    IPluginManager pluginManager = PentahoSystem.get( IPluginManager.class );

    if ( !StringUtils.isEmpty( path ) && pluginManager.isPublic( pluginId, path ) ) {

      Response readFileResponse = new PluginResource( response ).readFile( pluginId, path );

      if ( readFileResponse.getStatus() != Status.NOT_FOUND.getStatusCode() ) {
        return readFileResponse;
View Full Code Here

Examples of org.pentaho.platform.api.engine.IPluginManager

    String resource = "";
    for ( int i = 1; i < splitPath.length; i++ ) {
      resource += "/" + splitPath[i];
    }

    IPluginManager pluginManager = PentahoSystem.get( IPluginManager.class );

    if ( !StringUtils.isEmpty( path ) && pluginManager.isPublic( pluginId, resource ) ) {

      Response readFileResponse = new PluginResource( response ).readFile( pluginId, resource );

      if ( readFileResponse.getStatus() != Status.NOT_FOUND.getStatusCode() ) {
        return readFileResponse;
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.