Changeset 7441


Ignore:
Timestamp:
Feb 1, 2018, 11:32:53 AM (4 years ago)
Author:
Nicklas Nordborg
Message:

References #2108: Add support for setting a job on raw bioassays with file-only platform

Added the RawBioAssay.setJob() method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.11-stable/src/core/net/sf/basedb/core/RawBioAssay.java

    r7308 r7441  
    602602 
    603603  /**
    604     Get the job that imported data to this raw bioassay.
     604    Set the job on this raw bioassay that was used to create or import
     605    data for it.
     606
     607    @param job The job or null to clear the existing job
     608    @throws PermissionDeniedException If the logged in user doesn't have
     609      write permission
     610    @since 3.11.3
     611  */
     612  public void setJob(Job job)
     613    throws PermissionDeniedException
     614  {
     615    checkPermission(Permission.WRITE);
     616    if (job != null) job.checkPermission(Permission.USE);
     617    getData().setJob(job == null ? null : job.getData());
     618  }
     619 
     620  /**
     621    Get the job that created or imported data to this raw bioassay.
    605622    @return A <code>Job</code> object, ot null if this information is
    606623      not available
     
    10571074    {
    10581075      rawDataBatcher = RawDataBatcher.getNew(getDbControl(), this, fiMethod);
    1059       getData().setJob(job == null ? null : job.getData());
     1076      if (job != null) getData().setJob(job.getData());
    10601077    }
    10611078    return rawDataBatcher;
Note: See TracChangeset for help on using the changeset viewer.