Changeset 5691


Ignore:
Timestamp:
Aug 11, 2011, 12:45:58 PM (12 years ago)
Author:
Nicklas Nordborg
Message:

References #1593: Extension system for the core API

Fixed commented-out code. Fixed some incorrect javadoc.

Location:
trunk/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/extensions/ExtensionsControl.java

    r5617 r5691  
    509509    in the request form.
    510510   
    511     a manual scan for new/updated/deleted extensions.
    512     If <code>forceUpdate</code> is TRUE all extensions are updated,
    513     which means that the definitions are re-loaded and resource
    514     files are extracted even if nothing has changed.
    515    
    516     @param forceUpdate TRUE to force an update for unmodified
    517       extensions, FALSE otherwise
     511    @param request The HTTP request with parameters
    518512    @throws PermissionDeniedException If the logged in user doesn't
    519513      have WRITE permission
  • trunk/src/clients/web/net/sf/basedb/clients/web/extensions/JspContext.java

    r5689 r5691  
    146146  public String getHome(Extension extension)
    147147  {
    148     // TODO (#1593)
    149     //ExtensionsFile file = directory.getFileByExtensionId(extension.getId());
    150     //return file == null ? null : directory.getResourcesUrl(file);
    151     return null;
     148    return ExtensionsControl.getHomeUrl(extension.getId());
    152149  }
    153150 
  • trunk/src/clients/web/net/sf/basedb/clients/web/extensions/UninstallFilter.java

    r5616 r5691  
     1/**
     2  $Id $
     3
     4  Copyright (C) 2011 Nicklas Nordborg
     5
     6  This file is part of BASE - BioArray Software Environment.
     7  Available at http://base.thep.lu.se/
     8
     9  BASE is free software; you can redistribute it and/or
     10  modify it under the terms of the GNU General Public License
     11  as published by the Free Software Foundation; either version 3
     12  of the License, or (at your option) any later version.
     13
     14  BASE is distributed in the hope that it will be useful,
     15  but WITHOUT ANY WARRANTY; without even the implied warranty of
     16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     17  GNU General Public License for more details.
     18
     19  You should have received a copy of the GNU General Public License
     20  along with BASE. If not, see <http://www.gnu.org/licenses/>.
     21*/
    122package net.sf.basedb.clients.web.extensions;
    223
     
    728import net.sf.basedb.util.filter.Filter;
    829
     30/**
     31  Filter implementation that selects only those extensions that
     32  was selected for uninstallation by the user in the gui. Eg. if the request
     33  parameter <i>filename</i>.uninstall is set.
     34  @author Nicklas
     35  @since 3.0
     36  @base.modified $Date $
     37*/
    938public class UninstallFilter
    1039  implements Filter<ExtensionsFile>
  • trunk/src/core/net/sf/basedb/util/extensions/manager/ExtensionsFile.java

    r5617 r5691  
    305305    Re-validation of modified files are usually performed
    306306    by the extensions manager by calling
    307     {@link ExtensionsManager#scanForNewAndUpdated()}
     307    {@link ExtensionsManager#scanForChanges()}
    308308   
    309309    <p>
  • trunk/src/core/net/sf/basedb/util/extensions/manager/ExtensionsManager.java

    r5617 r5691  
    281281  /**
    282282    Get the number of new files that was found in the last
    283     call to {@link #scanForNewAndUpdated()}.
     283    call to {@link #scanForChanges()}.
    284284  */
    285285  public int getNumNew()
     
    290290  /**
    291291    Get the number of modified files that was found in the last
    292     call to {@link #scanForNewAndUpdated()}.
     292    call to {@link #scanForChanges()}.
    293293  */
    294294  public int getNumModified()
     
    299299  /**
    300300    Get the number of unmodified files that was found in the last
    301     call to {@link #scanForNewAndUpdated()}.
     301    call to {@link #scanForChanges()}.
    302302  */
    303303  public int getNumUnmodified()
     
    308308  /**
    309309    Get the number of deleted files that was found in the last
    310     call to {@link #scanForNewAndUpdated()}.
     310    call to {@link #scanForChanges()}.
    311311  */
    312312  public int getNumDeleted()
  • trunk/src/core/net/sf/basedb/util/extensions/manager/PluginInfoKey.java

    r5615 r5691  
    5151
    5252  /**
    53     Create a new key for an extension.
    54     @param ext The extension point (required)
     53    Create a new key for an plug-in definition.
     54    @param info Information about the plug-in (required)
    5555  */
    5656  public PluginInfoKey(PluginInfo info)
  • trunk/src/core/net/sf/basedb/util/extensions/manager/processor/RegisterExtensionsProcessor.java

    r5616 r5691  
    5454  The second step is either automatically executed when all files
    5555  have been processed or executed by by calling
    56   {@link #finalizeRegistration(ExtensionsManager)}.
     56  {@link #finalizeRegistration(ExtensionsManager, boolean)}.
    5757  <p>
    5858  Note! It is recommended that this processor is paired with a
     
    165165    it happend when the {@link #done(ExtensionsManager)} method is
    166166    called by the manager. If this flag is set the
    167     {@link #finalizeRegistration(ExtensionsManager)}
     167    {@link #finalizeRegistration(ExtensionsManager, boolean)}
    168168    method must be explicitely called.
    169169  */
Note: See TracChangeset for help on using the changeset viewer.