Class XmlAuditEntry
java.lang.Object
edu.internet2.middleware.grouper.xml.userAudit.XmlAuditEntry
represents a user audit record. This is one unit of work that could
contain multiple operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringconstant for field name for: actAsMemberIdstatic final Stringconstant for field name for: auditTypeIdstatic final Stringconstant for field name for: contextIdstatic final Stringconstant for field name for: createdOnDbstatic final Stringconstant for field name for: descriptionstatic final Stringconstant for field name for: durationMicrosecondsstatic final Stringconstant for field name for: envNamestatic final Stringconstant for field name for: grouperEnginestatic final Stringconstant for field name for: grouperVersionstatic final Stringconstant for field name for: idstatic final Stringconstant for field name for: int01static final Stringconstant for field name for: int02static final Stringconstant for field name for: int03static final Stringconstant for field name for: int04static final Stringconstant for field name for: int05static final Stringconstant for field name for: lastUpdatedDbstatic final Stringconstant for field name for: loggedInMemberIdstatic final Stringconstant for field name for: queryCountstatic final Stringconstant for field name for: serverHoststatic final Stringconstant for field name for: serverUserNamestatic final Stringconstant for field name for: string01static final Stringconstant for field name for: string02static final Stringconstant for field name for: string03static final Stringconstant for field name for: string04static final Stringconstant for field name for: string05static final Stringconstant for field name for: string06static final Stringconstant for field name for: string07static final Stringconstant for field name for: string08static final Stringconstant for field name for: userIpAddress -
Constructor Summary
ConstructorsConstructorDescriptionconstructXmlAuditEntry(AuditEntry auditEntry) construct based on xml audit type -
Method Summary
Modifier and TypeMethodDescriptionmember uuid of the user being acted asforeign key to the type of audit entry this iscontext id ties multiple db changeswhen createdwhen createddescription of what happened in paragraph formlongnumber of nanos that the duration of the context tookenv label from grouper.propertiesWS, UI, loader, GSH, etcversion of the grouper API, e.g.getId()primary key uuid of this recordgetInt01()misc integer field 1getInt02()misc integer field 2getInt03()misc integer field 3getInt04()misc integer field 4getInt05()misc integer field 5when last updatedwhen last updatedmember uuid of the user logged in to grouper ui or ws etcintnumber of queries (count be db or otherwise)host of the server that executed the transactionUsername of the OS user running the API.misc field 1misc field 2misc field 3misc field 4misc field 5misc field 6misc field 7misc field 8ip address of user (from WS or UI etc)voidsetActAsMemberId(String actAsMemberUuid1) member uuid of the user being acted asvoidsetAuditTypeId(String auditTypeId1) foreign key to the type of audit entry this isvoidsetContextId(String contextId1) context id ties multiple db changesvoidsetCreatedOn(Timestamp createdOn1) when createdvoidsetCreatedOnDb(Long createdOn1) when createdvoidsetDescription(String description1) description of what happened in paragraph formvoidsetDurationMicroseconds(long durationMicroseconds1) number of nanos that the duration of the context tookvoidsetEnvName(String envLabel1) env label from grouper.propertiesvoidsetGrouperEngine(String grouperSystem1) WS, UI, loader, GSH, etcvoidsetGrouperVersion(String grouperVersion1) version of the grouper API, e.g.voidprimary key uuid of this recordvoidmisc integer field 1voidmisc integer field 2voidmisc integer field 3voidmisc integer field 4voidmisc integer field 5voidsetLastUpdated(Timestamp lastUpdated1) when last updatedvoidsetLastUpdatedDb(Long lastUpdated1) when last updatedvoidsetLoggedInMemberId(String loggedInMemberUuid) member uuid of the user logged in to grouper ui or ws etcvoidsetQueryCount(int queryCount) number of queries (count be db or otherwise)voidsetServerHost(String serverHost1) host of the server that executed the transactionvoidsetServerUserName(String serverUserName1) Username of the OS user running the API.voidsetString01(String string01a) misc field 1voidsetString02(String string02a) misc field 2voidsetString03(String string03a) misc field 3voidsetString04(String string04a) misc field 4voidsetString05(String string05a) misc field 5voidsetString06(String string06a) misc field 6voidsetString07(String string07a) misc field 7voidsetString08(String string08a) misc field 8voidsetUserIpAddress(String userIpAddress1) ip address of user (from WS or UI etc)construct based on xml audit entry
-
Field Details
-
FIELD_ACT_AS_MEMBER_ID
constant for field name for: actAsMemberId- See Also:
-
FIELD_AUDIT_TYPE_ID
constant for field name for: auditTypeId- See Also:
-
FIELD_CONTEXT_ID
constant for field name for: contextId- See Also:
-
FIELD_CREATED_ON_DB
constant for field name for: createdOnDb- See Also:
-
FIELD_DESCRIPTION
constant for field name for: description- See Also:
-
FIELD_DURATION_MICROSECONDS
constant for field name for: durationMicroseconds- See Also:
-
FIELD_ENV_NAME
constant for field name for: envName- See Also:
-
FIELD_GROUPER_ENGINE
constant for field name for: grouperEngine- See Also:
-
FIELD_GROUPER_VERSION
constant for field name for: grouperVersion- See Also:
-
FIELD_ID
constant for field name for: id- See Also:
-
FIELD_INT01
constant for field name for: int01- See Also:
-
FIELD_INT02
constant for field name for: int02- See Also:
-
FIELD_INT03
constant for field name for: int03- See Also:
-
FIELD_INT04
constant for field name for: int04- See Also:
-
FIELD_INT05
constant for field name for: int05- See Also:
-
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb- See Also:
-
FIELD_LOGGED_IN_MEMBER_ID
constant for field name for: loggedInMemberId- See Also:
-
FIELD_QUERY_COUNT
constant for field name for: queryCount- See Also:
-
FIELD_SERVER_HOST
constant for field name for: serverHost- See Also:
-
FIELD_SERVER_USER_NAME
constant for field name for: serverUserName- See Also:
-
FIELD_STRING01
constant for field name for: string01- See Also:
-
FIELD_STRING02
constant for field name for: string02- See Also:
-
FIELD_STRING03
constant for field name for: string03- See Also:
-
FIELD_STRING04
constant for field name for: string04- See Also:
-
FIELD_STRING05
constant for field name for: string05- See Also:
-
FIELD_STRING06
constant for field name for: string06- See Also:
-
FIELD_STRING07
constant for field name for: string07- See Also:
-
FIELD_STRING08
constant for field name for: string08- See Also:
-
FIELD_USER_IP_ADDRESS
constant for field name for: userIpAddress- See Also:
-
-
Constructor Details
-
XmlAuditEntry
construct based on xml audit type- Parameters:
auditEntry-
-
XmlAuditEntry
public XmlAuditEntry()construct
-
-
Method Details
-
toAuditEntry
construct based on xml audit entry- Returns:
- the audit entry with all this data in there
-
getAuditTypeId
foreign key to the type of audit entry this is- Returns:
- the audit type id
-
setAuditTypeId
foreign key to the type of audit entry this is- Parameters:
auditTypeId1-
-
getId
primary key uuid of this record- Returns:
- the id
-
setId
primary key uuid of this record- Parameters:
id1-
-
getActAsMemberId
member uuid of the user being acted as- Returns:
- uuid
-
getContextId
context id ties multiple db changes- Returns:
- id
-
getLoggedInMemberId
member uuid of the user logged in to grouper ui or ws etc- Returns:
- uuid
-
getServerHost
host of the server that executed the transaction- Returns:
- host
-
getUserIpAddress
ip address of user (from WS or UI etc)- Returns:
- user ip address
-
setActAsMemberId
member uuid of the user being acted as- Parameters:
actAsMemberUuid1-
-
setContextId
context id ties multiple db changes- Parameters:
contextId1-
-
setLoggedInMemberId
member uuid of the user logged in to grouper ui or ws etc- Parameters:
loggedInMemberUuid-
-
setServerHost
host of the server that executed the transaction- Parameters:
serverHost1-
-
setUserIpAddress
ip address of user (from WS or UI etc)- Parameters:
userIpAddress1-
-
getEnvName
env label from grouper.properties- Returns:
- env label
-
setEnvName
env label from grouper.properties- Parameters:
envLabel1-
-
getGrouperEngine
WS, UI, loader, GSH, etc- Returns:
- grouper system
-
setGrouperEngine
WS, UI, loader, GSH, etc- Parameters:
grouperSystem1-
-
getString01
misc field 1- Returns:
- field
-
setString01
misc field 1- Parameters:
string01a-
-
getString02
misc field 2- Returns:
- field
-
setString02
misc field 2- Parameters:
string02a-
-
getString03
misc field 3- Returns:
- field
-
setString03
misc field 3- Parameters:
string03a-
-
getString04
misc field 4- Returns:
- field
-
setString04
misc field 4- Parameters:
string04a-
-
getString05
misc field 5- Returns:
- field
-
setString05
misc field 5- Parameters:
string05a-
-
getString06
misc field 6- Returns:
- field
-
setString06
misc field 6- Parameters:
string06a-
-
getString07
misc field 7- Returns:
- field
-
setString07
misc field 7- Parameters:
string07a-
-
getString08
misc field 8- Returns:
- field
-
setString08
misc field 8- Parameters:
string08a-
-
getInt01
misc integer field 1- Returns:
- field
-
setInt01
misc integer field 1- Parameters:
int01a-
-
getInt02
misc integer field 2- Returns:
- field
-
setInt02
misc integer field 2- Parameters:
int02a-
-
getInt03
misc integer field 3- Returns:
- field
-
setInt03
misc integer field 3- Parameters:
int03a-
-
getInt04
misc integer field 4- Returns:
- field
-
setInt04
misc integer field 4- Parameters:
int04a-
-
getInt05
misc integer field 5- Returns:
- field
-
setInt05
misc integer field 5- Parameters:
int05a-
-
getDescription
description of what happened in paragraph form- Returns:
- description
-
setDescription
description of what happened in paragraph form- Parameters:
description1-
-
getCreatedOn
when created- Returns:
- timestamp
-
getLastUpdated
when last updated- Returns:
- timestamp
-
getCreatedOnDb
when created- Returns:
- timestamp
-
getLastUpdatedDb
when last updated- Returns:
- timestamp
-
setCreatedOn
when created- Parameters:
createdOn1-
-
setLastUpdated
when last updated- Parameters:
lastUpdated1-
-
getGrouperVersion
version of the grouper API, e.g. 1.4.0- Returns:
- version
-
setGrouperVersion
version of the grouper API, e.g. 1.4.0- Parameters:
grouperVersion1-
-
getDurationMicroseconds
public long getDurationMicroseconds()number of nanos that the duration of the context took- Returns:
- duration nanos
-
setDurationMicroseconds
public void setDurationMicroseconds(long durationMicroseconds1) number of nanos that the duration of the context took- Parameters:
durationMicroseconds1-
-
getQueryCount
public int getQueryCount()number of queries (count be db or otherwise)- Returns:
- query count
-
setQueryCount
public void setQueryCount(int queryCount) number of queries (count be db or otherwise)- Parameters:
queryCount-
-
getServerUserName
Username of the OS user running the API. This might identify who ran a GSH call- Returns:
- server user name
-
setServerUserName
Username of the OS user running the API. This might identify who ran a GSH call- Parameters:
serverUserName1-
-
setCreatedOnDb
when created- Parameters:
createdOn1-
-
setLastUpdatedDb
when last updated- Parameters:
lastUpdated1-
-