public class WSUserStoreManager extends Object implements org.wso2.carbon.user.core.UserStoreManager
| Constructor and Description |
|---|
WSUserStoreManager(String serverUrl,
String cookie,
org.apache.axis2.context.ConfigurationContext configCtxt) |
WSUserStoreManager(String userName,
String password,
String serverUrl,
org.apache.axis2.context.ConfigurationContext configCtxt) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRememberMe(String userName,
String token) |
void |
addRole(String roleName,
String[] userList,
org.wso2.carbon.user.core.Permission[] permissions) |
void |
addRole(String roleName,
String[] userList,
org.wso2.carbon.user.api.Permission[] permissions) |
void |
addRole(String roleName,
String[] userList,
org.wso2.carbon.user.api.Permission[] permissions,
boolean isSharedRole) |
void |
addSecondaryUserStoreManager(String s,
org.wso2.carbon.user.core.UserStoreManager userStoreManager) |
void |
addUser(String userName,
Object credential,
String[] roleList,
Map<String,String> claims,
String profileName) |
void |
addUser(String userName,
Object credential,
String[] roleList,
Map<String,String> claims,
String profileName,
boolean requirePasswordChange) |
void |
addUserClaimValue(String userName,
String claimURI,
String claimValue,
String profileName) |
void |
addUserClaimValues(String userName,
Map<String,String> claims,
String profileName) |
boolean |
authenticate(String userName,
Object credential) |
void |
deleteRole(String roleName) |
void |
deleteUser(String userName) |
void |
deleteUserClaimValue(String userName,
String claimURI,
String profileName) |
void |
deleteUserClaimValues(String userName,
String[] claims,
String profileName) |
String[] |
getAllProfileNames() |
String[] |
getAllSecondaryRoles() |
org.wso2.carbon.user.api.ClaimManager |
getClaimManager() |
org.wso2.carbon.user.api.Properties |
getDefaultUserStoreProperties() |
String[] |
getHybridRoles() |
Date |
getPasswordExpirationTime(String username) |
String[] |
getProfileNames(String userName) |
Map<String,String> |
getProperties(org.wso2.carbon.user.core.tenant.Tenant tenant) |
Map<String,String> |
getProperties(org.wso2.carbon.user.api.Tenant tenant) |
org.wso2.carbon.user.api.RealmConfiguration |
getRealmConfiguration() |
String[] |
getRoleListOfUser(String userName) |
String[] |
getRoleNames() |
String[] |
getRoleNames(boolean b) |
org.wso2.carbon.user.core.UserStoreManager |
getSecondaryUserStoreManager() |
org.wso2.carbon.user.core.UserStoreManager |
getSecondaryUserStoreManager(String s) |
int |
getTenantId() |
int |
getTenantId(String username) |
String |
getUserClaimValue(String userName,
String claim,
String profileName) |
org.wso2.carbon.user.core.claim.Claim[] |
getUserClaimValues(String userName,
String profileName) |
Map<String,String> |
getUserClaimValues(String userName,
String[] claims,
String profileName) |
int |
getUserId(String username) |
String[] |
getUserList(String claim,
String claimValue,
String profileName) |
String[] |
getUserListOfRole(String roleName) |
boolean |
isBulkImportSupported() |
boolean |
isExistingRole(String roleName) |
boolean |
isExistingRole(String roleName,
boolean isSharedRole) |
boolean |
isExistingUser(String userName) |
boolean |
isMultipleProfilesAllowed()
This method is to check whether multiple profiles are allowed with a particular user-store.
|
boolean |
isReadOnly() |
boolean |
isSCIMEnabled() |
boolean |
isSharedGroupEnabled() |
boolean |
isValidRememberMeToken(String userName,
String token) |
String[] |
listUsers(String filter,
int maxItemLimit) |
void |
setSecondaryUserStoreManager(org.wso2.carbon.user.core.UserStoreManager userStoreManager) |
void |
setUserClaimValue(String userName,
String claimURI,
String claimValue,
String profileName) |
void |
setUserClaimValues(String userName,
Map<String,String> claims,
String profileName) |
void |
updateCredential(String userName,
Object newCredential,
Object oldCredential) |
void |
updateCredentialByAdmin(String userName,
Object newCredential) |
void |
updateRoleListOfUser(String userName,
String[] deletedRoles,
String[] newRoles) |
void |
updateRoleName(String roleName,
String newRoleName) |
void |
updateUserListOfRole(String roleName,
String[] deletedUsers,
String[] newUsers) |
public WSUserStoreManager(String serverUrl, String cookie, org.apache.axis2.context.ConfigurationContext configCtxt) throws org.wso2.carbon.user.core.UserStoreException
org.wso2.carbon.user.core.UserStoreExceptionpublic void addUser(String userName, Object credential, String[] roleList, Map<String,String> claims, String profileName, boolean requirePasswordChange) throws org.wso2.carbon.user.core.UserStoreException
addUser in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void addRole(String roleName, String[] userList, org.wso2.carbon.user.core.Permission[] permissions) throws org.wso2.carbon.user.core.UserStoreException
org.wso2.carbon.user.core.UserStoreExceptionpublic void addUser(String userName, Object credential, String[] roleList, Map<String,String> claims, String profileName) throws org.wso2.carbon.user.core.UserStoreException
addUser in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic boolean authenticate(String userName, Object credential) throws org.wso2.carbon.user.core.UserStoreException
authenticate in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void deleteRole(String roleName) throws org.wso2.carbon.user.core.UserStoreException
deleteRole in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void deleteUser(String userName) throws org.wso2.carbon.user.core.UserStoreException
deleteUser in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void deleteUserClaimValue(String userName, String claimURI, String profileName) throws org.wso2.carbon.user.core.UserStoreException
deleteUserClaimValue in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void deleteUserClaimValues(String userName, String[] claims, String profileName) throws org.wso2.carbon.user.core.UserStoreException
deleteUserClaimValues in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getAllProfileNames() throws org.wso2.carbon.user.core.UserStoreException
getAllProfileNames in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getHybridRoles() throws org.wso2.carbon.user.core.UserStoreException
getHybridRoles in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getAllSecondaryRoles() throws org.wso2.carbon.user.core.UserStoreException
org.wso2.carbon.user.core.UserStoreExceptionpublic Date getPasswordExpirationTime(String username) throws org.wso2.carbon.user.core.UserStoreException
getPasswordExpirationTime in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getProfileNames(String userName) throws org.wso2.carbon.user.core.UserStoreException
getProfileNames in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getRoleListOfUser(String userName) throws org.wso2.carbon.user.core.UserStoreException
getRoleListOfUser in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getRoleNames() throws org.wso2.carbon.user.core.UserStoreException
getRoleNames in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getRoleNames(boolean b) throws org.wso2.carbon.user.core.UserStoreException
org.wso2.carbon.user.core.UserStoreExceptionpublic int getTenantId()
throws org.wso2.carbon.user.core.UserStoreException
getTenantId in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic int getTenantId(String username) throws org.wso2.carbon.user.core.UserStoreException
getTenantId in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String getUserClaimValue(String userName, String claim, String profileName) throws org.wso2.carbon.user.core.UserStoreException
getUserClaimValue in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic org.wso2.carbon.user.core.claim.Claim[] getUserClaimValues(String userName, String profileName) throws org.wso2.carbon.user.core.UserStoreException
getUserClaimValues in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic Map<String,String> getUserClaimValues(String userName, String[] claims, String profileName) throws org.wso2.carbon.user.core.UserStoreException
getUserClaimValues in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic int getUserId(String username) throws org.wso2.carbon.user.core.UserStoreException
getUserId in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getUserListOfRole(String roleName) throws org.wso2.carbon.user.core.UserStoreException
getUserListOfRole in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic boolean isExistingRole(String roleName, boolean isSharedRole) throws org.wso2.carbon.user.core.UserStoreException
isExistingRole in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic boolean isExistingUser(String userName) throws org.wso2.carbon.user.core.UserStoreException
isExistingUser in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic boolean isReadOnly()
throws org.wso2.carbon.user.core.UserStoreException
isReadOnly in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] listUsers(String filter, int maxItemLimit) throws org.wso2.carbon.user.core.UserStoreException
listUsers in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void setUserClaimValue(String userName, String claimURI, String claimValue, String profileName) throws org.wso2.carbon.user.core.UserStoreException
setUserClaimValue in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void setUserClaimValues(String userName, Map<String,String> claims, String profileName) throws org.wso2.carbon.user.core.UserStoreException
setUserClaimValues in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void addUserClaimValue(String userName, String claimURI, String claimValue, String profileName) throws org.wso2.carbon.user.core.UserStoreException
org.wso2.carbon.user.core.UserStoreExceptionpublic void addUserClaimValues(String userName, Map<String,String> claims, String profileName) throws org.wso2.carbon.user.core.UserStoreException
org.wso2.carbon.user.core.UserStoreExceptionpublic void updateCredential(String userName, Object newCredential, Object oldCredential) throws org.wso2.carbon.user.core.UserStoreException
updateCredential in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void updateCredentialByAdmin(String userName, Object newCredential) throws org.wso2.carbon.user.core.UserStoreException
updateCredentialByAdmin in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void updateRoleListOfUser(String userName, String[] deletedRoles, String[] newRoles) throws org.wso2.carbon.user.core.UserStoreException
updateRoleListOfUser in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void updateUserListOfRole(String roleName, String[] deletedUsers, String[] newUsers) throws org.wso2.carbon.user.core.UserStoreException
updateUserListOfRole in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void updateRoleName(String roleName, String newRoleName) throws org.wso2.carbon.user.core.UserStoreException
updateRoleName in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic boolean isMultipleProfilesAllowed()
isMultipleProfilesAllowed in interface org.wso2.carbon.user.api.UserStoreManagerpublic Map<String,String> getProperties(org.wso2.carbon.user.core.tenant.Tenant tenant) throws org.wso2.carbon.user.core.UserStoreException
org.wso2.carbon.user.core.UserStoreExceptionpublic void addRole(String roleName, String[] userList, org.wso2.carbon.user.api.Permission[] permissions, boolean isSharedRole) throws org.wso2.carbon.user.core.UserStoreException
addRole in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic Map<String,String> getProperties(org.wso2.carbon.user.api.Tenant tenant) throws org.wso2.carbon.user.core.UserStoreException
getProperties in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void addRememberMe(String userName, String token) throws org.wso2.carbon.user.api.UserStoreException
addRememberMe in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.api.UserStoreExceptionpublic boolean isValidRememberMeToken(String userName, String token) throws org.wso2.carbon.user.api.UserStoreException
isValidRememberMeToken in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.api.UserStoreExceptionpublic org.wso2.carbon.user.api.ClaimManager getClaimManager()
throws org.wso2.carbon.user.api.UserStoreException
getClaimManager in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.api.UserStoreExceptionpublic boolean isSCIMEnabled()
throws org.wso2.carbon.user.api.UserStoreException
isSCIMEnabled in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.api.UserStoreExceptionpublic boolean isBulkImportSupported()
throws org.wso2.carbon.user.core.UserStoreException
org.wso2.carbon.user.core.UserStoreExceptionpublic String[] getUserList(String claim, String claimValue, String profileName) throws org.wso2.carbon.user.core.UserStoreException
org.wso2.carbon.user.core.UserStoreExceptionpublic org.wso2.carbon.user.core.UserStoreManager getSecondaryUserStoreManager()
public void setSecondaryUserStoreManager(org.wso2.carbon.user.core.UserStoreManager userStoreManager)
public org.wso2.carbon.user.core.UserStoreManager getSecondaryUserStoreManager(String s)
public void addSecondaryUserStoreManager(String s, org.wso2.carbon.user.core.UserStoreManager userStoreManager)
public org.wso2.carbon.user.api.RealmConfiguration getRealmConfiguration()
public org.wso2.carbon.user.api.Properties getDefaultUserStoreProperties()
getDefaultUserStoreProperties in interface org.wso2.carbon.user.api.UserStoreManagerpublic void addRole(String roleName, String[] userList, org.wso2.carbon.user.api.Permission[] permissions) throws org.wso2.carbon.user.api.UserStoreException
addRole in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.api.UserStoreExceptionpublic boolean isExistingRole(String roleName) throws org.wso2.carbon.user.core.UserStoreException
isExistingRole in interface org.wso2.carbon.user.api.UserStoreManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic boolean isSharedGroupEnabled()
Copyright © 2015 WSO2. All rights reserved.