|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mentata.l3d.L3DAttribute
com.mentata.l3d.L3DDnAttribute
com.mentata.sg8.SG8DnAttribute
A distinguished name attribute for use with SG8 objects. This attribute type translates dn values into SG8 hyperlinks to entries of the defined target object for HTML output. Its standard update form elements allow the deletion of values. New values can be added from there through a separate linking process unique to SG8DnAttributes.
| Field Summary |
| Fields inherited from interface com.mentata.sg8.SG8Attribute |
TEXT_RESOURCES |
| Constructor Summary | |
SG8DnAttribute()
Constructs an empty dn attribute without a target. |
|
SG8DnAttribute(String target)
Constructs an empty dn attribute with a named target object. |
|
| Method Summary | |
String[] |
getHTMLValues()
Returns the attribute values as HTML hyperlinks to associated entries. |
String |
getHyperlink()
Returns an SG8 gateway hyperlink for displaying the attribute. |
String[] |
getMailTo()
Returns a list of destination email addresses representing the attribute values. |
String |
getSeparator()
Returns a separator string to display between values in HTML output. |
protected SG8Object |
getSG8Object()
Returns an empty instance of the containing SG8 object for this attribute. |
protected SG8Object |
getSG8Target()
Returns an empty instance of the target SG8 object for this attribute. |
String |
getUpdateHTML()
Returns HTML form elements for removing values and a link for adding new ones. |
boolean |
isAugmenting()
Indicates if the attribute only accepts additional values. |
boolean |
isHTMLExceeded()
Indicates if the number of values for the attribute exceeds the maximum for HTML display. |
boolean |
processUpdateHTML(HttpServletRequest req)
Reads and processes attribute changes from relevant HTML request form parameters. |
void |
setAugmenting()
Configures the attribute to only accept additional values. |
void |
setHTMLThreshold(int threshold)
Sets the maximum number of values to display in HTML output. |
void |
setSeparator(String separator)
Sets the separator string to display between values in HTML output. |
| 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 |
public SG8DnAttribute()
public SG8DnAttribute(String target)
target - the target SG8 object name| Method Detail |
protected SG8Object getSG8Object()
throws SG8Exception
SG8Exception - if the containing object is improperly defined
protected SG8Object getSG8Target()
throws SG8Exception
SG8Exception - if the target object is improperly definedpublic void setHTMLThreshold(int threshold)
setHTMLThreshold in interface SG8Attributethreshold - a maximum number of values to displaypublic boolean isHTMLExceeded()
isHTMLExceeded in interface SG8Attribute
public String getHyperlink()
throws SG8Exception
getHyperlink in interface SG8AttributeSG8Exceptionpublic void setSeparator(String separator)
setSeparator in interface SG8Attributeseparator - a string to display between valuespublic String getSeparator()
getSeparator in interface SG8Attributepublic void setAugmenting()
setAugmenting in interface SG8Attributepublic boolean isAugmenting()
isAugmenting in interface SG8Attribute
public String[] getHTMLValues()
throws SG8Exception
getHTMLValues in interface SG8AttributeSG8Exception - if a value cannot be populated
public String getUpdateHTML()
throws SG8Exception
getUpdateHTML in interface SG8AttributeSG8Exception - if the attribute is generated or a value cannot be populated
public boolean processUpdateHTML(HttpServletRequest req)
throws SG8Exception
processUpdateHTML in interface SG8Attributereq - a servlet request
SG8Exception - if form values are inappropriate or the attribute is generated
public String[] getMailTo()
throws SG8Exception
SG8Exception - if the addresses cannot be determined
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||