private boolean isUserActive(String uid) throws NotFoundException {
  try {
    AMIdentity userIdentity=new AMIdentity(RestUtils.getToken(),uid);
    if (debug.messageEnabled()) {
      debug.message("IdentityResource.isUserActive() : UID={} isActive={}",uid,userIdentity.isActive());
    }
    return userIdentity.isActive();
  }
 catch (  IdRepoException idre) {
    if (debug.errorEnabled()) {
      debug.error("IdentityResource.isUserActive() : Invalid UID={}",uid,idre);
    }
    throw new NotFoundException("Invalid UID, could not retrieved " + uid,idre);
  }
catch (  SSOException ssoe) {
    if (debug.errorEnabled()) {
      debug.error("IdentityResource.isUserActive() : Invalid SSOToken",ssoe);
    }
    throw new NotFoundException("Invalid SSOToken " + ssoe.getMessage(),ssoe);
  }
}

private boolean isUserActive ( String uid ) throws NotFoundException { try { AMIdentity userIdentity = new AMIdentity ( RestUtils . getToken ( ) , uid ) ; if ( debug . messageEnabled ( ) ) { debug . message ( "IdentityResource.isUserActive() : UID={} isActive={}" , uid , userIdentity . isActive ( ) ) ; } return userIdentity . isActive ( ) ; } catch ( IdRepoException idre ) { if ( debug . errorEnabled ( ) ) { debug . error ( "IdentityResource.isUserActive() : Invalid UID={}" , uid , idre ) ; } throw new NotFoundException ( "Invalid UID, could not retrieved " + uid , idre ) ; } catch ( SSOException ssoe ) { if ( debug . errorEnabled ( ) ) { debug . error ( "IdentityResource.isUserActive() : Invalid SSOToken" , ssoe ) ; } throw new NotFoundException ( "Invalid SSOToken " + ssoe . getMessage ( ) , ssoe ) ; } }
uses an amadmin ssotoken to create an amidentity from the uid provided and checks whether the amidentity in context is active / inactive
