|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.ldappc.LdappcOptions
public class LdappcOptions
Class for processing command line input arguments, to verify them, and to make them or values calculated from them available to the rest of the code.
| Nested Class Summary | |
|---|---|
static class |
LdappcOptions.ProvisioningMode
Modes of operation. |
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_AUTHORITY_NAME
The name of the Attribute Authority service. |
static String |
ATTRIBUTE_RESOLVER_FILE_NAME_INTERNAL
The name of the "internal" Spring configuration file for the Attribute Resolver. |
static String |
ATTRIBUTE_RESOLVER_FILE_NAME_SERVICES
The name of the "services" Spring configuration file for the Attribute Resolver. |
static String |
ATTRIBUTE_RESOLVER_NAME
The name of the Attribute Resolver service. |
| Constructor Summary | |
|---|---|
LdappcOptions()
|
|
LdappcOptions(String[] args)
The Constructor for input processing of command line options. |
|
| Method Summary | |
|---|---|
String |
getAttributeResolverLocation()
The path to the Attribute Resolver configuration files. |
String |
getConfigManagerLocation()
Get the location of the alternative configuration manager. |
boolean |
getDoGroups()
This returns a boolean indicating whether or not groups are provisioned. |
boolean |
getDoMemberships()
This returns a boolean indicating whether or not memberships are provisioned. |
int |
getInterval()
This is the getter for interval. |
Date |
getLastModifyTime()
This returns the last modify time. |
boolean |
getLogLdif()
This returns a boolean indicating whether or not to log changes in LDIF format. |
LdappcOptions.ProvisioningMode |
getMode()
The mode of operation. |
String |
getOutputFileLocation()
The path to the file written during calculate mode. |
String |
getPropertiesFileLocation()
The path to the properties file. |
String |
getSubjectId()
Returns the Subject ID used to select data for provisioning. |
void |
init(String[] args)
This initializer verifies the input arguments and makes them accessible through the use of getter methods. |
boolean |
isTest()
|
void |
printUsage()
|
protected void |
setAttributeResolverLocation(String attributeResolverLocation)
|
protected void |
setConfigManagerLocation(String configManagerLocation)
|
protected void |
setDoGroups(boolean doGroups)
|
protected void |
setDoMemberships(boolean doMemberships)
|
protected void |
setInterval(int interval)
|
void |
setIsTest(boolean isTest)
|
void |
setLastModifyTime(Date lastModifyTime)
|
protected void |
setLogLdif(boolean logLdif)
|
protected void |
setMode(LdappcOptions.ProvisioningMode mode)
|
protected void |
setOutputFileLocation(String outputFileLocation)
|
void |
setPropertiesFileLocation(String propertiesFileLocation)
|
protected void |
setSubjectId(String subjectId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ATTRIBUTE_RESOLVER_FILE_NAME_INTERNAL
public static final String ATTRIBUTE_RESOLVER_FILE_NAME_SERVICES
public static final String ATTRIBUTE_AUTHORITY_NAME
public static final String ATTRIBUTE_RESOLVER_NAME
| Constructor Detail |
|---|
public LdappcOptions()
public LdappcOptions(String[] args)
throws org.apache.commons.cli.ParseException,
ParseException
args - Command line arguments to parse.
org.apache.commons.cli.ParseException
ParseException| Method Detail |
|---|
public void init(String[] args)
throws org.apache.commons.cli.ParseException,
ParseException
args -
org.apache.commons.cli.ParseException
ParseExceptionpublic void setIsTest(boolean isTest)
public boolean isTest()
protected void setSubjectId(String subjectId)
public String getSubjectId()
protected void setDoGroups(boolean doGroups)
public boolean getDoGroups()
true if groups are to be provisioned and false
otherwise.protected void setDoMemberships(boolean doMemberships)
public boolean getDoMemberships()
true if memberships are to be provisioned and false
otherwise.public void setLastModifyTime(Date lastModifyTime)
public Date getLastModifyTime()
null if not defined.protected void setInterval(int interval)
public int getInterval()
protected void setConfigManagerLocation(String configManagerLocation)
public String getConfigManagerLocation()
public void printUsage()
public LdappcOptions.ProvisioningMode getMode()
modeprotected void setMode(LdappcOptions.ProvisioningMode mode)
public String getOutputFileLocation()
protected void setOutputFileLocation(String outputFileLocation)
public String getPropertiesFileLocation()
public void setPropertiesFileLocation(String propertiesFileLocation)
protected void setLogLdif(boolean logLdif)
public boolean getLogLdif()
true if log LDIF changes false otherwise.public String getAttributeResolverLocation()
protected void setAttributeResolverLocation(String attributeResolverLocation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||