issrg.acm.extensions
Class PrintableStringEditor

java.lang.Object
  extended by issrg.acm.extensions.PrintableStringEditor
All Implemented Interfaces:
Utility

public class PrintableStringEditor
extends java.lang.Object
implements Utility

The editor for an attribute with PrintableString values. It is just an input box and a list of strings already input in the set of attribute values.

It can be fed a configuration file with OIDs and names of the roles, or it can use the sequence of such values in the acm.cfg

The PRINTABLE_STRING_EDITOR_CFG_FILE variable contains the name of the configuration variable, specifying the file with OIDs. The PRINTABLE_STRING_EDITOR_CFG_LINE variable contains the name of the configuration variable to keep the sequence of the role OIDs and their names.

The configuration line in the acm.cfg must be of the following format: <OID in dotted form> <attribute name; cannot not contain ';' char>';'

repeated as many times, as needed.

The configuration file for PrintableStringEditor can contain as many lines of the format said above, as needed; the trailing semicolon can be omitted. Empty lines and comments (lines starting with ';' or '#') are ignored.

Version:
1.0
Author:
A Otenko

Field Summary
static java.lang.String COMMENT1
           
static java.lang.String COMMENT2
           
static java.lang.String OID_SEPARATOR
           
static java.lang.String PRINTABLE_STRING_EDITOR_CFG_FILE
          This variable specifies the configuration file variable.
static java.lang.String PRINTABLE_STRING_EDITOR_CFG_LINE
          This variable specifies OID-name pairs directly in the configuration file.
 
Constructor Summary
PrintableStringEditor()
           
 
Method Summary
 void bewail(java.lang.String message)
           
 void registerMe(Registry where)
          Reads in PRINTABLE_STRING_EDITOR_CFG_FILE and PRINTABLE_STRING_EDITOR_CFG_LINE and constructs a sequence of PermisRoleEditorHelpers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRINTABLE_STRING_EDITOR_CFG_FILE

public static final java.lang.String PRINTABLE_STRING_EDITOR_CFG_FILE
This variable specifies the configuration file variable. Its name is "PrintableStringEditor.Config".

See Also:
Constant Field Values

PRINTABLE_STRING_EDITOR_CFG_LINE

public static final java.lang.String PRINTABLE_STRING_EDITOR_CFG_LINE
This variable specifies OID-name pairs directly in the configuration file. Its name is "PrintableStringEditor.OIDs".

See Also:
Constant Field Values

COMMENT1

public static final java.lang.String COMMENT1
See Also:
Constant Field Values

COMMENT2

public static final java.lang.String COMMENT2
See Also:
Constant Field Values

OID_SEPARATOR

public static final java.lang.String OID_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

PrintableStringEditor

public PrintableStringEditor()
Method Detail

registerMe

public void registerMe(Registry where)
Reads in PRINTABLE_STRING_EDITOR_CFG_FILE and PRINTABLE_STRING_EDITOR_CFG_LINE and constructs a sequence of PermisRoleEditorHelpers. PRINTABLE_STRING_EDITOR_CFG_LINE definitions take precedence, if OID to attribute type mappings overlap.

Specified by:
registerMe in interface Utility

bewail

public void bewail(java.lang.String message)