public abstract class AbstractUserSourceProfile extends java.lang.Object implements UserSourceProfile
Modifier and Type | Field and Description |
---|---|
protected long |
cacheValidationTimeout |
protected GatewayContext |
context |
protected UserSourceManager |
manager |
protected long |
profileId |
protected java.lang.String |
profileName |
PWD_EXPIRATION_BYPASS
Constructor and Description |
---|
AbstractUserSourceProfile(GatewayContext context,
long profileId,
java.lang.String profileName,
long cacheTimeout) |
Modifier and Type | Method and Description |
---|---|
void |
addRole(java.lang.String groupName,
UICallback ui) |
void |
addUser(User user,
UICallback ui) |
void |
alterPassword(User user,
java.lang.String oldPassword,
java.lang.String newPassword) |
void |
alterUser(User user,
UICallback ui) |
long |
getCacheValidationTimeout()
The cache update time-out option.
|
java.util.Set<UserSourceEditCapability> |
getEditFlags()
Which of the editing functions are supported?
|
java.lang.String |
getName()
The name of this user profile.
|
long |
getProfileId()
The ID of this user profile
|
void |
removeRole(java.lang.String groupName,
UICallback ui) |
void |
removeUser(User user,
UICallback ui) |
void |
renameRole(java.lang.String oldName,
java.lang.String newName,
UICallback ui) |
void |
shutdown()
Called either when the user source has been edited and so it is being restarted, or when the gateway is shutting
down.
|
void |
startup(UserSourceManager manager)
Called when the user source is created before it is used.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate, getRoles, getUsers, validatePassword
protected UserSourceManager manager
protected GatewayContext context
protected long profileId
protected long cacheValidationTimeout
protected java.lang.String profileName
public AbstractUserSourceProfile(GatewayContext context, long profileId, java.lang.String profileName, long cacheTimeout)
public long getProfileId()
UserSourceProfile
getProfileId
in interface UserSourceProfile
public long getCacheValidationTimeout()
UserSourceProfile
getCacheValidationTimeout
in interface UserSourceProfile
public java.lang.String getName()
UserSourceProfile
getName
in interface UserSourceProfile
public void startup(UserSourceManager manager)
UserSourceProfile
startup
in interface UserSourceProfile
public void shutdown()
UserSourceProfile
shutdown
in interface UserSourceProfile
public java.util.Set<UserSourceEditCapability> getEditFlags()
UserSourceProfile
getEditFlags
in interface UserSourceProfile
public void addRole(java.lang.String groupName, UICallback ui) throws java.lang.Exception
addRole
in interface UserSourceProfile
java.lang.Exception
public void removeRole(java.lang.String groupName, UICallback ui) throws java.lang.Exception
removeRole
in interface UserSourceProfile
java.lang.Exception
public void renameRole(java.lang.String oldName, java.lang.String newName, UICallback ui) throws java.lang.Exception
renameRole
in interface UserSourceProfile
java.lang.Exception
public void addUser(User user, UICallback ui) throws java.lang.Exception
addUser
in interface UserSourceProfile
java.lang.Exception
public void alterUser(User user, UICallback ui) throws java.lang.Exception
alterUser
in interface UserSourceProfile
java.lang.Exception
public void removeUser(User user, UICallback ui) throws java.lang.Exception
removeUser
in interface UserSourceProfile
java.lang.Exception
public void alterPassword(User user, java.lang.String oldPassword, java.lang.String newPassword) throws java.lang.Exception
alterPassword
in interface UserSourceProfile
java.lang.Exception