|
|
@ -49,7 +49,7 @@ public class TenantCreateObserver extends AbstractAxis2ConfigurationContextObser
|
|
|
|
DeviceManagementDataHolder.getInstance().getRealmService().getTenantUserRealm(tenantId)
|
|
|
|
DeviceManagementDataHolder.getInstance().getRealmService().getTenantUserRealm(tenantId)
|
|
|
|
.getUserStoreManager();
|
|
|
|
.getUserStoreManager();
|
|
|
|
String tenantAdminName = userRealm.getRealmConfiguration().getAdminUserName();
|
|
|
|
String tenantAdminName = userRealm.getRealmConfiguration().getAdminUserName();
|
|
|
|
userStoreManager.addRole(User.DEFAULT_DEVICE_USER, null, User.PERMISSIONS_FOR_DEVICE_USER);
|
|
|
|
userStoreManager.addRole(User.DEFAULT_DEVICE_USER, new String[]{tenantAdminName}, User.PERMISSIONS_FOR_DEVICE_USER);
|
|
|
|
userStoreManager.addRole(User.DEFAULT_DEVICE_ADMIN, new String[]{tenantAdminName},
|
|
|
|
userStoreManager.addRole(User.DEFAULT_DEVICE_ADMIN, new String[]{tenantAdminName},
|
|
|
|
User.PERMISSIONS_FOR_DEVICE_ADMIN);
|
|
|
|
User.PERMISSIONS_FOR_DEVICE_ADMIN);
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|