public class RequestRetriever extends Object
Constructor and Description |
---|
RequestRetriever() |
Modifier and Type | Method and Description |
---|---|
ByteArrayOutputStream |
generateCSVFile(String userId,
ArrayList<Long> ids) |
UserSamples |
getRequests(String userId,
int start,
int limit,
String sort,
boolean asc,
SampleRequestStatus status,
String filter) |
UserSamples |
getUserSamples(String userId,
SampleRequestStatus status,
int start,
int limit,
String sort,
boolean asc) |
boolean |
placeSampleInCart(String userId,
SampleRequest sampleRequest)
Creates a new sample request for the specified user and specified entry.
|
SampleRequest |
removeSampleFromCart(String userId,
long requestId) |
boolean |
setRequestsStatus(String userId,
ArrayList<Long> ids,
SampleRequestStatus status) |
SampleRequest |
updateStatus(String userId,
long requestId,
SampleRequestStatus newStatus) |
public boolean placeSampleInCart(String userId, SampleRequest sampleRequest)
public UserSamples getUserSamples(String userId, SampleRequestStatus status, int start, int limit, String sort, boolean asc)
public UserSamples getRequests(String userId, int start, int limit, String sort, boolean asc, SampleRequestStatus status, String filter)
public SampleRequest removeSampleFromCart(String userId, long requestId)
public SampleRequest updateStatus(String userId, long requestId, SampleRequestStatus newStatus)
public boolean setRequestsStatus(String userId, ArrayList<Long> ids, SampleRequestStatus status)
public ByteArrayOutputStream generateCSVFile(String userId, ArrayList<Long> ids) throws IOException
IOException
Copyright © 2017. All rights reserved.