Interface IDsucUser
- All Superinterfaces:
IDsucObject
-
Method Summary
Modifier and TypeMethodDescriptionanonymousFromDb
(de.uplanet.jdbc.JdbcConnection p_conn) Reads an anonymous user from the database.void
changePassword
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, String p_strPassword) Deprecated.void
changePassword
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, String p_strPassword, boolean p_bResetMustChangeFlag) Deprecated.void
changePassword
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strUserGuid, String p_strEncPassword, Boolean p_boolMustChangePassword) Change a user's password data.default void
changePassword
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strUserGuid, String p_strEncPassword, String p_strSalt, Boolean p_boolMustChangePassword) Deprecated.boolean
exists
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId) Test if a user with the given id exists.boolean
Test if a user with the given GUID exists.boolean
Test if a user exits.boolean
Test if a user with the given ids exists.de.uplanet.lucy.server.usermanager.IntrexxServerSecret
Get theIntrexxServerSecret
for the given login variants.fromEmailAddress
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strEmailAddress) Deprecated.Reads a user from the database.Reads a user from the database.fromId
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iId) Reads a user from the database.fromId
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iId, boolean p_bWithDisabledObject) Reads a user from the database.fromLoginName
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strLoginDomain) Reads a user from the database.fromLoginName
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strLoginDomain, boolean p_bWithDisabledObject) Reads a user from the database.fromNotDeletedLoginName
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strLoginDomain) Reads a user from the database.Determine the anoymous user's unique identifier.int
getAnonymousUserId
(de.uplanet.jdbc.JdbcConnection p_conn) Determine the anoymous user's integer id.String[]
getAvailableDomains
(de.uplanet.jdbc.JdbcConnection p_conn) Deprecated.UsegetAvailableDomainsAsList(JdbcConnection)
instead.getAvailableDomainsAsList
(de.uplanet.jdbc.JdbcConnection p_conn) Returns the list of all available login domains.getBossUserIdsForUserIds
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId) returns a a set of bosses for the given usergetDeleted
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strDomainName) Return an existing deleted user or null, if he's not exisitinggetReplicatedFromLoginName
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strLoginDomain, String p_strRplGuid) Reads a user from the database.de.uplanet.lucy.server.usermanager.IntrexxServerSecret
getServerSecretFromId
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId) Get theIntrexxServerSecret
for the given user.de.uplanet.lucy.server.usermanager.IntrexxServerSecret
getServerSecretFromId
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strUserGuid) Get theIntrexxServerSecret
for the given user.de.uplanet.lucy.server.usermanager.IntrexxServerSecret
getServerSecretFromLoginName
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strLoginDomain, boolean p_bIgnoreDomain) Get theIntrexxServerSecret
for the given user.de.uplanet.lucy.server.usermanager.IntrexxServerSecret
getServerSecretFromSQLExpression
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strExpression) Deprecated.Since this method is prone to SQL injection if the caller does not restrict the passed expressions to safe values.selectFullUser
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId) selectFullUser
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, boolean p_bWithDisabledObject) selectFullUser
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid) selectFullUser
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid, boolean p_bWithDisabledObject) selectOneUser
(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter) selectOneUser
(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter, boolean p_bWithDisabledObject) selectUser
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId) selectUser
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, boolean p_bWithDisabledObject) selectUser
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, boolean p_bWithDisabledObject, String... p_fieldGuids) /**selectUser
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, String... p_fieldGuids) selectUser
(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter) selectUser
(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter, boolean p_bWithDisabledObject) selectUser
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid) selectUser
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid, boolean p_bWithDisabledObject) selectUser
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid, boolean p_bWithDisabledObject, String... p_fieldGuids) selectUser
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid, String... p_fieldGuids) int
selectUserCount
(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter) int
selectUserCount
(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter, boolean p_bWithDisabledObject) String[]
validatePassword
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, String p_strPassword, String p_strMsgLang) Deprecated.String[]
validatePassword
(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strPassword, String p_strMsgLang) Deprecated.boolean
verifyPassword
(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, String p_strPassword) Deprecated.Methods inherited from interface de.uplanet.lucy.server.usermanager.usecases.IDsucObject
append, delete, fromGuid, fromGuid, fromGuid, fromGuid, getLastSQLStatement, guidToId, idToGuid, move, select, select, selectCount, selectCount, selectFullObject, selectFullObject, selectObject, selectObject, selectObject, selectObject, selectObject, selectObject, selectObjectCount, selectObjectCount, update
-
Method Details
-
fromId
IDsUserRecord fromId(de.uplanet.jdbc.JdbcConnection p_conn, int p_iId) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException Reads a user from the database. The user is identified by userid.- Parameters:
p_conn
- The database connection.p_iId
- The user id.- Returns:
- The newly created user.
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.SQLException
- If a database error occurred.
-
fromId
IDsUserRecord fromId(de.uplanet.jdbc.JdbcConnection p_conn, int p_iId, boolean p_bWithDisabledObject) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException Reads a user from the database. The user is identified by userid.- Parameters:
p_conn
- The database connection.p_iId
- The user id.- Returns:
- The newly created user.
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.SQLException
- If a database error occurred.
-
anonymousFromDb
IDsUserRecord anonymousFromDb(de.uplanet.jdbc.JdbcConnection p_conn) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException Reads an anonymous user from the database.- Parameters:
p_conn
- The database connection.- Returns:
- The newly created user.
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.SQLException
- If a database error occurred.
-
fromGuid
IDsUserRecord fromGuid(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException Reads a user from the database. The user is identified by it's GUID.- Parameters:
p_conn
- The database connection.p_strGuid
- The user's unique identifier.- Returns:
- The newly created user.
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.SQLException
- If a database error occurred.
-
fromGuid
IDsUserRecord fromGuid(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid, boolean p_bWithDisabledObject) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException Reads a user from the database. The user is identified by it's GUID.- Parameters:
p_conn
- The database connection.p_strGuid
- The user's unique identifier.- Returns:
- The newly created user.
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.SQLException
- If a database error occurred.
-
exists
Test if a user with the given ids exists.- Parameters:
p_conn
- The database connection.p_iUserId
- The user Ids to check- Returns:
true
, if user exists,false
otherwise.- Throws:
SQLException
-
exists
Test if a user with the given id exists.- Parameters:
p_conn
- The database connection.p_iUserId
- The user id- Returns:
true
, if user exists,false
otherwise.- Throws:
SQLException
-
exists
boolean exists(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid, boolean p_bIncludeDeleted) throws SQLException Test if a user with the given GUID exists.Note: This method is for internal use only.
- Parameters:
p_conn
- The database connection.p_strGuid
- The user's unique identifier.p_bIncludeDeleted
- Specifies if deleted users should be taken into account or not.- Returns:
true
, if user exists, orfalse
otherwise.- Throws:
SQLException
-
exists
boolean exists(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strDomainName) throws SQLException Test if a user exits.- Parameters:
p_conn
- The database connection.p_strLoginName
- login namep_strDomainName
- domain name- Returns:
true
, if user exists,false
otherwise.- Throws:
SQLException
-
getDeleted
IDsUserRecord getDeleted(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strDomainName) Return an existing deleted user or null, if he's not exisitingNote: This method is for internal use only.
- Parameters:
p_conn
- The database connection to be used.p_strLoginName
- login namep_strDomainName
- domain name- Returns:
- user object or null
-
fromLoginName
IDsUserRecord fromLoginName(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strLoginDomain) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException Reads a user from the database.- Parameters:
p_conn
- The database connection to be used.p_strLoginName
- The loginnamep_strLoginDomain
- The domain name- Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.SQLException
- If a database error occurred.
-
fromLoginName
IDsUserRecord fromLoginName(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strLoginDomain, boolean p_bWithDisabledObject) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException Reads a user from the database.- Parameters:
p_conn
- The database connection to be used.p_strLoginName
- The loginnamep_strLoginDomain
- The domain namep_bWithDisabledObject
-false
if deactivated users should be ignored, ortrue
otherwise.- Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.SQLException
- If a database error occurred.
-
fromNotDeletedLoginName
IDsUserRecord fromNotDeletedLoginName(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strLoginDomain) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException Reads a user from the database. The user is identified by loginname and domain if the user exists but is marked as deleted,null
will be returned.- Parameters:
p_conn
- The database connection to be used.p_strLoginName
- The user's login name.p_strLoginDomain
- The user's domain name.- Returns:
- The newly created user. (or null if user not found or is marked as deleted)
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.SQLException
- If a database error occurred.
-
getReplicatedFromLoginName
IDsUserRecord getReplicatedFromLoginName(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strLoginDomain, String p_strRplGuid) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException Reads a user from the database. The user is identified by loginname and domain. Only replicated users are returned.- Parameters:
p_conn
- The database connection to be used.p_strLoginName
- The user's login name.p_strLoginDomain
- The user's domain name.p_strRplGuid
- replication job GUID- Returns:
- The newly created user.
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.SQLException
- If a database error occurred.
-
fromEmailAddress
@Deprecated IDsUserRecord fromEmailAddress(de.uplanet.jdbc.JdbcConnection p_conn, String p_strEmailAddress) throws de.uplanet.lucy.usermanager.NotFoundException Deprecated.(not implemented!) Get a user by it's e-mail address. Always throws a UnsupportedOperationException since this method is not implemented yet.- Parameters:
p_conn
- The database connection to be used.p_strEmailAddress
- The user's e-mail address.- Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.
-
getAnonymousUserGuid
Determine the anoymous user's unique identifier.- Returns:
- The anonymous user's unique identifier, or
null
if no anonymous user is available. - Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.
-
getAnonymousUserId
int getAnonymousUserId(de.uplanet.jdbc.JdbcConnection p_conn) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException Determine the anoymous user's integer id.- Returns:
- The anonymous user's unique id, or 0 if no anonymous user is available.
- Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.SQLException
- If a database error occurred.
-
getBossUserIdsForUserIds
Set<Integer> getBossUserIdsForUserIds(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId) throws SQLException returns a a set of bosses for the given user- Parameters:
p_conn
- The database connectionp_iUserId
- The user id- Returns:
- set of boss ids
- Throws:
SQLException
-
selectUserCount
int selectUserCount(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter) throws SQLException - Parameters:
p_conn
- The database connectionp_filter
- The filter (could benull
)- Returns:
- the count of records
- Throws:
SQLException
-
selectUserCount
int selectUserCount(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter, boolean p_bWithDisabledObject) throws SQLException - Parameters:
p_conn
- The database connectionp_filter
- The filter (could benull
)- Returns:
- the count of records
- Throws:
SQLException
-
selectUser
List<IDsUserRecord> selectUser(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter) throws SQLException - Parameters:
p_conn
- The database connectionp_filter
- The filter (could benull
)- Returns:
- List of user records
- Throws:
SQLException
-
selectUser
List<IDsUserRecord> selectUser(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter, boolean p_bWithDisabledObject) throws SQLException - Parameters:
p_conn
- The database connectionp_filter
- The filter (could benull
)- Returns:
- List of user records
- Throws:
SQLException
-
selectFullUser
IDsUserRecord selectFullUser(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid) throws SQLException - Parameters:
p_conn
- The database connectionp_strGuid
- The user record GUID- Returns:
- The full initialized user record
- Throws:
SQLException
-
selectFullUser
IDsUserRecord selectFullUser(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid, boolean p_bWithDisabledObject) throws SQLException - Parameters:
p_conn
- The database connectionp_strGuid
- The user record GUID- Returns:
- The full initialized user record
- Throws:
SQLException
-
selectUser
IDsUserRecord selectUser(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid) throws SQLException - Parameters:
p_conn
- The database connectionp_strGuid
- The user GUID- Returns:
- The user record (only the id, guid, containerid, typeid and the name attribute will be initialized).
- Throws:
SQLException
-
selectUser
IDsUserRecord selectUser(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid, boolean p_bWithDisabledObject) throws SQLException - Parameters:
p_conn
- The database connectionp_strGuid
- The user GUID- Returns:
- The user record (only the id, guid, containerid, typeid and the name attribute will be initialized).
- Throws:
SQLException
-
selectUser
IDsUserRecord selectUser(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid, String... p_fieldGuids) throws SQLException - Parameters:
p_conn
- The database connectionp_strGuid
- The user GUIDp_fieldGuids
- The field GUIDs that should be initialized.- Returns:
- The user record or
null
if not found. - Throws:
SQLException
-
selectUser
IDsUserRecord selectUser(de.uplanet.jdbc.JdbcConnection p_conn, String p_strGuid, boolean p_bWithDisabledObject, String... p_fieldGuids) throws SQLException - Parameters:
p_conn
- The database connectionp_strGuid
- The user GUIDp_fieldGuids
- The field GUIDs that should be initialized.- Returns:
- The user record or
null
if not found. - Throws:
SQLException
-
selectFullUser
IDsUserRecord selectFullUser(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId) throws SQLException - Parameters:
p_conn
- The database connectionp_iUserId
- THe user id- Returns:
- The full initialized user record or
null
if no user for the id found. - Throws:
SQLException
-
selectFullUser
IDsUserRecord selectFullUser(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, boolean p_bWithDisabledObject) throws SQLException - Parameters:
p_conn
- The database connectionp_iUserId
- THe user id- Returns:
- The full initialized user record or
null
if no user for the id found. - Throws:
SQLException
-
selectUser
- Parameters:
p_conn
- The database connectionp_iUserId
- The user id- Returns:
- The user record (only the id, guid, containerid, typeid and the name attribute will be initialized).
- Throws:
SQLException
-
selectUser
IDsUserRecord selectUser(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, boolean p_bWithDisabledObject) throws SQLException - Parameters:
p_conn
- The database connectionp_iUserId
- The user id- Returns:
- The user record (only the id, guid, containerid, typeid and the name attribute will be initialized).
- Throws:
SQLException
-
selectUser
IDsUserRecord selectUser(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, String... p_fieldGuids) throws SQLException - Parameters:
p_conn
- The database connectionp_iUserId
- The user idp_fieldGuids
- The field GUIDs, only that fields will be initialized.- Returns:
- The user record or
null
if not found. - Throws:
SQLException
-
selectUser
IDsUserRecord selectUser(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, boolean p_bWithDisabledObject, String... p_fieldGuids) throws SQLException /**- Parameters:
p_conn
- The database connectionp_iUserId
- The user idp_fieldGuids
- The field GUIDs, only that fields will be initialized.- Returns:
- The user record or
null
if not found. - Throws:
SQLException
-
selectOneUser
IDsUserRecord selectOneUser(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter) throws SQLException - Parameters:
p_conn
- The database connectionp_filter
- The filter- Returns:
- An
IDsUserRecord
, ornull
if no record found. - Throws:
SQLException
-
selectOneUser
IDsUserRecord selectOneUser(de.uplanet.jdbc.JdbcConnection p_conn, IDsSelectFilter p_filter, boolean p_bWithDisabledObject) throws SQLException - Parameters:
p_conn
- The database connectionp_filter
- The filter- Returns:
- An
IDsUserRecord
, ornull
if no record found. - Throws:
SQLException
-
getAvailableDomains
Deprecated.UsegetAvailableDomainsAsList(JdbcConnection)
instead.- Parameters:
p_conn
- The database connection to be used.- Returns:
- A (possibly empty) array of available domains, never
null
. - Throws:
SQLException
-
getAvailableDomainsAsList
Returns the list of all available login domains. This is the list evaluated from the user and group table.- Parameters:
p_conn
- The database connection to be used.- Returns:
- A (possibly empty) list of available domains, never
null
. - Throws:
SQLException
-
getServerSecretFromId
de.uplanet.lucy.server.usermanager.IntrexxServerSecret getServerSecretFromId(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId) throws de.uplanet.lucy.usermanager.NotFoundException Get theIntrexxServerSecret
for the given user.Note: this method ignores the user's locked-status.
- Parameters:
p_conn
- The database connection to be used.p_iUserId
- The user's integer identifier.- Returns:
- The
IntrexxServerSecret
. - Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.
-
getServerSecretFromId
de.uplanet.lucy.server.usermanager.IntrexxServerSecret getServerSecretFromId(de.uplanet.jdbc.JdbcConnection p_conn, String p_strUserGuid) throws de.uplanet.lucy.usermanager.NotFoundException Get theIntrexxServerSecret
for the given user.Note: this method ignores the user's locked-status.
- Parameters:
p_conn
- The database connection to be used.p_strUserGuid
- The user's unique identifier.- Returns:
- The
IntrexxServerSecret
. - Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.
-
getServerSecretFromLoginName
de.uplanet.lucy.server.usermanager.IntrexxServerSecret getServerSecretFromLoginName(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strLoginDomain, boolean p_bIgnoreDomain) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException Get theIntrexxServerSecret
for the given user.Note: this method ignores the user's locked-status.
- Parameters:
p_conn
- The database connection to be used.p_strLoginName
- The user's login name.p_strLoginDomain
- The user's login domain.p_bIgnoreDomain
- Flag indicating if the login domain should be ignored or not.- Returns:
- The
IntrexxServerSecret
. - Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.SQLException
-
getServerSecretFromSQLExpression
@Deprecated de.uplanet.lucy.server.usermanager.IntrexxServerSecret getServerSecretFromSQLExpression(de.uplanet.jdbc.JdbcConnection p_conn, String p_strExpression) throws de.uplanet.lucy.usermanager.NotFoundException Deprecated.Since this method is prone to SQL injection if the caller does not restrict the passed expressions to safe values.Get theIntrexxServerSecret
using a SQL expression.Note: The caller is responsible for preventing SQL injection.
Note: This method ignores the user's locked-status.
- Parameters:
p_conn
- The database connection to be used.p_strExpression
- An SQL expression that's being used as an additional filter in the WHERE clause when querying OMUSER.- Returns:
- The
IntrexxServerSecret
. - Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.
-
find
de.uplanet.lucy.server.usermanager.IntrexxServerSecret find(de.uplanet.jdbc.JdbcConnection p_conn, String[][] p_variants, boolean p_bIgnoreDomain) throws SQLException, de.uplanet.lucy.usermanager.NotFoundException Get theIntrexxServerSecret
for the given login variants.Note: this method ignores the user's locked-status.
- Parameters:
p_conn
- The database connection to be used.p_variants
- The login variants as an array of (login name, login domain) pairs.p_bIgnoreDomain
- Flag indicating if the login domain should be ignored or not.- Returns:
- An
IntrexxServerSecret
object. - Throws:
de.uplanet.lucy.usermanager.NotFoundException
- If no corresponding entry was found in the database.SQLException
-
verifyPassword
@Deprecated boolean verifyPassword(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, String p_strPassword) Deprecated.Verify a user's password.- Parameters:
p_conn
- The database connection to be used.p_iUserId
- The user's integer identifier.p_strPassword
- The user's password.- Returns:
true
if the password was correct, orfalse
if the password was incorrect or an error occurred.
-
changePassword
void changePassword(de.uplanet.jdbc.JdbcConnection p_conn, String p_strUserGuid, String p_strEncPassword, Boolean p_boolMustChangePassword) throws Exception Change a user's password data.- Parameters:
p_conn
- The database connection to be used.p_strUserGuid
- The user's unique identifier.p_strEncPassword
- The password (in encrypted form) to be stored in the database.p_boolMustChangePassword
-true
if the user must change her or his password, orfalse
otherwise. Ifnull
the current value is not affected.- Throws:
Exception
- If an error occurred.
-
changePassword
@Deprecated default void changePassword(de.uplanet.jdbc.JdbcConnection p_conn, String p_strUserGuid, String p_strEncPassword, String p_strSalt, Boolean p_boolMustChangePassword) throws Exception Deprecated.This method is provided for backwards compatibility reasons. It ignores the given salt value.- Parameters:
p_conn
- The database connection to be used.p_strUserGuid
- The user's unique identifier.p_strEncPassword
- The password (in encrypted form) to be stored in the database.p_strSalt
- Ignored.p_boolMustChangePassword
-true
if the user must change her or his password, orfalse
otherwise. Ifnull
the current value is not affected.- Throws:
Exception
- If an error occurred.
-
changePassword
@Deprecated void changePassword(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, String p_strPassword) throws SQLException Deprecated.Change a user's password. This version works unencrypted.- Parameters:
p_conn
- The database connection to be used.p_iUserId
- The user's integer identifier.p_strPassword
- The password.- Throws:
SQLException
- If a database error occurred.
-
changePassword
@Deprecated void changePassword(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, String p_strPassword, boolean p_bResetMustChangeFlag) throws SQLException Deprecated.Change a user's password. This version works unencrypted.- Parameters:
p_conn
- The database connection to be used.p_iUserId
- The user's integer identifier.p_strPassword
- The password.p_bResetMustChangeFlag
- Reset the must change flag- Throws:
SQLException
- If a database error occurred.
-
validatePassword
@Deprecated String[] validatePassword(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId, String p_strPassword, String p_strMsgLang) throws SQLException Deprecated.Validate a user's password. This version works unencrypted.- Parameters:
p_conn
- The database connection to be used.p_iUserId
- The user's integer identifier.p_strPassword
- The password.p_strMsgLang
- language of returned message text, if any- Returns:
- String array of validation messages, or null, if everything was ok.
- Throws:
SQLException
- If a database error occurred.
-
validatePassword
@Deprecated String[] validatePassword(de.uplanet.jdbc.JdbcConnection p_conn, String p_strLoginName, String p_strPassword, String p_strMsgLang) throws SQLException Deprecated.Validate a user's password. This version works unencrypted.- Parameters:
p_conn
- The database connection to be used.p_strLoginName
- user name, login name, if none is provided, user name is read from the user recordp_strPassword
- The password.p_strMsgLang
- language of returned message text, if any- Returns:
- String array of validation messages, or null, if everything was ok.
- Throws:
SQLException
- If a database error occurred.
-
changePassword(JdbcConnection, String, String, Boolean)
instead.