Example #1
0
 /**
  * 外部イベントログ出力用Eventオブジェクトを生成.
  *
  * @param reqBody JSON表現リクエストボディ
  * @param requestKey RequestKeyヘッダの値
  * @return Eventオブジェクト
  */
 protected Event createEvent(JSONEvent reqBody, String requestKey) {
   Event event = new Event();
   event.setLevel(reqBody.getLevel());
   event.setAction(reqBody.getAction());
   event.setObject(reqBody.getObject());
   event.setResult(reqBody.getResult());
   event.setRequestKey(requestKey);
   event.setName("client");
   event.setSchema(accessContext.getSchema());
   event.setSubject(accessContext.getSubject());
   return event;
 }
Example #2
0
 /**
  * 内部イベントログ出力用Eventオブジェクトを生成.
  *
  * @param reqBody JSON表現リクエストボディ
  * @param requestKey RequestKeyヘッダの値
  * @param accessContext accessContext
  * @return Eventオブジェクト
  */
 public static Event createEvent(
     JSONEvent reqBody, String requestKey, AccessContext accessContext) {
   Event event = new Event();
   event.setLevel(reqBody.getLevel());
   event.setAction(reqBody.getAction());
   event.setObject(reqBody.getObject());
   event.setResult(reqBody.getResult());
   event.setRequestKey(requestKey);
   event.setName("server");
   event.setSchema(accessContext.getSchema());
   event.setSubject(accessContext.getSubject());
   return event;
 }