Class DatabaseAutomaticUserSource
java.lang.Object
com.inductiveautomation.ignition.gateway.user.UserSourceProfileKernelWrapper
com.inductiveautomation.ignition.gateway.user.AbstractUserSourceProfile
com.inductiveautomation.ignition.gateway.authentication.impl.DatabaseAutomaticUserSource
- All Implemented Interfaces:
- UserSourceProfile,- UserSourceProfileKernel
- 
Field SummaryFields inherited from interface com.inductiveautomation.ignition.gateway.user.UserSourceProfilePWD_EXPIRATION_BYPASS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddRole(String roleName, UICallback ui) voidaddUser(User user, UICallback ui) voidalterUser(User user, UICallback ui) authenticate(AuthChallenge challenge) Called to both verify authentication for a given username/password pair, and to find the security roles for that user.Which of the editing functions are supported?getRoles()Fetch aUserwith the given user name.getUsers()Retrieve all users from this profile.voidremoveRole(String roleName, UICallback ui) voidremoveUser(User user, UICallback ui) voidrenameRole(String oldName, String newName, UICallback ui) voidsetDatabaseId(long databaseId) voidvoidMethods inherited from class com.inductiveautomation.ignition.gateway.user.AbstractUserSourceProfilealterPassword, getName, getRoles, getUser, getUsersMethods inherited from class com.inductiveautomation.ignition.gateway.user.UserSourceProfileKernelWrappergetCacheValidationTimeout, getContext, getManager, getProfileId, getProfileName, isLockedOut, notifyFailedAttempt, shutdown, startupMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.gateway.user.UserSourceProfilegetCacheValidationTimeout, getProfileId, shutdown, startup, validatePassword
- 
Constructor Details- 
DatabaseAutomaticUserSource
 
- 
- 
Method Details- 
validateTablespublic void validateTables()
- 
authenticateDescription copied from interface:UserSourceProfileCalled to both verify authentication for a given username/password pair, and to find the security roles for that user.- Returns:
- An AuthenticatedUser that contains the user's roles if authentication succeeded, or null if it did not.
- Throws:
- PasswordExpiredException- if the user's password has expired and must be reset
- Exception- if there was an unexpected problem encountered during authentication
 
- 
getUsersDescription copied from interface:UserSourceProfileRetrieve all users from this profile. This can execute slowly (block) if need be. It will be called periodically by the manager and the results will be cached. Users from failover sources will be returned if hard failover is configured and triggered.- Specified by:
- getUsersin interface- UserSourceProfile
- Specified by:
- getUsersin class- AbstractUserSourceProfile
- Throws:
- Exception
 
- 
getUserDescription copied from interface:UserSourceProfileFetch aUserwith the given user name. If more than one user exists with the given user name, the first user returned from the underlying data source is returned. Failover sources will be queried if hard failover is configured and the primary sources are unable to fetch the user due to an error. Failover sources will also be queried if soft failover is configured and the user is not found in the primary sources.- Specified by:
- getUserin interface- UserSourceProfile
- Overrides:
- getUserin class- AbstractUserSourceProfile
- Parameters:
- userName- the user name of the- Userto fetch
- Returns:
- an OptionalUserwith the given user name. the user may be from a failover user source (checkUser.getProfileName()to confirm)
- Throws:
- Exception- if there is an unexpected problem fetching the user with the given user name
- See Also:
 
- 
getRoles- Specified by:
- getRolesin interface- UserSourceProfile
- Specified by:
- getRolesin class- AbstractUserSourceProfile
- Returns:
- a collection of all possible role names for this profile. May be empty. Roles from failover sources will be returned if hard failover is configured and triggered.
- Throws:
- Exception
 
- 
getEditFlagsDescription copied from interface:UserSourceProfileWhich of the editing functions are supported?- Specified by:
- getEditFlagsin interface- UserSourceProfile
- Overrides:
- getEditFlagsin class- AbstractUserSourceProfile
 
- 
addUser- Specified by:
- addUserin interface- UserSourceProfile
- Overrides:
- addUserin class- AbstractUserSourceProfile
- Throws:
- Exception
 
- 
alterUser- Specified by:
- alterUserin interface- UserSourceProfile
- Overrides:
- alterUserin class- AbstractUserSourceProfile
- Throws:
- Exception
 
- 
addRole- Specified by:
- addRolein interface- UserSourceProfile
- Overrides:
- addRolein class- AbstractUserSourceProfile
- Throws:
- Exception
 
- 
removeRole- Specified by:
- removeRolein interface- UserSourceProfile
- Overrides:
- removeRolein class- AbstractUserSourceProfile
- Throws:
- Exception
 
- 
renameRole- Specified by:
- renameRolein interface- UserSourceProfile
- Overrides:
- renameRolein class- AbstractUserSourceProfile
- Throws:
- Exception
 
- 
removeUser- Specified by:
- removeUserin interface- UserSourceProfile
- Overrides:
- removeUserin class- AbstractUserSourceProfile
- Throws:
- Exception
 
- 
setDatabaseIdpublic void setDatabaseId(long databaseId) 
- 
setPrefix
 
-