Class AuditType
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.audit.AuditType
- All Implemented Interfaces:
HibGrouperLifecycle
,Hib3GrouperVersioned
,GrouperCloneable
,GrouperUtil.FieldValuable
,XmlImportable<AuditType>
,XmlImportableBase<AuditType>
,Serializable
,org.hibernate.classic.Lifecycle
type of audit
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
constant for field name for: actionNamestatic final String
constant for field name for: auditCategorystatic final String
constant for field name for: contextIdstatic final String
constant for field name for: createdOnDbstatic final String
constant for field name for: idstatic final String
constant for field name for: labelInt01static final String
constant for field name for: labelInt02static final String
constant for field name for: labelInt03static final String
constant for field name for: labelInt04static final String
constant for field name for: labelInt05static final String
constant for field name for: labelString01static final String
constant for field name for: labelString02static final String
constant for field name for: labelString03static final String
constant for field name for: labelString04static final String
constant for field name for: labelString05static final String
constant for field name for: labelString06static final String
constant for field name for: labelString07static final String
constant for field name for: labelString08static final String
constant for field name for: lastUpdatedDbstatic final String
name of the grouper audit type table in the dbFields inherited from class edu.internet2.middleware.grouper.GrouperAPI
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
deep clone the fields in this objectvoid
copyArgFieldIntoThis
(AuditType auditType) copy the argument into thisboolean
boolean
equalsDeep
(AuditType auditType) see if one audit type is the same as another (not looking at last update, id, etc)action within the audit categorycategory of auditcontext id ties multiple db changeswhen createdwhen createdgetId()
uuid of rowlabel for int01label for int02label for int03label for int04label for int05label for string01label for string02label for string03label for string04label for string05label for the string06 fieldlabel for the string07 fieldlabel for the string08 fieldwhen last updatedwhen last updatedint
hashCode()
labels()
labels for this typevoid
onPreSave
(HibernateSession hibernateSession) before a save (insert) occursvoid
onPreUpdate
(HibernateSession hibernateSession) before an update occursget the field in audit entry for this labelretrieveAuditEntryFieldForLabel
(String label, boolean exceptionIfNotFound) get the field in audit entry for this labelvoid
setActionName
(String actionName) action within the audit categoryvoid
setAuditCategory
(String auditType1) category of auditvoid
setContextId
(String contextId1) context id ties multiple db changesvoid
setCreatedOn
(Timestamp createdOn1) when createdvoid
setCreatedOnDb
(Long createdOn1) when createdvoid
uuid of rowvoid
setLabelInt01
(String labelInt01a) label for int01void
setLabelInt02
(String labelInt02a) label for int02void
setLabelInt03
(String labelInt03a) label for int03void
setLabelInt04
(String labelInt04a) label for int04void
setLabelInt05
(String labelInt05) label for int05void
setLabelString01
(String labelString01a) label for string01void
setLabelString02
(String labelString02a) label for string02void
setLabelString03
(String labelString03a) label for string03void
setLabelString04
(String labelString04a) label for string04void
setLabelString05
(String labelString05a) label for string05void
setLabelString06
(String labelString06a) label for the string06 fieldvoid
setLabelString07
(String labelString07a) label for the string07 fieldvoid
setLabelString08
(String labelString08a) label for the string08 fieldvoid
setLastUpdated
(Timestamp lastUpdated1) when last updatedvoid
setLastUpdatedDb
(Long lastUpdated1) when last updatedtoString()
the string reprevoid
truncate()
make sure this object will fit in the DBvoid
xmlCopyBusinessPropertiesToExisting
(AuditType existingRecord) copy business (non update) properties to an existing recordboolean
see if the non update cols are different (e.g.boolean
see if the update cols are different (e.g.xmlGetId()
set id key in dbretrieve from db by id or key.xmlSaveBusinessProperties
(AuditType existingRecord) save the business properties (not update properties)void
save the udpate properties (e.g.void
set id key in dbxmlToExportAuditType
(GrouperVersion grouperVersion) convert to xml bean for exportconvert to string for logMethods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onSave, onUpdate, setHibernateVersionNumber
-
Field Details
-
FIELD_ACTION_NAME
constant for field name for: actionName- See Also:
-
FIELD_AUDIT_CATEGORY
constant for field name for: auditCategory- 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_ID
constant for field name for: id- See Also:
-
FIELD_LABEL_INT01
constant for field name for: labelInt01- See Also:
-
FIELD_LABEL_INT02
constant for field name for: labelInt02- See Also:
-
FIELD_LABEL_INT03
constant for field name for: labelInt03- See Also:
-
FIELD_LABEL_INT04
constant for field name for: labelInt04- See Also:
-
FIELD_LABEL_INT05
constant for field name for: labelInt05- See Also:
-
FIELD_LABEL_STRING01
constant for field name for: labelString01- See Also:
-
FIELD_LABEL_STRING02
constant for field name for: labelString02- See Also:
-
FIELD_LABEL_STRING03
constant for field name for: labelString03- See Also:
-
FIELD_LABEL_STRING04
constant for field name for: labelString04- See Also:
-
FIELD_LABEL_STRING05
constant for field name for: labelString05- See Also:
-
FIELD_LABEL_STRING06
constant for field name for: labelString06- See Also:
-
FIELD_LABEL_STRING07
constant for field name for: labelString07- See Also:
-
FIELD_LABEL_STRING08
constant for field name for: labelString08- See Also:
-
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb- See Also:
-
TABLE_GROUPER_AUDIT_TYPE
name of the grouper audit type table in the db- See Also:
-
-
Constructor Details
-
Method Details
-
equalsDeep
see if one audit type is the same as another (not looking at last update, id, etc)- Parameters:
auditType
-- Returns:
- true if equals, false if not
-
labels
labels for this type- Returns:
- the labels
-
retrieveAuditEntryFieldForLabel
get the field in audit entry for this label- Parameters:
label
-- Returns:
- the field
-
retrieveAuditEntryFieldForLabel
get the field in audit entry for this label- Parameters:
label
-exceptionIfNotFound
- true if exception if not found- Returns:
- the field
-
copyArgFieldIntoThis
copy the argument into this- Parameters:
auditType
-
-
toStringDeep
the string repre- Returns:
- string
-
toString
-
equals
-
hashCode
public int hashCode() -
getId
uuid of row- Returns:
- id
-
setId
uuid of row- Parameters:
id1
-
-
getAuditCategory
category of audit- Returns:
- audit type
-
setAuditCategory
category of audit- Parameters:
auditType1
-
-
getActionName
action within the audit category- Returns:
- the action name
-
setActionName
action within the audit category- Parameters:
actionName
-
-
getLastUpdated
when last updated- Returns:
- timestamp
-
getLastUpdatedDb
when last updated- Returns:
- timestamp
-
setLastUpdated
when last updated- Parameters:
lastUpdated1
-
-
setLastUpdatedDb
when last updated- Parameters:
lastUpdated1
-
-
getCreatedOn
when created- Returns:
- timestamp
-
getCreatedOnDb
when created- Returns:
- timestamp
-
setCreatedOn
when created- Parameters:
createdOn1
-
-
setCreatedOnDb
when created- Parameters:
createdOn1
-
-
onPreSave
Description copied from interface:HibGrouperLifecycle
before a save (insert) occurs- Specified by:
onPreSave
in interfaceHibGrouperLifecycle
- Overrides:
onPreSave
in classGrouperAPI
- See Also:
-
onPreUpdate
Description copied from interface:HibGrouperLifecycle
before an update occurs- Specified by:
onPreUpdate
in interfaceHibGrouperLifecycle
- Overrides:
onPreUpdate
in classGrouperAPI
- See Also:
-
getLabelString01
label for string01- Returns:
- label
-
setLabelString01
label for string01- Parameters:
labelString01a
-
-
getLabelString02
label for string02- Returns:
- label
-
setLabelString02
label for string02- Parameters:
labelString02a
-
-
getLabelString03
label for string03- Returns:
- label
-
setLabelString03
label for string03- Parameters:
labelString03a
-
-
getLabelString04
label for string04- Returns:
- label
-
setLabelString04
label for string04- Parameters:
labelString04a
-
-
getLabelString05
label for string05- Returns:
- label
-
setLabelString05
label for string05- Parameters:
labelString05a
-
-
getContextId
context id ties multiple db changes- Returns:
- id
-
setContextId
context id ties multiple db changes- Parameters:
contextId1
-
-
getLabelInt01
label for int01- Returns:
- label
-
setLabelInt01
label for int01- Parameters:
labelInt01a
-
-
getLabelInt02
label for int02- Returns:
- label
-
setLabelInt02
label for int02- Parameters:
labelInt02a
-
-
getLabelInt03
label for int03- Returns:
- label
-
setLabelInt03
label for int03- Parameters:
labelInt03a
-
-
getLabelInt04
label for int04- Returns:
- label
-
setLabelInt04
label for int04- Parameters:
labelInt04a
-
-
getLabelInt05
label for int05- Returns:
- label
-
setLabelInt05
label for int05- Parameters:
labelInt05
-
-
truncate
public void truncate()make sure this object will fit in the DB -
getLabelString06
label for the string06 field- Returns:
- label
-
setLabelString06
label for the string06 field- Parameters:
labelString06a
-
-
getLabelString07
label for the string07 field- Returns:
- label
-
setLabelString07
label for the string07 field- Parameters:
labelString07a
-
-
getLabelString08
label for the string08 field- Returns:
- label
-
setLabelString08
label for the string08 field- Parameters:
labelString08a
-
-
clone
Description copied from class:GrouperAPI
deep clone the fields in this object- Specified by:
clone
in interfaceGrouperCloneable
- Specified by:
clone
in classGrouperAPI
- Returns:
- the clone of the object
- See Also:
-
xmlRetrieveByIdOrKey
Description copied from interface:XmlImportable
retrieve from db by id or key. throws exception if duplicate- Specified by:
xmlRetrieveByIdOrKey
in interfaceXmlImportable<AuditType>
- Returns:
- the object or null if not found
- See Also:
-
xmlCopyBusinessPropertiesToExisting
Description copied from interface:XmlImportableBase
copy business (non update) properties to an existing record- Specified by:
xmlCopyBusinessPropertiesToExisting
in interfaceXmlImportableBase<AuditType>
- See Also:
-
xmlDifferentBusinessProperties
Description copied from interface:XmlImportableBase
see if the non update cols are different (e.g. name)- Specified by:
xmlDifferentBusinessProperties
in interfaceXmlImportableBase<AuditType>
- Parameters:
other
- the one to compare with- Returns:
- true if so
- See Also:
-
xmlDifferentUpdateProperties
Description copied from interface:XmlImportableBase
see if the update cols are different (e.g. last updated)- Specified by:
xmlDifferentUpdateProperties
in interfaceXmlImportableBase<AuditType>
- Parameters:
other
- the one to compare with- Returns:
- true if so
- See Also:
-
xmlGetId
Description copied from interface:XmlImportableBase
set id key in db- Specified by:
xmlGetId
in interfaceXmlImportableBase<AuditType>
- Returns:
- id
- See Also:
-
xmlSaveBusinessProperties
Description copied from interface:XmlImportableBase
save the business properties (not update properties)- Specified by:
xmlSaveBusinessProperties
in interfaceXmlImportableBase<AuditType>
- Parameters:
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 it- Returns:
- the new object or existing
- See Also:
-
xmlSaveUpdateProperties
public void xmlSaveUpdateProperties()Description copied from interface:XmlImportableBase
save the udpate properties (e.g. last updated). Note, this is done with a sql update statement, not with hibernate- Specified by:
xmlSaveUpdateProperties
in interfaceXmlImportableBase<AuditType>
- See Also:
-
xmlSetId
Description copied from interface:XmlImportableBase
set id key in db- Specified by:
xmlSetId
in interfaceXmlImportableBase<AuditType>
- See Also:
-
xmlToExportAuditType
convert to xml bean for export- Parameters:
grouperVersion
-- Returns:
- xml bean
-
xmlToString
Description copied from interface:XmlImportableBase
convert to string for log- Specified by:
xmlToString
in interfaceXmlImportableBase<AuditType>
- Returns:
- the string value for log
- See Also:
-