public class AuditType extends GrouperAPI implements Hib3GrouperVersioned, XmlImportable<AuditType>
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_ACTION_NAME
constant for field name for: actionName
|
static String |
FIELD_AUDIT_CATEGORY
constant for field name for: auditCategory
|
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_ID
constant for field name for: id
|
static String |
FIELD_LABEL_INT01
constant for field name for: labelInt01
|
static String |
FIELD_LABEL_INT02
constant for field name for: labelInt02
|
static String |
FIELD_LABEL_INT03
constant for field name for: labelInt03
|
static String |
FIELD_LABEL_INT04
constant for field name for: labelInt04
|
static String |
FIELD_LABEL_INT05
constant for field name for: labelInt05
|
static String |
FIELD_LABEL_STRING01
constant for field name for: labelString01
|
static String |
FIELD_LABEL_STRING02
constant for field name for: labelString02
|
static String |
FIELD_LABEL_STRING03
constant for field name for: labelString03
|
static String |
FIELD_LABEL_STRING04
constant for field name for: labelString04
|
static String |
FIELD_LABEL_STRING05
constant for field name for: labelString05
|
static String |
FIELD_LABEL_STRING06
constant for field name for: labelString06
|
static String |
FIELD_LABEL_STRING07
constant for field name for: labelString07
|
static String |
FIELD_LABEL_STRING08
constant for field name for: labelString08
|
static String |
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb
|
static String |
TABLE_GROUPER_AUDIT_TYPE
name of the grouper audit type table in the db
|
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER| Constructor and Description |
|---|
AuditType()
empty constructor
|
AuditType(String auditCategory1,
String actionName1,
String labelInt01a,
String... labelStrings)
construct with more params
|
| Modifier and Type | Method and Description |
|---|---|
GrouperAPI |
clone()
deep clone the fields in this object
|
void |
copyArgFieldIntoThis(AuditType auditType)
copy the argument into this
|
boolean |
equals(Object obj) |
boolean |
equalsDeep(AuditType auditType)
see if one audit type is the same as another (not looking at last update, id, etc)
|
String |
getActionName()
action within the audit category
|
String |
getAuditCategory()
category of audit
|
String |
getContextId()
context id ties multiple db changes
|
Timestamp |
getCreatedOn()
when created
|
Long |
getCreatedOnDb()
when created
|
String |
getId()
uuid of row
|
String |
getLabelInt01()
label for int01
|
String |
getLabelInt02()
label for int02
|
String |
getLabelInt03()
label for int03
|
String |
getLabelInt04()
label for int04
|
String |
getLabelInt05()
label for int05
|
String |
getLabelString01()
label for string01
|
String |
getLabelString02()
label for string02
|
String |
getLabelString03()
label for string03
|
String |
getLabelString04()
label for string04
|
String |
getLabelString05()
label for string05
|
String |
getLabelString06()
label for the string06 field
|
String |
getLabelString07()
label for the string07 field
|
String |
getLabelString08()
label for the string08 field
|
Timestamp |
getLastUpdated()
when last updated
|
Long |
getLastUpdatedDb()
when last updated
|
int |
hashCode() |
Set<String> |
labels()
labels for this type
|
void |
onPreSave(HibernateSession hibernateSession)
before a save (insert) occurs
|
void |
onPreUpdate(HibernateSession hibernateSession)
before an update occurs
|
String |
retrieveAuditEntryFieldForLabel(String label)
get the field in audit entry for this label
|
String |
retrieveAuditEntryFieldForLabel(String label,
boolean exceptionIfNotFound)
get the field in audit entry for this label
|
void |
setActionName(String actionName)
action within the audit category
|
void |
setAuditCategory(String auditType1)
category of audit
|
void |
setContextId(String contextId1)
context id ties multiple db changes
|
void |
setCreatedOn(Timestamp createdOn1)
when created
|
void |
setCreatedOnDb(Long createdOn1)
when created
|
void |
setId(String id1)
uuid of row
|
void |
setLabelInt01(String labelInt01a)
label for int01
|
void |
setLabelInt02(String labelInt02a)
label for int02
|
void |
setLabelInt03(String labelInt03a)
label for int03
|
void |
setLabelInt04(String labelInt04a)
label for int04
|
void |
setLabelInt05(String labelInt05)
label for int05
|
void |
setLabelString01(String labelString01a)
label for string01
|
void |
setLabelString02(String labelString02a)
label for string02
|
void |
setLabelString03(String labelString03a)
label for string03
|
void |
setLabelString04(String labelString04a)
label for string04
|
void |
setLabelString05(String labelString05a)
label for string05
|
void |
setLabelString06(String labelString06a)
label for the string06 field
|
void |
setLabelString07(String labelString07a)
label for the string07 field
|
void |
setLabelString08(String labelString08a)
label for the string08 field
|
void |
setLastUpdated(Timestamp lastUpdated1)
when last updated
|
void |
setLastUpdatedDb(Long lastUpdated1)
when last updated
|
String |
toString() |
String |
toStringDeep()
the string repre
|
void |
truncate()
make sure this object will fit in the DB
|
void |
xmlCopyBusinessPropertiesToExisting(AuditType existingRecord)
copy business (non update) properties to an existing record
|
boolean |
xmlDifferentBusinessProperties(AuditType other)
see if the non update cols are different (e.g.
|
boolean |
xmlDifferentUpdateProperties(AuditType other)
see if the update cols are different (e.g.
|
String |
xmlGetId()
set id key in db
|
XmlImportable<AuditType> |
xmlRetrieveByIdOrKey()
retrieve from db by id or key.
|
AuditType |
xmlSaveBusinessProperties(AuditType 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
|
XmlExportAuditType |
xmlToExportAuditType(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, setHibernateVersionNumberpublic static final String FIELD_ACTION_NAME
public static final String FIELD_AUDIT_CATEGORY
public static final String FIELD_CONTEXT_ID
public static final String FIELD_CREATED_ON_DB
public static final String FIELD_ID
public static final String FIELD_LABEL_INT01
public static final String FIELD_LABEL_INT02
public static final String FIELD_LABEL_INT03
public static final String FIELD_LABEL_INT04
public static final String FIELD_LABEL_INT05
public static final String FIELD_LABEL_STRING01
public static final String FIELD_LABEL_STRING02
public static final String FIELD_LABEL_STRING03
public static final String FIELD_LABEL_STRING04
public static final String FIELD_LABEL_STRING05
public static final String FIELD_LABEL_STRING06
public static final String FIELD_LABEL_STRING07
public static final String FIELD_LABEL_STRING08
public static final String FIELD_LAST_UPDATED_DB
public static final String TABLE_GROUPER_AUDIT_TYPE
public boolean equalsDeep(AuditType auditType)
auditType - public String retrieveAuditEntryFieldForLabel(String label)
label - public String retrieveAuditEntryFieldForLabel(String label, boolean exceptionIfNotFound)
label - exceptionIfNotFound - true if exception if not foundpublic void copyArgFieldIntoThis(AuditType auditType)
auditType - public String toStringDeep()
public String toString()
toString in class ObjectObject.toString()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public String getId()
public void setId(String id1)
id1 - public String getAuditCategory()
public void setAuditCategory(String auditType1)
auditType1 - public String getActionName()
public void setActionName(String actionName)
actionName - public Timestamp getLastUpdated()
public Long getLastUpdatedDb()
public void setLastUpdated(Timestamp lastUpdated1)
lastUpdated1 - public void setLastUpdatedDb(Long lastUpdated1)
lastUpdated1 - public Timestamp getCreatedOn()
public Long getCreatedOnDb()
public void setCreatedOn(Timestamp createdOn1)
createdOn1 - public void setCreatedOnDb(Long createdOn1)
createdOn1 - public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycleonPreSave in interface HibGrouperLifecycleonPreSave in class GrouperAPIGrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycleonPreUpdate in interface HibGrouperLifecycleonPreUpdate in class GrouperAPIGrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)public String getLabelString01()
public void setLabelString01(String labelString01a)
labelString01a - public String getLabelString02()
public void setLabelString02(String labelString02a)
labelString02a - public String getLabelString03()
public void setLabelString03(String labelString03a)
labelString03a - public String getLabelString04()
public void setLabelString04(String labelString04a)
labelString04a - public String getLabelString05()
public void setLabelString05(String labelString05a)
labelString05a - public String getContextId()
public void setContextId(String contextId1)
contextId1 - public String getLabelInt01()
public void setLabelInt01(String labelInt01a)
labelInt01a - public String getLabelInt02()
public void setLabelInt02(String labelInt02a)
labelInt02a - public String getLabelInt03()
public void setLabelInt03(String labelInt03a)
labelInt03a - public String getLabelInt04()
public void setLabelInt04(String labelInt04a)
labelInt04a - public String getLabelInt05()
public void setLabelInt05(String labelInt05)
labelInt05 - public void truncate()
public String getLabelString06()
public void setLabelString06(String labelString06a)
labelString06a - public String getLabelString07()
public void setLabelString07(String labelString07a)
labelString07a - public String getLabelString08()
public void setLabelString08(String labelString08a)
labelString08a - public GrouperAPI clone()
GrouperAPIclone in interface GrouperCloneableclone in class GrouperAPIGrouperAPI.clone()public XmlImportable<AuditType> xmlRetrieveByIdOrKey()
XmlImportablexmlRetrieveByIdOrKey in interface XmlImportable<AuditType>XmlImportable.xmlRetrieveByIdOrKey()public void xmlCopyBusinessPropertiesToExisting(AuditType existingRecord)
XmlImportableBasexmlCopyBusinessPropertiesToExisting in interface XmlImportableBase<AuditType>XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)public boolean xmlDifferentBusinessProperties(AuditType other)
XmlImportableBasexmlDifferentBusinessProperties in interface XmlImportableBase<AuditType>other - the one to compare withXmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)public boolean xmlDifferentUpdateProperties(AuditType other)
XmlImportableBasexmlDifferentUpdateProperties in interface XmlImportableBase<AuditType>other - the one to compare withXmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)public String xmlGetId()
XmlImportableBasexmlGetId in interface XmlImportableBase<AuditType>XmlImportableBase.xmlGetId()public AuditType xmlSaveBusinessProperties(AuditType existingRecord)
XmlImportableBasexmlSaveBusinessProperties in interface XmlImportableBase<AuditType>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()
XmlImportableBasexmlSaveUpdateProperties in interface XmlImportableBase<AuditType>XmlImportableBase.xmlSaveUpdateProperties()public void xmlSetId(String theId)
XmlImportableBasexmlSetId in interface XmlImportableBase<AuditType>XmlImportableBase.xmlSetId(java.lang.String)public XmlExportAuditType xmlToExportAuditType(GrouperVersion grouperVersion)
grouperVersion - public String xmlToString()
XmlImportableBasexmlToString in interface XmlImportableBase<AuditType>XmlImportableBase.xmlToString()Copyright © 2016 Internet2. All rights reserved.