Package pt.webdetails.cpf.plugins

Examples of pt.webdetails.cpf.plugins.PluginsAnalyzer.refresh()


    }

    // External component locations
    PluginsAnalyzer pluginsAnalyzer =
        new PluginsAnalyzer(CdeEnvironment.getContentAccessFactory(), PentahoSystem.get(IPluginManager.class));
    pluginsAnalyzer.refresh();

    // FIXME will fail often if not everytime
    for (PluginPair<List<Element>> entry : pluginsAnalyzer.getPluginsWithSection("/cde-components/path")) {
      for (Element pathNode : entry.getValue()) {
        String path = StringUtils.strip( pathNode.getStringValue() );
View Full Code Here


  public String getCdePlugins(){
   
    JSONArray pluginsArray = new JSONArray();
 
  PluginsAnalyzer pluginsAnalyzer = new PluginsAnalyzer(CdeEnvironment.getContentAccessFactory(), PentahoSystem.get(IPluginManager.class));
    pluginsAnalyzer.refresh();

    IPluginFilter pluginFilter = new IPluginFilter() {
      public boolean include(Plugin plugin) {
        boolean include = false;
        if(plugin.hasSettingsXML()) {
View Full Code Here

  private List<DataSourceProvider> readProviders() {
 
  List<DataSourceProvider> dataSourceProviders = new ArrayList<DataSourceProvider>();
   
    PluginsAnalyzer pluginsAnalyzer = new PluginsAnalyzer(CdeEnvironment.getContentAccessFactory(), PentahoSystem.get(IPluginManager.class));
    pluginsAnalyzer.refresh();

    List<PluginsAnalyzer.PluginWithEntity> pluginsWithEntity = pluginsAnalyzer.getRegisteredEntities("/" + CDE_DATASOURCE_IDENTIFIER);

    for(PluginsAnalyzer.PluginWithEntity entity : pluginsWithEntity) {
      String provider = entity.getPlugin().getId();
View Full Code Here

    style = new Style( CdeEnvironment.getPluginRepositoryReader(), RESOURCE_STYLES_DIR_SOLUTION, null );
    styles.add( style );

    PluginsAnalyzer pluginsAnalyzer =
        new PluginsAnalyzer( CdeEnvironment.getContentAccessFactory(), PentahoSystem.get( IPluginManager.class ) );
    pluginsAnalyzer.refresh();

    List<PluginsAnalyzer.PluginWithEntity> entities = pluginsAnalyzer.getRegisteredEntities( "/cde-styles" );

    for ( PluginsAnalyzer.PluginWithEntity entity : entities ) {
View Full Code Here

      String pluginId = split[1].replace( "(", "" ).replace( ")", "" );

      styleFilename = split[0] + ".html";

      PluginsAnalyzer pluginsAnalizer = new PluginsAnalyzer();
      pluginsAnalizer.refresh();

      List<Plugin> plugins = pluginsAnalizer.getInstalledPlugins();

      for ( Plugin plugin : plugins ) {
        if ( plugin.getId().equalsIgnoreCase( pluginId ) ) {
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.