Class PITAttributeDefNameSet
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.pit.GrouperPIT
edu.internet2.middleware.grouper.pit.PITAttributeDefNameSet
- All Implemented Interfaces:
HibGrouperLifecycle
,Hib3GrouperVersioned
,GrouperCloneable
,GrouperUtil.FieldValuable
,Serializable
,org.hibernate.classic.Lifecycle
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Context id links together multiple operations into one high level actionstatic final String
depthstatic final String
db id for this rowstatic final String
ifHasAttributeDefNameIdstatic final String
parentAttrDefNameSetIdstatic final String
columnstatic final String
thenHasAttributeDefNameIdstatic final String
constant for field name for: contextIdstatic final String
constant for field name for: depthstatic final String
constant for field name for: idstatic final String
constant for field name for: ifHasAttributeDefNameIdstatic final String
constant for field name for: parentAttrDefNameSetIdstatic final String
constant for field name for: sourceIdstatic final String
constant for field name for: thenHasAttributeDefNameIdstatic final String
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, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clone()
deep clone the fields in this objectsave the state when retrieving from DBsee which fields have changed compared to the DB state (last known) note that attributes will print out: attribute__attributeNamevoid
take a snapshot of the data since this is what is in the dbvoid
delete()
delete this objectint
getDepth()
getId()
boolean
boolean
void
onPostSave
(HibernateSession hibernateSession) after a save (insert) occursvoid
onPreDelete
(HibernateSession hibernateSession) before a delete (insert) occursvoid
onPreUpdate
(HibernateSession hibernateSession) before an update occursvoid
save or update this objectvoid
setContextId
(String contextId) set context idvoid
setDepth
(int depth) void
set idvoid
setIfHasAttributeDefNameId
(String ifHasAttributeDefNameId) void
setNotificationsForRolesWithPermissionChangesOnSaveOrUpdate
(boolean notificationsForRolesWithPermissionChangesOnSaveOrUpdate) void
setNotificationsForSubjectsWithPermissionChangesOnSaveOrUpdate
(boolean notificationsForSubjectsWithPermissionChangesOnSaveOrUpdate) void
setParentAttrDefNameSetId
(String parentAttrDefNameSetId) void
setSaveChangeLogUpdates
(boolean saveChangeLogUpdates) void
setSourceId
(String sourceId) set source idvoid
setThenHasAttributeDefNameId
(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
-
Field Details
-
COLUMN_ID
db id for this row- See Also:
-
COLUMN_CONTEXT_ID
Context id links together multiple operations into one high level action- See Also:
-
COLUMN_DEPTH
depth- See Also:
-
COLUMN_IF_HAS_ATTRIBUTE_DEF_NAME_ID
ifHasAttributeDefNameId- See Also:
-
COLUMN_THEN_HAS_ATTRIBUTE_DEF_NAME_ID
thenHasAttributeDefNameId- See Also:
-
COLUMN_PARENT_ATTR_DEF_NAME_SET_ID
parentAttrDefNameSetId- See Also:
-
COLUMN_SOURCE_ID
column- See Also:
-
FIELD_SOURCE_ID
constant for field name for: sourceId- See Also:
-
FIELD_CONTEXT_ID
constant for field name for: contextId- See Also:
-
FIELD_DEPTH
constant for field name for: depth- See Also:
-
FIELD_ID
constant for field name for: id- See Also:
-
FIELD_IF_HAS_ATTRIBUTE_DEF_NAME_ID
constant for field name for: ifHasAttributeDefNameId- See Also:
-
FIELD_THEN_HAS_ATTRIBUTE_DEF_NAME_ID
constant for field name for: thenHasAttributeDefNameId- See Also:
-
FIELD_PARENT_ATTR_DEF_NAME_SET_ID
constant for field name for: parentAttrDefNameSetId- See Also:
-
TABLE_GROUPER_PIT_ATTRIBUTE_DEF_NAME_SET
name of the table in the database.- See Also:
-
-
Constructor Details
-
PITAttributeDefNameSet
public PITAttributeDefNameSet()
-
-
Method Details
-
setSaveChangeLogUpdates
public void setSaveChangeLogUpdates(boolean saveChangeLogUpdates) - Parameters:
saveChangeLogUpdates
- the saveChangeLogUpdates to set
-
getChangeLogUpdates
- Returns:
- changelog entries
-
clearChangeLogUpdates
public void clearChangeLogUpdates() -
getSourceId
- Returns:
- source id
-
setSourceId
set source id- Parameters:
sourceId
-
-
getNotificationsForRolesWithPermissionChangesOnSaveOrUpdate
public boolean getNotificationsForRolesWithPermissionChangesOnSaveOrUpdate()- Returns:
- boolean
-
setNotificationsForRolesWithPermissionChangesOnSaveOrUpdate
public void setNotificationsForRolesWithPermissionChangesOnSaveOrUpdate(boolean notificationsForRolesWithPermissionChangesOnSaveOrUpdate) - Parameters:
notificationsForRolesWithPermissionChangesOnSaveOrUpdate
-
-
getNotificationsForSubjectsWithPermissionChangesOnSaveOrUpdate
public boolean getNotificationsForSubjectsWithPermissionChangesOnSaveOrUpdate()- Returns:
- boolean
-
setNotificationsForSubjectsWithPermissionChangesOnSaveOrUpdate
public void setNotificationsForSubjectsWithPermissionChangesOnSaveOrUpdate(boolean notificationsForSubjectsWithPermissionChangesOnSaveOrUpdate) - Parameters:
notificationsForSubjectsWithPermissionChangesOnSaveOrUpdate
-
-
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:
-
getContextId
- Returns:
- context id
-
setContextId
set context id- Parameters:
contextId
-
-
getId
- Returns:
- id
-
setId
set id- Parameters:
id
-
-
getParentAttrDefNameSetId
- Returns:
- parentAttrDefNameSetId
-
setParentAttrDefNameSetId
- Parameters:
parentAttrDefNameSetId
-
-
getThenHasAttributeDefNameId
- Returns:
- thenHasAttributeDefNameId
-
setThenHasAttributeDefNameId
- Parameters:
thenHasAttributeDefNameId
-
-
getIfHasAttributeDefNameId
- Returns:
- ifHasAttributeDefNameId
-
setIfHasAttributeDefNameId
- 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
Description copied from interface:HibGrouperLifecycle
before an update occurs- Specified by:
onPreUpdate
in interfaceHibGrouperLifecycle
- Overrides:
onPreUpdate
in classGrouperAPI
- See Also:
-
onPostSave
Description copied from interface:HibGrouperLifecycle
after a save (insert) occurs- Specified by:
onPostSave
in interfaceHibGrouperLifecycle
- Overrides:
onPostSave
in classGrouperAPI
- See Also:
-
dbVersion
save the state when retrieving from DB- Overrides:
dbVersion
in classGrouperAPI
- Returns:
- the dbVersion
-
dbVersionReset
public void dbVersionReset()take a snapshot of the data since this is what is in the db- Overrides:
dbVersionReset
in classGrouperAPI
-
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 classGrouperAPI
- Returns:
- a set of attributes changed, or empty set if none
- See Also:
-
onPreDelete
Description copied from interface:HibGrouperLifecycle
before a delete (insert) occurs- Specified by:
onPreDelete
in interfaceHibGrouperLifecycle
- Overrides:
onPreDelete
in classGrouperAPI
- See Also:
-
getIfHasPITAttributeDefName
- Returns:
- ifHasAttrDefName
-
getThenHasPITAttributeDefName
- Returns:
- thenHasAttrDefName
-
getParentPITAttributeDefNameSet
- Returns:
- parentAttrDefNameSet
-