|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.slamd.scripting.ldap.LDAPEntryGenerator
This class handles the work of generating LDAP entries based on information in a template file. The template files may contain various kinds of tokens that allow the entries generated to be highly customizeable. The tokens that are supported are:
| Field Summary | |
static char[] |
ALPHA_CHARS
The set of characters that should be included in alphabetic values. |
static char[] |
ALPHANUMERIC_CHARS
The set of characters that should be included in alphanumeric values. |
static char[] |
BASE64_CHARS
The set of characters that should be included in base64 values. |
static java.lang.String |
EOL
The end of line character that should be used on the current platform. |
static char[] |
HEX_CHARS
The set of characters that should be included in hexadecimal values. |
static char[] |
NUMERIC_CHARS
The set of characters that should be included in numeric values. |
| Constructor Summary | |
LDAPEntryGenerator()
Creates a new instance of the LDIF generator that parses the command-line parameters and coordinates the LDIF creation. |
|
| Method Summary | |
void |
addTemplate(LDAPEntryTemplate template)
Adds the specified entry template for use with this entry generator. |
LDAPEntryVariable |
createTemplateEntry(java.lang.String parentDN,
java.lang.String templateName)
Creates a subordinate entry for the specified branch. |
java.lang.String |
generateGUID()
Generates a globally-unique identifier. |
java.lang.String |
generateRandomValue(char[] charSet,
int length)
Generates a random value of the indicated length from the specified character set. |
void |
parseTemplateFile(java.lang.String[] templateFileLines)
Reads the template file and extracts the branch and template definitions from it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String EOL
public static final char[] NUMERIC_CHARS
public static final char[] ALPHA_CHARS
public static final char[] ALPHANUMERIC_CHARS
public static final char[] HEX_CHARS
public static final char[] BASE64_CHARS
| Constructor Detail |
public LDAPEntryGenerator()
| Method Detail |
public void addTemplate(LDAPEntryTemplate template)
template - The template to use for this entry generator.public void parseTemplateFile(java.lang.String[] templateFileLines)
templateFileLines - The lines from the template file that will be
used for the template generation.
public LDAPEntryVariable createTemplateEntry(java.lang.String parentDN,
java.lang.String templateName)
parentDN - The DN under which to create the entry.templateName - The name of the template to use to generate the
entry.
public java.lang.String generateRandomValue(char[] charSet,
int length)
charSet - The character set from which the random characters are to
be taken.length - The length of the random value to generate.
public java.lang.String generateGUID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||