public class AuditEntry extends GrouperAPI implements Hib3GrouperVersioned, XmlImportable<AuditEntry>
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_ACT_AS_MEMBER_ID
constant for field name for: actAsMemberId
|
static String |
FIELD_AUDIT_TYPE_ID
constant for field name for: auditTypeId
|
static String |
FIELD_CONTEXT_ID
constant for field name for: contextId
|
static String |
FIELD_CREATED_ON_DB
constant for field name for: createdOnDb
|
static String |
FIELD_DESCRIPTION
constant for field name for: description
|
static String |
FIELD_DURATION_MICROSECONDS
constant for field name for: durationMicroseconds
|
static String |
FIELD_ENV_NAME
constant for field name for: envName
|
static String |
FIELD_GROUPER_ENGINE
constant for field name for: grouperEngine
|
static String |
FIELD_GROUPER_VERSION
constant for field name for: grouperVersion
|
static String |
FIELD_ID
constant for field name for: id
|
static String |
FIELD_INT01
constant for field name for: int01
|
static String |
FIELD_INT02
constant for field name for: int02
|
static String |
FIELD_INT03
constant for field name for: int03
|
static String |
FIELD_INT04
constant for field name for: int04
|
static String |
FIELD_INT05
constant for field name for: int05
|
static String |
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb
|
static String |
FIELD_LOGGED_IN_MEMBER_ID
constant for field name for: loggedInMemberId
|
static String |
FIELD_QUERY_COUNT
constant for field name for: queryCount
|
static String |
FIELD_SERVER_HOST
constant for field name for: serverHost
|
static String |
FIELD_SERVER_USER_NAME
constant for field name for: serverUserName
|
static String |
FIELD_STRING01
constant for field name for: string01
|
static String |
FIELD_STRING02
constant for field name for: string02
|
static String |
FIELD_STRING03
constant for field name for: string03
|
static String |
FIELD_STRING04
constant for field name for: string04
|
static String |
FIELD_STRING05
constant for field name for: string05
|
static String |
FIELD_STRING06
constant for field name for: string06
|
static String |
FIELD_STRING07
constant for field name for: string07
|
static String |
FIELD_STRING08
constant for field name for: string08
|
static String |
FIELD_USER_IP_ADDRESS
constant for field name for: userIpAddress
|
static String |
TABLE_GROUPER_AUDIT_ENTRY
name of the grouper audit entry table in the db
|
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Constructor and Description |
---|
AuditEntry()
construct
|
AuditEntry(AuditTypeIdentifier auditTypeIdentifier,
String... labelNamesAndValues)
construct, assign an id
|
Modifier and Type | Method and Description |
---|---|
void |
assignIntValue(AuditType auditType,
String label,
Long value) |
void |
assignStringValue(AuditType auditType,
String label,
String value) |
GrouperAPI |
clone()
deep clone the fields in this object
|
boolean |
equalsDeep(AuditEntry auditEntry)
see if one audit type is the same as another (not looking at last update, id, etc)
|
String |
getActAsMemberId()
member uuid of the user being acted as
|
AuditType |
getAuditType()
get the audit type, it better be there
|
String |
getAuditTypeId()
foreign key to the type of audit entry this is
|
String |
getContextId()
context id ties multiple db changes
|
Timestamp |
getCreatedOn()
when created
|
Long |
getCreatedOnDb()
when created
|
String |
getDescription()
description of what happened in paragraph form
|
long |
getDurationMicroseconds()
number of nanos that the duration of the context took
|
String |
getEnvName()
env label from grouper.properties
|
String |
getGrouperEngine()
WS, UI, loader, GSH, etc
|
String |
getGrouperVersion()
version of the grouper API, e.g.
|
String |
getId()
primary key uuid of this record
|
Long |
getInt01()
misc integer field 1
|
Long |
getInt02()
misc integer field 2
|
Long |
getInt03()
misc integer field 3
|
Long |
getInt04()
misc integer field 4
|
Long |
getInt05()
misc integer field 5
|
Timestamp |
getLastUpdated()
when last updated
|
Long |
getLastUpdatedDb()
when last updated
|
String |
getLoggedInMemberId()
member uuid of the user logged in to grouper ui or ws etc
|
int |
getQueryCount()
number of queries (count be db or otherwise)
|
String |
getServerHost()
host of the server that executed the transaction
|
String |
getServerUserName()
Username of the OS user running the API.
|
String |
getString01()
misc field 1
|
String |
getString02()
misc field 2
|
String |
getString03()
misc field 3
|
String |
getString04()
misc field 4
|
String |
getString05()
misc field 5
|
String |
getString06()
misc field 6
|
String |
getString07()
misc field 7
|
String |
getString08()
misc field 8
|
String |
getUserIpAddress()
ip address of user (from WS or UI etc)
|
void |
onPreSave(HibernateSession hibernateSession)
before a save (insert) occurs
|
void |
onPreUpdate(HibernateSession hibernateSession)
before an update occurs
|
String |
retrieveStringValue(AuditType auditType,
String label)
get a string value from name value pairs
|
String |
retrieveStringValue(String label)
get a string value from name value pairs
|
void |
saveOrUpdate(boolean copyContextData)
save or update this object
|
void |
setActAsMemberId(String actAsMemberUuid1)
member uuid of the user being acted as
|
void |
setAuditTypeId(String auditTypeId1)
foreign key to the type of audit entry this is
|
void |
setContextId(String contextId1)
context id ties multiple db changes
|
void |
setCreatedOn(Timestamp createdOn1)
when created
|
void |
setCreatedOnDb(Long createdOn1)
when created
|
void |
setDescription(String description1)
description of what happened in paragraph form
|
void |
setDurationMicroseconds(long durationMicroseconds1)
number of nanos that the duration of the context took
|
void |
setEnvName(String envLabel1)
env label from grouper.properties
|
void |
setGrouperEngine(String grouperSystem1)
WS, UI, loader, GSH, etc
|
void |
setGrouperVersion(String grouperVersion1)
version of the grouper API, e.g.
|
void |
setId(String id1)
primary key uuid of this record
|
void |
setInt01(Long int01a)
misc integer field 1
|
void |
setInt02(Long int02a)
misc integer field 2
|
void |
setInt03(Long int03a)
misc integer field 3
|
void |
setInt04(Long int04a)
misc integer field 4
|
void |
setInt05(Long int05a)
misc integer field 5
|
void |
setLastUpdated(Timestamp lastUpdated1)
when last updated
|
void |
setLastUpdatedDb(Long lastUpdated1)
when last updated
|
void |
setLoggedInMemberId(String loggedInMemberUuid)
member uuid of the user logged in to grouper ui or ws etc
|
void |
setQueryCount(int queryCount)
number of queries (count be db or otherwise)
|
void |
setServerHost(String serverHost1)
host of the server that executed the transaction
|
void |
setServerUserName(String serverUserName1)
Username of the OS user running the API.
|
void |
setString01(String string01a)
misc field 1
|
void |
setString02(String string02a)
misc field 2
|
void |
setString03(String string03a)
misc field 3
|
void |
setString04(String string04a)
misc field 4
|
void |
setString05(String string05a)
misc field 5
|
void |
setString06(String string06a)
misc field 6
|
void |
setString07(String string07a)
misc field 7
|
void |
setString08(String string08a)
misc field 8
|
void |
setUserIpAddress(String userIpAddress1)
ip address of user (from WS or UI etc)
|
String |
toString() |
String |
toStringDeep()
the string repre
|
String |
toStringReport(boolean extended) |
void |
truncate()
make sure this object will fit in the DB
|
void |
xmlCopyBusinessPropertiesToExisting(AuditEntry existingRecord)
copy business (non update) properties to an existing record
|
boolean |
xmlDifferentBusinessProperties(AuditEntry other)
see if the non update cols are different (e.g.
|
boolean |
xmlDifferentUpdateProperties(AuditEntry other)
see if the update cols are different (e.g.
|
String |
xmlGetId()
set id key in db
|
XmlImportable<AuditEntry> |
xmlRetrieveByIdOrKey()
retrieve from db by id or key.
|
AuditEntry |
xmlSaveBusinessProperties(AuditEntry existingRecord)
save the business properties (not update properties)
|
void |
xmlSaveUpdateProperties()
save the udpate properties (e.g.
|
void |
xmlSetId(String theId)
set id key in db
|
XmlExportAuditEntry |
xmlToExportAuditEntry(GrouperVersion grouperVersion)
convert to xml bean for export
|
String |
xmlToString()
convert to string for log
|
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onSave, onUpdate, setHibernateVersionNumber
public static final String FIELD_ACT_AS_MEMBER_ID
public static final String FIELD_AUDIT_TYPE_ID
public static final String FIELD_CONTEXT_ID
public static final String FIELD_CREATED_ON_DB
public static final String FIELD_DESCRIPTION
public static final String FIELD_DURATION_MICROSECONDS
public static final String FIELD_ENV_NAME
public static final String FIELD_GROUPER_ENGINE
public static final String FIELD_GROUPER_VERSION
public static final String FIELD_ID
public static final String FIELD_INT01
public static final String FIELD_INT02
public static final String FIELD_INT03
public static final String FIELD_INT04
public static final String FIELD_INT05
public static final String FIELD_LAST_UPDATED_DB
public static final String FIELD_LOGGED_IN_MEMBER_ID
public static final String FIELD_QUERY_COUNT
public static final String FIELD_SERVER_HOST
public static final String FIELD_SERVER_USER_NAME
public static final String FIELD_STRING01
public static final String FIELD_STRING02
public static final String FIELD_STRING03
public static final String FIELD_STRING04
public static final String FIELD_STRING05
public static final String FIELD_STRING06
public static final String FIELD_STRING07
public static final String FIELD_STRING08
public static final String FIELD_USER_IP_ADDRESS
public static final String TABLE_GROUPER_AUDIT_ENTRY
public AuditEntry()
public AuditEntry(AuditTypeIdentifier auditTypeIdentifier, String... labelNamesAndValues)
auditTypeIdentifier
- points to audit typelabelNamesAndValues
- alternate label name and valuepublic boolean equalsDeep(AuditEntry auditEntry)
auditEntry
- public String toString()
toString
in class Object
Object.toString()
public AuditType getAuditType()
public String toStringReport(boolean extended)
extended
- if all fields should be printedpublic void saveOrUpdate(boolean copyContextData)
copyContextData
- public void assignStringValue(AuditType auditType, String label, String value)
auditType
- label
- value
- public void assignIntValue(AuditType auditType, String label, Long value)
auditType
- label
- value
- public String getAuditTypeId()
public void setAuditTypeId(String auditTypeId1)
auditTypeId1
- public String getId()
public void setId(String id1)
id1
- public String getActAsMemberId()
public String getContextId()
public String getLoggedInMemberId()
public String getServerHost()
public String getUserIpAddress()
public void setActAsMemberId(String actAsMemberUuid1)
actAsMemberUuid1
- public void setContextId(String contextId1)
contextId1
- public void setLoggedInMemberId(String loggedInMemberUuid)
loggedInMemberUuid
- public void setServerHost(String serverHost1)
serverHost1
- public void setUserIpAddress(String userIpAddress1)
userIpAddress1
- public String getEnvName()
public void setEnvName(String envLabel1)
envLabel1
- public String getGrouperEngine()
public void setGrouperEngine(String grouperSystem1)
grouperSystem1
- public String getString01()
public void setString01(String string01a)
string01a
- public String getString02()
public void setString02(String string02a)
string02a
- public String getString03()
public void setString03(String string03a)
string03a
- public String getString04()
public void setString04(String string04a)
string04a
- public String getString05()
public void setString05(String string05a)
string05a
- public String getString06()
public void setString06(String string06a)
string06a
- public String getString07()
public void setString07(String string07a)
string07a
- public String getString08()
public void setString08(String string08a)
string08a
- public Long getInt01()
public void setInt01(Long int01a)
int01a
- public Long getInt02()
public void setInt02(Long int02a)
int02a
- public Long getInt03()
public void setInt03(Long int03a)
int03a
- public Long getInt04()
public void setInt04(Long int04a)
int04a
- public Long getInt05()
public void setInt05(Long int05a)
int05a
- public String getDescription()
public void setDescription(String description1)
description1
- public Timestamp getCreatedOn()
public Timestamp getLastUpdated()
public Long getCreatedOnDb()
public Long getLastUpdatedDb()
public void setCreatedOn(Timestamp createdOn1)
createdOn1
- public void setLastUpdated(Timestamp lastUpdated1)
lastUpdated1
- public void truncate()
public String getGrouperVersion()
public void setGrouperVersion(String grouperVersion1)
grouperVersion1
- public GrouperAPI clone()
GrouperAPI
clone
in interface GrouperCloneable
clone
in class GrouperAPI
GrouperAPI.clone()
public long getDurationMicroseconds()
public void setDurationMicroseconds(long durationMicroseconds1)
durationMicroseconds1
- public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave
in interface HibGrouperLifecycle
onPreSave
in class GrouperAPI
GrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreUpdate
in interface HibGrouperLifecycle
onPreUpdate
in class GrouperAPI
GrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public int getQueryCount()
public void setQueryCount(int queryCount)
queryCount
- public String getServerUserName()
public void setServerUserName(String serverUserName1)
serverUserName1
- public void setCreatedOnDb(Long createdOn1)
createdOn1
- public void setLastUpdatedDb(Long lastUpdated1)
lastUpdated1
- public String toStringDeep()
public XmlImportable<AuditEntry> xmlRetrieveByIdOrKey()
XmlImportable
xmlRetrieveByIdOrKey
in interface XmlImportable<AuditEntry>
XmlImportable.xmlRetrieveByIdOrKey()
public void xmlCopyBusinessPropertiesToExisting(AuditEntry existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting
in interface XmlImportableBase<AuditEntry>
XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)
public boolean xmlDifferentBusinessProperties(AuditEntry other)
XmlImportableBase
xmlDifferentBusinessProperties
in interface XmlImportableBase<AuditEntry>
other
- the one to compare withXmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)
public boolean xmlDifferentUpdateProperties(AuditEntry other)
XmlImportableBase
xmlDifferentUpdateProperties
in interface XmlImportableBase<AuditEntry>
other
- the one to compare withXmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)
public String xmlGetId()
XmlImportableBase
xmlGetId
in interface XmlImportableBase<AuditEntry>
XmlImportableBase.xmlGetId()
public AuditEntry xmlSaveBusinessProperties(AuditEntry existingRecord)
XmlImportableBase
xmlSaveBusinessProperties
in interface XmlImportableBase<AuditEntry>
existingRecord
- null if insert, the object if exists in DB
generally just copy the hibernate version number, and last updated to the
object and store itXmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)
public void xmlSaveUpdateProperties()
XmlImportableBase
xmlSaveUpdateProperties
in interface XmlImportableBase<AuditEntry>
XmlImportableBase.xmlSaveUpdateProperties()
public void xmlSetId(String theId)
XmlImportableBase
xmlSetId
in interface XmlImportableBase<AuditEntry>
XmlImportableBase.xmlSetId(java.lang.String)
public XmlExportAuditEntry xmlToExportAuditEntry(GrouperVersion grouperVersion)
grouperVersion
- public String retrieveStringValue(String label)
label
- public String retrieveStringValue(AuditType auditType, String label)
auditType
- label
- public String xmlToString()
XmlImportableBase
xmlToString
in interface XmlImportableBase<AuditEntry>
XmlImportableBase.xmlToString()
Copyright © 2016 Internet2. All rights reserved.