@Override public boolean queueRequest(Operation op){
  AuthorizationContext ctx=op.getAuthorizationContext();
  if (ctx == null) {
    op.fail(new IllegalArgumentException("no authorization context"));
    return true;
  }
  Claims claims=ctx.getClaims();
  if (claims == null) {
    op.fail(new IllegalArgumentException("no claims"));
    return true;
  }
  String subject=claims.getSubject();
  if (subject == null) {
    op.fail(new IllegalArgumentException("no subject"));
    return true;
  }
  if (op.hasPragmaDirective(Operation.PRAGMA_DIRECTIVE_CLEAR_AUTH_CACHE)) {
    return handleCacheClearRequest(op,subject);
  }
  if (subject.equals(SystemUserService.SELF_LINK)) {
    op.complete();
    return true;
  }
  if (ctx.getResourceQueryFilter(op.getAction()) != null) {
    op.complete();
    return true;
  }
  return false;
}

@ Override public boolean queueRequest ( Operation op ) { AuthorizationContext ctx = op . getAuthorizationContext ( ) ; if ( ctx == null ) { op . fail ( new IllegalArgumentException ( "no authorization context" ) ) ; return true ; } Claims claims = ctx . getClaims ( ) ; if ( claims == null ) { op . fail ( new IllegalArgumentException ( "no claims" ) ) ; return true ; } String subject = claims . getSubject ( ) ; if ( subject == null ) { op . fail ( new IllegalArgumentException ( "no subject" ) ) ; return true ; } if ( op . hasPragmaDirective ( Operation . PRAGMA_DIRECTIVE_CLEAR_AUTH_CACHE ) ) { return handleCacheClearRequest ( op , subject ) ; } if ( subject . equals ( SystemUserService . SELF_LINK ) ) { op . complete ( ) ; return true ; } if ( ctx . getResourceQueryFilter ( op . getAction ( ) ) != null ) { op . complete ( ) ; return true ; } return false ; }
the service host will invoke this method to allow a service to handle the request in - line or indicate it should be scheduled by service host .
