|
|||||||||
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
IPMElement
PMElement
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 IPMElement
com.netscape.pm.model.IPMElement
entry
- 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)
IPMElement
getProperty
in interface IPMElement
com.netscape.pm.model.IPMElement
propName
- the name of the configuration propertynull
if no such property has been defined.public java.lang.String getName()
IPMElement
getName
in interface IPMElement
com.netscape.pm.model.IPMElement
public java.lang.String getDescription()
IPMElement
getDescription
in interface IPMElement
com.netscape.pm.model.IPMElement
public java.lang.String getPrettyName()
IPMElement
getPrettyName
in interface IPMElement
com.netscape.pm.model.IPMElement
public void postCreation(IProcessDefinition pd) throws PMException
IPMElement
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.
postCreation
in interface IPMElement
com.netscape.pm.model.IPMElement
pd
- 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 lockedIProcessDefinition
public void setParent(IPMElement elem)
IPMElement
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.
setParent
in interface IPMElement
com.netscape.pm.model.IPMElement
elem
- the parent element of this elementpublic IPMElement getParent()
IPMElement
Users 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 IPMElement
com.netscape.pm.model.IPMElement
public void lockObject()
IPMElement
lockObject
in interface IPMElement
public boolean isLocked()
IPMElement
isLocked
in interface IPMElement
com.netscape.pm.model.IPMElement
true
if the element has been locked;
false
otherwise.public java.lang.String toString()
IPMElement
toString
in interface IPMElement
toString
in class java.lang.Object
com.netscape.pm.model.IPMElement
public java.util.Hashtable dumpState()
IPMElement
dumpState
in interface IPMElement
com.netscape.pm.model.IPMElement
public void setChecksum(java.lang.String checkSum)
setChecksum
in interface IChecksum
public java.lang.String getChecksum()
getChecksum
in interface IChecksum
public int getType()
getType
in interface IDataElement
com.netscape.pm.model.IDataElement
IDataElement.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_ENTITY
public int getSize()
getSize
in interface IDataElement
com.netscape.pm.model.IDataElement
IDataElement.getType()
public java.lang.Object getDefaultValue()
getDefaultValue
in interface IDataElement
public void create(IProcessInstance pi) throws java.lang.Exception
create
in interface IDataElement
com.netscape.pm.model.IDataElement
pi
- 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 IDataElement
com.netscape.pm.model.IDataElement
pi
- 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 IDataElement
com.netscape.pm.model.IDataElement
pi
- 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 IDataElement
com.netscape.pm.model.IDataElement
pi
- 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#archive
public boolean canSearch()
canSearch
in interface IDataElement
com.netscape.pm.model.IDataElement
true
if this field is searchable from the Express;
false
otherwise.public IPresentationElement getPresentationElement()
IDataElement
getPresentationElement
in interface IDataElement
com.netscape.pm.model.IDataElement
IPresentationElement
public void display(IHTMLPage html, int displayMode, java.lang.String displayFormat) throws java.lang.Exception
display
in interface IPresentationElement
html
- - html stream to output to
displayMode - see IPresentationElement for possible valuespublic void display(IProcessInstance pi, IHTMLPage html, int displayMode, java.lang.String displayFormat) throws java.lang.Exception
display
in interface IPresentationElement
pi
- - current process instance reference
html - html stream to output to
displayMode - see IPresentationElement for possible valuespublic void update(IProcessInstance pi, IPMRequest rq) throws java.lang.Exception
update
in interface IPresentationElement
com.netscape.pm.model.IPresentationElement
pi
- 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
,
IPMRequest
public IDataElement getDataElement()
IPresentationElement
getDataElement
in interface IPresentationElement
com.netscape.pm.model.IPresentationElement
IDataElement
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 |