Changeset 5775


Ignore:
Timestamp:
Sep 30, 2011, 9:44:07 AM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #1592: Unified installation procedure for plug-ins, extensions and more...

Do not show information about depracted plug-ins that hasn't been registered in the database.

Location:
trunk/src/core/net/sf/basedb/util/extensions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/util/extensions/manager/processor/PluginInstallationProcessor.java

    r5734 r5775  
    4040import net.sf.basedb.core.query.Restrictions;
    4141import net.sf.basedb.util.FileUtil;
     42import net.sf.basedb.util.Values;
    4243import net.sf.basedb.util.extensions.manager.ExtensionsFile.WriteableExtensionsFile;
    4344import net.sf.basedb.util.extensions.manager.ExtensionsFile;
     
    134135        for (PluginInfo info : plugins)
    135136        {
     137          boolean deprecated = Values.getBoolean(info.getProperty("deprecated"));
    136138          if (dc != null)
    137139          {
     
    151153          }
    152154          numProcessed++;
    153           wFile.registerObject(new PluginInfoKey(info), info);
     155          if (!deprecated || !info.isNotFound())
     156          {
     157            wFile.registerObject(new PluginInfoKey(info), info);
     158          }
    154159        }
    155160      }
  • trunk/src/core/net/sf/basedb/util/extensions/xml/PluginInfo.java

    r5760 r5775  
    7272  private int internalId;
    7373  private boolean disabled;
     74  private boolean notFound;
    7475 
    7576  /**
     
    152153  }
    153154 
     155  /**
     156    Does this plug-in exists on the server or not?
     157  */
     158  public boolean isNotFound()
     159  {
     160    return notFound;
     161  }
     162 
     163  public void setNotFound(boolean notFound)
     164  {
     165    this.notFound = notFound;
     166  }
    154167}
Note: See TracChangeset for help on using the changeset viewer.