|
||||||||||
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.InMemoryRealmService
public class InMemoryRealmService
Class used to represent an in memory realm service.
Constructor Summary | |
---|---|
InMemoryRealmService()
Construct a in memory realm service. |
Method Summary | |
---|---|
org.wso2.carbon.user.core.UserRealm |
getBootstrapRealm()
Get the bootstrap realm. |
org.wso2.carbon.user.core.config.RealmConfiguration |
getBootstrapRealmConfiguration()
Get the boot strap configuration (tenant0's configuration). |
org.wso2.carbon.user.core.tenant.TenantManager |
getTenantManager()
Return the tenant manager. |
org.wso2.carbon.user.core.UserRealm |
getUserRealm(org.wso2.carbon.user.core.config.RealmConfiguration tenantRealmConfig)
Method to return a user realm for the given realm configuration. |
org.wso2.carbon.user.core.UserRealm |
initializeRealm(org.wso2.carbon.user.core.config.RealmConfiguration realmConfig,
DataSource dataSource,
int tenantId)
Initialize the realm for a tenant id. |
void |
setup()
Setup the realm service. |
void |
setUserRealm(int id,
org.wso2.carbon.user.core.UserRealm realm)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InMemoryRealmService() throws RegistryException
RegistryException
- throws if the operation failed.Method Detail |
---|
public org.wso2.carbon.user.core.UserRealm getUserRealm(org.wso2.carbon.user.core.config.RealmConfiguration tenantRealmConfig) throws org.wso2.carbon.user.core.UserStoreException
getUserRealm
in interface org.wso2.carbon.user.core.service.RealmService
tenantRealmConfig
- the realm configuration.
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public void setUserRealm(int id, org.wso2.carbon.user.core.UserRealm realm) throws org.wso2.carbon.user.core.UserStoreException
setUserRealm
in interface org.wso2.carbon.user.core.service.RealmService
org.wso2.carbon.user.core.UserStoreException
public org.wso2.carbon.user.core.config.RealmConfiguration getBootstrapRealmConfiguration()
getBootstrapRealmConfiguration
in interface org.wso2.carbon.user.core.service.RealmService
public void setup() throws RegistryException
RegistryException
- if the operation failed.public org.wso2.carbon.user.core.UserRealm getBootstrapRealm() throws org.wso2.carbon.user.core.UserStoreException
getBootstrapRealm
in interface org.wso2.carbon.user.core.service.RealmService
org.wso2.carbon.user.core.UserStoreException
- throws if the operation failed.public org.wso2.carbon.user.core.tenant.TenantManager getTenantManager()
getTenantManager
in interface org.wso2.carbon.user.core.service.RealmService
public org.wso2.carbon.user.core.UserRealm initializeRealm(org.wso2.carbon.user.core.config.RealmConfiguration realmConfig, DataSource dataSource, int tenantId) throws org.wso2.carbon.user.core.UserStoreException
realmConfig
- realm configuration.dataSource
- data sourcetenantId
- tenant id
org.wso2.carbon.user.core.UserStoreException
- the user realm.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |