|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.netscape.pm.fields.BasicCustomField
| Field Summary | |
protected java.lang.String |
mCheckSum
|
| Fields inherited from interface com.netscape.pm.dm.IChecksum |
NOT_COMPUTED |
| Fields inherited from interface com.netscape.pm.model.IDataElement |
NOT_YET_LOADED, TYPE_BOOLEAN, TYPE_DATE, TYPE_DATETIME, TYPE_ENTITY, TYPE_FLOAT, TYPE_INT, TYPE_LONGTEXT, TYPE_TEXT, TYPE_UNDEFINED |
| Fields inherited from interface com.netscape.pm.model.IPresentationElement |
MODE_EDIT, MODE_HIDDEN, MODE_VIEW |
| Constructor Summary | |
BasicCustomField()
|
|
| Method Summary | |
void |
archive(IProcessInstance pi,
java.io.OutputStream os)
Called when the process instance this field is associated with is being archived. |
boolean |
canSearch()
Is this field searchable from the PMExpress application search page? |
void |
create(IProcessInstance pi)
initializes the process instance with the default value |
void |
display(IHTMLPage html,
int displayMode,
java.lang.String displayFormat)
Display field at the entry point node BEFORE the process instance has been instantiated. |
void |
display(IProcessInstance pi,
IHTMLPage html,
int displayMode,
java.lang.String displayFormat)
Display field AFTER the process instance has been instantiated. |
java.util.Hashtable |
dumpState()
Returns the properties of the configuration element in a hashtable. |
protected PMException |
generateLockException()
|
java.lang.String |
getChecksum()
|
IDataElement |
getDataElement()
Get access to the data storage side of the field. |
java.lang.Object |
getDefaultValue()
returns the Default Value of the field's DB column |
java.lang.String |
getDescription()
Returns the description of the element. |
java.lang.String |
getName()
Returns the name of the element. |
IPMElement |
getParent()
Returns the parent element of this configuration element. |
IPMApplication |
getPMApplication()
|
IPresentationElement |
getPresentationElement()
Get access to the presentation side of the field. |
java.lang.String |
getPrettyName()
Returns the prettyname of the element. |
java.lang.Object |
getProperty(java.lang.String propName)
Returns the value associated with a particular configuration property. |
int |
getSize()
returns the size of the field's DB column |
int |
getType()
returns the type of the field |
boolean |
isLocked()
Returns true if the configuration element has been locked. |
void |
load(IProcessInstance pi)
From the database to the process instance/business doc. |
protected void |
loadDataElementProperties(java.util.Hashtable entry)
Load field specific parameters |
void |
lockObject()
Locks the configuration element from any further changes to its configuration. |
void |
postCreation(IProcessDefinition pd)
This method is invoked once the application has been loaded. |
void |
setChecksum(java.lang.String checkSum)
|
void |
setParent(IPMElement elem)
Sets the parent element of this configuration element. |
void |
setProperties(java.util.Hashtable entry)
Initializes the configuration element with the properties stored in the repository. |
void |
store(IProcessInstance pi)
From the process instance/business doc to the database. |
java.lang.String |
toString()
Returns the string representation of the configuration element. |
void |
update(IProcessInstance pi,
IPMRequest rq)
Update the process instance based on the information contained in the request. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String mCheckSum
| Constructor Detail |
public BasicCustomField()
| Method Detail |
public void setProperties(java.util.Hashtable entry)
throws PMException
IPMElementPMElement into a more specific version of a configuration
element (such as a node element or a data field).
Users should note that as a part of the configuration element creation procedure, this object is locked to prevent run-time changes to its definition; hence, any calls to this method during run-time will result in an exception being thrown.
setProperties in interface IPMElementcom.netscape.pm.model.IPMElemententry - the properties to associate this element withPMException - if there is a problem with configuring this
element with the properties provided.public java.lang.Object getProperty(java.lang.String propName)
IPMElementgetProperty in interface IPMElementcom.netscape.pm.model.IPMElementpropName - the name of the configuration propertynull if no such property has been defined.public java.lang.String getName()
IPMElementgetName in interface IPMElementcom.netscape.pm.model.IPMElementpublic java.lang.String getDescription()
IPMElementgetDescription in interface IPMElementcom.netscape.pm.model.IPMElementpublic java.lang.String getPrettyName()
IPMElementgetPrettyName in interface IPMElementcom.netscape.pm.model.IPMElement
public void postCreation(IProcessDefinition pd)
throws PMException
IPMElementUsers should note that as a part of the configuration element creation procedure, this object is locked to prevent run-time changes to its definition; hence, any calls to this method during run-time will result in an exception being thrown.
postCreation in interface IPMElementcom.netscape.pm.model.IPMElementpd - the process definition for the applicationPMException - if there is a problem with the post creation
phase of this configuration element; or
if this object has been lockedIProcessDefinitionpublic void setParent(IPMElement elem)
IPMElementUsers should note that as a part of the configuration element creation procedure, this object is locked to prevent run-time changes to its definition; hence, any calls to this method during run-time will result in an exception being thrown.
setParent in interface IPMElementcom.netscape.pm.model.IPMElementelem - the parent element of this elementpublic IPMElement getParent()
IPMElementUsers will probably never need to invoke this method. It has been included in this interface as a convenience method for internal engine functionality.
getParent in interface IPMElementcom.netscape.pm.model.IPMElementpublic void lockObject()
IPMElementlockObject in interface IPMElementpublic boolean isLocked()
IPMElementisLocked in interface IPMElementcom.netscape.pm.model.IPMElementtrue if the element has been locked;
false otherwise.public java.lang.String toString()
IPMElementtoString in interface IPMElementtoString in class java.lang.Objectcom.netscape.pm.model.IPMElementpublic java.util.Hashtable dumpState()
IPMElementdumpState in interface IPMElementcom.netscape.pm.model.IPMElementpublic void setChecksum(java.lang.String checkSum)
setChecksum in interface IChecksumpublic java.lang.String getChecksum()
getChecksum in interface IChecksumpublic int getType()
getType in interface IDataElementcom.netscape.pm.model.IDataElementIDataElement.TYPE_UNDEFINED,
IDataElement.TYPE_TEXT,
IDataElement.TYPE_LONGTEXT,
IDataElement.TYPE_DATE,
IDataElement.TYPE_DATETIME,
IDataElement.TYPE_BOOLEAN,
IDataElement.TYPE_FLOAT,
IDataElement.TYPE_INT,
IDataElement.TYPE_ENTITYpublic int getSize()
getSize in interface IDataElementcom.netscape.pm.model.IDataElementIDataElement.getType()public java.lang.Object getDefaultValue()
getDefaultValue in interface IDataElement
public void create(IProcessInstance pi)
throws java.lang.Exception
create in interface IDataElementcom.netscape.pm.model.IDataElementpi - the current process instancejava.lang.Exception - if there is a problem initializing
the field's default value.IProcessInstance
public void store(IProcessInstance pi)
throws java.lang.Exception
store in interface IDataElementcom.netscape.pm.model.IDataElementpi - the current process instancejava.lang.Exception - if there is a problem storing the
field's data value to the back-end
storage.IProcessInstance.getData(java.lang.String),
IProcessInstance.setData(java.lang.String, java.lang.Object)
public void load(IProcessInstance pi)
throws java.lang.Exception
load in interface IDataElementcom.netscape.pm.model.IDataElementpi - the current process instancejava.lang.Exception - if there is a problem retrieving the
field's data value to the back-end
storage.IDataElement.store(com.netscape.pm.model.IProcessInstance),
IProcessInstance.getData(java.lang.String)
public void archive(IProcessInstance pi,
java.io.OutputStream os)
throws java.lang.Exception
archive in interface IDataElementcom.netscape.pm.model.IDataElementpi - the current process instanceos - the output stream to archive the data element tojava.lang.Exception - if there is a problem archiving the
field's data value to the output
stream.#IProcessInstance#archivepublic boolean canSearch()
canSearch in interface IDataElementcom.netscape.pm.model.IDataElementtrue if this field is searchable from the Express;
false otherwise.public IPresentationElement getPresentationElement()
IDataElementgetPresentationElement in interface IDataElementcom.netscape.pm.model.IDataElementIPresentationElement
public void display(IHTMLPage html,
int displayMode,
java.lang.String displayFormat)
throws java.lang.Exception
display in interface IPresentationElementhtml - - html stream to output to
displayMode - see IPresentationElement for possible values
public void display(IProcessInstance pi,
IHTMLPage html,
int displayMode,
java.lang.String displayFormat)
throws java.lang.Exception
display in interface IPresentationElementpi - - current process instance reference
html - html stream to output to
displayMode - see IPresentationElement for possible values
public void update(IProcessInstance pi,
IPMRequest rq)
throws java.lang.Exception
update in interface IPresentationElementcom.netscape.pm.model.IPresentationElementpi - the current process instancerq - the current HTTP requestjava.lang.Exception - if there is a problem translating
the HTTP parameters to the field's
internal format.IProcessInstance,
IPMRequestpublic IDataElement getDataElement()
IPresentationElementgetDataElement in interface IPresentationElementcom.netscape.pm.model.IPresentationElementIDataElement
public IPMApplication getPMApplication()
throws PMException
protected PMException generateLockException()
protected void loadDataElementProperties(java.util.Hashtable entry)
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||