edu.internet2.middleware.grouper.changeLog
Class ChangeLogType

java.lang.Object
  extended by edu.internet2.middleware.grouper.GrouperAPI
      extended by edu.internet2.middleware.grouper.changeLog.ChangeLogType
All Implemented Interfaces:
HibGrouperLifecycle, Hib3GrouperVersioned, GrouperCloneable, GrouperUtil.FieldValuable, Serializable, org.hibernate.classic.Lifecycle

public class ChangeLogType
extends GrouperAPI
implements Hib3GrouperVersioned

type of changeLog

See Also:
Serialized Form

Field Summary
static String COLUMN_ACTION_NAME
          column
static String COLUMN_CHANGE_LOG_CATEGORY
          column
static String COLUMN_CONTEXT_ID
          column
static String COLUMN_CREATED_ON
          column
static String COLUMN_HIBERNATE_VERSION_NUMBER
          column
static String COLUMN_ID
          column
static String COLUMN_LABEL_STRING01
          column
static String COLUMN_LABEL_STRING02
          column
static String COLUMN_LABEL_STRING03
          column
static String COLUMN_LABEL_STRING04
          column
static String COLUMN_LABEL_STRING05
          column
static String COLUMN_LABEL_STRING06
          column
static String COLUMN_LABEL_STRING07
          column
static String COLUMN_LABEL_STRING08
          column
static String COLUMN_LABEL_STRING09
          column
static String COLUMN_LABEL_STRING10
          column
static String COLUMN_LABEL_STRING11
          column
static String COLUMN_LABEL_STRING12
          column
static String COLUMN_LAST_UPDATED
          column
static String FIELD_ACTION_NAME
          constant for field name for: actionName
static String FIELD_CHANGE_LOG_CATEGORY
          constant for field name for: changeLogCategory
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_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_LABEL_STRING09
          constant for field name for: labelString09
static String FIELD_LABEL_STRING10
          constant for field name for: labelString10
static String FIELD_LABEL_STRING11
          constant for field name for: labelString11
static String FIELD_LABEL_STRING12
          constant for field name for: labelString12
static String FIELD_LAST_UPDATED_DB
          constant for field name for: lastUpdatedDb
static String TABLE_GROUPER_CHANGE_LOG_TYPE
          name of the grouper changeLog type table in the db
 
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI
FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
 
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
 
Constructor Summary
ChangeLogType()
          empty constructor
ChangeLogType(String changeLogCategory1, String actionName1, ChangeLogLabel... enumStrings)
          construct with more params
ChangeLogType(String changeLogCategory1, String actionName1, String... labelStrings)
          construct with more params
 
Method Summary
 GrouperAPI clone()
          deep clone the fields in this object
 void copyArgFieldIntoThis(ChangeLogType changeLogType)
          copy the argument into this
 boolean equals(Object obj)
           
 boolean equalsCategoryAndAction(ChangeLogTypeIdentifier changeLogTypeIdentifier)
          see if this identifier matches the change log type by category and action
 boolean equalsDeep(ChangeLogType changeLogType)
          see if one changeLog type is the same as another (not looking at last update, id, etc)
 String getActionName()
          action within the changeLog category
 String getChangeLogCategory()
          category of changeLog
 String getContextId()
          context id ties multiple db changes
 Timestamp getCreatedOn()
          when created
 Long getCreatedOnDb()
          when created
 String getId()
          uuid of row
 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
 String getLabelString09()
          label string 9
 String getLabelString10()
          label string 10
 String getLabelString11()
          label string 11
 String getLabelString12()
          label string 12
 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 retrieveChangeLogEntryFieldForLabel(String label)
          get the field in changeLog entry for this label
 void setActionName(String actionName)
          action within the changeLog category
 void setChangeLogCategory(String changeLogCategory1)
          category of changeLog
 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 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 setLabelString09(String _labelString09)
          label string 9
 void setLabelString10(String _labelString10)
          label string 10
 void setLabelString11(String _labelString11)
          label string 11
 void setLabelString12(String _labelString12)
          label string 12
 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
 
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

COLUMN_ID

public static final String COLUMN_ID
column

See Also:
Constant Field Values

COLUMN_ACTION_NAME

public static final String COLUMN_ACTION_NAME
column

See Also:
Constant Field Values

COLUMN_CHANGE_LOG_CATEGORY

public static final String COLUMN_CHANGE_LOG_CATEGORY
column

See Also:
Constant Field Values

COLUMN_CONTEXT_ID

public static final String COLUMN_CONTEXT_ID
column

See Also:
Constant Field Values

COLUMN_CREATED_ON

public static final String COLUMN_CREATED_ON
column

See Also:
Constant Field Values

COLUMN_LABEL_STRING01

public static final String COLUMN_LABEL_STRING01
column

See Also:
Constant Field Values

COLUMN_LABEL_STRING02

public static final String COLUMN_LABEL_STRING02
column

See Also:
Constant Field Values

COLUMN_LABEL_STRING03

public static final String COLUMN_LABEL_STRING03
column

See Also:
Constant Field Values

COLUMN_LABEL_STRING04

public static final String COLUMN_LABEL_STRING04
column

See Also:
Constant Field Values

COLUMN_LABEL_STRING05

public static final String COLUMN_LABEL_STRING05
column

See Also:
Constant Field Values

COLUMN_LABEL_STRING06

public static final String COLUMN_LABEL_STRING06
column

See Also:
Constant Field Values

COLUMN_LABEL_STRING07

public static final String COLUMN_LABEL_STRING07
column

See Also:
Constant Field Values

COLUMN_LABEL_STRING08

public static final String COLUMN_LABEL_STRING08
column

See Also:
Constant Field Values

COLUMN_LABEL_STRING09

public static final String COLUMN_LABEL_STRING09
column

See Also:
Constant Field Values

COLUMN_LABEL_STRING10

public static final String COLUMN_LABEL_STRING10
column

See Also:
Constant Field Values

COLUMN_LABEL_STRING11

public static final String COLUMN_LABEL_STRING11
column

See Also:
Constant Field Values

COLUMN_LABEL_STRING12

public static final String COLUMN_LABEL_STRING12
column

See Also:
Constant Field Values

COLUMN_LAST_UPDATED

public static final String COLUMN_LAST_UPDATED
column

See Also:
Constant Field Values

COLUMN_HIBERNATE_VERSION_NUMBER

public static final String COLUMN_HIBERNATE_VERSION_NUMBER
column

See Also:
Constant Field Values

FIELD_ACTION_NAME

public static final String FIELD_ACTION_NAME
constant for field name for: actionName

See Also:
Constant Field Values

FIELD_CHANGE_LOG_CATEGORY

public static final String FIELD_CHANGE_LOG_CATEGORY
constant for field name for: changeLogCategory

See Also:
Constant Field Values

FIELD_CONTEXT_ID

public static final String FIELD_CONTEXT_ID
constant for field name for: contextId

See Also:
Constant Field Values

FIELD_CREATED_ON_DB

public static final String FIELD_CREATED_ON_DB
constant for field name for: createdOnDb

See Also:
Constant Field Values

FIELD_ID

public static final String FIELD_ID
constant for field name for: id

See Also:
Constant Field Values

FIELD_LABEL_STRING01

public static final String FIELD_LABEL_STRING01
constant for field name for: labelString01

See Also:
Constant Field Values

FIELD_LABEL_STRING02

public static final String FIELD_LABEL_STRING02
constant for field name for: labelString02

See Also:
Constant Field Values

FIELD_LABEL_STRING03

public static final String FIELD_LABEL_STRING03
constant for field name for: labelString03

See Also:
Constant Field Values

FIELD_LABEL_STRING04

public static final String FIELD_LABEL_STRING04
constant for field name for: labelString04

See Also:
Constant Field Values

FIELD_LABEL_STRING05

public static final String FIELD_LABEL_STRING05
constant for field name for: labelString05

See Also:
Constant Field Values

FIELD_LABEL_STRING06

public static final String FIELD_LABEL_STRING06
constant for field name for: labelString06

See Also:
Constant Field Values

FIELD_LABEL_STRING07

public static final String FIELD_LABEL_STRING07
constant for field name for: labelString07

See Also:
Constant Field Values

FIELD_LABEL_STRING08

public static final String FIELD_LABEL_STRING08
constant for field name for: labelString08

See Also:
Constant Field Values

FIELD_LABEL_STRING09

public static final String FIELD_LABEL_STRING09
constant for field name for: labelString09

See Also:
Constant Field Values

FIELD_LABEL_STRING10

public static final String FIELD_LABEL_STRING10
constant for field name for: labelString10

See Also:
Constant Field Values

FIELD_LABEL_STRING11

public static final String FIELD_LABEL_STRING11
constant for field name for: labelString11

See Also:
Constant Field Values

FIELD_LABEL_STRING12

public static final String FIELD_LABEL_STRING12
constant for field name for: labelString12

See Also:
Constant Field Values

FIELD_LAST_UPDATED_DB

public static final String FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb

See Also:
Constant Field Values

TABLE_GROUPER_CHANGE_LOG_TYPE

public static final String TABLE_GROUPER_CHANGE_LOG_TYPE
name of the grouper changeLog type table in the db

See Also:
Constant Field Values
Constructor Detail

ChangeLogType

public ChangeLogType()
empty constructor


ChangeLogType

public ChangeLogType(String changeLogCategory1,
                     String actionName1,
                     ChangeLogLabel... enumStrings)
construct with more params

Parameters:
changeLogCategory1 -
actionName1 -
enumStrings - up to 8 label strings

ChangeLogType

public ChangeLogType(String changeLogCategory1,
                     String actionName1,
                     String... labelStrings)
construct with more params

Parameters:
changeLogCategory1 -
actionName1 -
labelStrings - up to 8 label strings
Method Detail

equalsDeep

public boolean equalsDeep(ChangeLogType changeLogType)
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

public Set<String> labels()
labels for this type

Returns:
the labels

retrieveChangeLogEntryFieldForLabel

public String retrieveChangeLogEntryFieldForLabel(String label)
get the field in changeLog entry for this label

Parameters:
label -
Returns:
the field

copyArgFieldIntoThis

public void copyArgFieldIntoThis(ChangeLogType changeLogType)
copy the argument into this

Parameters:
changeLogType -

toStringDeep

public String toStringDeep()
the string repre

Returns:
string

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

getId

public String getId()
uuid of row

Returns:
id

setId

public void setId(String id1)
uuid of row

Parameters:
id1 -

getChangeLogCategory

public String getChangeLogCategory()
category of changeLog

Returns:
changeLog type

setChangeLogCategory

public void setChangeLogCategory(String changeLogCategory1)
category of changeLog

Parameters:
changeLogCategory1 -

getActionName

public String getActionName()
action within the changeLog category

Returns:
the action name

setActionName

public void setActionName(String actionName)
action within the changeLog category

Parameters:
actionName -

getLastUpdated

public Timestamp getLastUpdated()
when last updated

Returns:
timestamp

getLastUpdatedDb

public Long getLastUpdatedDb()
when last updated

Returns:
timestamp

setLastUpdated

public void setLastUpdated(Timestamp lastUpdated1)
when last updated

Parameters:
lastUpdated1 -

setLastUpdatedDb

public void setLastUpdatedDb(Long lastUpdated1)
when last updated

Parameters:
lastUpdated1 -

getCreatedOn

public Timestamp getCreatedOn()
when created

Returns:
timestamp

getCreatedOnDb

public Long getCreatedOnDb()
when created

Returns:
timestamp

setCreatedOn

public void setCreatedOn(Timestamp createdOn1)
when created

Parameters:
createdOn1 -

setCreatedOnDb

public void setCreatedOnDb(Long createdOn1)
when created

Parameters:
createdOn1 -

onPreSave

public void onPreSave(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
before a save (insert) occurs

Specified by:
onPreSave in interface HibGrouperLifecycle
Overrides:
onPreSave in class GrouperAPI
See Also:
GrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)

onPreUpdate

public void onPreUpdate(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
before an update occurs

Specified by:
onPreUpdate in interface HibGrouperLifecycle
Overrides:
onPreUpdate in class GrouperAPI
See Also:
GrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)

getLabelString01

public String getLabelString01()
label for string01

Returns:
label

setLabelString01

public void setLabelString01(String labelString01a)
label for string01

Parameters:
labelString01a -

getLabelString02

public String getLabelString02()
label for string02

Returns:
label

setLabelString02

public void setLabelString02(String labelString02a)
label for string02

Parameters:
labelString02a -

getLabelString03

public String getLabelString03()
label for string03

Returns:
label

setLabelString03

public void setLabelString03(String labelString03a)
label for string03

Parameters:
labelString03a -

getLabelString04

public String getLabelString04()
label for string04

Returns:
label

setLabelString04

public void setLabelString04(String labelString04a)
label for string04

Parameters:
labelString04a -

getLabelString05

public String getLabelString05()
label for string05

Returns:
label

setLabelString05

public void setLabelString05(String labelString05a)
label for string05

Parameters:
labelString05a -

getContextId

public String getContextId()
context id ties multiple db changes

Returns:
id

setContextId

public void setContextId(String contextId1)
context id ties multiple db changes

Parameters:
contextId1 -

truncate

public void truncate()
make sure this object will fit in the DB


getLabelString06

public String getLabelString06()
label for the string06 field

Returns:
label

setLabelString06

public void setLabelString06(String labelString06a)
label for the string06 field

Parameters:
labelString06a -

getLabelString07

public String getLabelString07()
label for the string07 field

Returns:
label

setLabelString07

public void setLabelString07(String labelString07a)
label for the string07 field

Parameters:
labelString07a -

getLabelString08

public String getLabelString08()
label for the string08 field

Returns:
label

setLabelString08

public void setLabelString08(String labelString08a)
label for the string08 field

Parameters:
labelString08a -

clone

public GrouperAPI clone()
Description copied from class: GrouperAPI
deep clone the fields in this object

Specified by:
clone in interface GrouperCloneable
Specified by:
clone in class GrouperAPI
Returns:
the clone of the object
See Also:
GrouperAPI.clone()

getLabelString09

public String getLabelString09()
label string 9

Returns:
label string 9

setLabelString09

public void setLabelString09(String _labelString09)
label string 9

Parameters:
_labelString09 -

getLabelString10

public String getLabelString10()
label string 10

Returns:
label string 10

setLabelString10

public void setLabelString10(String _labelString10)
label string 10

Parameters:
_labelString10 -

getLabelString11

public String getLabelString11()
label string 11

Returns:
label string 11

setLabelString11

public void setLabelString11(String _labelString11)
label string 11

Parameters:
_labelString11 -

getLabelString12

public String getLabelString12()
label string 12

Returns:
label string 12

setLabelString12

public void setLabelString12(String _labelString12)
label string 12

Parameters:
_labelString12 -

equalsCategoryAndAction

public boolean equalsCategoryAndAction(ChangeLogTypeIdentifier changeLogTypeIdentifier)
see if this identifier matches the change log type by category and action

Parameters:
changeLogTypeIdentifier -
Returns:
true if matches