com.mentata.sg8
Class SG8DnSubsetAttribute

java.lang.Object
  extended bycom.mentata.l3d.L3DAttribute
      extended bycom.mentata.l3d.L3DDnAttribute
          extended bycom.mentata.sg8.SG8DnAttribute
              extended bycom.mentata.sg8.SG8DnSubsetAttribute
All Implemented Interfaces:
Comparator, SG8Attribute

public class SG8DnSubsetAttribute
extends SG8DnAttribute

A dn attribute limited to values of another attribute for use with SG8 objects. In its update form elements, this attribute type restricts selected values to those listed with another distinguished name attribute of the same containing object.

Since:
0.7
Author:
Jon Roberts

Field Summary
 
Fields inherited from interface com.mentata.sg8.SG8Attribute
TEXT_RESOURCES
 
Constructor Summary
SG8DnSubsetAttribute(String target, String superset)
          Constructs an empty dn attribute with a named target object and superset attribute.
 
Method Summary
 String getUpdateHTML()
          Returns HTML form elements for choosing values from the values of the superset attribute.
 boolean processUpdateHTML(HttpServletRequest req)
          Reads and processes attribute changes from relevant HTML request form parameters.
 
Methods inherited from class com.mentata.sg8.SG8DnAttribute
getHTMLValues, getHyperlink, getMailTo, getSeparator, getSG8Object, getSG8Target, isAugmenting, isHTMLExceeded, setAugmenting, setHTMLThreshold, setSeparator
 
Methods inherited from class com.mentata.l3d.L3DDnAttribute
getShortValues, getTargetObject, initialize, isLengthExceeded, same
 
Methods inherited from class com.mentata.l3d.L3DAttribute
addValue, compare, getAttribute, getBind, getContext, getLabel, getLengthThreshold, getName, getObject, getObject, getPrerequisites, getSize, getThreshold, getValues, isBound, isExceeded, isGenerated, isMultivalue, isRequired, removeValue, setGenerated, setLabel, setLengthThreshold, setPrerequisites, setThreshold, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SG8DnSubsetAttribute

public SG8DnSubsetAttribute(String target,
                            String superset)
Constructs an empty dn attribute with a named target object and superset attribute.

Parameters:
target - a target SG8 object name
superset - the name of an attribute from which values are chosen
Method Detail

getUpdateHTML

public String getUpdateHTML()
                     throws SG8Exception
Returns HTML form elements for choosing values from the values of the superset attribute.

Specified by:
getUpdateHTML in interface SG8Attribute
Overrides:
getUpdateHTML in class SG8DnAttribute
Returns:
the HTML modification form elements
Throws:
SG8Exception - if the attribute is generated or a value cannot be populated

processUpdateHTML

public boolean processUpdateHTML(HttpServletRequest req)
                          throws SG8Exception
Reads and processes attribute changes from relevant HTML request form parameters.

Specified by:
processUpdateHTML in interface SG8Attribute
Overrides:
processUpdateHTML in class SG8DnAttribute
Parameters:
req - a servlet request
Returns:
whether the attribute values changed
Throws:
SG8Exception - if form values are inappropriate or the attribute is generated