public class JobFilter extends Object
| Constructor and Description |
|---|
JobFilter(Long inJobId,
Long inUserId,
String inState,
Date inFrom,
Date inTo)
Create an instance with the given parameters.
|
JobFilter(String queryString)
Creates a filter by parsing the given string for the needed values.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getFrom() |
Long |
getJobId() |
String |
getState() |
Date |
getTo() |
Long |
getUserId() |
String |
toQueryParam()
Convert the filter object into a string appropriate to be passed as a
request parameter.
|
public JobFilter(Long inJobId, Long inUserId, String inState, Date inFrom, Date inTo)
inJobId - Search for a specific job using a unique identifier.inUserId - The id of the user who requested the job.inState - Search for all jobs in a given state.inFrom - Search for all jobs with a timestamp after the given time.inTo - Search for all jobs with a timestamp before the given time.public JobFilter(String queryString)
queryString - Parse the filter from this given string.public final Long getJobId()
public final Long getUserId()
public final String getState()
public final Date getFrom()
public final Date getTo()
public final String toQueryParam()
Copyright © 2012–2016 Emory University. All rights reserved.