org.fcrepo.client.utility.validate.process
Class ValidatorProcessParameters

java.lang.Object
  extended by org.fcrepo.client.utility.validate.process.ValidatorProcessParameters

public class ValidatorProcessParameters
extends Object

Parse and store the command-line arguments for the ValidatorProcess.

Author:
Jim Blake

Nested Class Summary
static class ValidatorProcessParameters.IteratorType
           
 
Field Summary
static String PARAMETER_PASSWORD
          Required parameter: the password for the user specified by '-username'.
static String PARAMETER_PIDFILE
          Optional parameter: the path to a file containing a list of PIDs - these are the objects to be validated - one PID per line, blank lines are ignored, lines beginning with octothorpe ('#'), are comments.
static String PARAMETER_QUERY
          Optional parameter: a "query" string that can be passed to the findObjects method in API-A.
static String PARAMETER_SERVER_URL
          Required parameter: the base url of the Fedora repository server.
static String PARAMETER_TERMS
          Optional parameter: a "terms" string that can be passed to the findObjects method in API-A.
static String PARAMETER_USERNAME
          Required parameter: a user who is authorized to access the repository objects.
static String PARAMETER_VERBOSE
          Optional parameter: whether to print all messages during validation.
static String USAGE
          A description of how to invoke the process.
 
Constructor Summary
ValidatorProcessParameters(String[] args)
          Parse the command line arguments and check for validity.
 
Method Summary
 ValidatorProcessParameters.IteratorType getIteratorType()
           
 File getPidfile()
           
 FieldSearchQuery getQuery()
           
 ServiceInfo getServiceInfo()
           
 boolean getVerbose()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USAGE

public static final String USAGE
A description of how to invoke the process.

See Also:
Constant Field Values

PARAMETER_SERVER_URL

public static final String PARAMETER_SERVER_URL
Required parameter: the base url of the Fedora repository server. E.g. http://localhost:8080/fedora

See Also:
Constant Field Values

PARAMETER_USERNAME

public static final String PARAMETER_USERNAME
Required parameter: a user who is authorized to access the repository objects. E.g. fedoraAdmin

See Also:
Constant Field Values

PARAMETER_PASSWORD

public static final String PARAMETER_PASSWORD
Required parameter: the password for the user specified by '-username'. E.g. fedoraAdminPassword

See Also:
Constant Field Values

PARAMETER_TERMS

public static final String PARAMETER_TERMS
Optional parameter: a "terms" string that can be passed to the findObjects method in API-A. Supply any of -terms, -query, or -pidfile, but not more than one. E.g. demo*

See Also:
Constant Field Values

PARAMETER_QUERY

public static final String PARAMETER_QUERY
Optional parameter: a "query" string that can be passed to the findObjects method in API-A. Supply any of -terms, -query, or -pidfile, but not more than one. E.g. state~A

See Also:
Constant Field Values

PARAMETER_PIDFILE

public static final String PARAMETER_PIDFILE
Optional parameter: the path to a file containing a list of PIDs - these are the objects to be validated - one PID per line, blank lines are ignored, lines beginning with octothorpe ('#'), are comments. Supply any of -terms, -query, or -pidfile, but not more than one. E.g. /usr/local/junk/pidfile.txt

See Also:
Constant Field Values

PARAMETER_VERBOSE

public static final String PARAMETER_VERBOSE
Optional parameter: whether to print all messages during validation. Normally, only messages that are relevant to an object's being marked invalid or indeterminate are printed.

See Also:
Constant Field Values
Constructor Detail

ValidatorProcessParameters

public ValidatorProcessParameters(String[] args)
Parse the command line arguments and check for validity.

Method Detail

getServiceInfo

public ServiceInfo getServiceInfo()

getIteratorType

public ValidatorProcessParameters.IteratorType getIteratorType()

getQuery

public FieldSearchQuery getQuery()

getPidfile

public File getPidfile()

getVerbose

public boolean getVerbose()


Copyright © 2012 DuraSpace. All Rights Reserved.