use of org.jbei.ice.lib.entry.sequence.PartSequence in project ice by JBEI.
the class PartResource method updateSequence.
@PUT
@Produces(MediaType.APPLICATION_JSON)
@Path("/{id}/sequence")
public Response updateSequence(@PathParam("id") final String partId, @DefaultValue("false") @QueryParam("add") boolean add, @QueryParam("isPaste") boolean isPaste, FeaturedDNASequence sequence) {
final String userId = requireUserId();
log(userId, "updating sequence for entry " + partId);
PartSequence partSequence = new PartSequence(userId, partId);
partSequence.update(sequence, isPaste);
return super.respond(true);
}
Aggregations