public class DatabaseExpertUserSource extends AbstractUserSourceProfile
cacheValidationTimeout, context, manager, profileId, profileName
PWD_EXPIRATION_BYPASS
Constructor and Description |
---|
DatabaseExpertUserSource(GatewayContext context,
long profileId,
java.lang.String name,
long cacheUpdateTimeout) |
Modifier and Type | Method and Description |
---|---|
AuthenticatedUser |
authenticate(AuthChallenge challenge)
Called to both verify authentication for a given username/password pair, and to find the security roles for that
user.
|
protected java.util.List<ContactInfo> |
findContactInfo(SRConnection con,
java.lang.String uname) |
protected PropertySet |
findExtraProps(SRConnection con,
java.lang.String uname) |
protected java.util.List<java.lang.String> |
findRoles(java.sql.Connection con,
java.lang.String uname) |
protected java.util.List<ScheduleAdjustment> |
findScheduleAdjustment(SRConnection con,
java.lang.String uname) |
protected SRConnection |
getConnection() |
java.util.Set<UserSourceEditCapability> |
getEditFlags()
Which of the editing functions are supported?
|
java.util.Collection<java.lang.String> |
getRoles() |
java.util.Collection<User> |
getUsers()
Retrieve all users from this profile.
|
protected LoggerEx |
newLogger() |
protected void |
set(User user,
Property<java.lang.String> prop,
Dataset dataset,
java.lang.String colName)
Tries to extract information out of the dataset at row zero.
|
void |
setAuthenticateQuery(java.lang.String string) |
void |
setDatasource(long id) |
void |
setListContactInfoQuery(java.lang.String listContactInfoQuery) |
void |
setListExtraPropsQuery(java.lang.String listExtraPropsQuery) |
void |
setListRolesQuery(java.lang.String string) |
void |
setListScheduleAdjustmentsQuery(java.lang.String listScheduleAdjustmentsQuery) |
void |
setListUserRolesQuery(java.lang.String string) |
void |
setListUsersQuery(java.lang.String listUsersQuery) |
java.lang.String |
toString() |
addRole, addUser, alterPassword, alterUser, getCacheValidationTimeout, getName, getProfileId, removeRole, removeUser, renameRole, shutdown, startup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
validatePassword
public DatabaseExpertUserSource(GatewayContext context, long profileId, java.lang.String name, long cacheUpdateTimeout)
protected LoggerEx newLogger()
protected void set(User user, Property<java.lang.String> prop, Dataset dataset, java.lang.String colName)
public AuthenticatedUser authenticate(AuthChallenge challenge) throws java.lang.Exception
UserSourceProfile
java.lang.Exception
protected java.util.List<java.lang.String> findRoles(java.sql.Connection con, java.lang.String uname) throws java.lang.Exception
java.lang.Exception
protected java.util.List<ContactInfo> findContactInfo(SRConnection con, java.lang.String uname) throws java.lang.Exception
java.lang.Exception
protected java.util.List<ScheduleAdjustment> findScheduleAdjustment(SRConnection con, java.lang.String uname) throws java.lang.Exception
java.lang.Exception
protected PropertySet findExtraProps(SRConnection con, java.lang.String uname) throws java.lang.Exception
java.lang.Exception
public java.util.Collection<User> getUsers() throws java.lang.Exception
UserSourceProfile
java.lang.Exception
public java.util.Set<UserSourceEditCapability> getEditFlags()
UserSourceProfile
getEditFlags
in interface UserSourceProfile
getEditFlags
in class AbstractUserSourceProfile
public java.util.Collection<java.lang.String> getRoles() throws java.lang.Exception
java.lang.Exception
protected SRConnection getConnection() throws java.sql.SQLException
java.sql.SQLException
public void setDatasource(long id)
public void setAuthenticateQuery(java.lang.String string)
public void setListRolesQuery(java.lang.String string)
public void setListUserRolesQuery(java.lang.String string)
public void setListExtraPropsQuery(java.lang.String listExtraPropsQuery)
public void setListContactInfoQuery(java.lang.String listContactInfoQuery)
public void setListScheduleAdjustmentsQuery(java.lang.String listScheduleAdjustmentsQuery)
public void setListUsersQuery(java.lang.String listUsersQuery)
public java.lang.String toString()
toString
in class java.lang.Object