private void registerQuickStartSecurityAdministratorRole ( ) { if ( bc == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "BundleContext is null, we must be deactivated." ) ; } return ; } if ( managementRoleReg != null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "QuickStartSecurityAdministratorRole is already registered." ) ; } return ; } if ( urConfigReg == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "QuickStartSecurityRegistry configuration is not registered, will not register QuickStartSecurityAdministratorRole." ) ; } return ; } if ( isStringValueUndefined ( config . userName ( ) ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "User is not set, can not register the QuickStartSecurityAdministratorRole" ) ; } return ; } if ( ! managementRoles . isEmpty ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Other managment roles are present, will not register the QuickStartSecurityAdministratorRole" ) ; } return ; } Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; props . put ( ManagementRole . MANAGEMENT_ROLE_NAME , QUICK_START_ADMINISTRATOR_ROLE_NAME ) ; props . put ( "service.vendor" , "IBM" ) ; managementRole = new QuickStartSecurityAdministratorRole ( config . userName ( ) ) ; managementRoleReg = bc . registerService ( ManagementRole . class , managementRole , props ) ; }
Register the quick start security management role .