Class AbstractUserSourceProfile
- java.lang.Object
-
- com.inductiveautomation.ignition.gateway.user.AbstractUserSourceProfile
-
- All Implemented Interfaces:
UserSourceProfile
- Direct Known Subclasses:
ActiveDirectoryUserSource,DatabaseAutomaticUserSource,DatabaseExpertUserSource,InternalUserSource
public abstract class AbstractUserSourceProfile extends java.lang.Object implements UserSourceProfile
-
-
Field Summary
Fields Modifier and Type Field Description protected longcacheValidationTimeoutprotected GatewayContextcontextprotected UserSourceManagermanagerprotected longprofileIdprotected java.lang.StringprofileName-
Fields inherited from interface com.inductiveautomation.ignition.gateway.user.UserSourceProfile
PWD_EXPIRATION_BYPASS
-
-
Constructor Summary
Constructors Constructor Description AbstractUserSourceProfile(GatewayContext context, long profileId, java.lang.String profileName, long cacheTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRole(java.lang.String groupName, UICallback ui)voidaddUser(User user, UICallback ui)voidalterPassword(User user, java.lang.String oldPassword, java.lang.String newPassword)voidalterUser(User user, UICallback ui)longgetCacheValidationTimeout()The cache update time-out option.java.util.Set<UserSourceEditCapability>getEditFlags()Which of the editing functions are supported?java.lang.StringgetName()The name of this user profile.longgetProfileId()The ID of this user profilevoidremoveRole(java.lang.String groupName, UICallback ui)voidremoveUser(User user, UICallback ui)voidrenameRole(java.lang.String oldName, java.lang.String newName, UICallback ui)voidshutdown()Called either when the user source has been edited and so it is being restarted, or when the gateway is shutting down.voidstartup(UserSourceManager manager)Called when the user source is created before it is used.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.gateway.user.UserSourceProfile
authenticate, getRoles, getUsers, validatePassword
-
-
-
-
Field Detail
-
manager
protected UserSourceManager manager
-
context
protected GatewayContext context
-
profileId
protected long profileId
-
cacheValidationTimeout
protected long cacheValidationTimeout
-
profileName
protected java.lang.String profileName
-
-
Constructor Detail
-
AbstractUserSourceProfile
public AbstractUserSourceProfile(GatewayContext context, long profileId, java.lang.String profileName, long cacheTimeout)
-
-
Method Detail
-
getProfileId
public long getProfileId()
Description copied from interface:UserSourceProfileThe ID of this user profile- Specified by:
getProfileIdin interfaceUserSourceProfile
-
getCacheValidationTimeout
public long getCacheValidationTimeout()
Description copied from interface:UserSourceProfileThe cache update time-out option.- Specified by:
getCacheValidationTimeoutin interfaceUserSourceProfile
-
getName
public java.lang.String getName()
Description copied from interface:UserSourceProfileThe name of this user profile.- Specified by:
getNamein interfaceUserSourceProfile
-
startup
public void startup(UserSourceManager manager)
Description copied from interface:UserSourceProfileCalled when the user source is created before it is used.- Specified by:
startupin interfaceUserSourceProfile
-
shutdown
public void shutdown()
Description copied from interface:UserSourceProfileCalled either when the user source has been edited and so it is being restarted, or when the gateway is shutting down.- Specified by:
shutdownin interfaceUserSourceProfile
-
getEditFlags
public java.util.Set<UserSourceEditCapability> getEditFlags()
Description copied from interface:UserSourceProfileWhich of the editing functions are supported?- Specified by:
getEditFlagsin interfaceUserSourceProfile
-
addRole
public void addRole(java.lang.String groupName, UICallback ui) throws java.lang.Exception- Specified by:
addRolein interfaceUserSourceProfile- Throws:
java.lang.Exception
-
removeRole
public void removeRole(java.lang.String groupName, UICallback ui) throws java.lang.Exception- Specified by:
removeRolein interfaceUserSourceProfile- Throws:
java.lang.Exception
-
renameRole
public void renameRole(java.lang.String oldName, java.lang.String newName, UICallback ui) throws java.lang.Exception- Specified by:
renameRolein interfaceUserSourceProfile- Throws:
java.lang.Exception
-
addUser
public void addUser(User user, UICallback ui) throws java.lang.Exception
- Specified by:
addUserin interfaceUserSourceProfile- Throws:
java.lang.Exception
-
alterUser
public void alterUser(User user, UICallback ui) throws java.lang.Exception
- Specified by:
alterUserin interfaceUserSourceProfile- Throws:
java.lang.Exception
-
removeUser
public void removeUser(User user, UICallback ui) throws java.lang.Exception
- Specified by:
removeUserin interfaceUserSourceProfile- Throws:
java.lang.Exception
-
alterPassword
public void alterPassword(User user, java.lang.String oldPassword, java.lang.String newPassword) throws java.lang.Exception
- Specified by:
alterPasswordin interfaceUserSourceProfile- Throws:
java.lang.Exception
-
-