|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.database.Row
planetj.dataengine.PropertyRow
planetj.dataengine.application.Application
Contains information describing a DataEngine application Creation date: (3/21/2002 1:11:21 PM)
Nested Class Summary |
Nested classes inherited from class planetj.database.Row |
Row.SpacingRow |
Field Summary |
Fields inherited from class planetj.database.Row |
DISPLAY_ORDER_COMPARATOR, MODE_ALTER, MODE_COPY, MODE_DELETE, MODE_INSERT, MODE_READ, MODE_SEARCH, MODE_UNKNOWN, MODE_UPDATE, mRowEventListeners |
Fields inherited from interface planetj.dataengine.application.IApplication |
APPLICATION_CLASS, APPLICATION_HTTP_ID, APPLICATION_ID, APPLICATION_JSP_FILE, APPLICATION_METADATA_ALIAS, APPLICATION_NAME, APPLICATION_RESULTS_KEY, APPLICATION_TABLE_NAME, AUTO_RUN_STATUS, COMPANY_ID, COMPANY_NAME, CONNECTION_ALIAS, CURRENT_EXECUTING_APPLICATION, CURRENT_WOW_APPLICATION, DESCRIPTION, ERROR_JSP_FILE, INITIAL_VIEW, MANAGE, OPTIONAL_SIGNON, OWNER_ID, PASSWORD, PROPERTIES, SERVLET_URI, SIGN_ON_CLASS, SIGN_ON_OP_ID, SIGN_ON_URI, THEME_ID, USER_ID, VERIFY_CONNECTION |
Fields inherited from interface planetj.dataengine.security.http.ISecured |
SECURED_APPLICATION |
Fields inherited from interface planetj.dataengine.application.IApplicationJSPs |
APPLICATION_ADD_JSP, APPLICATION_DETAILS_JSP, APPLICATION_EDIT_JSP, APPLICATION_ERROR_JSP, APPLICATION_HEADER_JSP, APPLICATION_INVALID_LICENSE_JSP, APPLICATION_JSP, APPLICATION_MESSAGE_JSP, APPLICATION_OPERATIONS_TOC, APPLICATION_RESULTS_JSP, APPLICATION_SIGN_ON_JSP, APPLICATION_TEMPLATE_JSP, APPLICATION_TOC_JSP, APPLICATION_VIEW_JSP |
Fields inherited from interface planetj.dataengine.security.IGuarded |
TYPE_ID_UNKNOWN, TYPE_NAME_FIELD, TYPE_NAME_SQLOPERATION, TYPE_SECURED_BY_LEVEL, TYPE_SECURED_BY_OPERATION, TYPE_UNSECURED |
Constructor Summary | |
Application()
|
Method Summary | |
Row |
createRow(Row pDefaultRow)
Creates a new Row. |
protected SQLContext |
createSQLContextForDelete(ExecutingContext ec)
Creates a new SQLContext which will be used for deleting this row. |
protected SQLContext |
createSQLContextForInsert(ExecutingContext ec)
Creates a new SQLContext which will be used for inserting this row. |
protected SQLContext |
createSQLContextForUpdate(ExecutingContext ec)
Creates a new SQLContext which will be used for updating this row. |
SQLOperation |
createSQLOperation(java.util.Map pValues)
Creates a SQLOperation using the given values and adds it to this Application. |
java.lang.Class |
getApplicationClass()
Gets the Java class for this Application. |
java.lang.String |
getApplicationClassName()
Gets the Java class for this Application. |
static Operation |
getApplicationOperationByUsageId(int usageId,
ExecutingContext ec)
Gets this Operation with the given usage id from the Application in the current executing context. |
SQLOperation |
getAuthenticationOperation()
Gets this Application's Operation with a type of Authorization. |
int |
getAutoRunStatus()
Gets a constant representing the auto-run status. |
java.lang.String |
getCompanyName()
Gets the company name associated with this secured object |
java.lang.String |
getConnectionAlias()
Gets the connection alias for this application |
ConnectionRow |
getConnectionRow()
Gets the ConnectionRow assoicated with this Application |
java.lang.String |
getDeleteConfirmationMessage()
Get the message used when deleting an application. |
java.lang.String |
getDescription()
Gets the description for this application |
java.lang.String |
getErrorJsp()
Gets the name of the JSP used for displaying errors. |
java.lang.String |
getHeaderText(ExecutingContext ec)
Returns information for the user that will be displayed in the header of the Row |
int |
getId()
Gets the ID of this application |
java.lang.Integer |
getIdAsInteger()
Gets the ID of this application |
Operation |
getInitialOperation()
Gets this application's initial operation (may be null) |
java.lang.String |
getJspFile()
Gets this application's JSP file |
LayoutDisplayPropertyGroup |
getLayoutProperties()
Gets this application's layout properties |
java.lang.String |
getName()
Gets the name of this application |
Operation |
getOperationById(int opId)
Gets this application's operations for the given usage id. |
Operation |
getOperationByUsageId(int usageId,
ExecutingContext executingContext)
Gets this application's operations for the given usage id. |
RowCollection |
getOperations()
Returns all the SQL Opps for this App. |
RowCollection |
getOperations(ExecutingContext executingContext)
Gets this application's operations. |
RowCollection |
getOperations(java.lang.String opSetName,
ExecutingContext executingContext)
Gets this application's operations belonging to the given operation set name. |
RowCollection |
getOperationsByUsageId(int usageId,
ExecutingContext executingContext)
Gets this application's operations for the given usage id. |
int |
getOwnerId()
Gets the ID of this application's owner |
java.lang.Integer |
getOwnerIdAsInteger()
Gets the ID of this application's owner |
Field |
getOwnerIdField()
Returns the Owner Id Field |
java.lang.String |
getPassword()
Gets the password for this application |
java.lang.String |
getProperties()
Gets the property string associated with this SQLOperation |
java.lang.String |
getPropertyFieldName()
Get the name of the Field containing this Row's properties.. |
RefererAuthorizationOperation |
getRefererAuthorizationOperation()
Gets this Application's Operation with a type ofn Referer Authorization |
java.util.Map |
getReplacementLibraries()
Gets this application's replacement libraries from its config properties |
java.lang.Class |
getSignOnClass()
Gets the sign on class for this Application. |
java.lang.String |
getSignOnClassName()
Gets the sign on class for this Application. |
Operation |
getSignOnOperation()
Gets the sign on operation for this Application. |
int |
getSignOnOperationId()
Gets the sign on operation for this Application. |
java.lang.String |
getSignOnURI()
Gets the uri for signing onto this application |
RowCollection |
getSQLOperations()
Deprecated. replaced with getOperations() |
RowCollection |
getSQLOperations(ExecutingContext executingContext)
Deprecated. replaced with getOperations(ExecutingContext) |
Theme |
getTheme()
Gets the Theme associated with this application. |
int |
getThemeId()
Gets the ID of this application's theme. |
java.lang.Integer |
getThemeIdAsInteger()
Gets the ID of this application's theme. |
java.lang.String |
getTranslatedName(UserProperties up)
Gets the translated name of this application |
UserAuthenticationListOperation |
getUserAuthenticationListOperation()
Gets this Application's Operation with a type of User Authorization List. |
java.lang.String |
getUserId()
Gets the userid for this application |
java.lang.String |
getUserMessageForOperation(int changeCount,
int mode)
Returns a message for the user based on the Mode of the Row |
boolean |
handleError(short wowErrorCode,
java.lang.Exception e,
ExecutingContext ec)
This method is called when a navigation error occurs. |
boolean |
hasDisplayableOperation(ExecutingContext executingContext)
Test if this Application contains a SQLOperation that is displayable |
protected void |
initializeApplication()
Subclasses may put application initialization in this method. |
protected void |
initializeRow(java.util.List fieldNames,
ExecutingContext pExecutingContext)
Creates Fields for this Row for the given List of field names based upon the Row's Table's FieldDescriptors. |
int |
insert(SQLContext context)
Inserts this Row into the specified database. |
boolean |
isContainDisplayableOperations(ExecutingContext ec)
Check to see if this application contains displayable operations for the given location |
boolean |
isContainDisplayableOperations(java.lang.String displayLocation,
ExecutingContext ec)
Check to see if this application contains displayable operations for the given location |
boolean |
isContainSQLOperation()
Deprecated. |
boolean |
isEnabled(AutoRunOperation op)
Tests if the auto-run operation's type is enabled for this application |
boolean |
isOperationPleaseWait(Operation op,
ExecutingContext ec)
Tests if the operation should display a please wait page |
boolean |
isSignOnOptional()
Tests if the sign-on for this application is optional |
void |
setApplicationClass(java.lang.Class newAppClass)
Sets the Java class for this Application. |
protected void |
setApplicationClassInternal(java.lang.Class newAppClass)
Sets the Java class for this Application. |
void |
setApplicationClassName(java.lang.String applicationClass)
Sets the Java class for this Application. |
protected void |
setApplicationClassNameInternal(java.lang.String applicationClass)
Sets the Java class for this Application. |
void |
setCompanyName(java.lang.String name)
Sets the name of this application |
void |
setConnectionAlias(java.lang.String newConnectionAlias)
Sets the connection alias for this application |
void |
setDescription(java.lang.String value)
Sets the description for this application |
void |
setErrorJspFile(java.lang.String newJspFile)
Sets this application's error JSP file |
void |
setId(int value)
Sets the ID of this application |
void |
setId(java.lang.Integer value)
Sets the ID of this application |
void |
setInitialOperation(Operation operation)
Sets this Application's initial Operation |
void |
setInitialView(View pInitialView)
Deprecated. - use setInitialOperation instead |
void |
setJspFile(java.lang.String newJspFile)
Sets this application's JSP file |
void |
setName(java.lang.String name)
Sets the name of this application |
void |
setOwnerId(int value)
Sets the ID of this application's owner |
void |
setOwnerId(java.lang.Integer value)
Sets the ID of this application's owner |
void |
setPassword(java.lang.String value)
Sets the password for this application |
void |
setSignOnClass(java.lang.Class newSignOnClass)
Sets the sign on class for this Application. |
void |
setSignOnClassName(java.lang.String name)
Sets the sign on class for this Application. |
protected void |
setSignOnClassNameInternal(java.lang.String signOnClass)
Sets the sign on class for this Application. |
void |
setSignOnOperationId(int id)
Sets the sign on operation for this Application. |
void |
setSignOnURI(java.lang.String value)
Sets the URI for signing onto this application |
void |
setThemeId(int value)
Sets the ID of this application's theme. |
void |
setThemeId(java.lang.Integer value)
Sets the ID of this application's theme. |
void |
setUserId(java.lang.String value)
Sets the userid for this application |
void |
signOnAttempted(java.lang.String userID,
boolean success)
Invoked by the security manager after a signon attempt. |
void |
startConnections()
Ensures that all of the connection that this application may use have been started |
java.lang.String |
toString()
Returns a String representation of this Application. |
int |
update(java.sql.Connection conn,
ExecutingContext ec)
Updates the database with the values in this Row. |
boolean |
validate(ExecutingContext pContext)
Validate this Row based on its configuration and field values. |
Methods inherited from class planetj.dataengine.PropertyRow |
getRowPropertyGroup, getRowPropertyGroups, getRowPropertyGroups, setProperties, setPropertiesInternal, setRowPropertyGroups, setRowPropertyGroupsInternal, transferDataTo, transferPropertiesTo |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface planetj.dataengine.security.http.ISecured |
getSystemAlias |
Constructor Detail |
public Application()
Method Detail |
public java.lang.String getHeaderText(ExecutingContext ec)
Row
getHeaderText
in class Row
public java.lang.String getDeleteConfirmationMessage()
getDeleteConfirmationMessage
in class Row
public Row createRow(Row pDefaultRow) throws CMException
transferDataTo()
method is used to move the data from the default Row to the newly created
Row. Override this method if the type of Row to add needs to be
dynamically determined from the retrieved data.
createRow
in interface IRowCreator
createRow
in class PropertyRow
pDefaultRow
- A Row containing data read from the database (it will
always be equal to this)
CMException
protected SQLContext createSQLContextForDelete(ExecutingContext ec) throws CMException
createSQLContextForDelete
in class Row
CMException
protected SQLContext createSQLContextForInsert(ExecutingContext ec) throws CMException
createSQLContextForInsert
in class Row
CMException
protected SQLContext createSQLContextForUpdate(ExecutingContext ec) throws CMException
createSQLContextForUpdate
in class Row
CMException
public SQLOperation createSQLOperation(java.util.Map pValues) throws CMException
pValues
- Map of values for the newly created SQLOperation
CMException
public java.lang.Class getApplicationClass()
public java.lang.String getApplicationClassName()
public static Operation getApplicationOperationByUsageId(int usageId, ExecutingContext ec) throws CMException
usageId
- usage id of the Operation to getec
- ExecutingContext in which to retrieve the desired Operation
return Operation for the given usage id; Note: if no
application is set on the ExecutingContext, then no Operation
can be retrieved.
CMException
public SQLOperation getAuthenticationOperation()
public int getAutoRunStatus()
public java.lang.String getCompanyName()
ISecured
getCompanyName
in interface ISecured
public java.lang.String getConnectionAlias()
public ConnectionRow getConnectionRow() throws CMException
CMException
public java.lang.String getDescription()
public java.lang.String getErrorJsp()
public int getId()
getId
in interface ISecured
public java.lang.Integer getIdAsInteger()
public Operation getInitialOperation() throws CMException
CMException
public java.lang.String getJspFile()
public LayoutDisplayPropertyGroup getLayoutProperties()
getLayoutProperties
in interface ISecured
public java.lang.String getName()
getName
in interface ISecured
public Operation getOperationById(int opId) throws CMException
CMException
public Operation getOperationByUsageId(int usageId, ExecutingContext executingContext) throws CMException
CMException
public RowCollection getOperations() throws CMException
CMException
public RowCollection getOperations(java.lang.String opSetName, ExecutingContext executingContext) throws CMException
CMException
public RowCollection getOperations(ExecutingContext executingContext) throws CMException
CMException
public RowCollection getOperationsByUsageId(int usageId, ExecutingContext executingContext) throws CMException
CMException
public int getOwnerId()
getOwnerId
in interface ISecured
public java.lang.Integer getOwnerIdAsInteger()
public Field getOwnerIdField()
getOwnerIdField
in interface IOwner
IOwner
public java.lang.String getPassword()
public java.lang.String getProperties()
getProperties
in class PropertyRow
public java.lang.String getPropertyFieldName()
getPropertyFieldName
in class PropertyRow
public RefererAuthorizationOperation getRefererAuthorizationOperation()
public java.util.Map getReplacementLibraries()
public java.lang.Class getSignOnClass()
getSignOnClass
in interface ISecured
public java.lang.String getSignOnClassName()
public Operation getSignOnOperation() throws CMException
CMException
public int getSignOnOperationId()
public java.lang.String getSignOnURI()
getSignOnURI
in interface ISecured
public RowCollection getSQLOperations() throws CMException
CMException
public RowCollection getSQLOperations(ExecutingContext executingContext) throws CMException
CMException
public Theme getTheme() throws CMException
CMException
public int getThemeId()
public java.lang.Integer getThemeIdAsInteger()
public java.lang.String getTranslatedName(UserProperties up)
public UserAuthenticationListOperation getUserAuthenticationListOperation()
public java.lang.String getUserId()
public java.lang.String getUserMessageForOperation(int changeCount, int mode)
getUserMessageForOperation
in class Row
(see Row constants to find the modes.
public boolean hasDisplayableOperation(ExecutingContext executingContext) throws CMException
CMException
public boolean handleError(short wowErrorCode, java.lang.Exception e, ExecutingContext ec)
protected void initializeApplication() throws CMException
CMException
protected void initializeRow(java.util.List fieldNames, ExecutingContext pExecutingContext) throws CMException
initializeRow
in class Row
CMException
public int insert(SQLContext context) throws CMException
insert
in class PropertyRow
CMException
public boolean isContainDisplayableOperations(ExecutingContext ec)
public boolean isContainDisplayableOperations(java.lang.String displayLocation, ExecutingContext ec)
public boolean isContainSQLOperation() throws CMException
CMException
public boolean isEnabled(AutoRunOperation op)
public boolean isOperationPleaseWait(Operation op, ExecutingContext ec) throws CMException
CMException
public boolean isSignOnOptional()
public void setApplicationClass(java.lang.Class newAppClass) throws CMException
CMException
protected void setApplicationClassInternal(java.lang.Class newAppClass) throws CMException
CMException
public void setApplicationClassName(java.lang.String applicationClass) throws CMException
CMException
protected void setApplicationClassNameInternal(java.lang.String applicationClass) throws CMException
CMException
public void setCompanyName(java.lang.String name) throws CMException
CMException
public void setConnectionAlias(java.lang.String newConnectionAlias) throws CMException
CMException
public void setDescription(java.lang.String value) throws CMException
CMException
public void setErrorJspFile(java.lang.String newJspFile) throws CMException
CMException
public void setId(int value) throws CMException
CMException
public void setId(java.lang.Integer value) throws CMException
CMException
public void setInitialOperation(Operation operation) throws CMException
CMException
public void setInitialView(View pInitialView) throws CMException
CMException
public void setJspFile(java.lang.String newJspFile) throws CMException
CMException
public void setName(java.lang.String name) throws CMException
CMException
public void setOwnerId(int value) throws CMException
CMException
public void setOwnerId(java.lang.Integer value) throws CMException
CMException
public void setPassword(java.lang.String value) throws CMException
CMException
public void setSignOnClass(java.lang.Class newSignOnClass) throws CMException
CMException
public void setSignOnClassName(java.lang.String name) throws CMException
CMException
protected void setSignOnClassNameInternal(java.lang.String signOnClass) throws CMException
CMException
public void setSignOnOperationId(int id) throws CMException
CMException
public void setSignOnURI(java.lang.String value) throws CMException
CMException
public void setThemeId(int value) throws CMException
CMException
public void setThemeId(java.lang.Integer value) throws CMException
CMException
public void setUserId(java.lang.String value) throws CMException
CMException
public void signOnAttempted(java.lang.String userID, boolean success) throws CMException
signOnAttempted
in interface ISecured
CMException
public void startConnections() throws CMException
CMException
public java.lang.String toString()
public int update(java.sql.Connection conn, ExecutingContext ec) throws CMException
update
in class PropertyRow
conn
- The connection to use for the update
CMException
public boolean validate(ExecutingContext pContext) throws CMException
validate
in class Row
pContext
- current context in which application is executing
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |