Changeset 6566


Ignore:
Timestamp:
Oct 21, 2014, 8:07:03 AM (8 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1871: Make it possible to explicitely set plug-in version on jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-stable/src/core/net/sf/basedb/core/Job.java

    r6481 r6566  
    512512 
    513513  /**
     514    Set the version of the plugin that executes the job.
     515    NOTE! This is automatically called for jobs that are executed by
     516    plug-ins but should be called excplicitely for other types of jobs
     517    @param pluginVersion
     518    @since 3.3.2
     519  */
     520  public void setPluginVersion(String pluginVersion)
     521  {
     522    checkPermission(Permission.WRITE);
     523    getData().setPluginVersion(StringUtil.setNullableString(pluginVersion, "pluginVersion", JobData.MAX_PLUGIN_VERSION_LENGTH));
     524  }
     525 
     526  /**
    514527    Get the version number of the configuration parameters used for this job.
    515528  */
Note: See TracChangeset for help on using the changeset viewer.