|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsc.Configuration
public class Configuration
Ldap Synchronization Connector Configuration.
| Field Summary | |
|---|---|
static String |
DATABASE_PROPERTIES_FILENAME
|
static int |
DAYS_BEFORE_SUPPRESSION
Numbers of days between an entry is set to be deleted and its actual deletion. |
static String |
DN_ACCOUNTS
|
static String |
DN_ENHANCED_SCHEMA
|
static String |
DN_LDAP_SCHEMA
|
static String |
DN_PEOPLE
|
static String |
DN_REAL_ROOT
|
static String |
DN_STRUCTURES
|
static String |
location
Default location for configuration filename |
static String |
OBJECTCLASS_EMPLOYEE
|
static String |
OBJECTCLASS_PERSON
|
static String |
PROPERTIES_FILENAME
|
static int |
UID_MAX_LENGTH
|
| Method Summary | |
|---|---|
static void |
assertPropertyNotEmpty(String propertyName,
String propertyValue,
String location)
Helper method to check that a String read in from a property is not empty or null |
static Properties |
getAsProperties(String prefix)
Create a Properties object that is a subset of this configuration. |
static String |
getConfigurationDirectory()
Get the path to the directory where configuration files are stored, with a "/" at the end (or "\" on Windows). |
static Properties |
getDstProperties()
Get data destination connection properties. |
static int |
getInt(String key,
int defaultValue)
Get a int associated with the given property key |
static Properties |
getPropertiesFromFile(String pathToFile)
Helper method to read a file from the filesystem and return it as Properties. |
static Properties |
getPropertiesFromFileInConfigDir(String fileName)
Helper method to read a file from the configuration directory and return it as Properties. |
static String |
getSeparator()
|
static Properties |
getSrcProperties()
Get data source connection properties. |
static String |
getString(String key)
Get a string associated with the given property key |
static String |
getString(String key,
String defaultValue)
Get a string associated with the given property key |
static boolean |
isLoggingSetup()
Get the flag to determine if logging is configured or not yet |
static void |
setLocation(String configurationLocation)
Set the configuration properties location |
static void |
setLoggingSetup(boolean loggingSetup)
Set the flag to determine if logging is configured or not yet |
static void |
setProperties(String prefix,
Properties props)
Set the new properties |
static void |
setUp(String configurationLocation)
Set up configuration for the given location, including logback. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTIES_FILENAME
public static final String DATABASE_PROPERTIES_FILENAME
public static String location
public static String DN_PEOPLE
public static String DN_LDAP_SCHEMA
public static String DN_ENHANCED_SCHEMA
public static String DN_STRUCTURES
public static String DN_ACCOUNTS
public static String OBJECTCLASS_PERSON
public static String OBJECTCLASS_EMPLOYEE
public static int DAYS_BEFORE_SUPPRESSION
public static String DN_REAL_ROOT
public static int UID_MAX_LENGTH
| Method Detail |
|---|
public static Properties getSrcProperties()
public static Properties getDstProperties()
public static Properties getAsProperties(String prefix)
prefix - The prefix used to select the properties.
public static int getInt(String key,
int defaultValue)
key - The property key.defaultValue - The default value.
public static String getString(String key)
key - The property key.
public static String getString(String key,
String defaultValue)
key - The property key.defaultValue - The default value.
public static void setLocation(String configurationLocation)
configurationLocation - the user defined locationpublic static String getConfigurationDirectory()
public static void setProperties(String prefix,
Properties props)
throws org.apache.commons.configuration.ConfigurationException
prefix - the prefix or nullprops - the news properties
org.apache.commons.configuration.ConfigurationException
public static Properties getPropertiesFromFile(String pathToFile)
throws FileNotFoundException,
IOException
pathToFile - Absolute filename on the filesystem to read.
FileNotFoundException
IOException
public static Properties getPropertiesFromFileInConfigDir(String fileName)
throws FileNotFoundException,
IOException
fileName - Filename relative to the configuration directory.
FileNotFoundException
IOExceptionpublic static String getSeparator()
public static void setUp(String configurationLocation)
configurationLocation -
public static void assertPropertyNotEmpty(String propertyName,
String propertyValue,
String location)
throws RuntimeException
Helper method to check that a String read in from a property is not empty or null
propertyName - Name of the property key as read from lsc.propertiespropertyValue - Value read from the configurationlocation - Where this property is read from, to display a meaningful error message (example: class name, task name, etc)
RuntimeException - If the property is null or empty.public static void setLoggingSetup(boolean loggingSetup)
loggingSetup - Is logging setup yet?public static boolean isLoggingSetup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||