Modifier and Type | Method and Description |
---|---|
void |
addOAuthUser(java.lang.String openID, java.lang.String loginType, User user)
Adds an OAuth user
|
void |
bindOAuthUser(java.lang.String openID, java.lang.String loginType, java.lang.String userName)
Binds an OAuth user to an existing user
|
UserGroup |
getGroup(java.lang.String name)
Gets the username array.
|
getRolesOfUser(java.lang.String userName, int startIndex, int expectCount)
The query specifies all the roles of the user
|
|
java.lang.String |
getUserNameByOpenID(java.lang.String openID, java.lang.String loginType)
Uses openID and loginType to get an OAuth user's username
|
getUsersOfGroups(java.lang.String[] groupNames, int startIndex, int expectCount)
Queries the user group that contains the user
|
|
void |
groupsRemoved(java.lang.String[] names)
Removes the user array
|
boolean[] |
isRolesExist(java.lang.String[] names)
Batch Returns whether or not a role with a specified name exists
|
void |
isSameAsFormPassword(java.lang.String userName, java.lang.String newPassword)
Returns whether the new password for the specified user is the same as the history password in the history password list
|
void |
removeComponents(java.lang.String[] names) |
void |
removeComponentSets(java.lang.String[] names) |
void |
removeInterfaces(java.lang.String[] names) |
void |
removeProviders(java.lang.String[] names) |
void |
removeProviderSets(java.lang.String[] names) |
void |
renameComponent(java.lang.String oldName, java.lang.String newName) |
void |
renameComponentSet(java.lang.String oldName, java.lang.String newName) |
void |
renameInterface(java.lang.String oldName, java.lang.String newName) |
void |
renameProvider(java.lang.String oldName, java.lang.String newName) |
void |
renameProviderSet(java.lang.String oldName, java.lang.String newName) |
void |
rolesRemoved(java.lang.String[] names)
Removes the role
|
void |
setFormPasswordSavedCount(int formPasswordSavedCount)
Sets the number of history passwords saved for each user.
|
void |
setPermissionDataSource(SQLiteDataSource ds) |
void |
setSecurityDataSource(SQLiteDataSource ds) |
void |
unlockUser(java.lang.String userName)
Unlock users
|
void |
userAdded(User user)
adds user
|
void |
userAltered(User before, User after)
modify user
|
void |
usersRemoved(java.lang.String[] names)
Removes the user
|
addRole, addUser, addUserGroup, alterRole, alterUser, alterUserGroup, dispose, existSystemUser, getAllUsersCount, getGroups, getInstanceAuthorisations, getIportalUserCount, getPermission, getPortalUserNames, getPublicServiceNames, getRole, getRolePermissions, getRoles, getSystemUser, getUser, getUserNames, getUsers, getUsers, grantUser, insert, listUsers, removeInstances, removeRoles, removeUserGroups, removeUsers, renameInstance, resetStorageSetting, setPasswordService, setRolePermissions, updateInstanceAuthorisation
getUsersOfGroups(java.lang.String[] groupNames, int startIndex, int expectCount)
Queries the user group that contains the user
groupNames
- An array of user group namesstartIndex
- gets start from the startIndex element in the total query result for paging displayexpectCount
- is expected to get the number of results, the return value should be <= expectCount.UserGroup getGroup(java.lang.String name)
Gets the username array.
name
- The name of the user groupgetRolesOfUser(java.lang.String userName, int startIndex, int expectCount)
The query specifies all the roles of the user
userName
-startIndex
-expectCount
-void isSameAsFormPassword(java.lang.String userName, java.lang.String newPassword)
Returns whether the new password for the specified user is the same as the history password in the history password list
userName
-newPassword
-void setFormPasswordSavedCount(int formPasswordSavedCount)
Sets the number of history passwords saved for each user. When the user's password is modified, modify the password before the history password.
setFormPasswordSavedCount
in interface Storage
formPasswordSavedCount
-boolean[] isRolesExist(java.lang.String[] names)
Batch Returns whether or not a role with a specified name exists
names
-void unlockUser(java.lang.String userName)
Unlock users
userName
- usernamejava.lang.String getUserNameByOpenID(java.lang.String openID, java.lang.String loginType)
Uses openID and loginType to get an OAuth user's username
openID
-loginType
-void addOAuthUser(java.lang.String openID, java.lang.String loginType, User user)
Adds an OAuth user
openID
- OAuth user's openIDloginType
- OAuth The user's login methoduser
- OAuth User's other informationvoid bindOAuthUser(java.lang.String openID, java.lang.String loginType, java.lang.String userName)
Binds an OAuth user to an existing user
openID
- OAuth user's openIDloginType
- OAuth The user's login methoduserName
- Binds the user's usernamevoid usersRemoved(java.lang.String[] names)
Removes the user
names
- user arrayvoid rolesRemoved(java.lang.String[] names)
Removes the role
names
- role arrayvoid groupsRemoved(java.lang.String[] names)
Removes the user array
names
- user group arrayvoid userAdded(User user)
adds user
user
-void userAltered(User before, User after)
modify user
before
-after
-void removeComponents(java.lang.String[] names)
void removeComponentSets(java.lang.String[] names)
void removeProviders(java.lang.String[] names)
void removeProviderSets(java.lang.String[] names)
void removeInterfaces(java.lang.String[] names)
void renameInterface(java.lang.String oldName, java.lang.String newName)
void renameComponent(java.lang.String oldName, java.lang.String newName)
void renameComponentSet(java.lang.String oldName, java.lang.String newName)
void renameProviderSet(java.lang.String oldName, java.lang.String newName)
void renameProvider(java.lang.String oldName, java.lang.String newName)
void setSecurityDataSource(SQLiteDataSource ds)
void setPermissionDataSource(SQLiteDataSource ds)