|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jcorporate.expresso.core.dataobjects.BaseDataObject com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject com.jcorporate.expresso.core.dbobj.DBObject com.jcorporate.expresso.core.dbobj.SecuredDBObject com.jcorporate.expresso.core.dbobj.SecurDBObject com.sri.emo.dbobj.WizStep
public class WizStep
WizStep is a definition of each step in the wizard. This definition represents "Single Table Inheritance" for all the various types of Wizard Steps out there. While this creates some complexity and wasted fields here, it saves trying to distribute all the data evenly across all the different tables and performing different joins. It may be necessary to refactor later on.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
---|
DBObject.FieldError, DBObject.FieldUpdate |
Field Summary | |
---|---|
static int |
CUSTOM_PICKLIST
Constant for steps that have a custom picklist. |
static String[] |
FIELDS_INDICATING_MATRIX_NEEDS_UPDATING
|
static String |
FLD_DIRECTIVE
Public constant for access to field "New Field". |
static String |
FLD_HELPTEXT
Public constant for access to field "Help Text". |
static String |
FLD_ID
Public constant for access to field "Item ID". |
static String |
FLD_ORDER
Public constant for access to field "Page Order List". |
static String |
FLD_STEP_TYPE
Public constant for access to field "Step Type". |
static String |
FLD_TITLE
Public constant for access to field "New Field". |
static String |
FLD_WIZID
Public constant for access to field "Wizard Id". |
static int |
INSTANCE_PICKLIST
Constant for steps that have a per-instance picklist. |
static int |
INSTRUCTIONS_ONLY
Constant for steps that have custom instructions only. |
static int |
MODEL_PICKLIST
Constant for steps that have a per-model picklist. |
static String |
TABLE_NAME
|
static int |
TEXT_ENTRY
Constant for steps that have custom text entry. |
static String |
TEXT_VV_MULTILINE
Valid value constant for text type atttribute for multiline entry. |
static String |
TEXT_VV_SINGLELINE
Valid value constant for text type attribute. |
static String |
TEXT_VV_UNDEFINED
Valid value constant for text type attribute Undefined. |
Fields inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
---|
ADD, ALL_FUNCTIONS, CACHE_NAME, CACHE_TTY, DELETE, SEARCH, SYSTEM_ACCOUNT_NAME, UPDATE |
Fields inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
---|
ATTRIBUTE_ERROR, ATTRIBUTE_ERROR_MESSAGE, ATTRIBUTE_PAGE_LIMIT, BIG_DECIMAL_ZERO, CACHE_LIMIT_PERCENT, CACHE_LIMIT_TTL, EMAIL_MASK, EVENT_ADD, EVENT_DELETE, EVENT_UPDATE, FLOAT_MASK, INT_MASK, IS_CHECK_RELATIONAL_INTEGRITY, IS_MUTABLE, sCacheStats, UPDATE_CHANGED_ONLY, WHERE_KEYWORD |
Fields inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
---|
anyFieldsDistinct, anyFieldsToInput, anyFieldsToRetrieve, appendCustomWhere, caseSensitiveQuery, customWhereClause, dbKey, distinctFields, inputFields, localConnection, LONGBINARY_READ_DEFAULT_SIZE, maxRecords, myClassName, myUpdates, offsetRecord, recordSet, retrieveFields, sMetadataMap, sortKeys |
Fields inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
---|
currentStatus, globalMask |
Fields inherited from interface com.jcorporate.expresso.core.dataobjects.Securable |
---|
SYSTEM_ACCOUNT |
Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
---|
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
Constructor Summary | |
---|---|
WizStep()
Creates an instance of WizStep. |
|
WizStep(DBConnection dbConnection)
Creates an instance of WizStep that uses an already grabbed DBConnection object. |
Method Summary | |
---|---|
void |
add()
Overrides add to add attributes and to set the step order automatically if it hasn't been done so yet. |
void |
addStepAttribute(String key,
String value)
Add an attribute for the step. |
String |
getHelpText()
|
String |
getHelpTextRaw()
|
String |
getId()
Retrieves the id field. |
String |
getMenuAttribLabel()
Get the description to the valid value portion for the current field settting for FLD_MODELFIELD. |
ValidValue[] |
getMenuItems()
Retrieve the menu items as a valid value array. |
String |
getModelField()
Get the model field. |
String |
getModelName()
Retrieve the model. |
NodeType |
getNodeType()
Return the node type associated with this step. |
String |
getOrder()
|
Part |
getPart()
Get the part that is associated with this step. |
List |
getPartsValidValues()
Retrieve a list of a valid value objects for use in the list of attributes. |
List |
getPicklistMenu(String attribType)
Retrieve a list of valid value items for the picklist menu that may be associated with the wizsteps. |
String |
getStepAttribute(String key)
Retrieve a a value for a step attribute. |
List |
getStepAttributeList()
Retrieve a list of attributes associated with this step. |
Map |
getStepAttributes()
Retrieve a map of all attributes associated with this step. |
int |
getStepType()
Retrieves the type of step. |
Vector |
getTextStyleValidValues()
|
String |
getTitle()
|
int |
getType()
|
Vector |
getValidValues(String fieldName)
Override to provide 'custom type' for value list. |
Transition |
getViewTrans()
Provide a transition for viewing this object, suitable for creating an HTTP link. |
WizDefinition |
getWizardDefinition()
Allows up navigation to the owner hierarchy. |
WizardPage |
getWizardPage(EmoWizardMetadata metadata)
Builds a wizard page given an instance of the metadata. |
String |
getWizId()
|
boolean |
isAttribute()
Returns true if we're using a multi-valued node attribute for this step. |
void |
removeAllAttributes()
Delete all attributes. |
void |
removeStepAttribute(String key)
Remove an attribute to be associated with the step. |
void |
setId(int stepId)
|
void |
setId(String id)
|
void |
setOrder(String order)
|
void |
setStepAttributes(Map attributes)
Sets the step attributes. |
protected void |
setupFields()
One time intiialization of all the field types. |
void |
setWizId(String wizId)
|
boolean |
shouldUpdateDecisionMatrix()
Assumes that this object has been retrieved and then certain fields have been set from request parameters. |
void |
update()
Override of Normal Update to save all attributes to disk. |
void |
updateStepAttribute(String key,
String value)
Update an attribute for the step. |
Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
---|
canRequesterAdd, canRequesterDelete, canRequesterRead, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, delete, deleteAll, find, getRequestingUid, getRequestingUser, getString, getString, getString, getString, getString, getString, getSystemUid, instantiate, isAllowed, retrieve, search, searchAndRetrieveList, searchAndRetrieveList, setRequestingUid, setRequestingUser |
Methods inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
---|
getGlobalMask, getStatus, isGlobalMasked, setFieldsWithDefaults, setGlobalMask, setStatus |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jcorporate.expresso.core.dataobjects.Securable |
---|
getRequestingUid, isAllowed, setRequestingUid, setRequestingUser |
Field Detail |
---|
public static final String TABLE_NAME
public static final String FLD_ID
public static final String FLD_WIZID
public static final String FLD_TITLE
public static final String FLD_DIRECTIVE
public static final String FLD_HELPTEXT
public static final String FLD_STEP_TYPE
public static final String FLD_ORDER
public static final String TEXT_VV_UNDEFINED
public static final String TEXT_VV_SINGLELINE
public static final String TEXT_VV_MULTILINE
public static final int MODEL_PICKLIST
public static final int INSTANCE_PICKLIST
public static final int CUSTOM_PICKLIST
public static final int TEXT_ENTRY
public static final int INSTRUCTIONS_ONLY
public static final String[] FIELDS_INDICATING_MATRIX_NEEDS_UPDATING
Constructor Detail |
---|
public WizStep() throws DBException
DBException
- upon initialization exception.SecuredDBObject.SecuredDBObject(java.lang.String, int)
public WizStep(DBConnection dbConnection) throws DBException
dbConnection
- com.jcorporate.expresso.core.db.DBConnection
DBException
- upon construction errorMethod Detail |
---|
public List getPartsValidValues() throws DBException
DBException
- upon database error.public Part getPart() throws DBException
DBException
- upon database error.public Map getStepAttributes() throws DBException
DBException
- upon error.public int getStepType() throws DBException
DBException
public List getStepAttributeList() throws DBException
DBException
- upon error.public String getStepAttribute(String key) throws DBException
key
- String the attribute key.
DBException
public void addStepAttribute(String key, String value) throws DBException
key
- String the attribute key.value
- The new value for the step attribute.
DBException
- upon errorpublic void updateStepAttribute(String key, String value) throws DBException
key
- String the attribute key.value
- The new value for the step attribute.
DBException
- upon errorpublic void setStepAttributes(Map attributes) throws DBException
attributes
- Map
DBException
public void removeStepAttribute(String key) throws DBException
key
- String the attribute key.
DBException
- upon delete error.public void removeAllAttributes() throws DBException
DBException
public String getMenuAttribLabel() throws DBException
DBException
- upon database access error.public NodeType getNodeType() throws DBException
DBException
- upon database access OR if we can't find
the associated node type.public List getPicklistMenu(String attribType) throws DBException
attribType
- The attribute type.
DBException
- if no menu is defined for this step.public ValidValue[] getMenuItems()
public WizardPage getWizardPage(EmoWizardMetadata metadata) throws WizardException
metadata
- the emo metadata instance.
WizardException
- upon construction error.public WizDefinition getWizardDefinition() throws DBException
DBException
- upon access error.protected void setupFields() throws DBException
setupFields
in class DBObject
DBException
- upon errorpublic Vector getValidValues(String fieldName) throws DBException
getValidValues
in class DBObject
fieldName
- the name of the field for values.
DBException
public Vector getTextStyleValidValues()
public void add() throws DBException
add
in interface DataObject
add
in class SecuredDBObject
DBException
- upon database errorpublic boolean isAttribute() throws DBException
DBException
- upon getField() error,public String getModelName() throws DBException
DBException
- upon getField() error.public String getModelField() throws DBException
DBException
- upon getFieldErorr();public Transition getViewTrans() throws DBException
getViewTrans
in interface IViewable
DBException
- upon access error.public String getId() throws DBException
DBException
- upon getField() error.public void update() throws DBException
update
in interface DataObject
update
in class SecuredDBObject
DBException
- upon error.public void setId(String id) throws DBException
DBException
public void setId(int stepId) throws DBException
DBException
public String getWizId() throws DBException
DBException
public void setWizId(String wizId) throws DBException
DBException
public boolean shouldUpdateDecisionMatrix() throws DBException
DBException
- upon database access error.public String getTitle() throws DBException
DBException
public String getOrder() throws DBException
DBException
public void setOrder(String order) throws DBException
DBException
public int getType() throws DBException
DBException
public String getHelpText() throws DBException
DBException
public String getHelpTextRaw() throws DBException
DBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |