planetj.dataengine.security
Class DEUser

java.lang.Object
  extended byplanetj.database.Row
      extended byplanetj.dataengine.security.DEUser
All Implemented Interfaces:
java.lang.Cloneable, IActionObject, IBatchProcessObject, IBusinessObject, ICSVRow, IDEUser, IFDFObject, IGuarded, INamedCollection, INavigationObject, IRowCreator, IUser, IXMLObject, java.security.Principal, java.io.Serializable

public class DEUser
extends Row
implements IDEUser

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class planetj.database.Row
Row.SpacingRow
 
Field Summary
static java.lang.String className
           
 
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.security.IDEUser
FIRST_NAME, LAST_NAME, LIBRARY_NAME, OWNER_ID, PASSWORD, PLANETJ_USER, PROPERTIES, SECURITY_LEVEL, TABLE_NAME, TYPE_APP_ADMIN, TYPE_APP_USER, UNIQUE_ID, USER_NAME
 
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
DEUser()
           
 
Method Summary
 java.lang.String getFirstName()
          Getter method for the FirstName property
 int getId()
          Gets the ID of this user
 java.lang.Integer getIdAsInteger()
          Gets the ID of this user
 java.lang.String getLastName()
          Getter method for the LastName property
 java.lang.String getName()
           
 int getOwnerId()
          Getter method for the OwnerId property
 java.lang.Integer getOwnerIdAsInteger()
          Gets the ID of this user 2 group's owner
 java.lang.String getPassword()
          Getter method for the Password property
 java.lang.String getProperties()
          Getter method for the Properties property
 Row getPropertiesRow()
          Get a Row containing properties for the current user.
 java.util.Map getReplacementLibraries()
           
 int getSecurityLevel()
          Getter method for the SecurityLevel property
 java.lang.String getSystemAlias()
          Gets the system alias of this user's personal connection pool, or null if no such pool exists
static Table getTable(java.lang.String system)
           
 int getThemeId()
          Get the theme id for this user.
 int getUniqueId()
          Getter method for the UniqueId property
 java.lang.Object getUserDisplayValue(java.lang.String fieldName)
          Gets the display value from the user for the specified key
 java.lang.String getUserMode()
          Gets the MODE of the user.
 java.lang.String getUserName()
          Getter method for the User Name property
 java.lang.Object getUserSQLValue(java.lang.String fieldName)
          Gets the value of the specified user field as an Object for use as an SQL parameter
 java.lang.Object getUserValue(java.lang.String fieldName)
          Gets the value of the specified user field as an Object
 boolean hasSecurityLevel()
          Method that can be used to determine if the user has a security level.
 boolean isAdmin()
          !!A WK (9/4/2002 3:26:12 PM) Admin has not yet been implemented.
 boolean isPJAdmin()
          !!A WK (9/4/2002 3:26:12 PM) PJ Admin has not yet been implemented.
 DEUser setEmailAddress(java.lang.String newValue)
          Setter method for the UserName property
 DEUser setFirstName(java.lang.String newValue)
          Setter method for the FirstName property
 void setId(int value)
          Sets the user ID
 void setId(java.lang.Integer value)
          Sets the user ID
 DEUser setLastName(java.lang.String newValue)
          Setter method for the LastName property
 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
 DEUser setPassword(java.lang.String newValue)
          Setter method for the Password property
 DEUser setProperties(java.lang.String newValue)
          Setter method for the Properties property
 void setPropertiesRow(Row row)
          Set the given Row as the user's properties Row.
 DEUser setSecurityLevel(int newValue)
          Setter method for the SecurityLevel property
 void setSystemAlias(java.lang.String newSystemAlias)
          Sets the system alias of this user's personal connection pool.
 DEUser setUniqueId(int newValue)
          Setter method for the UniqueId property
 void setUserMode(java.lang.String pUserMode)
          Sets the MODE of this user
 void setUserValue(java.lang.String fieldName, java.lang.Object value)
          sets the value of the specified user field as an Object
 
Methods inherited from class planetj.database.Row
add, add, addObject, addPropertyChangeListener, addPropertyChangeListener, addRowEventListener, addRowEventListeners, addTable, addToRowCollection, appendDisplayType, batchProcess, clearFields, clearTables, clearValidationException, clone, cloneRow, commitFieldValues, commitFieldValues, commitFieldValues, concatenateFieldFullLengthValues, concatenateFieldValues, containsField, copy, copyIntoRowFieldsWithCommonFieldNames, copyIntoRowFieldsWithCommonFieldNames, copyIntoRowFieldsWithCommonUsageIds, copyIntoRowFieldsWithGivenFieldNames, copyIntoRowFieldsWithGivenFieldNames, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, createAction, createNamedActionRequest, createRow, createSQLContextForDelete, createSQLContextForInsert, createSQLContextForUpdate, dataTransferred, defaultMerge, delete, delete, delete, delete, deleteObject, divide, duplicateKey, duplicateKey, enforceExclusiveOr, equals, equals, equalsInstance, fieldHasPossibleValuesSQLOperation, firePropertyChange, fireRowEvent, getActionDefaultLocation, getActionDescriptor, getActionRequest, getActionRequest, getActions, getActionsForFields, getActionsForOperation, getAssociation, getAssociation, getAssociationByOperationUsageId, getAssociationOperation, getAttribute, getAutoIncrementDatabaseDrivenField, getBackgroundColor, getChangedFields, getChildren, getColumnSpan, getCompleteRow, getCompleteRow, getConcurrentFields, getConfigProperty, getCopiedFieldValues, getCreationContext, getCSVRow, getCSVRow, getDatabaseRow, getDatabaseRow, getDatabaseRow, getDatabaseRow, getDBSystem, getDeleteConfirmation, getDeleteConfirmationMessage, getDisjointRowClass, getDisplayValue, getDisplayValueByUsageId, getDisplayValueForKey, getErrorMessageForOperation, getExternalName, getExternalNames, getFDFData, getFDTable, getField, getField, getField, getFieldAssociationOperation, getFieldCollection, getFieldDefaultValue, getFieldDescriptor, getFieldDescriptor, getFieldDescriptor, getFieldDescriptorsWithUsage, getFieldDescriptorsWithUsageId, getFieldDescriptorWithUsageId, getFieldDisplayComponent, getFieldDisplayOrder, getFieldDisplayValue, getFieldDisplayValue, getFieldExternalName, getFieldFieldClassParameters, getFieldFieldSetName, getFieldIncrementor, getFieldMaxLength, getFieldNames, getFieldNames, getFieldPossibleValues, getFields, getFields, getFieldSearchDefaultValue, getFieldSets, getFieldsForInsert, getFieldSQLObject, getFieldStatusChange, getFieldsToDisplay, getFieldsToDisplayStrict, getFieldsToDisplayStrict, getFieldStyleClass, getFieldsWithUsageId, getFieldUsageIds, getFieldValue, getFieldValueWithUsageId, getFieldWithUsageId, getHeaderText, getHorizontalAlignment, getJSPFor, getKeyFieldNames, getKeyFields, getKeyFields, getLibraryName, getMaxFieldLengths, getMaxFieldLengths, getMaxInsertRetries, getMetaDataSystemAlias, getNamed, getNamed, getNamesOfUpdatedFields, getNavigationKey, getNavigationListKey, getNextOperationToRun, getOperation, getOperation, getOperationFromDB, getOperationFromDBByUsage, getPercentage, getPhysicalFieldNames, getPossibleValueClass, getPossibleValueClass, getPossibleValues, getPossibleValuesKey, getPossibleValuesOperation, getPropertyChangeSupport, getPropertyGroup, getPropertyGroups, getPropertyGroups, getReplacementFieldsToDisplay, getReplacementFieldsToDisplay, getRequiredFields, getRow, getRowCollection, getRowDisplayAttributes, getRowDisplayAttributes, getRowHandledActionNames, getRowKey, getSecuredTypeId, getSecuredTypeName, getSecurityType, getSQL, getSQLContext, getStaticAttribute, getStaticAttributes, getSum, getTabbedOperation, getTable, getTable, getTableName, getTables, getTimestamp, getUpdatedFields, getUserMessageForOperation, getUserMessageForOperation, getUseWOWLibrary, getValidationExceptions, getValueAsBoolean, getValueAsByte, getValueAsDate, getValueAsDate, getValueAsDouble, getValueAsDouble, getValueAsFloat, getValueAsFullLengthString, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsNumber, getValueAsNumber, getValueAsShort, getValueAsString, getValueAsString, getValueAsStringByUsageId, getValueByUsageId, getValueForKey, getValues, getXMLData, getXMLData, getXMLHeaderData, goToNextOperation, handleAction, hasAssociationOperation, hasChildRows, hasMultipleStyleClasses, hasPossibleValuesKeyClassOrOp, hasPossibleValuesOperation, hasPropertyChangeListeners, incrementFieldValue, initializeRow, initializeRow, initializeRow, initializeRow, initializeRow, initializeRow, insert, insert, insert, insert, is, isActionApplicable, isActionRepeatable, isARow, isARowCollection, isChanged, isChanged, isChangedRealTime, isChangedSinceLastCheck, isCloneNeeded, isContainsAllFields, isCopyable, isCurrent, isDeletable, isDistinctRow, isEditable, isEmpty, isFieldApplicable, isFieldAuthorizedForEdit, isFieldAuthorizedForRead, isFieldAutoIncrement, isFieldAutoIncrementDatabaseDriven, isFieldAutoIncrementWOWDriven, isFieldDisplayable, isFieldPresent, isFieldReadOnly, isFieldReadOnlyOnSearch, isFieldRequired, isFieldRequiredOnSearch, isFieldsChanged, isFieldUpdateable, isFieldValueNotBlank, isFieldValuePossibleValue, isFieldValuesDatabaseDefaults, isGenerateChildRows, isGroupByRow, isGuarded, isHasColumnNames, isInARowCollection, isIncrementorResetAfterMaxInsertRetries, isInitializeDerivedFieldEnabled, isInitializeDerivedFieldsEnabled, isJoinedRow, isKeyFieldsPresent, isLogicalRow, isMultipleDeleteEnabled, isParameterRow, isPersistent, isPhysicalRow, isPrepareFieldValue, isPropertyChangeEventsEnabled, isReturningFromPossibleValuesSearch, isRowDisplayable, isRowKeyed, isSelectable, isStatusChange, isToBeSelected, isUnionRow, isUpdateable, isUseRowForFieldSets, isValidateDerivedFields, isValidateRequired, isValidationRequiredForAutoPopulate, isViewable, iterator, joinedDatabaseAccessFailure, joinedDelete, joinedDelete, joinedInsert, joinedInsert, joinedUpdate, joinedUpdate, merge, newField, newField, newField, newField, openFor, persist, populate, populate, populate, populateFD, postCreate, postDelete, postExtract, postInsert, postInsert, postUpdate, postUpdate, preDelete, preInsert, prepareForDetails, prepareForParameters, prepareForResultsDisplay, prepareFromFieldNames, preUpdate, removeField, removeField, removeNavigationKey, removePropertyChangeListener, removePropertyChangeListener, removeRowEventListener, removeRowEventListeners, replaceField, replaceFields, replaceFieldValues, replaceNumbersWithNames, reread, rereadIfNeeded, resetDisplayValues, rollbackChanges, runSQLQuery, runSQLQuery, runSQLStatement, runSQLStatement, setAttribute, setAutoUpdateFieldValues, setCreationContext, setCreationOperation, setFieldInitialValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValueAsString, setFieldValueAsString, setFieldValuesAsDate, setFieldValuesToDefault, setFieldValuesWithCommonFieldNames, setFieldValuesWithCommonFieldNames, setFieldValuesWithCommonFieldNames, setFieldValuesWithCommonUsageIds, setFieldValueToDefault, setMultipleDeleteEnabled, setNavigationKey, setParameterRow, setPersistent, setPropertyChangeEventsEnabled, setPropertyGroups, setReturningFromPossibleValuesSearch, setRowDisplayAttributes, setSavepoint, setSavepoint, setSavepoint, setStaticAttribute, setTables, setTables, setUseWOWLibrary, setValidateDerivedFields, setValidateRequired, setValues, size, splitAndSetFieldValues, statusChanged, swapFieldValues, toCSV, toDOC, toDOC, toFDF, toPDF, toPDF, toString, toUpperCase, toXML, transferDataTo, transferDataTo, update, update, update, update, updateFieldValues, updateGlobalValues, updateObject, validate, validate, validate, validateField, validateRowOperation
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface planetj.dataengine.security.IUser
getDisplayValueByUsageId, getValueByUsageId
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Field Detail

className

public static final java.lang.String className
Constructor Detail

DEUser

public DEUser()
Method Detail

getUserDisplayValue

public java.lang.Object getUserDisplayValue(java.lang.String fieldName)
Description copied from interface: IUser
Gets the display value from the user for the specified key

Specified by:
getUserDisplayValue in interface IUser

getUserMode

public java.lang.String getUserMode()
Description copied from interface: IUser
Gets the MODE of the user. This has to do with usability. NOVICE, ADVANCED

Specified by:
getUserMode in interface IUser

setUserMode

public void setUserMode(java.lang.String pUserMode)
Description copied from interface: IUser
Sets the MODE of this user

Specified by:
setUserMode in interface IUser
See Also:
IUser.setUserMode(java.lang.String)

getFirstName

public java.lang.String getFirstName()
Getter method for the FirstName property

Specified by:
getFirstName in interface IUser

getId

public int getId()
Gets the ID of this user


getIdAsInteger

public java.lang.Integer getIdAsInteger()
Gets the ID of this user


getLastName

public java.lang.String getLastName()
Getter method for the LastName property

Specified by:
getLastName in interface IUser

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal

getThemeId

public int getThemeId()
Get the theme id for this user.

Specified by:
getThemeId in interface IUser

getOwnerId

public int getOwnerId()
Getter method for the OwnerId property

Specified by:
getOwnerId in interface IUser

getOwnerIdAsInteger

public java.lang.Integer getOwnerIdAsInteger()
Gets the ID of this user 2 group's owner


getPassword

public java.lang.String getPassword()
Getter method for the Password property


getProperties

public java.lang.String getProperties()
Getter method for the Properties property


getPropertiesRow

public Row getPropertiesRow()
Description copied from interface: IUser
Get a Row containing properties for the current user.

Specified by:
getPropertiesRow in interface IUser
Returns:

getReplacementLibraries

public java.util.Map getReplacementLibraries()
Specified by:
getReplacementLibraries in interface IUser

getSecurityLevel

public int getSecurityLevel()
Getter method for the SecurityLevel property

Specified by:
getSecurityLevel in interface IUser

getSystemAlias

public java.lang.String getSystemAlias()
Gets the system alias of this user's personal connection pool, or null if no such pool exists

Specified by:
getSystemAlias in interface IUser
Overrides:
getSystemAlias in class Row
Returns:
String

getTable

public static Table getTable(java.lang.String system)

getUniqueId

public int getUniqueId()
Getter method for the UniqueId property


getUserName

public java.lang.String getUserName()
Getter method for the User Name property

Specified by:
getUserName in interface IUser

getUserSQLValue

public java.lang.Object getUserSQLValue(java.lang.String fieldName)
                                 throws CMException
Description copied from interface: IUser
Gets the value of the specified user field as an Object for use as an SQL parameter

Specified by:
getUserSQLValue in interface IUser
Throws:
CMException

getUserValue

public java.lang.Object getUserValue(java.lang.String fieldName)
Description copied from interface: IUser
Gets the value of the specified user field as an Object

Specified by:
getUserValue in interface IUser

hasSecurityLevel

public boolean hasSecurityLevel()
Method that can be used to determine if the user has a security level.

Specified by:
hasSecurityLevel in interface IUser
Returns:
true if the user has a security level; false otherwise

isAdmin

public boolean isAdmin()
!!A WK (9/4/2002 3:26:12 PM) Admin has not yet been implemented. This method is just a place holder. Currently, there are no Admins.

Specified by:
isAdmin in interface IUser

isPJAdmin

public boolean isPJAdmin()
!!A WK (9/4/2002 3:26:12 PM) PJ Admin has not yet been implemented. This method is just a place holder. Currently, there are no PJ Admins.

Specified by:
isPJAdmin in interface IUser
Returns:

setEmailAddress

public DEUser setEmailAddress(java.lang.String newValue)
                       throws CMException
Setter method for the UserName property

Throws:
CMException

setFirstName

public DEUser setFirstName(java.lang.String newValue)
                    throws CMException
Setter method for the FirstName property

Throws:
CMException

setId

public void setId(int value)
           throws CMException
Sets the user ID

Throws:
CMException

setId

public void setId(java.lang.Integer value)
           throws CMException
Sets the user ID

Throws:
CMException

setLastName

public DEUser setLastName(java.lang.String newValue)
                   throws CMException
Setter method for the LastName property

Throws:
CMException

setOwnerId

public void setOwnerId(int value)
                throws CMException
Sets the ID of this application's owner

Throws:
CMException

setOwnerId

public void setOwnerId(java.lang.Integer value)
                throws CMException
Sets the ID of this application's owner

Throws:
CMException

setPassword

public DEUser setPassword(java.lang.String newValue)
                   throws CMException
Setter method for the Password property

Throws:
CMException

setProperties

public DEUser setProperties(java.lang.String newValue)
                     throws CMException
Setter method for the Properties property

Throws:
CMException

setPropertiesRow

public void setPropertiesRow(Row row)
Description copied from interface: IUser
Set the given Row as the user's properties Row.

Specified by:
setPropertiesRow in interface IUser
Parameters:
row -

setSecurityLevel

public DEUser setSecurityLevel(int newValue)
                        throws CMException
Setter method for the SecurityLevel property

Throws:
CMException

setSystemAlias

public void setSystemAlias(java.lang.String newSystemAlias)
Sets the system alias of this user's personal connection pool. This is null if no such pool exists


setUniqueId

public DEUser setUniqueId(int newValue)
                   throws CMException
Setter method for the UniqueId property

Throws:
CMException

setUserValue

public void setUserValue(java.lang.String fieldName,
                         java.lang.Object value)
                  throws CMException
Description copied from interface: IUser
sets the value of the specified user field as an Object

Specified by:
setUserValue in interface IUser
Throws:
CMException