edu.internet2.middleware.grouper.pit
Class PITGroupSet

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.PITGroupSet
All Implemented Interfaces:
HibGrouperLifecycle, Hib3GrouperVersioned, GrouperCloneable, GrouperUtil.FieldValuable, Serializable, org.hibernate.classic.Lifecycle

public class PITGroupSet
extends GrouperPIT
implements Hib3GrouperVersioned

Author:
shilen $Id$
See Also:
Serialized Form

Field Summary
static String COLUMN_CONTEXT_ID
          Context id links together multiple operations into one high level action
static String COLUMN_DEPTH
          depth
static String COLUMN_FIELD_ID
          field_id
static String COLUMN_ID
          db id for this row
static String COLUMN_MEMBER_ATTR_DEF_ID
          member_attr_def_id
static String COLUMN_MEMBER_FIELD_ID
          member_field_id
static String COLUMN_MEMBER_GROUP_ID
          member_group_id
static String COLUMN_MEMBER_ID
          member_id
static String COLUMN_MEMBER_STEM_ID
          member_stem_id
static String COLUMN_OWNER_ATTR_DEF_ID
          owner_attr_def_id
static String COLUMN_OWNER_GROUP_ID
          owner_group_id
static String COLUMN_OWNER_ID
          owner_id
static String COLUMN_OWNER_STEM_ID
          owner_stem_id
static String COLUMN_PARENT_ID
          parent_id
static String COLUMN_SOURCE_ID
          column
static String FIELD_CONTEXT_ID
          constant for field name for: contextId
static String FIELD_DEPTH
          constant for field name for: depth
static String FIELD_FIELD_ID
          constant for field name for: fieldId
static String FIELD_ID
          constant for field name for: id
static String FIELD_MEMBER_ATTR_DEF_ID
          constant for field name for: memberAttrDefId
static String FIELD_MEMBER_FIELD_ID
          constant for field name for: memberFieldId
static String FIELD_MEMBER_GROUP_ID
          constant for field name for: memberGroupId
static String FIELD_MEMBER_ID
          constant for field name for: memberId
static String FIELD_MEMBER_STEM_ID
          constant for field name for: memberStemId
static String FIELD_OWNER_ATTR_DEF_ID
          constant for field name for: ownerAttrDefId
static String FIELD_OWNER_GROUP_ID
          constant for field name for: ownerGroupId
static String FIELD_OWNER_ID
          constant for field name for: ownerId
static String FIELD_OWNER_STEM_ID
          constant for field name for: ownerStemId
static String FIELD_PARENT_ID
          constant for field name for: parentId
static String FIELD_SOURCE_ID
          constant for field name for: sourceId
static String TABLE_GROUPER_PIT_GROUP_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
PITGroupSet()
           
 
Method Summary
 GrouperAPI clone()
          deep clone the fields in this object
 PITGroupSet dbVersion()
          save the state when retrieving from DB
 Set<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
 String getContextId()
           
 int getDepth()
           
 String getFieldId()
           
 boolean getFlatMembershipNotificationsOnSaveOrUpdate()
           
 boolean getFlatPrivilegeNotificationsOnSaveOrUpdate()
           
 String getId()
           
 String getMemberAttrDefId()
           
 String getMemberFieldId()
           
 String getMemberGroupId()
           
 String getMemberId()
           
 PITAttributeDef getMemberPITAttributeDef()
           
 PITField getMemberPITField()
           
 PITGroup getMemberPITGroup()
           
 PITStem getMemberPITStem()
           
 String getMemberStemId()
           
 String getOwnerAttrDefId()
           
 String getOwnerGroupId()
           
 String getOwnerId()
           
 PITAttributeDef getOwnerPITAttributeDef()
           
 PITGroup getOwnerPITGroup()
           
 PITStem getOwnerPITStem()
           
 String getOwnerStemId()
           
 String getParentId()
           
 PITGroupSet getParentPITGroupSet()
           
 PITField getPITField()
           
 String getSourceId()
           
 void internal_disable()
          Disable this group set by adding an end date of the current time
 void onPostSave(HibernateSession hibernateSession)
          after a save (insert) occurs
 void onPostUpdate(HibernateSession hibernateSession)
          after an update occurs
 void onPreDelete(HibernateSession hibernateSession)
          before a delete (insert) occurs
 void onPreSave(HibernateSession hibernateSession)
          before a save (insert) occurs
 void onPreUpdate(HibernateSession hibernateSession)
          before an update occurs
 void saveOrUpdate()
          save or update this object
 void setContextId(String contextId)
          set context id
 void setDepth(int depth)
           
 void setFieldId(String fieldId)
           
 void setFlatMembershipNotificationsOnSaveOrUpdate(boolean flatMembershipNotificationsOnSaveOrUpdate)
           
 void setFlatPrivilegeNotificationsOnSaveOrUpdate(boolean flatPrivilegeNotificationsOnSaveOrUpdate)
           
 void setId(String id)
          set id
 void setMemberAttrDefId(String memberAttrDefId)
           
 void setMemberFieldId(String memberFieldId)
           
 void setMemberGroupId(String memberGroupId)
           
 void setMemberId(String memberId)
           
 void setMemberStemId(String memberStemId)
           
 void setOwnerAttrDefId(String ownerAttrDefId)
           
 void setOwnerGroupId(String ownerGroupId)
           
 void setOwnerId(String ownerId)
           
 void setOwnerStemId(String ownerStemId)
           
 void setParentId(String parentId)
           
 void setSourceId(String sourceId)
          set source id
 
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, 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 String COLUMN_ID
db id for this row

See Also:
Constant Field Values

COLUMN_CONTEXT_ID

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

See Also:
Constant Field Values

COLUMN_OWNER_ID

public static final String COLUMN_OWNER_ID
owner_id

See Also:
Constant Field Values

COLUMN_OWNER_ATTR_DEF_ID

public static final String COLUMN_OWNER_ATTR_DEF_ID
owner_attr_def_id

See Also:
Constant Field Values

COLUMN_OWNER_GROUP_ID

public static final String COLUMN_OWNER_GROUP_ID
owner_group_id

See Also:
Constant Field Values

COLUMN_OWNER_STEM_ID

public static final String COLUMN_OWNER_STEM_ID
owner_stem_id

See Also:
Constant Field Values

COLUMN_MEMBER_ID

public static final String COLUMN_MEMBER_ID
member_id

See Also:
Constant Field Values

COLUMN_MEMBER_ATTR_DEF_ID

public static final String COLUMN_MEMBER_ATTR_DEF_ID
member_attr_def_id

See Also:
Constant Field Values

COLUMN_MEMBER_GROUP_ID

public static final String COLUMN_MEMBER_GROUP_ID
member_group_id

See Also:
Constant Field Values

COLUMN_MEMBER_STEM_ID

public static final String COLUMN_MEMBER_STEM_ID
member_stem_id

See Also:
Constant Field Values

COLUMN_FIELD_ID

public static final String COLUMN_FIELD_ID
field_id

See Also:
Constant Field Values

COLUMN_MEMBER_FIELD_ID

public static final String COLUMN_MEMBER_FIELD_ID
member_field_id

See Also:
Constant Field Values

COLUMN_DEPTH

public static final String COLUMN_DEPTH
depth

See Also:
Constant Field Values

COLUMN_PARENT_ID

public static final String COLUMN_PARENT_ID
parent_id

See Also:
Constant Field Values

COLUMN_SOURCE_ID

public static final String COLUMN_SOURCE_ID
column

See Also:
Constant Field Values

FIELD_SOURCE_ID

public static final String FIELD_SOURCE_ID
constant for field name for: sourceId

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_ID

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

See Also:
Constant Field Values

FIELD_OWNER_ID

public static final String FIELD_OWNER_ID
constant for field name for: ownerId

See Also:
Constant Field Values

FIELD_OWNER_ATTR_DEF_ID

public static final String FIELD_OWNER_ATTR_DEF_ID
constant for field name for: ownerAttrDefId

See Also:
Constant Field Values

FIELD_OWNER_GROUP_ID

public static final String FIELD_OWNER_GROUP_ID
constant for field name for: ownerGroupId

See Also:
Constant Field Values

FIELD_OWNER_STEM_ID

public static final String FIELD_OWNER_STEM_ID
constant for field name for: ownerStemId

See Also:
Constant Field Values

FIELD_MEMBER_ID

public static final String FIELD_MEMBER_ID
constant for field name for: memberId

See Also:
Constant Field Values

FIELD_MEMBER_ATTR_DEF_ID

public static final String FIELD_MEMBER_ATTR_DEF_ID
constant for field name for: memberAttrDefId

See Also:
Constant Field Values

FIELD_MEMBER_GROUP_ID

public static final String FIELD_MEMBER_GROUP_ID
constant for field name for: memberGroupId

See Also:
Constant Field Values

FIELD_MEMBER_STEM_ID

public static final String FIELD_MEMBER_STEM_ID
constant for field name for: memberStemId

See Also:
Constant Field Values

FIELD_FIELD_ID

public static final String FIELD_FIELD_ID
constant for field name for: fieldId

See Also:
Constant Field Values

FIELD_MEMBER_FIELD_ID

public static final String FIELD_MEMBER_FIELD_ID
constant for field name for: memberFieldId

See Also:
Constant Field Values

FIELD_DEPTH

public static final String FIELD_DEPTH
constant for field name for: depth

See Also:
Constant Field Values

FIELD_PARENT_ID

public static final String FIELD_PARENT_ID
constant for field name for: parentId

See Also:
Constant Field Values

TABLE_GROUPER_PIT_GROUP_SET

public static final String TABLE_GROUPER_PIT_GROUP_SET
name of the table in the database.

See Also:
Constant Field Values
Constructor Detail

PITGroupSet

public PITGroupSet()
Method Detail

getSourceId

public String getSourceId()
Returns:
source id

setSourceId

public void setSourceId(String sourceId)
set source id

Parameters:
sourceId -

getFlatMembershipNotificationsOnSaveOrUpdate

public boolean getFlatMembershipNotificationsOnSaveOrUpdate()
Returns:
boolean

setFlatMembershipNotificationsOnSaveOrUpdate

public void setFlatMembershipNotificationsOnSaveOrUpdate(boolean flatMembershipNotificationsOnSaveOrUpdate)
Parameters:
flatMembershipNotificationsOnSaveOrUpdate -

getFlatPrivilegeNotificationsOnSaveOrUpdate

public boolean getFlatPrivilegeNotificationsOnSaveOrUpdate()
Returns:
boolean

setFlatPrivilegeNotificationsOnSaveOrUpdate

public void setFlatPrivilegeNotificationsOnSaveOrUpdate(boolean flatPrivilegeNotificationsOnSaveOrUpdate)
Parameters:
flatPrivilegeNotificationsOnSaveOrUpdate -

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 String getContextId()
Returns:
context id

setContextId

public void setContextId(String contextId)
set context id

Parameters:
contextId -

getId

public String getId()
Returns:
id

setId

public void setId(String id)
set id

Parameters:
id -

saveOrUpdate

public void saveOrUpdate()
save or update this object


delete

public void delete()
delete this object


getOwnerId

public String getOwnerId()
Returns:
ownerId

setOwnerId

public void setOwnerId(String ownerId)
Parameters:
ownerId -

getOwnerAttrDefId

public String getOwnerAttrDefId()
Returns:
ownerAttrDefId

setOwnerAttrDefId

public void setOwnerAttrDefId(String ownerAttrDefId)
Parameters:
ownerAttrDefId -

getOwnerGroupId

public String getOwnerGroupId()
Returns:
ownerGroupId

setOwnerGroupId

public void setOwnerGroupId(String ownerGroupId)
Parameters:
ownerGroupId -

getOwnerStemId

public String getOwnerStemId()
Returns:
ownerStemId

setOwnerStemId

public void setOwnerStemId(String ownerStemId)
Parameters:
ownerStemId -

getMemberId

public String getMemberId()
Returns:
memberId

setMemberId

public void setMemberId(String memberId)
Parameters:
memberId -

getFieldId

public String getFieldId()
Returns:
fieldId

setFieldId

public void setFieldId(String fieldId)
Parameters:
fieldId -

getMemberAttrDefId

public String getMemberAttrDefId()
Returns:
memberAttrDefId

setMemberAttrDefId

public void setMemberAttrDefId(String memberAttrDefId)
Parameters:
memberAttrDefId -

getMemberGroupId

public String getMemberGroupId()
Returns:
memberGroupId

setMemberGroupId

public void setMemberGroupId(String memberGroupId)
Parameters:
memberGroupId -

getMemberStemId

public String getMemberStemId()
Returns:
memberStemId

setMemberStemId

public void setMemberStemId(String memberStemId)
Parameters:
memberStemId -

getMemberFieldId

public String getMemberFieldId()
Returns:
memberFieldId

setMemberFieldId

public void setMemberFieldId(String memberFieldId)
Parameters:
memberFieldId -

getParentId

public String getParentId()
Returns:
parentId

setParentId

public void setParentId(String parentId)
Parameters:
parentId -

getDepth

public int getDepth()
Returns:
depth

setDepth

public void setDepth(int depth)
Parameters:
depth -

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)

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)

onPostUpdate

public void onPostUpdate(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
after an update occurs

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

dbVersion

public PITGroupSet 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 Set<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)

getParentPITGroupSet

public PITGroupSet getParentPITGroupSet()
Returns:
pitParentGroupSet

getPITField

public PITField getPITField()
Returns:
pitField

getMemberPITField

public PITField getMemberPITField()
Returns:
pitMemberField

getMemberPITGroup

public PITGroup getMemberPITGroup()
Returns:
pitMemberGroup

getMemberPITAttributeDef

public PITAttributeDef getMemberPITAttributeDef()
Returns:
pitMemberAttributeDef

getMemberPITStem

public PITStem getMemberPITStem()
Returns:
pitMemberStem

getOwnerPITGroup

public PITGroup getOwnerPITGroup()
Returns:
pitOwnerGroup

getOwnerPITAttributeDef

public PITAttributeDef getOwnerPITAttributeDef()
Returns:
pitOwnerAttributeDef

getOwnerPITStem

public PITStem getOwnerPITStem()
Returns:
pitOwnerStem

internal_disable

public void internal_disable()
Disable this group set by adding an end date of the current time