public class AuditEvent extends ObjectSE implements SerializableSE
ユーザーは、AuditEventRepository
を挿入して独自のイベントを公開するか、Spring の ApplicationEventPublisher
(通常は ApplicationEventPublisherAware
を実装することによって取得)を使用して AuditApplicationEvents(AuditEvent のラッパー)を公開できます。
AuditEventRepository
, 直列化された形式 コンストラクターと説明 |
---|
AuditEvent(InstantSE timestamp, StringSE principal, StringSE type, MapSE<StringSE, ObjectSE> data) 新しい監査イベントを作成します。 |
AuditEvent(StringSE principal, StringSE type, MapSE<StringSE, ObjectSE> data) 現在の時間の新しい監査イベントを作成します。 |
AuditEvent(StringSE principal, StringSE type, StringSE... data) 名前と値のペアとして提供されたデータから、現在の時間の新しい監査イベントを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
MapSE<StringSE, ObjectSE> | getData() イベントデータを返します。 |
StringSE | getPrincipal() イベントを担当するユーザープリンシパルを返します。プリンシパルが利用できない場合は空の文字列を返します。 |
InstantSE | getTimestamp() イベントが記録された日付 / 時刻を返します。 |
StringSE | getType() イベントの型を返します。 |
StringSE | toString() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public AuditEvent(StringSE principal, StringSE type, MapSE<StringSE,ObjectSE> data)
principal
- 責任のあるユーザープリンシパル type
- イベント型 data
- イベントデータ public AuditEvent(StringSE principal, StringSE type, StringSE... data)
principal
- 責任のあるユーザープリンシパル type
- イベント型 data
- "key = value" または単に "key" の形式のイベントデータ public InstantSE getTimestamp()
public StringSE getPrincipal()
public StringSE getType()
public StringSE toString()
ObjectSE
の toStringSE
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.