edu.internet2.middleware.ldappc.spml
Class PSPOptions

java.lang.Object
  extended by edu.internet2.middleware.ldappc.spml.PSPOptions

public class PSPOptions
extends Object


Nested Class Summary
static class PSPOptions.Mode
          Represent cli args as requests.
static class PSPOptions.Opts
          cli options
 
Field Summary
static String NAME
          Program name.
 
Constructor Summary
PSPOptions(String[] args)
          Constructor
 
Method Summary
 String getBeanName()
           
 String getConfDir()
           
 int getInterval()
           
 int getIntervalFullSync()
           
 int getIterations()
           
 Date getLastModifyTime()
           
 String getOutputFile()
           
 List<ProvisioningRequest> getRequests()
          Returns the result of parsing the command line arguments in the form of ProvisioningRequests ready to be executed by the PSP.
 boolean isLogSpml()
          Whether or not the PSP should log SPML request and responses.
 boolean isPrintRequests()
          Whether or not to print SPML requests as well as responses.
 void parseCommandLineOptions()
          Process cli args.
 void printUsage()
          Print usage to stdout.
 void setBeanName(String beanName)
           
 void setConfDir(String confDir)
           
 void setInterval(int interval)
           
 void setIntervalFullSync(int intervalFullSync)
           
 void setIterations(int iterations)
           
 void setLastModifyTime(Date lastModifyTime)
           
 void setLogSpml(boolean logSpml)
          Whether or not the PSP should log SPML request and responses.
 void setOutputFile(String outputFile)
           
 void setPrintRequests(boolean printRequests)
          Set whether or not to print SPML requests as well as response.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Program name.

See Also:
Constant Field Values
Constructor Detail

PSPOptions

public PSPOptions(String[] args)
Constructor

Parameters:
args - command line arguments
Method Detail

getBeanName

public String getBeanName()
Returns:
Returns the beanName.

getConfDir

public String getConfDir()
Returns:
Returns the confDir.

getInterval

public int getInterval()
Returns:
Returns the interval.

getIntervalFullSync

public int getIntervalFullSync()
Returns:
Returns the full sync interval.

getIterations

public int getIterations()
Returns:
Returns the number of iterations.

getLastModifyTime

public Date getLastModifyTime()
Returns:
Returns the lastModifyTime.

getOutputFile

public String getOutputFile()
Returns:
Returns the outputFile.

getRequests

public List<ProvisioningRequest> getRequests()
Returns the result of parsing the command line arguments in the form of ProvisioningRequests ready to be executed by the PSP.

Returns:
the ProvisioningRequests

isLogSpml

public boolean isLogSpml()
Whether or not the PSP should log SPML request and responses.

Returns:
boolean

isPrintRequests

public boolean isPrintRequests()
Whether or not to print SPML requests as well as responses.

Returns:
boolean

parseCommandLineOptions

public void parseCommandLineOptions()
                             throws org.apache.commons.cli.ParseException
Process cli args.

Throws:
org.apache.commons.cli.ParseException - if an error occurs parsing the args

printUsage

public void printUsage()
Print usage to stdout.


setBeanName

public void setBeanName(String beanName)
Parameters:
beanName - The beanName to set.

setConfDir

public void setConfDir(String confDir)
Parameters:
confDir - The confDir to set.

setInterval

public void setInterval(int interval)
Parameters:
interval - The interval to set.

setIntervalFullSync

public void setIntervalFullSync(int intervalFullSync)
Parameters:
full - sync interval The full sync interval to set.

setIterations

public void setIterations(int iterations)
Parameters:
iterations - The number of iterations to set.

setLastModifyTime

public void setLastModifyTime(Date lastModifyTime)
Parameters:
lastModifyTime - The lastModifyTime to set.

setLogSpml

public void setLogSpml(boolean logSpml)
Whether or not the PSP should log SPML request and responses.

Parameters:
logSpml - boolean

setOutputFile

public void setOutputFile(String outputFile)
Parameters:
outputFile - The outputFile to set.

setPrintRequests

public void setPrintRequests(boolean printRequests)
Set whether or not to print SPML requests as well as response.

Parameters:
boolean -

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2011 Internet2. All Rights Reserved.