|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mentata.l3d.L3DObject
com.mentata.sg8.SG8Object
An L3D object for use with the SG8 gateway display features. This subclass of L3DObject has methods for constructing servlet hyperlinks, controlling the use of formats and actions, and associating display characteristics like a stylesheet, header, footer, custom JSP, or maximum HTML form element row size. Subclasses can also be configured to allow the retrieval of all corresponding entries through glob (i.e. *) identifiers, or to localize labelling based on the language preference of the client's browser.
| Field Summary |
| Fields inherited from class com.mentata.l3d.L3DObject |
MULTIVALUE, ONE, OPTIONAL, REQUIRED, SINGLEVALUE, SUBTREE |
| Constructor Summary | |
SG8Object(L3DContext context)
Constructs an empty object with base attributes compatible with SG8. |
|
| Method Summary | |
boolean |
allowsServlet(String servlet)
Indicates if the object can be used with the named servlet. |
int |
getBatch()
Returns the batch size for use in search results pagination. |
String |
getFooter()
Returns the HTML footer to use in dynamic output. |
String[] |
getFormats()
Returns the output formats permitted by the object. |
String |
getHeader()
Returns the HTML header to use in dynamic output. |
String |
getHyperlink()
Returns the html for a hyperlink to the object via the given servlet. |
String |
getHyperlink(String servlet)
Returns the html for a hyperlink to the object via the named servlet. |
String |
getHyperlink(String servlet,
String text)
Returns the html for a servlet hyperlink to the object with given text. |
String |
getHyperlink(String servlet,
String text,
String target)
Returns the html for a servlet hyperlink to the object using the given target window. |
String |
getHyperlink(String servlet,
String text,
String target,
String attribute)
Returns the html for a servlet hyperlink to the named attribute for this object. |
String |
getJSP(String page)
Returns the path for the named JSP as used with the object. |
String[] |
getMailTo()
Returns a list of destination email addresses representing the entry. |
L3DPath |
getPath()
Returns a path bean describing the object. |
L3DPath |
getPath(String attribute)
Returns a path bean describing the a named attribute of the object. |
SG8Attribute |
getSG8Attribute(String name)
Returns a named SG8 attribute from the object. |
protected SG8Context |
getSG8Context()
Returns the containing SG8 context for the object. |
String |
getStylesheet()
Returns the CSS stylesheet to use in dynamic HTML output. |
int |
getTextColumns()
Returns the maximum text entry column width for object attributes. |
boolean |
isGlob()
Indicates if the object permits globbed identifiers in relevant requests. |
boolean |
isLocal()
Indicates if the object should adopt the preferred locale of clients. |
void |
postCreate()
Does nothing unless overridden. |
void |
postDelete()
Does nothing unless overridden. |
void |
postUpdate()
Does nothing unless overridden. |
void |
preCreate()
Does nothing unless overridden. |
void |
preDelete()
Does nothing unless overridden. |
String[] |
preUpdate()
Does nothing unless overridden. |
void |
setBatch(int batch)
Sets a batch size to use in search results pagination. |
void |
setFooter(String footer)
Sets a footer file to use in dynamic HTML output. |
protected void |
setFormats()
Permits the object to be retrieved in all available formats. |
protected void |
setFormats(String[] formats)
Permits the object to be retrieved in the named formats. |
protected void |
setGlob()
Allows the object to accept globbed identifiers in relevant requests. |
void |
setHeader(String header)
Sets a header file to use in dynamic HTML output. |
protected void |
setLocal()
Configures the object to adopt the preferred locale of clients. |
void |
setStylesheet(String stylesheet)
Sets a CSS stylesheet to use in dynamic HTML output. |
void |
setTextColumns(int columns)
Sets the maximum text entry column width for object attributes. |
protected void |
useJSP(String[] pages)
Configures the object to use custom JSP for the named pages. |
protected void |
useServlets(String[] servlets)
Permits the object to be used with the named servlets. |
| Methods inherited from class com.mentata.l3d.L3DObject |
addAttribute, addAttribute, addAttribute, addAttributeList, addObjectclasses, addPrerequisite, addPrerequisite, applyLabels, applyLabels, compare, create, create, delete, delete, empty, extend, extend, getAttribute, getAttributeList, getAttributeList, getBind, getClassName, getContext, getContextName, getDatestamp, getDN, getDN, getIdentifier, getIdentifierAttribute, getIncrementEntry, getIncrementEntry, getLabel, getLabel, getLimit, getLocale, getName, getNameAttribute, getObject, getObjectclasses, getPrerequisites, getTimestamp, hasMatch, hasMatch, isBound, isIncremental, mergeAttributeLists, mergeAttributeLists, minimizeScope, onList, populate, populate, populate, prependBase, search, search, search, search, search, setBind, setFilter, setIncremental, setLabel, setLabel, setLimit, setLocale, setSorting, update, update |
| 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 SG8Object(L3DContext context)
throws L3DException
context - a containing L3D context| Method Detail |
protected SG8Context getSG8Context()
throws SG8Exception
SG8Exception - if the containing context is improperly defined
public SG8Attribute getSG8Attribute(String name)
throws SG8Exception
SG8Exception - if the named attribute is nonexistent or improperly definedprotected final void setFormats()
Formats include html, tabtext,
ldif, or dsml.
protected final void setFormats(String[] formats)
Formats include html, tabtext,
ldif, or dsml.
formats - the names of permitted formatspublic final String[] getFormats()
Formats include html, tabtext,
ldif, or dsml.
protected final void useServlets(String[] servlets)
servlets - the names of permitted servlets
Servlets include retrieve, create,
delete, update, or link.
public final boolean allowsServlet(String servlet)
servlet - a servlet name to check
protected final void useJSP(String[] pages)
pages - the names of pages to customize
public final String getJSP(String page)
throws SG8Exception
page - the name of the page
SG8Exception - if the containing context is improperly definedpublic final void setBatch(int batch)
batch - a maximum number of entries per pagepublic int getBatch()
0 if no restrictionpublic final void setStylesheet(String stylesheet)
stylesheet - an URL for a CSS stylesheet
public String getStylesheet()
throws SG8Exception
null
SG8Exception - if the containing context is improperly definedpublic final void setHeader(String header)
header - a file name for header HTML
public String getHeader()
throws SG8Exception
null
SG8Exception - if the containing context is improperly definedpublic final void setFooter(String footer)
footer - a file name for a footer HTML
public String getFooter()
throws SG8Exception
null
SG8Exception - if the containing context is improperly definedpublic final void setTextColumns(int columns)
columns - a maximum number of columns for HTML text entry elements
public int getTextColumns()
throws SG8Exception
SG8Exception - if the containing context is improperly definedprotected final void setGlob()
public boolean isGlob()
A globbed identifier is one containing the character *.
public L3DPath getPath()
throws L3DException
getPath in class L3DObjectL3DException - if no identifier attribute is defined
public L3DPath getPath(String attribute)
throws L3DException
getPath in class L3DObjectattribute - an attribute name
L3DException - if no identifier attribute is defined
public String getHyperlink()
throws SG8Exception
The link will use the object's name for text and will open in the same window.
SG8Exception - if the object is improperly configured
public String getHyperlink(String servlet)
throws SG8Exception
The link will use the object's name for text and will open in the same window.
servlet - an SG8 servlet name
SG8Exception - if the object is improperly configured
public String getHyperlink(String servlet,
String text)
throws SG8Exception
The link will open in the same window.
servlet - an SG8 servlet nametext - text to use in the visible link
SG8Exception - if the object is improperly configured
public String getHyperlink(String servlet,
String text,
String target)
throws SG8Exception
servlet - an SG8 servlet nametext - text to use in the visible linktarget - an href target to use in the hyperlink
SG8Exception - if the object is improperly configured
public String getHyperlink(String servlet,
String text,
String target,
String attribute)
throws SG8Exception
servlet - an SG8 servlet nametext - text to use in the visible linktarget - an href target to use in the hyperlinkattribute - an attribute name to specify in the link
SG8Exception - if the object is improperly configuredprotected final void setLocal()
public boolean isLocal()
public String[] getMailTo()
throws SG8Exception
SG8Exception - if the addresses cannot be determined
public void preCreate()
throws SG8Exception
SG8Exception
public void postCreate()
throws SG8Exception
SG8Exception
public void preDelete()
throws SG8Exception
SG8Exception
public void postDelete()
throws SG8Exception
SG8Exception
public String[] preUpdate()
throws SG8Exception
SG8Exception
public void postUpdate()
throws SG8Exception
SG8Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||