|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.audit.AuditType
public class AuditType
type of audit
Field Summary | |
---|---|
static java.lang.String |
FIELD_ACTION_NAME
constant for field name for: actionName |
static java.lang.String |
FIELD_AUDIT_CATEGORY
constant for field name for: auditCategory |
static java.lang.String |
FIELD_CONTEXT_ID
constant for field name for: contextId |
static java.lang.String |
FIELD_CREATED_ON_DB
constant for field name for: createdOnDb |
static java.lang.String |
FIELD_ID
constant for field name for: id |
static java.lang.String |
FIELD_LABEL_INT01
constant for field name for: labelInt01 |
static java.lang.String |
FIELD_LABEL_INT02
constant for field name for: labelInt02 |
static java.lang.String |
FIELD_LABEL_INT03
constant for field name for: labelInt03 |
static java.lang.String |
FIELD_LABEL_INT04
constant for field name for: labelInt04 |
static java.lang.String |
FIELD_LABEL_INT05
constant for field name for: labelInt05 |
static java.lang.String |
FIELD_LABEL_STRING01
constant for field name for: labelString01 |
static java.lang.String |
FIELD_LABEL_STRING02
constant for field name for: labelString02 |
static java.lang.String |
FIELD_LABEL_STRING03
constant for field name for: labelString03 |
static java.lang.String |
FIELD_LABEL_STRING04
constant for field name for: labelString04 |
static java.lang.String |
FIELD_LABEL_STRING05
constant for field name for: labelString05 |
static java.lang.String |
FIELD_LABEL_STRING06
constant for field name for: labelString06 |
static java.lang.String |
FIELD_LABEL_STRING07
constant for field name for: labelString07 |
static java.lang.String |
FIELD_LABEL_STRING08
constant for field name for: labelString08 |
static java.lang.String |
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb |
static java.lang.String |
TABLE_GROUPER_AUDIT_TYPE
name of the grouper audit type table in the db |
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI |
---|
COLUMN_HIBERNATE_VERSION_NUMBER, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER |
Fields inherited from interface org.hibernate.classic.Lifecycle |
---|
NO_VETO, VETO |
Constructor Summary | |
---|---|
AuditType()
empty constructor |
|
AuditType(java.lang.String auditCategory1,
java.lang.String actionName1,
java.lang.String labelInt01a,
java.lang.String... labelStrings)
construct with more params |
Method Summary | |
---|---|
GrouperAPI |
clone()
deep clone the fields in this object |
void |
copyArgFieldIntoThis(AuditType auditType)
copy the argument into this |
boolean |
equals(java.lang.Object obj)
|
boolean |
equalsDeep(AuditType auditType)
see if one audit type is the same as another (not looking at last update, id, etc) |
java.lang.String |
getActionName()
action within the audit category |
java.lang.String |
getAuditCategory()
category of audit |
java.lang.String |
getContextId()
context id ties multiple db changes |
java.sql.Timestamp |
getCreatedOn()
when created |
java.lang.Long |
getCreatedOnDb()
when created |
java.lang.String |
getId()
uuid of row |
java.lang.String |
getLabelInt01()
label for int01 |
java.lang.String |
getLabelInt02()
label for int02 |
java.lang.String |
getLabelInt03()
label for int03 |
java.lang.String |
getLabelInt04()
label for int04 |
java.lang.String |
getLabelInt05()
label for int05 |
java.lang.String |
getLabelString01()
label for string01 |
java.lang.String |
getLabelString02()
label for string02 |
java.lang.String |
getLabelString03()
label for string03 |
java.lang.String |
getLabelString04()
label for string04 |
java.lang.String |
getLabelString05()
label for string05 |
java.lang.String |
getLabelString06()
label for the string06 field |
java.lang.String |
getLabelString07()
label for the string07 field |
java.lang.String |
getLabelString08()
label for the string08 field |
java.sql.Timestamp |
getLastUpdated()
when last updated |
java.lang.Long |
getLastUpdatedDb()
when last updated |
int |
hashCode()
|
java.util.Set<java.lang.String> |
labels()
labels for this type |
void |
onPreSave(HibernateSession hibernateSession)
before a save (insert) occurs |
void |
onPreUpdate(HibernateSession hibernateSession)
before an update occurs |
java.lang.String |
retrieveAuditEntryFieldForLabel(java.lang.String label)
get the field in audit entry for this label |
java.lang.String |
retrieveAuditEntryFieldForLabel(java.lang.String label,
boolean exceptionIfNotFound)
get the field in audit entry for this label |
void |
setActionName(java.lang.String actionName)
action within the audit category |
void |
setAuditCategory(java.lang.String auditType1)
category of audit |
void |
setContextId(java.lang.String contextId1)
context id ties multiple db changes |
void |
setCreatedOn(java.sql.Timestamp createdOn1)
when created |
void |
setCreatedOnDb(java.lang.Long createdOn1)
when created |
void |
setId(java.lang.String id1)
uuid of row |
void |
setLabelInt01(java.lang.String labelInt01a)
label for int01 |
void |
setLabelInt02(java.lang.String labelInt02a)
label for int02 |
void |
setLabelInt03(java.lang.String labelInt03a)
label for int03 |
void |
setLabelInt04(java.lang.String labelInt04a)
label for int04 |
void |
setLabelInt05(java.lang.String labelInt05)
label for int05 |
void |
setLabelString01(java.lang.String labelString01a)
label for string01 |
void |
setLabelString02(java.lang.String labelString02a)
label for string02 |
void |
setLabelString03(java.lang.String labelString03a)
label for string03 |
void |
setLabelString04(java.lang.String labelString04a)
label for string04 |
void |
setLabelString05(java.lang.String labelString05a)
label for string05 |
void |
setLabelString06(java.lang.String labelString06a)
label for the string06 field |
void |
setLabelString07(java.lang.String labelString07a)
label for the string07 field |
void |
setLabelString08(java.lang.String labelString08a)
label for the string08 field |
void |
setLastUpdated(java.sql.Timestamp lastUpdated1)
when last updated |
void |
setLastUpdatedDb(java.lang.Long lastUpdated1)
when last updated |
java.lang.String |
toString()
|
java.lang.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. name) |
boolean |
xmlDifferentUpdateProperties(AuditType other)
see if the update cols are different (e.g. last updated) |
java.lang.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. last updated). |
void |
xmlSetId(java.lang.String theId)
set id key in db |
XmlExportAuditType |
xmlToExportAuditType(GrouperVersion grouperVersion)
convert to xml bean for export |
java.lang.String |
xmlToString()
convert to string for log |
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI |
---|
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onSave, onUpdate, setHibernateVersionNumber |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FIELD_ACTION_NAME
public static final java.lang.String FIELD_AUDIT_CATEGORY
public static final java.lang.String FIELD_CONTEXT_ID
public static final java.lang.String FIELD_CREATED_ON_DB
public static final java.lang.String FIELD_ID
public static final java.lang.String FIELD_LABEL_INT01
public static final java.lang.String FIELD_LABEL_INT02
public static final java.lang.String FIELD_LABEL_INT03
public static final java.lang.String FIELD_LABEL_INT04
public static final java.lang.String FIELD_LABEL_INT05
public static final java.lang.String FIELD_LABEL_STRING01
public static final java.lang.String FIELD_LABEL_STRING02
public static final java.lang.String FIELD_LABEL_STRING03
public static final java.lang.String FIELD_LABEL_STRING04
public static final java.lang.String FIELD_LABEL_STRING05
public static final java.lang.String FIELD_LABEL_STRING06
public static final java.lang.String FIELD_LABEL_STRING07
public static final java.lang.String FIELD_LABEL_STRING08
public static final java.lang.String FIELD_LAST_UPDATED_DB
public static final java.lang.String TABLE_GROUPER_AUDIT_TYPE
Constructor Detail |
---|
public AuditType()
public AuditType(java.lang.String auditCategory1, java.lang.String actionName1, java.lang.String labelInt01a, java.lang.String... labelStrings)
auditCategory1
- actionName1
- labelInt01a
- labelStrings
- up to 8 label stringsMethod Detail |
---|
public boolean equalsDeep(AuditType auditType)
auditType
-
public java.util.Set<java.lang.String> labels()
public java.lang.String retrieveAuditEntryFieldForLabel(java.lang.String label)
label
-
public java.lang.String retrieveAuditEntryFieldForLabel(java.lang.String label, boolean exceptionIfNotFound)
label
- exceptionIfNotFound
- true if exception if not found
public void copyArgFieldIntoThis(AuditType auditType)
auditType
- public java.lang.String toStringDeep()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String getId()
public void setId(java.lang.String id1)
id1
- public java.lang.String getAuditCategory()
public void setAuditCategory(java.lang.String auditType1)
auditType1
- public java.lang.String getActionName()
public void setActionName(java.lang.String actionName)
actionName
- public java.sql.Timestamp getLastUpdated()
public java.lang.Long getLastUpdatedDb()
public void setLastUpdated(java.sql.Timestamp lastUpdated1)
lastUpdated1
- public void setLastUpdatedDb(java.lang.Long lastUpdated1)
lastUpdated1
- public java.sql.Timestamp getCreatedOn()
public java.lang.Long getCreatedOnDb()
public void setCreatedOn(java.sql.Timestamp createdOn1)
createdOn1
- public void setCreatedOnDb(java.lang.Long createdOn1)
createdOn1
- 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 java.lang.String getLabelString01()
public void setLabelString01(java.lang.String labelString01a)
labelString01a
- public java.lang.String getLabelString02()
public void setLabelString02(java.lang.String labelString02a)
labelString02a
- public java.lang.String getLabelString03()
public void setLabelString03(java.lang.String labelString03a)
labelString03a
- public java.lang.String getLabelString04()
public void setLabelString04(java.lang.String labelString04a)
labelString04a
- public java.lang.String getLabelString05()
public void setLabelString05(java.lang.String labelString05a)
labelString05a
- public java.lang.String getContextId()
public void setContextId(java.lang.String contextId1)
contextId1
- public java.lang.String getLabelInt01()
public void setLabelInt01(java.lang.String labelInt01a)
labelInt01a
- public java.lang.String getLabelInt02()
public void setLabelInt02(java.lang.String labelInt02a)
labelInt02a
- public java.lang.String getLabelInt03()
public void setLabelInt03(java.lang.String labelInt03a)
labelInt03a
- public java.lang.String getLabelInt04()
public void setLabelInt04(java.lang.String labelInt04a)
labelInt04a
- public java.lang.String getLabelInt05()
public void setLabelInt05(java.lang.String labelInt05)
labelInt05
- public void truncate()
public java.lang.String getLabelString06()
public void setLabelString06(java.lang.String labelString06a)
labelString06a
- public java.lang.String getLabelString07()
public void setLabelString07(java.lang.String labelString07a)
labelString07a
- public java.lang.String getLabelString08()
public void setLabelString08(java.lang.String labelString08a)
labelString08a
- public GrouperAPI clone()
GrouperAPI
clone
in interface GrouperCloneable
clone
in class GrouperAPI
GrouperAPI.clone()
public XmlImportable<AuditType> xmlRetrieveByIdOrKey()
XmlImportable
xmlRetrieveByIdOrKey
in interface XmlImportable<AuditType>
XmlImportable.xmlRetrieveByIdOrKey()
public void xmlCopyBusinessPropertiesToExisting(AuditType existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting
in interface XmlImportableBase<AuditType>
XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)
public boolean xmlDifferentBusinessProperties(AuditType other)
XmlImportableBase
xmlDifferentBusinessProperties
in interface XmlImportableBase<AuditType>
other
- the one to compare with
XmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)
public boolean xmlDifferentUpdateProperties(AuditType other)
XmlImportableBase
xmlDifferentUpdateProperties
in interface XmlImportableBase<AuditType>
other
- the one to compare with
XmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)
public java.lang.String xmlGetId()
XmlImportableBase
xmlGetId
in interface XmlImportableBase<AuditType>
XmlImportableBase.xmlGetId()
public AuditType xmlSaveBusinessProperties(AuditType existingRecord)
XmlImportableBase
xmlSaveBusinessProperties
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 it
XmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)
public void xmlSaveUpdateProperties()
XmlImportableBase
xmlSaveUpdateProperties
in interface XmlImportableBase<AuditType>
XmlImportableBase.xmlSaveUpdateProperties()
public void xmlSetId(java.lang.String theId)
XmlImportableBase
xmlSetId
in interface XmlImportableBase<AuditType>
XmlImportableBase.xmlSetId(java.lang.String)
public XmlExportAuditType xmlToExportAuditType(GrouperVersion grouperVersion)
grouperVersion
-
public java.lang.String xmlToString()
XmlImportableBase
xmlToString
in interface XmlImportableBase<AuditType>
XmlImportableBase.xmlToString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |