Changeset 4598


Ignore:
Timestamp:
Oct 22, 2008, 1:41:45 PM (13 years ago)
Author:
Nicklas Nordborg
Message:

References #1145: Make the generic raw data importer support batch import

Add permissions so the plug-in can work in experiment/multi-import mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/core/net/sf/basedb/plugins/RawDataFlatFileImporter.java

    r4594 r4598  
    128128        Arrays.asList(
    129129          GuiContext.item(Item.RAWBIOASSAY),
    130           GuiContext.list(Item.EXPERIMENT)
     130          GuiContext.item(Item.EXPERIMENT)
    131131        )
    132132      ));
     
    336336    if (permissions.size() == 0)
    337337    {
     338      permissions.add(new Permissions(Item.EXPERIMENT, null, EnumSet.of(Permission.READ)));
    338339      permissions.add(new Permissions(Item.RAWBIOASSAY, null, EnumSet.of(Permission.READ, Permission.WRITE)));
    339340      permissions.add(new Permissions(Item.ARRAYDESIGN, null, EnumSet.of(Permission.READ)));
    340       permissions.add(new Permissions(Item.FILE, null, EnumSet.of(Permission.READ)));
     341      permissions.add(new Permissions(Item.FILE, null, EnumSet.of(Permission.READ, Permission.WRITE)));
    341342      permissions.add(new Permissions(Item.REPORTER, null, EnumSet.of(Permission.READ)));
    342343      permissions.add(new Permissions(Item.PLATFORM, null, EnumSet.of(Permission.READ)));
    343344      permissions.add(new Permissions(Item.DATAFILETYPE, null, EnumSet.of(Permission.READ)));
     345      permissions.add(new Permissions(Item.FILETYPE, null, EnumSet.of(Permission.READ)));
    344346      permissions.add(new Permissions(Item.PLUGINCONFIGURATION, null, EnumSet.of(Permission.READ)));
    345347    }
Note: See TracChangeset for help on using the changeset viewer.