org.wso2.solutions.identity.users
Class IdentityDefaultUserStoreAdmin
java.lang.Object
org.wso2.usermanager.readwrite.DefaultUserStoreReader
org.wso2.usermanager.readwrite.DefaultUserStoreAdmin
org.wso2.solutions.identity.users.IdentityDefaultUserStoreAdmin
- All Implemented Interfaces:
- IdentityUserStoreAdmin, org.wso2.usermanager.UserStoreAdmin, org.wso2.usermanager.UserStoreReader
public class IdentityDefaultUserStoreAdmin
- extends org.wso2.usermanager.readwrite.DefaultUserStoreAdmin
- implements IdentityUserStoreAdmin
Fields inherited from class org.wso2.usermanager.readwrite.DefaultUserStoreReader |
data, dataSource |
Constructor Summary |
IdentityDefaultUserStoreAdmin(javax.sql.DataSource dataSource)
Class constructor specifying the data-source |
IdentityDefaultUserStoreAdmin(javax.sql.DataSource dataSource,
org.wso2.usermanager.readwrite.DefaultStrategy store)
Class constructor specifying the data-source and the default strategy |
Method Summary |
protected void |
addUserProfile(java.lang.String userId,
java.lang.String profileId,
boolean isDefault,
java.lang.String profileName)
Add a new profile for a given user. |
void |
setUserProperties(java.lang.String userName,
java.util.Map properties)
|
void |
setUserProperties(java.lang.String userName,
java.util.Map<java.lang.String,java.lang.String> properties,
java.lang.String profileName)
This sets user properties corresponding to the given user name and the
profile name. |
void |
updateUserProperties(java.lang.String userName,
java.util.Map<java.lang.String,java.lang.String> properties,
java.lang.String profileName)
This updates user properties corresponding to the given user name and the
profile name. |
Methods inherited from class org.wso2.usermanager.readwrite.DefaultUserStoreAdmin |
addRole, addUser, addUserToRole, deleteRole, deleteUser, removeUserFromRole, setRoleProperties, updateUser, updateUser |
Methods inherited from class org.wso2.usermanager.readwrite.DefaultUserStoreReader |
getAllRoleNames, getAllUserNames, getRoleProperties, getUserNamesWithPropertyValue, getUserProperties, getUserPropertyNames, getUserRoles, getUsersInRole, isExistingUser |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.wso2.usermanager.UserStoreReader |
getAllRoleNames, getAllUserNames, getRoleProperties, getUserNamesWithPropertyValue, getUserProperties, getUserPropertyNames, getUserRoles, getUsersInRole, isExistingUser |
IdentityDefaultUserStoreAdmin
public IdentityDefaultUserStoreAdmin(javax.sql.DataSource dataSource)
- Class constructor specifying the data-source
- Parameters:
dataSource
- DataSource
IdentityDefaultUserStoreAdmin
public IdentityDefaultUserStoreAdmin(javax.sql.DataSource dataSource,
org.wso2.usermanager.readwrite.DefaultStrategy store)
- Class constructor specifying the data-source and the default strategy
- Parameters:
dataSource
- DataSourcestore
- DefaultStrategy
setUserProperties
public void setUserProperties(java.lang.String userName,
java.util.Map properties)
throws org.wso2.usermanager.UserManagerException
-
- Specified by:
setUserProperties
in interface org.wso2.usermanager.UserStoreAdmin
- Overrides:
setUserProperties
in class org.wso2.usermanager.readwrite.DefaultUserStoreAdmin
- Throws:
org.wso2.usermanager.UserManagerException
setUserProperties
public void setUserProperties(java.lang.String userName,
java.util.Map<java.lang.String,java.lang.String> properties,
java.lang.String profileName)
throws org.wso2.usermanager.UserManagerException
- This sets user properties corresponding to the given user name and the
profile name.
- Specified by:
setUserProperties
in interface IdentityUserStoreAdmin
- Parameters:
userName
- Unique user nameproperties
- Profile propertiesprofileName
- Name of the profile
- Throws:
org.wso2.usermanager.UserManagerException
addUserProfile
protected void addUserProfile(java.lang.String userId,
java.lang.String profileId,
boolean isDefault,
java.lang.String profileName)
throws org.wso2.usermanager.UserManagerException
- Add a new profile for a given user.
- Parameters:
userId
- User IdprofileId
- Profile IdisDefault
- Indicates whether the given profile is default or notprofileName
- Name of the profile
- Throws:
org.wso2.usermanager.UserManagerException
updateUserProperties
public void updateUserProperties(java.lang.String userName,
java.util.Map<java.lang.String,java.lang.String> properties,
java.lang.String profileName)
throws org.wso2.usermanager.UserManagerException
- This updates user properties corresponding to the given user name and the
profile name.
- Specified by:
updateUserProperties
in interface IdentityUserStoreAdmin
- Parameters:
userName
- Unique user nameproperties
- Profile propertiesprofileName
- Name of the profile
- Throws:
org.wso2.usermanager.UserManagerException