public final class JFPMassSyncSpec extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
static JFPMassSyncSpec |
parseFromRequest(Map<String,String[]> request)
Attempt to parse a time spec from the given request.
|
boolean |
syncSpecRepositoryMatches(String name) |
boolean |
syncSpecTimeMatches(Calendar time) |
String |
toString() |
public static JFPMassSyncSpec parseFromRequest(Map<String,String[]> request) throws JFPExceptionInvalidArgument, JFPExceptionNonexistent
request
- The request parameters.JFPExceptionInvalidArgument
- On invalid arguments.JFPExceptionNonexistent
- On missing parameters.public boolean syncSpecRepositoryMatches(String name)
name
- The repository name, relative to the repository directory.true
if the given repository name matches.public boolean syncSpecTimeMatches(Calendar time)
time
- The current time.true
if the given time matches the spec.Copyright © 2015 <code@io7m.com> http://io7m.com