public interface ResourceRequestInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMMAND_CALL |
static java.lang.String |
COMMAND_DELETE |
static java.lang.String |
COMMAND_EXEC |
static java.lang.String |
COMMAND_FETCH |
static java.lang.String |
COMMAND_INSERT |
static java.lang.String |
COMMAND_PRINT |
static java.lang.String |
COMMAND_READ |
static java.lang.String |
COMMAND_UPDATE |
static java.lang.String |
COMMAND_WRITE |
static java.lang.String[] |
COMMANDS |
static java.lang.String |
FIELD_TYPE_BOOLEAN |
static java.lang.String |
FIELD_TYPE_CHAR |
static java.lang.String |
FIELD_TYPE_CURRENCY |
static java.lang.String |
FIELD_TYPE_DATE |
static java.lang.String |
FIELD_TYPE_DATETIME |
static java.lang.String |
FIELD_TYPE_INTEGER |
static java.lang.String |
FIELD_TYPE_NUMBER |
static java.lang.String |
FIELD_TYPE_TIME |
Modifier and Type | Method and Description |
---|---|
void |
addScratchPadObject(java.lang.String name,
java.lang.Object obj)
Adds the specified object to the system scratch pad area.
|
void |
commitTransaction()
Commits the current transaction and starts a new transaction.
|
TableDataInterface |
createNewTableData()
Factory method which returns an empty instance of the Table Data object.
|
java.util.List |
getAllNonRepeatingDescendants(java.lang.String fieldName)
Returns a list of field names representing all of the
non-repeating descendants of fieldName.
|
java.lang.String |
getBinding()
Returns the name of the binding issued with the FPL command.
|
java.lang.String |
getChildAt(java.lang.String fieldName,
int childNum)
Returns the field name of the specified child field.
|
int |
getChildCount(java.lang.String fieldName)
Returns the number of child fields that exist for fieldName.
|
java.util.List |
getChildren(java.lang.String fieldName)
Returns a list of field names representing the immediate
child fields of fieldName.
|
int |
getFieldDecimalDigits(java.lang.String fieldName)
Returns the number of decimal digits for the specified field
|
java.lang.String |
getFieldExternalName(java.lang.String fieldName)
Returns the external name of the specified field.
|
int |
getFieldLength(java.lang.String fieldName)
Returns the length of the specified field
|
java.lang.String |
getFieldNameForExternalName(java.lang.String externalName,
java.lang.String parentFieldName)
Returns the Ebase resource field name within the specified parent field
that corresponds to the specified external name.
|
java.lang.String |
getFieldNameFromAncestorList(java.util.ArrayList ancestorList)
Given a List of all ancestor names (including the current external name itself),
return the name of the internal source field id which matches this current field name.
|
java.util.Vector |
getFieldNames()
Returns a vector of Strings consisting of all fields in the custom resource
|
java.lang.String |
getFieldType(java.lang.String fieldName)
Returns the type of the specified field.
|
java.lang.Object |
getFieldValue(java.lang.String fieldName)
Deprecated.
getFieldValue2 should be used. It is identical except for when the field is a DATE.
|
java.lang.Object |
getFieldValue2(java.lang.String fieldName)
Returns the value of the specified field.
|
java.lang.String |
getFieldValueAsString(java.lang.String fieldName)
Retrieves the value of this resource field as a string.
|
java.lang.String |
getFormName()
return name of the form
|
com.ebasetech.ufs.kernel.FormSession |
getFormSessionContext()
Returns the FormSession context object for the user session.
|
javax.naming.InitialContext |
getInitialContext()
Returns the JNDI initial context.
|
java.lang.Object |
getOriginalFieldValue(java.lang.String fieldName)
Retrieves the original value of this resource field in the form in which it was saved.
|
java.lang.String |
getOriginalFieldValueAsString(java.lang.String fieldName)
Retrieves the original value of this resource field as a string.
|
java.lang.String |
getParameterValue(java.lang.String paramName)
Returns the user supplied value for the named parameter.
|
java.lang.String |
getParameterValue(java.lang.String paramName,
boolean allowSubstitution)
Returns the user supplied value for the named parameter substituting any && variables.
|
java.lang.String |
getParent(java.lang.String fieldName)
Returns the name of this field's parent or null if there is no parent.
|
java.lang.String |
getRequestingResourceId()
Returns the identifier of the custom resource instance which is issuing this request.
|
java.lang.String |
getResourceParm1()
Deprecated.
instead, the CustomResourceInterface implementation should explicitly declare the parameter
names it will be using. These should then be accessed by name using getParameterValue().
|
java.lang.String |
getResourceParm2()
Deprecated.
instead, the CustomResourceInterface implementation should explicitly declare the parameter
names it will be using. These should then be accessed by name using getParameterValue().
|
java.lang.String |
getResourceParm3()
Deprecated.
instead, the CustomResourceInterface implementation should explicitly declare the parameter
names it will be using. These should then be accessed by name using getParameterValue().
|
java.lang.String |
getResourceParm4()
Deprecated.
instead, the CustomResourceInterface implementation should explicitly declare the parameter
names it will be using. These should then be accessed by name using getParameterValue().
|
java.lang.Object |
getScratchPadObject(java.lang.String name)
Returns the object with the specified key from the system scratch pad area.
|
javax.servlet.http.HttpSession |
getSessionContext()
Returns the HttpSession context object for the user session.
|
java.lang.Object |
getSystemVariable(int varId)
Returns the value of the given system variable.
|
TableDataInterface |
getTableData(java.lang.String tableId)
Returns an object which implements the TableDataInterface.
|
java.util.List |
getTopLevelFieldNames()
Returns a list of field names representing all resource fields that have no parent.
|
boolean |
hasChildren(java.lang.String fieldName)
Returns true if fieldName has any child fields.
|
boolean |
hasParent(java.lang.String fieldName)
Returns true if fieldName has a parent.
|
boolean |
isBatchMode()
Returns true if the system is operating in batch mode.
|
boolean |
isDebug()
Returns true if the debug flag in the custom resource editor has been checked.
|
boolean |
isFieldAttribute(java.lang.String fieldName)
Determine if the specified resource field is an attribute field.
|
boolean |
isFieldKey(java.lang.String fieldName)
Determine if the specified resource field is a key field.
|
boolean |
isFieldMapped(java.lang.String fieldName)
Determine if the specified resource field is mapped to a form field.
|
boolean |
isFieldRepeatable(java.lang.String fieldName)
Determine if the specified resource field is repeatable.
|
void |
logFormDebug(java.lang.String infoMsg)
Enables the resource to log a debug message to the form's error log.
|
void |
logFormError(java.lang.String errorMsg)
Enables the resource to log an error to the form's error log.
|
void |
logFormInfo(java.lang.String infoMsg)
Enables the resource to log an information message to the form's error log.
|
void |
removeScratchPadObject(java.lang.String name)
Removes the object with the specified key from the system scratch pad area.
|
void |
rollbackTransaction()
Rolls back the current transaction and starts a new transaction.
|
void |
setFieldList(java.lang.String fieldName,
java.util.Vector values) |
void |
setFieldValue(java.lang.String fieldName,
java.lang.Object value)
Sets a value for the specified field.
|
void |
setSystemVariable(int varId,
int varValue)
Sets the named system variable to the supplied varValue
|
void |
setSystemVariable(int varId,
java.lang.String varValue)
Sets the named system variable to the supplied varValue
|
void |
setSystemVariable(com.ebasetech.ufs.kernel.SystemVariableType varType,
int varValue)
Sets the named system variable to the supplied varValue Makes call to setSystemVariable( int varId, int varValue );
|
void |
setSystemVariable(com.ebasetech.ufs.kernel.SystemVariableType varType,
java.lang.String varValue)
Sets the named system variable to the supplied varValue.
|
void |
setTableData(java.lang.String tableId,
TableDataInterface tableData)
Used to tell Ebase Xi to update itself from the table data supplied for the named table field.
|
boolean |
valueHasChanged(java.lang.String fieldName)
Compares the field value with the Original field value.
|
static final java.lang.String COMMAND_FETCH
static final java.lang.String COMMAND_DELETE
static final java.lang.String COMMAND_UPDATE
static final java.lang.String COMMAND_INSERT
static final java.lang.String COMMAND_READ
static final java.lang.String COMMAND_WRITE
static final java.lang.String COMMAND_PRINT
static final java.lang.String COMMAND_EXEC
static final java.lang.String COMMAND_CALL
static final java.lang.String[] COMMANDS
static final java.lang.String FIELD_TYPE_BOOLEAN
static final java.lang.String FIELD_TYPE_CHAR
static final java.lang.String FIELD_TYPE_INTEGER
static final java.lang.String FIELD_TYPE_NUMBER
static final java.lang.String FIELD_TYPE_CURRENCY
static final java.lang.String FIELD_TYPE_DATE
static final java.lang.String FIELD_TYPE_DATETIME
static final java.lang.String FIELD_TYPE_TIME
int getFieldDecimalDigits(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourcejava.lang.String getFieldExternalName(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourcejava.lang.String getFieldNameForExternalName(java.lang.String externalName, java.lang.String parentFieldName) throws com.ebasetech.ufs.kernel.FormException
com.ebasetech.ufs.kernel.FormException
- if fieldName cannot be foundjava.lang.String getFieldNameFromAncestorList(java.util.ArrayList ancestorList) throws com.ebasetech.ufs.kernel.FormException
ancestorList
- - a list of ordered String names from the current name up to the root including all intermediate ancestor names.
The first name on the list is the current field's name. The second is the parent of
this current field. The third is the parent of this parent, etc. up to the top-level.com.ebasetech.ufs.kernel.FormException
int getFieldLength(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourcejava.util.Vector getFieldNames()
java.lang.String getFieldType(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourcejava.lang.Object getFieldValue(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourcejava.lang.Object getFieldValue2(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourceTableDataInterface getTableData(java.lang.String tableId) throws com.ebasetech.ufs.kernel.FormException
tableId
- is the name of the resource field which is mapped to a form table.com.ebasetech.ufs.kernel.FormException
TableDataInterface createNewTableData() throws com.ebasetech.ufs.kernel.FormException
com.ebasetech.ufs.kernel.FormException
void setTableData(java.lang.String tableId, TableDataInterface tableData) throws com.ebasetech.ufs.kernel.FormException
tableId
- is the name of the resource field which is mapped to a form table.tableData
- the populated TableData object to be returned to Ebase Xi.com.ebasetech.ufs.kernel.FormException
java.lang.String getFormName() throws com.ebasetech.ufs.kernel.FormException
com.ebasetech.ufs.kernel.FormException
javax.naming.InitialContext getInitialContext() throws com.ebasetech.ufs.kernel.FormException, javax.naming.NamingException
com.ebasetech.ufs.kernel.FormException
javax.naming.NamingException
java.lang.String getRequestingResourceId()
boolean isDebug()
void setSystemVariable(int varId, java.lang.String varValue)
varId
- identifier of system variable to set. Valid values are defined on the SystemVariableType enumeration.varValue
- value to set the system variable to.void setSystemVariable(int varId, int varValue)
varId
- identifier of system variable to set. Valid values are defined on the SystemVariableType enumeration.varValue
- value to set the system variable to.java.lang.Object getSystemVariable(int varId)
varId
- identifier of system variable to return. Valid values are defined on the SystemVariableType enumeration.void setSystemVariable(com.ebasetech.ufs.kernel.SystemVariableType varType, java.lang.String varValue)
varType
- system variable object to set. Valid values are defined on the SystemVariableType enumeration.varValue
- value to set the system variable to.void setSystemVariable(com.ebasetech.ufs.kernel.SystemVariableType varType, int varValue)
varType
- system variable object to set. Valid values are defined on the SystemVariableType enumeration.varValue
- value to set the system variable to.boolean isBatchMode()
void logFormError(java.lang.String errorMsg)
errorMsg
- void logFormInfo(java.lang.String infoMsg)
infoMsg
- void logFormDebug(java.lang.String infoMsg)
infoMsg
- java.lang.String getResourceParm1()
java.lang.String getResourceParm2()
java.lang.String getResourceParm3()
java.lang.String getResourceParm4()
java.lang.String getParameterValue(java.lang.String paramName)
paramName
- java.lang.String getParameterValue(java.lang.String paramName, boolean allowSubstitution)
paramName
- allowSubstitution
- when true, && variable names in the parameter value will be replaced with the
contents of resource fields with the same name. Environment variables can also be used.boolean isFieldMapped(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourcevoid setFieldValue(java.lang.String fieldName, java.lang.Object value) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourcevoid addScratchPadObject(java.lang.String name, java.lang.Object obj)
name
- - a String to be used as keyobj
- - the object to be addedjava.lang.Object getScratchPadObject(java.lang.String name)
name
- - the keyvoid removeScratchPadObject(java.lang.String name)
name
- - the keyjavax.servlet.http.HttpSession getSessionContext()
com.ebasetech.ufs.kernel.FormSession getFormSessionContext()
void setFieldList(java.lang.String fieldName, java.util.Vector values) throws com.ebasetech.ufs.kernel.FormException
com.ebasetech.ufs.kernel.FormException
boolean isFieldRepeatable(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourceboolean isFieldKey(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourceboolean isFieldAttribute(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourcejava.util.List getChildren(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourcejava.util.List getAllNonRepeatingDescendants(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourcejava.util.List getTopLevelFieldNames()
java.lang.String getParent(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourceboolean hasChildren(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourceboolean hasParent(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourceint getChildCount(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourcejava.lang.String getChildAt(java.lang.String fieldName, int childNum) throws com.ebasetech.ufs.kernel.FormException
fieldName
- is the name of a resource fieldcom.ebasetech.ufs.kernel.FormException
- if fieldName is not a field contained in the resourcejava.lang.Object getOriginalFieldValue(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- com.ebasetech.ufs.kernel.FormException
java.lang.String getOriginalFieldValueAsString(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- com.ebasetech.ufs.kernel.FormException
java.lang.String getFieldValueAsString(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
fieldName
- com.ebasetech.ufs.kernel.FormException
boolean valueHasChanged(java.lang.String fieldName) throws com.ebasetech.ufs.kernel.FormException
com.ebasetech.ufs.kernel.FormException
java.lang.String getBinding()
void rollbackTransaction() throws com.ebasetech.ufs.kernel.FormTransactionException
com.ebasetech.ufs.kernel.FormTransactionException
void commitTransaction() throws com.ebasetech.ufs.kernel.FormTransactionException
com.ebasetech.ufs.kernel.FormTransactionException