public boolean isSuperUser(String uuid){
  boolean isSuperUser=false;
  try {
    AMIdentity adminUserId=null;
    String adminUser=SystemProperties.get(Constants.AUTHENTICATION_SUPER_USER);
    if (adminUser != null) {
      adminUserId=new AMIdentity(dsameAdminTokenProvider.getAdminToken(),adminUser,IdType.USER,"/",null);
    }
    AMIdentity user=IdUtils.getIdentity(dsameAdminTokenProvider.getAdminToken(),uuid);
    isSuperUser=adminUserId.equals(user);
  }
 catch (  SSOException ssoe) {
    sessionDebug.error("SessionService.isSuperUser: Cannot get the admin token for this operation.");
  }
catch (  IdRepoException idme) {
    sessionDebug.error("SessionService.isSuperUser: Cannot get the user identity.");
  }
  if (sessionDebug.messageEnabled()) {
    sessionDebug.message("SessionService.isSuperUser: " + isSuperUser);
  }
  return isSuperUser;
}

public boolean isSuperUser ( String uuid ) { boolean isSuperUser = false ; try { AMIdentity adminUserId = null ; String adminUser = SystemProperties . get ( Constants . AUTHENTICATION_SUPER_USER ) ; if ( adminUser != null ) { adminUserId = new AMIdentity ( dsameAdminTokenProvider . getAdminToken ( ) , adminUser , IdType . USER , "/" , null ) ; } AMIdentity user = IdUtils . getIdentity ( dsameAdminTokenProvider . getAdminToken ( ) , uuid ) ; isSuperUser = adminUserId . equals ( user ) ; } catch ( SSOException ssoe ) { sessionDebug . error ( "SessionService.isSuperUser: Cannot get the admin token for this operation." ) ; } catch ( IdRepoException idme ) { sessionDebug . error ( "SessionService.isSuperUser: Cannot get the user identity." ) ; } if ( sessionDebug . messageEnabled ( ) ) { sessionDebug . message ( "SessionService.isSuperUser: " + isSuperUser ) ; } return isSuperUser ; }
returns true if the user is super user
