Class PITRoleSet

All Implemented Interfaces:
HibGrouperLifecycle, Hib3GrouperVersioned, GrouperCloneable, GrouperUtil.FieldValuable, Serializable, org.hibernate.classic.Lifecycle

public class PITRoleSet extends GrouperPIT implements Hib3GrouperVersioned
See Also:
  • Field Details

  • Constructor Details

    • PITRoleSet

      public PITRoleSet()
  • Method Details

    • setSaveChangeLogUpdates

      public void setSaveChangeLogUpdates(boolean saveChangeLogUpdates)
      Parameters:
      saveChangeLogUpdates - the saveChangeLogUpdates to set
    • getChangeLogUpdates

      public List<ChangeLogEntry> getChangeLogUpdates()
      Returns:
      changelog entries
    • clearChangeLogUpdates

      public void clearChangeLogUpdates()
    • getSourceId

      public String getSourceId()
      Returns:
      source id
    • setSourceId

      public void setSourceId(String sourceId)
      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

      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:
    • 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 -
    • getParentRoleSetId

      public String getParentRoleSetId()
      Returns:
      parentRoleSetId
    • setParentRoleSetId

      public void setParentRoleSetId(String parentRoleSetId)
      Parameters:
      parentRoleSetId -
    • getThenHasRoleId

      public String getThenHasRoleId()
      Returns:
      thenHasRoleId
    • setThenHasRoleId

      public void setThenHasRoleId(String thenHasRoleId)
      Parameters:
      thenHasRoleId -
    • getIfHasRoleId

      public String getIfHasRoleId()
      Returns:
      ifHasRoleId
    • setIfHasRoleId

      public void setIfHasRoleId(String ifHasRoleId)
      Parameters:
      ifHasRoleId -
    • 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:
    • 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:
    • dbVersion

      public PITRoleSet 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:
    • 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:
    • getIfHasPITRole

      public PITGroup getIfHasPITRole()
      Returns:
      ifHasRole
    • getThenHasPITRole

      public PITGroup getThenHasPITRole()
      Returns:
      thenHasRole
    • getParentPITRoleSet

      public PITRoleSet getParentPITRoleSet()
      Returns:
      parentRoleSet