public class UserEntity extends TableEntity
| Modifier and Type | Class and Description |
|---|---|
protected static class |
UserEntity.EncryptWindow
Frame to obtains the encrypted value for a specified text
|
TableEntity.AttachmentReceiving, TableEntity.FileInfo, TableEntity.FileInfoList, TableEntity.Receiving| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkPeriodical |
static boolean |
encrypt
Enable or disable encrypt.
|
protected static String |
FIRST_LOGIN_STRING |
protected String |
firstLogin |
protected static String |
LAST_PASSWORD_UPDATE |
protected static String |
Password |
protected String |
passwordLastUpdate |
protected long |
period |
protected static String |
PERIOD_STRING |
protected static String |
PERIODICAL |
protected static String |
User |
protected static String |
USER_BLOCKED_STRING |
protected String |
userBlock |
alias, aliasPropertiesParser, aliasReverse, ASTERISK, ATTACHMENT_FILE_DESCRIPTION_COLUMN, ATTACHMENT_FILE_NAME_COLUMN, ATTACHMENT_FILE_NAME_KEYS, ATTACHMENT_FILE_ORIGINAL_NAME_COLUMN, ATTACHMENT_FILE_ORIGINAL_PATH_COLUMN, ATTACHMENT_FILE_PATH, ATTACHMENT_FILE_SIZE_COLUMN, ATTACHMENT_SEPARATOR, ATTACHMENT_TABLE, attachmentFileNameColumn, attachmentFileNameKeys, attachmentFilePath, attachmentFileSizeColumn, attachTable, auditorLog, AUTOCONFIGURATION, AUTONUMERICAL, autonumericalColumn, calendar, checkOperationResult, columnNames, COLUMNS, connectionRequestTime, COUNT_COLUMNS, countColumns, dataChangeListeners, dBLocalErrorMessage, defaultEntityScriptManagerClassName, DELETE_ACTION, DELETE_KEYS, deleteKeys, descendantColumnsOrder, descriptionAttachmentFileColumn, enableScripting, entitiesPropertiesParser, entitiesTableAttribute, entityName, entityScripting, FETCH_SIZE, fetchSize, FILE_COLUMNS, fileInfoList, FORCE_DISTINCT, forceDistinct, GENERATED_KEY, generatedKeyList, hOtherLocaleTablesColumns, hOtherLocaleTablesKey, INSERT_ACTION, INSERT_AUTOMATICLY_ATTACHMENT, INSERT_COLUMNS, INSERT_KEYS, insertAttachmentAutomatically, insertColumn, insertKeys, INTERROG, keys, KEYS, LIMIT_QUERY_OTHERS_ENTITIES, limitQueryOthersEntities, LOCALE_COLUMNS, LOCALE_TABLE, localeTable, locator, LOG_KEYS, logDelete, logInsert, logkeys, logQuery, logUpdate, M_ERROR_OPERATION, M_IT_HAS_NOT_CHANGED_ANY_RECORD, M_LICENSE_PERMISSION_ERROR, M_TEMPORALY_RESTRICTED_BY_PERMISSION_ACTION, M_YOU_DO_NOT_HAVE_PERMISSION_TO_EXECUTE_ACTION, manager, maxConnectionWaitTime, oneToOneMode, orderColumns, originalAttachmentFileNameColumn, originalAttachmentFilePathColumn, OTHER_ENTITIES, OTHER_LOCALE_TABLES, OTHER_LOCALE_TABLES_COLUMNS, OTHER_LOCALE_TABLES_KEY, othersEntities, PERCENT, PRINCIPAL_COLUMNS, PRINCIPAL_KEYS, PRINCIPAL_TABLE, principalColumnNames, principalKeyName, principalTable, privilegedId, properties, propertiesPath, QUERY_ACTION, QUERY_TABLE, queryTable, receivedAttachmentFile, receivedTempFiles, RECORD_OPERATIONS, registeredDispatcher, REPORT_ADVANCED_QUERY_COLUMNS, REPORT_ADVANCED_QUERY_TYPES, reportAvancedQueryColumns, reportAvancedQueryTypes, SECONDARY_COLUMNS, SECONDARY_KEYS, SECONDARY_TABLE, secondaryColumnsNames, secondaryKeyName, secondaryTable, sendAttachmentFile, SORT, SORT_DESC, table, TABLE, TABLE_ATTRIBUTE_ENTITIES, tempFiles, TRUNCATE_DATE_DEFAULT_VALUE, TRUNCATE_DATES, truncateDates, UNDERSCORE, UPDATE_ACTION, UPDATE_COLUMNS, UPDATE_KEYS, updateColumn, updateKeys, USE_SETSTRING_LONG_STRINGS, useAlwaysTableAttributeEntities, vLocaleColumns, vOtherLocaleTables, WILDCARD_COLUMNS, wildcardColumnsref| Constructor and Description |
|---|
UserEntity(EntityReferenceLocator locator,
DatabaseConnectionManager databaseConnectionManager,
int port) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFirstLoginColumn() |
String |
getPasswordLastUpdateColumn() |
long |
getPeriod() |
String |
getUserBlockColumn() |
static String |
getUserColumn() |
EntityResult |
insert(Hashtable attributesValues,
int sessionId,
Connection con)
Executes an insert operation with the provided Connection.
|
boolean |
isPeriodical() |
static void |
main(String[] arg) |
EntityResult |
query(Hashtable keysValues,
Vector attributes,
int sessionId,
Connection con)
Executes a query operation using the provided Connection, with the
conditions and attributes required.
|
protected void |
readProperties(Properties prop,
URL uRLProp)
Loads and analyzes the properties
prop. |
EntityResult |
update(Hashtable attributesValues,
Hashtable keysValues,
int sessionId,
Connection con)
Executes an update operation with the provided Connection.
|
addEntityDataChangeListener, buildConditionsString, cancelReceiving, checkAmbiguousColumns, checkAvailableLocaleTables, checkBasicExpresionLocalesInKv, checkBasicExpresionLocalesInKv, checkConditionsWithTablePreffix, checkDeleteKeys, checkFinishedSession, checkInsertKeys, checkLocalesInKV, checkOrderColumns, checkOtherLocaleTables, checkPermissions, checkUpdateKeys, configureReverseAlias, connect, connect, createAdvancedEntityResultForSessionId, createAdvancedEntityResultForSessionId, createEntityResultForSessionId, createEntityResultForSessionId, createEntityResultForSessionId, createEntityResultForSessionId, createEntityResultForSessionId, createEntityScriptManager, delete, delete, deleteAttachmentFile, deleteAttachmentFile, deleteHOtherLocaleTablesAlias, deleteLocaleColumns, deleteMultipleTableAttributesColumns, disconnect, disconnect, dispatcherAttribute, executePreparedStatement, executePreparedStatement, executePreparedStatement, executePreparedStatement, executePreparedStatement, executePreparedStatement, executePreparedStatement, executeStatement, filterAttributes, filterKeys, finishReceiving, fireDataChangeEvent, fireDataChangeEvent, fireTransactionDataChangeEvent, fireTransactionDataChangeEvent, generatedKeysToEntityResult, generateRandomId, getActions, getAliasForColumn, getAttachmentFileNameForKeys, getAttachmentFilePath, getAttachmentFilePath, getAutonumericalColumn, getBaseEntityName, getBytes, getColumnForAlias, getColumnListForAvancedQuery, getColumns, getColumnsWithoutLocale, getConditionsWithTablePreffix, getContidionsWithoutFilterKeys, getDatabaseConnectionManager, getDeleteKeys, getDescOrderColumns, getDescription, getEntityPrivilegedId, getEntityReference, getErrorMessage, getExtendedAliasPropertiesName, getExtendedPropertiesName, getExtension, gethOtherLocaleTablesColumns, getInsertKeys, getJoinConditions, getKeys, getKeysVector, getLocaleColumnsFromTable, getLocaleIdFromSession, getLocaleTableName, getLocaleTableName, getMetadata, getName, getOrderColumns, getPrivilegedId, getPropertiesPath, getQueryRecordNumber, getQueryRecordNumber, getQueryTable, getSchemaQueryTable, getSchemaTable, getSecondaryColumnsWithoutKey, getSize, getSQLTypesFromMetaData, getStringsOn, getSubGroupValues, getSubGroupValues, getTable, getTypeFromMetadata, getUpdateColumns, getUpdateKeys, getUser, getValidAttributes, getValidDeletingKeysValues, getValidInsertingAttributesValues, getValidQueryingKeysValues, getValidUpdatingAttributesValues, getValidUpdatingKeysValues, getvLocaleColumns, getWildCardColumns, insert, insertAutonumericalAlias, insertInLocaleTableLocaleColumns, insertInLocaleTablesForOneToOne, insertLocaleColumn, insertOtherEntities, isBinaryType, loadAliasFile, loadAliasFile, logToLogKeys, logUpdate, modifyBexpWithOtherLocaleTableAlias, modifyBexpWithOtherLocaleTableAlias, parseProperties, parseStringValue, particularizeConditions, performExtendedAliasProperties, performExtendedProperties, postDelete, postInsert, postUpdate, preDelete, preInsert, prepareToReceive, prepareToReceive, prepareToReceive, prepareToTransfer, prepareToTransfer, preUpdate, processColumnsWithoutLocale, processFileColumnsAttributes, processFileColumnsAttributes, processFileResults, processingMultipleValueAttributes, processingReferenceDataFieldAttributes, processingReferenceDataFieldAttributes, processMultipleAttributeKey, processMultipleTableAttribute, processMultipleTableAttribute, processOtherEntities, processValidLocaleColumnsValues, putBytes, query, query, query, query, queryOtherEntities, readProperties, readProperties, registerAttributeDispatcher, reloadScripts, removeEntityDataChangeListener, replaceAliasByColumn, replaceAliasByColumn, replaceAliasByColumn, replaceAliasByColumn, replaceAliasByColumn, replaceColumnByAlias, replaceColumnByAlias, replaceColumnByAlias, replaceColumnByAlias, replaceColumnByAliasKeepColumns, resultSetToEntityResult, resultSetToEntityResult, resultSetToEntityResult, retrieveDataToInsert, setLimitQueryOthersEntities, setName, setObject, setObject, setPrivilegedId, tagAttributes, tagAttributesWithoutAlias, tagKeysValues, toVectorOfBooleans, truncateDataToHour_00_00_00, truncateDateToMinutes, update, updateAttachmentValues, updateInLocaleTablesForOneToOne, updateLocaleColumns, vectorToStringSeparateBySemicolonclone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic static boolean encrypt
protected boolean checkPeriodical
protected static String Password
protected static String User
protected static final String PERIODICAL
protected static final String FIRST_LOGIN_STRING
protected static final String LAST_PASSWORD_UPDATE
protected static final String USER_BLOCKED_STRING
protected static final String PERIOD_STRING
protected String firstLogin
protected String passwordLastUpdate
protected String userBlock
protected long period
public UserEntity(EntityReferenceLocator locator, DatabaseConnectionManager databaseConnectionManager, int port) throws Exception
Exceptionpublic boolean isPeriodical()
public String getFirstLoginColumn()
public String getPasswordLastUpdateColumn()
public String getUserBlockColumn()
public long getPeriod()
public static String getUserColumn()
protected void readProperties(Properties prop, URL uRLProp) throws Exception
TableEntityprop. The parameters for
this entity are read from the properties and this entity is configured
according to them.uRLProp protocol is 'file', then a properties file is
generated located in uRLProp.getPath()readProperties in class TableEntityprop - the properties objectuRLProp - the properties file URLExceptionpublic EntityResult query(Hashtable keysValues, Vector attributes, int sessionId, Connection con) throws Exception
TableEntity
This method calls
TableEntity.query(Hashtable, Vector, int, Connection, Vector, boolean) using
null and true as the last two parameters.
query in interface TransactionalEntityquery in class TableEntityException - if an error ocurrspublic EntityResult insert(Hashtable attributesValues, int sessionId, Connection con) throws Exception
TableEntity
The attributesValues object determines the columns and
values that will be inserted.
The sessionId number identifies the session.
When overriding, this method must suppose that the connection provided is not in autocommit mode, so all operations are executed in a transaction. This means that in an error ocurrs this method should throw an Exception to ensure that the calling method is properly notified.
The following methods of this class are called:
attributesValues no insert is performed and no error is
produced.
If there is no error, a TransactionDataChangeEvent is fired and all listeners are notified.
insert in interface TransactionalEntityinsert in class TableEntityattributesValues - the table columns and corresponding values to insertsessionId - the session identifiercon - the Connection to use when executing the PreparedStatementException - if an error ocurrs or the caller has not permission to
execute the action.public EntityResult update(Hashtable attributesValues, Hashtable keysValues, int sessionId, Connection con) throws Exception
TableEntity
The attributesValues object determines the columns that will
be updated and to which values.
The keysValues object determines the conditions that the
records that will be updated must fulfill, that is, the WHERE clause.
The sessionId number identifies the session.
When overriding, this method must suppose that the connection provided is not in autocommit mode, so all operations are executed in a transaction. This means that in an error ocurrs this method should throw an Exception to ensure that the calling method is properly notified.
The following methods of this class are called:
attributesValues no update is performed and no error is
produced.
If there is no error, a TransactionDataChangeEvent is fired and all listeners are notified.
update in interface TransactionalEntityupdate in class TableEntityattributesValues - the table columns and corresponding values to insertkeysValues - the table columns and corresponding values to use as
conditions that the records to be updated must fulfillsessionId - the session identifiercon - the Connection to use when executing the PreparedStatementException - if an error ocurrs or the caller has not permission to
execute the action.public static final void main(String[] arg)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.