|
||||||||||
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.RegistryRealm
public class RegistryRealm
This class makes sure that the user store of the registry is always in consistent state. It wraps the given realm and performs validations for all required actions before delegating the requests to the wrapped realm.
Realm is only used for getting other user store related classes. Therefore, registry provides a wrappers for all such classes where ever a validation is necessary.
Constructor Summary | |
---|---|
RegistryRealm()
This constructor is provided for extending the RegistryRealm. |
|
RegistryRealm(org.wso2.carbon.user.core.UserRealm userRealm)
Construct a realm wrapping a user realm. |
Method Summary | |
---|---|
void |
cleanUp()
Clean up the realm |
org.wso2.carbon.user.core.AuthorizationManager |
getAuthorizationManager()
Method to get the authorization manager |
org.wso2.carbon.user.core.claim.ClaimManager |
getClaimManager()
Method to get the claim manager. |
org.wso2.carbon.user.core.profile.ProfileConfigurationManager |
getProfileConfigurationManager()
Method to get the profile configuration manager. |
org.wso2.carbon.user.core.config.RealmConfiguration |
getRealmConfiguration()
Get the realm configuration |
org.wso2.carbon.user.core.UserStoreManager |
getUserStoreManager()
Method to get the user store manager. |
void |
init(org.wso2.carbon.user.core.config.RealmConfiguration configBean,
Map<String,org.wso2.carbon.user.core.claim.ClaimMapping> claimMapping,
Map<String,org.wso2.carbon.user.core.profile.ProfileConfiguration> profileConfigs,
int tenantId)
Method to initialize the realm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryRealm()
public RegistryRealm(org.wso2.carbon.user.core.UserRealm userRealm) throws RegistryException
userRealm
- the user realm.
RegistryException
- throws if the operation failed.Method Detail |
---|
public void init(org.wso2.carbon.user.core.config.RealmConfiguration configBean, Map<String,org.wso2.carbon.user.core.claim.ClaimMapping> claimMapping, Map<String,org.wso2.carbon.user.core.profile.ProfileConfiguration> profileConfigs, int tenantId) throws org.wso2.carbon.user.core.UserStoreException
init
in interface org.wso2.carbon.user.core.UserRealm
configBean
- the realm configuration.claimMapping
- the claims as a mapprofileConfigs
- profile configuration.tenantId
- tenant id.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public org.wso2.carbon.user.core.AuthorizationManager getAuthorizationManager() throws org.wso2.carbon.user.core.UserStoreException
getAuthorizationManager
in interface org.wso2.carbon.user.core.UserRealm
org.wso2.carbon.user.core.UserStoreException
public org.wso2.carbon.user.core.UserStoreManager getUserStoreManager() throws org.wso2.carbon.user.core.UserStoreException
getUserStoreManager
in interface org.wso2.carbon.user.core.UserRealm
org.wso2.carbon.user.core.UserStoreException
- throws if the user store manager failed.public void cleanUp() throws org.wso2.carbon.user.core.UserStoreException
cleanUp
in interface org.wso2.carbon.user.core.UserRealm
org.wso2.carbon.user.core.UserStoreException
- if the operation is failed.public org.wso2.carbon.user.core.config.RealmConfiguration getRealmConfiguration() throws org.wso2.carbon.user.core.UserStoreException
getRealmConfiguration
in interface org.wso2.carbon.user.core.UserRealm
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public org.wso2.carbon.user.core.profile.ProfileConfigurationManager getProfileConfigurationManager() throws org.wso2.carbon.user.core.UserStoreException
getProfileConfigurationManager
in interface org.wso2.carbon.user.core.UserRealm
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public org.wso2.carbon.user.core.claim.ClaimManager getClaimManager() throws org.wso2.carbon.user.core.UserStoreException
getClaimManager
in interface org.wso2.carbon.user.core.UserRealm
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |