use of org.jbei.ice.lib.entry.export.CustomExportTask in project ice by JBEI.
the class PartResource method customExport.
@POST
@Path("/custom")
@Produces(MediaType.APPLICATION_JSON)
public Response customExport(@QueryParam("sequenceFormat") String sequenceFormat, @DefaultValue("true") @QueryParam("onePerFolder") boolean onePerFolder, EntrySelection selection) {
String userId = super.requireUserId();
SequenceFormat format = SequenceFormat.fromString(sequenceFormat.toUpperCase());
CustomExportTask task = new CustomExportTask(userId, selection, format, onePerFolder);
IceExecutorService.getInstance().runTask(task);
return super.respond(true);
}
Aggregations