|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.jdbc.realm.RegistryUserStoreManager
@Deprecated public class RegistryUserStoreManager
Registry wrapper of the user store admin. This will provide registry level validation for some of the functions in user store management.
Constructor Summary | |
---|---|
RegistryUserStoreManager(org.wso2.carbon.user.core.UserRealm coreRealm)
Deprecated. Constructs the Registry User Store Admin |
Method Summary | |
---|---|
void |
addRole(String roleName,
String[] userList,
org.wso2.carbon.user.core.Permission[] permissions)
Deprecated. Method to add role. |
void |
addUser(String userName,
Object credential,
String[] roleList,
Map<String,String> claims,
String profileName)
Deprecated. Method to add user. |
void |
addUser(String userName,
Object credential,
String[] roleList,
Map<String,String> claims,
String profileName,
boolean requirePasswordChange)
Deprecated. Method to add user. |
boolean |
authenticate(String userName,
Object credential)
Deprecated. Authenticate the user |
void |
deleteRole(String roleName)
Deprecated. Delete role. |
void |
deleteUser(String userName)
Deprecated. Delete user. |
void |
deleteUserClaimValue(String userName,
String claimURI,
String profileName)
Deprecated. Delete the user claim value. |
void |
deleteUserClaimValues(String userName,
String[] claims,
String profileName)
Deprecated. Delete the user claim values |
String[] |
getAllProfileNames()
Deprecated. Get all profile names. |
String[] |
getHybridRoles()
Deprecated. Method to return the the hybrid roles. |
Date |
getPasswordExpirationTime(String userName)
Deprecated. Method to get the password expiration time. |
String[] |
getProfileNames(String userName)
Deprecated. Get profile names. |
Map<String,String> |
getProperties(org.wso2.carbon.user.core.tenant.Tenant tenant)
Deprecated. |
String[] |
getRoleListOfUser(String userName)
Deprecated. Method to get the role list of user. |
String[] |
getRoleNames()
Deprecated. Get the role names. |
int |
getTenantId()
Deprecated. Method to get the tenant id of the current user store manager instance. |
int |
getTenantId(String userName)
Deprecated. Method to get the tenant id from a given user name. |
String |
getUserClaimValue(String userName,
String claim,
String profileName)
Deprecated. Get the claim value of a user. |
org.wso2.carbon.user.core.claim.Claim[] |
getUserClaimValues(String userName,
String profileName)
Deprecated. Method to get the user claim values. |
Map<String,String> |
getUserClaimValues(String userName,
String[] claims,
String profileName)
Deprecated. Method to get the user claim values. |
int |
getUserId(String userName)
Deprecated. Method to get the user id. |
String[] |
getUserListOfRole(String roleName)
Deprecated. Method to return the user list of a role. |
boolean |
isExistingRole(String roleName)
Deprecated. Method to check whether the role exist or not. |
boolean |
isExistingUser(String userName)
Deprecated. Method to check whether the user exist or not. |
boolean |
isReadOnly()
Deprecated. Method to check whether the registry is readonly or not. |
String[] |
listUsers(String filter,
int maxItemLimit)
Deprecated. Method to list the |
void |
setUserClaimValue(String userName,
String claimURI,
String claimValue,
String profileName)
Deprecated. Set a claim value |
void |
setUserClaimValues(String userName,
Map<String,String> claims,
String profileName)
Deprecated. Set the user claim values. |
void |
updateCredential(String userName,
Object newCredential,
Object oldCredential)
Deprecated. Update the credential. |
void |
updateCredentialByAdmin(String userName,
Object newCredential)
Deprecated. Update the credential by an admin |
void |
updateRoleListOfUser(String userName,
String[] deletedRoles,
String[] newRoles)
Deprecated. Update the role list of a user. |
void |
updateUserListOfRole(String roleName,
String[] deletedUsers,
String[] newUsers)
Deprecated. Update the user list of a role |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryUserStoreManager(org.wso2.carbon.user.core.UserRealm coreRealm)
coreRealm
- the realm which got wrapped by the registry realm.Method Detail |
---|
public boolean authenticate(String userName, Object credential) throws org.wso2.carbon.user.core.UserStoreException
authenticate
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.credential
- the credential to authenticate.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public void addRole(String roleName, String[] userList, org.wso2.carbon.user.core.Permission[] permissions) throws org.wso2.carbon.user.core.UserStoreException
addRole
in interface org.wso2.carbon.user.core.UserStoreManager
roleName
- the role name.userList
- the users list to add to the role.permissions
- the permission list corresponding to the users list
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public 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.core.UserStoreManager
userName
- the user name.credential
- the credential to authenticate.roleList
- the role list.claims
- the claims list corresponding to the roles list.profileName
- the profile name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public 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.core.UserStoreManager
userName
- the user name.credential
- the credential of the user.roleList
- the roles list the users belong toclaims
- associated with of the userprofileName
- the name of the profilerequirePasswordChange
- whether the password change required.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public void deleteRole(String roleName) throws org.wso2.carbon.user.core.UserStoreException
deleteRole
in interface org.wso2.carbon.user.core.UserStoreManager
roleName
- the role name to deleted.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public void deleteUser(String userName) throws org.wso2.carbon.user.core.UserStoreException
deleteUser
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public void deleteUserClaimValue(String userName, String claimURI, String profileName) throws org.wso2.carbon.user.core.UserStoreException
deleteUserClaimValue
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.claimURI
- the claim uri string.profileName
- the profile name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public void deleteUserClaimValues(String userName, String[] claims, String profileName) throws org.wso2.carbon.user.core.UserStoreException
deleteUserClaimValues
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user nameclaims
- the claims to delete.profileName
- the profile name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public void setUserClaimValue(String userName, String claimURI, String claimValue, String profileName) throws org.wso2.carbon.user.core.UserStoreException
setUserClaimValue
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.claimURI
- the claim uri.claimValue
- the claim value.profileName
- the profile name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public void setUserClaimValues(String userName, Map<String,String> claims, String profileName) throws org.wso2.carbon.user.core.UserStoreException
setUserClaimValues
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.claims
- the claimsprofileName
- the profile name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public void updateCredential(String userName, Object newCredential, Object oldCredential) throws org.wso2.carbon.user.core.UserStoreException
updateCredential
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.newCredential
- the new credential.oldCredential
- the old credential.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public void updateCredentialByAdmin(String userName, Object newCredential) throws org.wso2.carbon.user.core.UserStoreException
updateCredentialByAdmin
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user namenewCredential
- the credential
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public void updateRoleListOfUser(String userName, String[] deletedRoles, String[] newRoles) throws org.wso2.carbon.user.core.UserStoreException
updateRoleListOfUser
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.deletedRoles
- the deleted roles.newRoles
- the new role list
org.wso2.carbon.user.core.UserStoreException
- if the operation failed.public void updateUserListOfRole(String roleName, String[] deletedUsers, String[] newUsers) throws org.wso2.carbon.user.core.UserStoreException
updateUserListOfRole
in interface org.wso2.carbon.user.core.UserStoreManager
roleName
- the role name.deletedUsers
- the deleted users.newUsers
- the new users.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public String[] getHybridRoles() throws org.wso2.carbon.user.core.UserStoreException
getHybridRoles
in interface org.wso2.carbon.user.core.UserStoreManager
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public String[] getUserListOfRole(String roleName) throws org.wso2.carbon.user.core.UserStoreException
getUserListOfRole
in interface org.wso2.carbon.user.core.UserStoreManager
roleName
- the role name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public String[] getAllProfileNames() throws org.wso2.carbon.user.core.UserStoreException
getAllProfileNames
in interface org.wso2.carbon.user.core.UserStoreManager
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public String[] getRoleNames() throws org.wso2.carbon.user.core.UserStoreException
getRoleNames
in interface org.wso2.carbon.user.core.UserStoreManager
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public String[] getProfileNames(String userName) throws org.wso2.carbon.user.core.UserStoreException
getProfileNames
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public String getUserClaimValue(String userName, String claim, String profileName) throws org.wso2.carbon.user.core.UserStoreException
getUserClaimValue
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.claim
- the claimprofileName
- the profile name
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public Map<String,String> getUserClaimValues(String userName, String[] claims, String profileName) throws org.wso2.carbon.user.core.UserStoreException
getUserClaimValues
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.claims
- the claimsprofileName
- the profile name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public String[] getRoleListOfUser(String userName) throws org.wso2.carbon.user.core.UserStoreException
getRoleListOfUser
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- user name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public boolean isExistingRole(String roleName) throws org.wso2.carbon.user.core.UserStoreException
isExistingRole
in interface org.wso2.carbon.user.core.UserStoreManager
roleName
- the role name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public boolean isExistingUser(String userName) throws org.wso2.carbon.user.core.UserStoreException
isExistingUser
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public String[] listUsers(String filter, int maxItemLimit) throws org.wso2.carbon.user.core.UserStoreException
listUsers
in interface org.wso2.carbon.user.core.UserStoreManager
filter
- the filter to list the users.maxItemLimit
- maximum item limit
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public int getUserId(String userName) throws org.wso2.carbon.user.core.UserStoreException
getUserId
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public int getTenantId() throws org.wso2.carbon.user.core.UserStoreException
getTenantId
in interface org.wso2.carbon.user.core.UserStoreManager
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public int getTenantId(String userName) throws org.wso2.carbon.user.core.UserStoreException
getTenantId
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public boolean isReadOnly() throws org.wso2.carbon.user.core.UserStoreException
isReadOnly
in interface org.wso2.carbon.user.core.UserStoreManager
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public 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.core.UserStoreManager
userName
- the user name.profileName
- the profile name.
org.wso2.carbon.user.core.UserStoreException
- throw if the operation failed.public Date getPasswordExpirationTime(String userName) throws org.wso2.carbon.user.core.UserStoreException
getPasswordExpirationTime
in interface org.wso2.carbon.user.core.UserStoreManager
userName
- the user name.
org.wso2.carbon.user.core.UserStoreException
- throw if the operation failed.public Map<String,String> getProperties(org.wso2.carbon.user.core.tenant.Tenant tenant) throws org.wso2.carbon.user.core.UserStoreException
getProperties
in interface org.wso2.carbon.user.core.UserStoreManager
org.wso2.carbon.user.core.UserStoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |