the usermanager interface expects only one admin . the first admin to login receives adminstatus for this usermanager concode_field_sep Logger LOGGER concode_elem_sep String karafLocalRoles concode_elem_sep int MAX_IDLE_TIME_SECONDS concode_elem_sep String admin concode_elem_sep SecurityManager securityManager concode_elem_sep String uploadDirectory concode_elem_sep Map<String,User> users concode_field_sep String[] getAllUserNames concode_elem_sep User authenticate concode_elem_sep User updateUserSubject concode_elem_sep void notNull concode_elem_sep void save concode_elem_sep boolean doesExist concode_elem_sep boolean checkAdmin concode_elem_sep boolean isAdmin concode_elem_sep void delete concode_elem_sep void setUploadDirectory concode_elem_sep User getUserByName concode_elem_sep FtpUser createUser concode_elem_sep String[] usersToStringArray concode_elem_sep String getAdminName concode_elem_sep void setKarafLocalRoles
void function ( User arg0 ) { if ( StringUtils . isEmpty ( this . admin ) ) { Subject loc0 = ( ( FtpUser ) arg0 ) . getSubject ( ) ; for ( String loc1 : karafLocalRoles . split ( "srini_string" ) ) { if ( loc1 . equalsIgnoreCase ( "srini_string" ) && loc0 . hasRole ( loc1 ) ) { this . admin = arg0 . getName ( ) ; } } } }