com.supermap.services.security.storages
Interface AdvancedStorage
-
-
Method Summary
Methods Modifier and Type Method and Description voidaddOAuthUser(java.lang.String openID, java.lang.String loginType, User user)Adds an OAuth uservoidbindOAuthUser(java.lang.String openID, java.lang.String loginType, java.lang.String userName)Binds an OAuth user to an existing userUserGroupgetGroup(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 userjava.lang.StringgetUserNameByOpenID(java.lang.String openID, java.lang.String loginType)Uses openID and loginType to get an OAuth user's usernamegetUsersOfGroups(java.lang.String[] groupNames, int startIndex, int expectCount)Queries the user group that contains the uservoidgroupsRemoved(java.lang.String[] names)Removes the user arrayboolean[]isRolesExist(java.lang.String[] names)Batch Returns whether or not a role with a specified name existsvoidisSameAsFormPassword(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 listvoidremoveComponents(java.lang.String[] names)voidremoveComponentSets(java.lang.String[] names)voidremoveInterfaces(java.lang.String[] names)voidremoveProviders(java.lang.String[] names)voidremoveProviderSets(java.lang.String[] names)voidrenameComponent(java.lang.String oldName, java.lang.String newName)voidrenameComponentSet(java.lang.String oldName, java.lang.String newName)voidrenameInterface(java.lang.String oldName, java.lang.String newName)voidrenameProvider(java.lang.String oldName, java.lang.String newName)voidrenameProviderSet(java.lang.String oldName, java.lang.String newName)voidrolesRemoved(java.lang.String[] names)Removes the rolevoidsetFormPasswordSavedCount(int formPasswordSavedCount)Sets the number of history passwords saved for each user.voidsetPermissionDataSource(SQLiteDataSource ds)voidsetSecurityDataSource(SQLiteDataSource ds)voidunlockUser(java.lang.String userName)Unlock usersvoiduserAdded(User user)adds uservoiduserAltered(User before, User after)modify uservoidusersRemoved(java.lang.String[] names)Removes the user-
Methods inherited from interface com.supermap.services.security.storages.Storage
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
-
-
-
-
Method Detail
-
getUsersOfGroups
getUsersOfGroups(java.lang.String[] groupNames, int startIndex, int expectCount)Queries the user group that contains the user
- Parameters:
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.- Returns:
- query the result.
-
getGroup
UserGroup getGroup(java.lang.String name)
Gets the username array.
- Parameters:
name- The name of the user group- Returns:
- User group object
-
getRolesOfUser
getRolesOfUser(java.lang.String userName, int startIndex, int expectCount)The query specifies all the roles of the user
- Parameters:
userName-startIndex-expectCount-- Returns:
- Since:
- 8.0.2
-
isSameAsFormPassword
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
- Parameters:
userName-newPassword-- Since:
- 8.0.2
-
setFormPasswordSavedCount
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.
- Specified by:
setFormPasswordSavedCountin interfaceStorage- Parameters:
formPasswordSavedCount-- Since:
- 8.0.2
-
isRolesExist
boolean[] isRolesExist(java.lang.String[] names)
Batch Returns whether or not a role with a specified name exists
- Parameters:
names-- Returns:
- Since:
- 8.0.2
-
unlockUser
void unlockUser(java.lang.String userName)
Unlock users
- Parameters:
userName- username
-
getUserNameByOpenID
java.lang.String getUserNameByOpenID(java.lang.String openID, java.lang.String loginType)Uses openID and loginType to get an OAuth user's username
- Parameters:
openID-loginType-- Returns:
- Since:
- 8.0.2
-
addOAuthUser
void addOAuthUser(java.lang.String openID, java.lang.String loginType, User user)Adds an OAuth user
- Parameters:
openID- OAuth user's openIDloginType- OAuth The user's login methoduser- OAuth User's other information- Since:
- 8.0.2
-
bindOAuthUser
void bindOAuthUser(java.lang.String openID, java.lang.String loginType, java.lang.String userName)Binds an OAuth user to an existing user
- Parameters:
openID- OAuth user's openIDloginType- OAuth The user's login methoduserName- Binds the user's username- Since:
- 8.0.2
-
usersRemoved
void usersRemoved(java.lang.String[] names)
Removes the user
- Parameters:
names- user array
-
rolesRemoved
void rolesRemoved(java.lang.String[] names)
Removes the role
- Parameters:
names- role array
-
groupsRemoved
void groupsRemoved(java.lang.String[] names)
Removes the user array
- Parameters:
names- user group array
-
userAdded
void userAdded(User user)
adds user
- Parameters:
user-- Since:
- 7.0.1
-
userAltered
void userAltered(User before, User after)modify user
- Parameters:
before-after-- Since:
- 7.0.1
-
removeComponents
void removeComponents(java.lang.String[] names)
-
removeComponentSets
void removeComponentSets(java.lang.String[] names)
-
removeProviders
void removeProviders(java.lang.String[] names)
-
removeProviderSets
void removeProviderSets(java.lang.String[] names)
-
removeInterfaces
void removeInterfaces(java.lang.String[] names)
-
renameInterface
void renameInterface(java.lang.String oldName, java.lang.String newName)
-
renameComponent
void renameComponent(java.lang.String oldName, java.lang.String newName)
-
renameComponentSet
void renameComponentSet(java.lang.String oldName, java.lang.String newName)
-
renameProviderSet
void renameProviderSet(java.lang.String oldName, java.lang.String newName)
-
renameProvider
void renameProvider(java.lang.String oldName, java.lang.String newName)
-
setSecurityDataSource
void setSecurityDataSource(SQLiteDataSource ds)
-
setPermissionDataSource
void setPermissionDataSource(SQLiteDataSource ds)
-
-