Class ChangeLogType
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.changeLog.ChangeLogType
- All Implemented Interfaces:
HibGrouperLifecycle
,Hib3GrouperVersioned
,GrouperCloneable
,GrouperUtil.FieldValuable
,Serializable
,org.hibernate.classic.Lifecycle
type of changeLog
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
constant for field name for: actionNamestatic final String
constant for field name for: changeLogCategorystatic 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: 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: labelString09static final String
constant for field name for: labelString10static final String
constant for field name for: labelString11static final String
constant for field name for: labelString12static final String
constant for field name for: lastUpdatedDbstatic final String
name of the grouper changeLog type table in the dbFields inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
-
Constructor Summary
ConstructorsConstructorDescriptionempty constructorChangeLogType
(String changeLogCategory1, String actionName1, ChangeLogLabel... enumStrings) construct with more paramsChangeLogType
(String changeLogCategory1, String actionName1, String... labelStrings) construct with more params -
Method Summary
Modifier and TypeMethodDescriptionclone()
deep clone the fields in this objectvoid
copyArgFieldIntoThis
(ChangeLogType changeLogType) copy the argument into thisboolean
boolean
equalsCategoryAndAction
(ChangeLogTypeIdentifier changeLogTypeIdentifier) see if this identifier matches the change log type by category and actionboolean
equalsDeep
(ChangeLogType changeLogType) see if one changeLog type is the same as another (not looking at last update, id, etc)action within the changeLog categorycategory of changeLogcontext id ties multiple db changeswhen createdwhen createdgetId()
uuid of rowlabel for string01label for string02label for string03label for string04label for string05label for the string06 fieldlabel for the string07 fieldlabel for the string08 fieldlabel string 9label string 10label string 11label string 12when 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 changeLog entry for this labelvoid
setActionName
(String actionName) action within the changeLog categoryvoid
setChangeLogCategory
(String changeLogCategory1) category of changeLogvoid
setContextId
(String contextId1) context id ties multiple db changesvoid
setCreatedOn
(Timestamp createdOn1) when createdvoid
setCreatedOnDb
(Long createdOn1) when createdvoid
uuid of rowvoid
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
setLabelString09
(String _labelString09) label string 9void
setLabelString10
(String _labelString10) label string 10void
setLabelString11
(String _labelString11) label string 11void
setLabelString12
(String _labelString12) label string 12void
setLastUpdated
(Timestamp lastUpdated1) when last updatedvoid
setLastUpdatedDb
(Long lastUpdated1) when last updatedtoString()
the string reprevoid
truncate()
make sure this object will fit in the DBMethods 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
-
COLUMN_ID
column- See Also:
-
COLUMN_ACTION_NAME
column- See Also:
-
COLUMN_CHANGE_LOG_CATEGORY
column- See Also:
-
COLUMN_CONTEXT_ID
column- See Also:
-
COLUMN_CREATED_ON
column- See Also:
-
COLUMN_LABEL_STRING01
column- See Also:
-
COLUMN_LABEL_STRING02
column- See Also:
-
COLUMN_LABEL_STRING03
column- See Also:
-
COLUMN_LABEL_STRING04
column- See Also:
-
COLUMN_LABEL_STRING05
column- See Also:
-
COLUMN_LABEL_STRING06
column- See Also:
-
COLUMN_LABEL_STRING07
column- See Also:
-
COLUMN_LABEL_STRING08
column- See Also:
-
COLUMN_LABEL_STRING09
column- See Also:
-
COLUMN_LABEL_STRING10
column- See Also:
-
COLUMN_LABEL_STRING11
column- See Also:
-
COLUMN_LABEL_STRING12
column- See Also:
-
COLUMN_LAST_UPDATED
column- See Also:
-
COLUMN_HIBERNATE_VERSION_NUMBER
column- See Also:
-
FIELD_ACTION_NAME
constant for field name for: actionName- See Also:
-
FIELD_CHANGE_LOG_CATEGORY
constant for field name for: changeLogCategory- 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_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_LABEL_STRING09
constant for field name for: labelString09- See Also:
-
FIELD_LABEL_STRING10
constant for field name for: labelString10- See Also:
-
FIELD_LABEL_STRING11
constant for field name for: labelString11- See Also:
-
FIELD_LABEL_STRING12
constant for field name for: labelString12- See Also:
-
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb- See Also:
-
TABLE_GROUPER_CHANGE_LOG_TYPE
name of the grouper changeLog type table in the db- See Also:
-
-
Constructor Details
-
ChangeLogType
public ChangeLogType()empty constructor -
ChangeLogType
construct with more params- Parameters:
changeLogCategory1
-actionName1
-enumStrings
- up to 8 label strings
-
ChangeLogType
construct with more params- Parameters:
changeLogCategory1
-actionName1
-labelStrings
- up to 8 label strings
-
-
Method Details
-
equalsDeep
see if one changeLog type is the same as another (not looking at last update, id, etc)- Parameters:
changeLogType
-- Returns:
- true if equals, false if not
-
labels
labels for this type- Returns:
- the labels
-
retrieveChangeLogEntryFieldForLabel
get the field in changeLog entry for this label- Parameters:
label
-- Returns:
- the field
-
copyArgFieldIntoThis
copy the argument into this- Parameters:
changeLogType
-
-
toStringDeep
the string repre- Returns:
- string
-
toString
-
equals
-
hashCode
public int hashCode() -
getId
uuid of row- Returns:
- id
-
setId
uuid of row- Parameters:
id1
-
-
getChangeLogCategory
category of changeLog- Returns:
- changeLog type
-
setChangeLogCategory
category of changeLog- Parameters:
changeLogCategory1
-
-
getActionName
action within the changeLog category- Returns:
- the action name
-
setActionName
action within the changeLog 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
-
-
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:
-
getLabelString09
label string 9- Returns:
- label string 9
-
setLabelString09
label string 9- Parameters:
_labelString09
-
-
getLabelString10
label string 10- Returns:
- label string 10
-
setLabelString10
label string 10- Parameters:
_labelString10
-
-
getLabelString11
label string 11- Returns:
- label string 11
-
setLabelString11
label string 11- Parameters:
_labelString11
-
-
getLabelString12
label string 12- Returns:
- label string 12
-
setLabelString12
label string 12- Parameters:
_labelString12
-
-
equalsCategoryAndAction
see if this identifier matches the change log type by category and action- Parameters:
changeLogTypeIdentifier
-- Returns:
- true if matches
-