public class RegistryCoreServiceComponent extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RegistryCoreServiceComponent.DefaultSimulationService
This is an implementation of the Simulation Service which is used to simulate handlers.
|
Constructor and Description |
---|
RegistryCoreServiceComponent() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context)
Activates the Registry Kernel bundle.
|
static void |
addAuthorizeRoleListener(int executionId,
String path,
String permission,
String executeAction,
String[] actions)
Method to add an authorize role listener.
|
RegistryService |
buildRegistryService()
Builds the OSGi service for this Registry instance.
|
protected void |
deactivate(org.osgi.service.component.ComponentContext context)
Deactivates the Registry Kernel bundle.
|
static org.osgi.framework.BundleContext |
getBundleContext()
Gets the instance of the bundle context in use.
|
static org.wso2.carbon.caching.impl.CacheInvalidator |
getCacheInvalidator()
Method to return the CacheInvalidator OSGI service interface
|
static org.wso2.carbon.user.core.service.RealmService |
getRealmService()
Gets the instance of the realm service in use.
|
static RegistryConfiguration |
getRegistryConfig()
Deprecated.
|
static RegistryService |
getRegistryService()
Method to obtain an instance of the OSGi Registry Service.
|
void |
registerBuiltInHandlers(RegistryService registryService)
Method to register built-in handlers.
|
protected void |
setCacheInvalidatorService(org.wso2.carbon.caching.impl.CacheInvalidator _cacheInvalidator)
Method to set the CahceInvalidator.
|
protected void |
setRealmService(org.wso2.carbon.user.core.service.RealmService realmService)
Method to set the realm service used.
|
static void |
setRegistryConfig(RegistryConfiguration registryConfig)
Deprecated.
|
protected void |
setStatisticsCollector(StatisticsCollector statisticsCollector)
Method to set a register collector service.
|
void |
setupMounts(RegistryService registryService,
int tenantId) |
protected void |
unSetCacheInvalidatorService(org.wso2.carbon.caching.impl.CacheInvalidator _cacheInvalidator)
This method is called when the current cache invalidator becomes un-available.
|
protected void |
unsetRealmService(org.wso2.carbon.user.core.service.RealmService realmService)
This method is called when the current realm service becomes un-available.
|
protected void |
unsetStatisticsCollector(StatisticsCollector statisticsCollector)
Method to set a un-register collector service.
|
protected void activate(org.osgi.service.component.ComponentContext context)
context
- the OSGi component context.protected void deactivate(org.osgi.service.component.ComponentContext context)
context
- the OSGi component context.public void setupMounts(RegistryService registryService, int tenantId)
public void registerBuiltInHandlers(RegistryService registryService) throws RegistryException
registryService
- the registry service instance.RegistryException
- if an error occurred.public RegistryService buildRegistryService() throws Exception
Exception
- if the creation of the Registry service fails.protected void setCacheInvalidatorService(org.wso2.carbon.caching.impl.CacheInvalidator _cacheInvalidator)
_cacheInvalidator
- the cache invalidator service.protected void unSetCacheInvalidatorService(org.wso2.carbon.caching.impl.CacheInvalidator _cacheInvalidator)
_cacheInvalidator
- the current cache invalidator instancepublic static org.wso2.carbon.caching.impl.CacheInvalidator getCacheInvalidator()
protected void setRealmService(org.wso2.carbon.user.core.service.RealmService realmService)
realmService
- the realm service.protected void unsetRealmService(org.wso2.carbon.user.core.service.RealmService realmService)
realmService
- the current realm service instance, to be used for any cleaning-up.protected void setStatisticsCollector(StatisticsCollector statisticsCollector)
statisticsCollector
- the statistics collector service.protected void unsetStatisticsCollector(StatisticsCollector statisticsCollector)
statisticsCollector
- the statistics collector service.@Deprecated public static RegistryConfiguration getRegistryConfig()
@Deprecated public static void setRegistryConfig(RegistryConfiguration registryConfig)
public static void addAuthorizeRoleListener(int executionId, String path, String permission, String executeAction, String[] actions)
executionId
- the execution order identifierpath
- the resource (or collection) pathpermission
- the permissionexecuteAction
- the execute action required.actions
- the actions to which the role would be authorized.AuthorizeRoleListener
public static org.wso2.carbon.user.core.service.RealmService getRealmService()
public static org.osgi.framework.BundleContext getBundleContext()
public static RegistryService getRegistryService()
Copyright © 2016 WSO2 Inc. All Rights Reserved.