edu.internet2.middleware.grouper.pit
Class PITAttributeDefNameSet

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

public class PITAttributeDefNameSet
extends GrouperPIT
implements Hib3GrouperVersioned

Author:
shilen $Id$
See Also:
Serialized Form

Field Summary
static java.lang.String COLUMN_CONTEXT_ID
          Context id links together multiple operations into one high level action
static java.lang.String COLUMN_DEPTH
          depth
static java.lang.String COLUMN_ID
          db id for this row
static java.lang.String COLUMN_IF_HAS_ATTRIBUTE_DEF_NAME_ID
          ifHasAttributeDefNameId
static java.lang.String COLUMN_PARENT_ATTR_DEF_NAME_SET_ID
          parentAttrDefNameSetId
static java.lang.String COLUMN_SOURCE_ID
          column
static java.lang.String COLUMN_THEN_HAS_ATTRIBUTE_DEF_NAME_ID
          thenHasAttributeDefNameId
static java.lang.String FIELD_CONTEXT_ID
          constant for field name for: contextId
static java.lang.String FIELD_DEPTH
          constant for field name for: depth
static java.lang.String FIELD_ID
          constant for field name for: id
static java.lang.String FIELD_IF_HAS_ATTRIBUTE_DEF_NAME_ID
          constant for field name for: ifHasAttributeDefNameId
static java.lang.String FIELD_PARENT_ATTR_DEF_NAME_SET_ID
          constant for field name for: parentAttrDefNameSetId
static java.lang.String FIELD_SOURCE_ID
          constant for field name for: sourceId
static java.lang.String FIELD_THEN_HAS_ATTRIBUTE_DEF_NAME_ID
          constant for field name for: thenHasAttributeDefNameId
static java.lang.String TABLE_GROUPER_PIT_ATTRIBUTE_DEF_NAME_SET
          name of the table in the database.
 
Fields inherited from class edu.internet2.middleware.grouper.pit.GrouperPIT
COLUMN_ACTIVE, COLUMN_END_TIME, COLUMN_START_TIME, FIELD_ACTIVE_DB, FIELD_END_TIME_DB, FIELD_START_TIME_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
PITAttributeDefNameSet()
           
 
Method Summary
 GrouperAPI clone()
          deep clone the fields in this object
 PITAttributeDefNameSet dbVersion()
          save the state when retrieving from DB
 java.util.Set<java.lang.String> dbVersionDifferentFields()
          see which fields have changed compared to the DB state (last known) note that attributes will print out: attribute__attributeName
 void dbVersionReset()
          take a snapshot of the data since this is what is in the db
 void delete()
          delete this object
 java.lang.String getContextId()
           
 int getDepth()
           
 java.lang.String getId()
           
 java.lang.String getIfHasAttributeDefNameId()
           
 PITAttributeDefName getIfHasPITAttributeDefName()
           
 boolean getNotificationsForRolesWithPermissionChangesOnSaveOrUpdate()
           
 java.lang.String getParentAttrDefNameSetId()
           
 PITAttributeDefNameSet getParentPITAttributeDefNameSet()
           
 java.lang.String getSourceId()
           
 java.lang.String getThenHasAttributeDefNameId()
           
 PITAttributeDefName getThenHasPITAttributeDefName()
           
 void onPostSave(HibernateSession hibernateSession)
          after a save (insert) occurs
 void onPreDelete(HibernateSession hibernateSession)
          before a delete (insert) occurs
 void onPreUpdate(HibernateSession hibernateSession)
          before an update occurs
 void saveOrUpdate()
          save or update this object
 void setContextId(java.lang.String contextId)
          set context id
 void setDepth(int depth)
           
 void setId(java.lang.String id)
          set id
 void setIfHasAttributeDefNameId(java.lang.String ifHasAttributeDefNameId)
           
 void setNotificationsForRolesWithPermissionChangesOnSaveOrUpdate(boolean notificationsForRolesWithPermissionChangesOnSaveOrUpdate)
           
 void setParentAttrDefNameSetId(java.lang.String parentAttrDefNameSetId)
           
 void setSourceId(java.lang.String sourceId)
          set source id
 void setThenHasAttributeDefNameId(java.lang.String thenHasAttributeDefNameId)
           
 
Methods inherited from class edu.internet2.middleware.grouper.pit.GrouperPIT
getActiveDb, getEndTime, getEndTimeDb, getStartTime, getStartTimeDb, isActive, setActiveDb, setEndTimeDb, setStartTimeDb
 
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostUpdate, onPreSave, onSave, onUpdate, setHibernateVersionNumber
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_ID

public static final java.lang.String COLUMN_ID
db id for this row

See Also:
Constant Field Values

COLUMN_CONTEXT_ID

public static final java.lang.String COLUMN_CONTEXT_ID
Context id links together multiple operations into one high level action

See Also:
Constant Field Values

COLUMN_DEPTH

public static final java.lang.String COLUMN_DEPTH
depth

See Also:
Constant Field Values

COLUMN_IF_HAS_ATTRIBUTE_DEF_NAME_ID

public static final java.lang.String COLUMN_IF_HAS_ATTRIBUTE_DEF_NAME_ID
ifHasAttributeDefNameId

See Also:
Constant Field Values

COLUMN_THEN_HAS_ATTRIBUTE_DEF_NAME_ID

public static final java.lang.String COLUMN_THEN_HAS_ATTRIBUTE_DEF_NAME_ID
thenHasAttributeDefNameId

See Also:
Constant Field Values

COLUMN_PARENT_ATTR_DEF_NAME_SET_ID

public static final java.lang.String COLUMN_PARENT_ATTR_DEF_NAME_SET_ID
parentAttrDefNameSetId

See Also:
Constant Field Values

COLUMN_SOURCE_ID

public static final java.lang.String COLUMN_SOURCE_ID
column

See Also:
Constant Field Values

FIELD_SOURCE_ID

public static final java.lang.String FIELD_SOURCE_ID
constant for field name for: sourceId

See Also:
Constant Field Values

FIELD_CONTEXT_ID

public static final java.lang.String FIELD_CONTEXT_ID
constant for field name for: contextId

See Also:
Constant Field Values

FIELD_DEPTH

public static final java.lang.String FIELD_DEPTH
constant for field name for: depth

See Also:
Constant Field Values

FIELD_ID

public static final java.lang.String FIELD_ID
constant for field name for: id

See Also:
Constant Field Values

FIELD_IF_HAS_ATTRIBUTE_DEF_NAME_ID

public static final java.lang.String FIELD_IF_HAS_ATTRIBUTE_DEF_NAME_ID
constant for field name for: ifHasAttributeDefNameId

See Also:
Constant Field Values

FIELD_THEN_HAS_ATTRIBUTE_DEF_NAME_ID

public static final java.lang.String FIELD_THEN_HAS_ATTRIBUTE_DEF_NAME_ID
constant for field name for: thenHasAttributeDefNameId

See Also:
Constant Field Values

FIELD_PARENT_ATTR_DEF_NAME_SET_ID

public static final java.lang.String FIELD_PARENT_ATTR_DEF_NAME_SET_ID
constant for field name for: parentAttrDefNameSetId

See Also:
Constant Field Values

TABLE_GROUPER_PIT_ATTRIBUTE_DEF_NAME_SET

public static final java.lang.String TABLE_GROUPER_PIT_ATTRIBUTE_DEF_NAME_SET
name of the table in the database.

See Also:
Constant Field Values
Constructor Detail

PITAttributeDefNameSet

public PITAttributeDefNameSet()
Method Detail

getSourceId

public java.lang.String getSourceId()
Returns:
source id

setSourceId

public void setSourceId(java.lang.String sourceId)
set source id

Parameters:
sourceId -

getNotificationsForRolesWithPermissionChangesOnSaveOrUpdate

public boolean getNotificationsForRolesWithPermissionChangesOnSaveOrUpdate()
Returns:
boolean

setNotificationsForRolesWithPermissionChangesOnSaveOrUpdate

public void setNotificationsForRolesWithPermissionChangesOnSaveOrUpdate(boolean notificationsForRolesWithPermissionChangesOnSaveOrUpdate)
Parameters:
notificationsForRolesWithPermissionChangesOnSaveOrUpdate -

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()

getContextId

public java.lang.String getContextId()
Returns:
context id

setContextId

public void setContextId(java.lang.String contextId)
set context id

Parameters:
contextId -

getId

public java.lang.String getId()
Returns:
id

setId

public void setId(java.lang.String id)
set id

Parameters:
id -

getParentAttrDefNameSetId

public java.lang.String getParentAttrDefNameSetId()
Returns:
parentAttrDefNameSetId

setParentAttrDefNameSetId

public void setParentAttrDefNameSetId(java.lang.String parentAttrDefNameSetId)
Parameters:
parentAttrDefNameSetId -

getThenHasAttributeDefNameId

public java.lang.String getThenHasAttributeDefNameId()
Returns:
thenHasAttributeDefNameId

setThenHasAttributeDefNameId

public void setThenHasAttributeDefNameId(java.lang.String thenHasAttributeDefNameId)
Parameters:
thenHasAttributeDefNameId -

getIfHasAttributeDefNameId

public java.lang.String getIfHasAttributeDefNameId()
Returns:
ifHasAttributeDefNameId

setIfHasAttributeDefNameId

public void setIfHasAttributeDefNameId(java.lang.String ifHasAttributeDefNameId)
Parameters:
ifHasAttributeDefNameId -

getDepth

public int getDepth()
Returns:
depth

setDepth

public void setDepth(int depth)
Parameters:
depth -

saveOrUpdate

public void saveOrUpdate()
save or update this object


delete

public void delete()
delete this object


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)

onPostSave

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

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

dbVersion

public PITAttributeDefNameSet dbVersion()
save the state when retrieving from DB

Overrides:
dbVersion in class GrouperAPI
Returns:
the dbVersion

dbVersionReset

public void dbVersionReset()
take a snapshot of the data since this is what is in the db

Overrides:
dbVersionReset in class GrouperAPI

dbVersionDifferentFields

public java.util.Set<java.lang.String> dbVersionDifferentFields()
Description copied from class: GrouperAPI
see which fields have changed compared to the DB state (last known) note that attributes will print out: attribute__attributeName

Overrides:
dbVersionDifferentFields in class GrouperAPI
Returns:
a set of attributes changed, or empty set if none
See Also:
GrouperAPI.dbVersionDifferentFields()

onPreDelete

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

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

getIfHasPITAttributeDefName

public PITAttributeDefName getIfHasPITAttributeDefName()
Returns:
ifHasAttrDefName

getThenHasPITAttributeDefName

public PITAttributeDefName getThenHasPITAttributeDefName()
Returns:
thenHasAttrDefName

getParentPITAttributeDefNameSet

public PITAttributeDefNameSet getParentPITAttributeDefNameSet()
Returns:
parentAttrDefNameSet