Java Code Examples for org.wso2.carbon.user.core.service.RealmService#getTenantManager()
The following examples show how to use
org.wso2.carbon.user.core.service.RealmService#getTenantManager() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DeviceManagementDataHolder.java From carbon-device-mgt with Apache License 2.0 | 4 votes |
private void setTenantManager(RealmService realmService) { if (realmService == null) { throw new IllegalStateException("Realm service is not initialized properly"); } this.tenantManager = realmService.getTenantManager(); }
Example 2
Source File: APIPublisherDataHolder.java From carbon-device-mgt with Apache License 2.0 | 4 votes |
private void setTenantManager(RealmService realmService) { if (realmService == null) { throw new IllegalStateException("Realm service is not initialized properly"); } this.tenantManager = realmService.getTenantManager(); }
Example 3
Source File: APIApplicationManagerExtensionDataHolder.java From carbon-device-mgt with Apache License 2.0 | 4 votes |
private void setTenantManager(RealmService realmService) { if (realmService == null) { throw new IllegalStateException("Realm service is not initialized properly"); } this.tenantManager = realmService.getTenantManager(); }
Example 4
Source File: PolicyManagementDataHolder.java From carbon-device-mgt with Apache License 2.0 | 4 votes |
private void setTenantManager(RealmService realmService) { if (realmService == null) { throw new IllegalStateException("Realm service is not initialized properly"); } this.tenantManager = realmService.getTenantManager(); }
Example 5
Source File: JWTClientExtensionDataHolder.java From carbon-device-mgt with Apache License 2.0 | 4 votes |
private void setTenantManager(RealmService realmService) { if (realmService == null) { throw new IllegalStateException("Realm service is not initialized properly"); } this.tenantManager = realmService.getTenantManager(); }
Example 6
Source File: ServiceHolder.java From attic-stratos with Apache License 2.0 | 4 votes |
public static TenantManager getTenantManager() { PrivilegedCarbonContext carbonContext = PrivilegedCarbonContext.getThreadLocalCarbonContext(); RealmService realmService = (RealmService) carbonContext.getOSGiService(RealmService.class); return realmService.getTenantManager(); }
Example 7
Source File: ServiceHolder.java From attic-stratos with Apache License 2.0 | 4 votes |
public static TenantManager getTenantManager() { PrivilegedCarbonContext carbonContext = PrivilegedCarbonContext.getThreadLocalCarbonContext(); RealmService realmService = (RealmService) carbonContext.getOSGiService(RealmService.class); return realmService.getTenantManager(); }
Example 8
Source File: StratosUserManagerUtils.java From attic-stratos with Apache License 2.0 | 4 votes |
public static TenantManager getTenantManager() { PrivilegedCarbonContext carbonContext = PrivilegedCarbonContext.getThreadLocalCarbonContext(); RealmService realmService = (RealmService) carbonContext.getOSGiService(RealmService.class); return realmService.getTenantManager(); }
Example 9
Source File: ServiceHolder.java From product-private-paas with Apache License 2.0 | 4 votes |
public static TenantManager getTenantManager() { PrivilegedCarbonContext carbonContext = PrivilegedCarbonContext.getThreadLocalCarbonContext(); RealmService realmService = (RealmService) carbonContext.getOSGiService(RealmService.class); return realmService.getTenantManager(); }