Class PITGroup

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

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

  • Constructor Details

    • PITGroup

      public PITGroup()
  • Method Details

    • getSourceInternalId

      public Long getSourceInternalId()
      Returns:
      sourceInternalId
    • setSourceInternalId

      public void setSourceInternalId(Long sourceInternalId)
      Parameters:
      sourceInternalId -
    • getSourceId

      public String getSourceId()
      Returns:
      source id
    • setSourceId

      public void setSourceId(String sourceId)
      set source id
      Parameters:
      sourceId -
    • 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 -
    • getName

      public String getName()
      Returns:
      name
    • getNameDb

      public String getNameDb()
      Returns:
      name
    • setNameDb

      public void setNameDb(String name)
      Set name
      Parameters:
      name -
    • getStemId

      public String getStemId()
      Returns:
      stem id
    • setStemId

      public void setStemId(String stemId)
      Parameters:
      stemId -
    • saveOrUpdate

      public void saveOrUpdate()
      save or update this object
    • delete

      public void delete()
      delete this object
    • getMembers

      public Set<Member> getMembers(String fieldSourceId, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, Set<Source> sources, QueryOptions queryOptions)
      Get members of the group using point in time and the specified field. If the group currently exists, you must have read access to it. If it has been deleted, you must be wheel or root. You must also be wheel or root if the field has been deleted. An empty set is returned if you do not have appropriate privileges.
      Parameters:
      fieldSourceId - specifies the field id. This is required.
      pointInTimeFrom - the start of the range of the point in time query. This is optional.
      pointInTimeTo - the end of the range of the point in time query. This is optional. If this is the same as pointInTimeFrom, then the query will be done at a single point in time rather than a range.
      sources - optionally filter on subject source ids.
      queryOptions - optional query options.
      Returns:
      set of pit members
    • hasMember

      public boolean hasMember(Subject subject, String fieldSourceId, Timestamp pointInTimeFrom, Timestamp pointInTimeTo, QueryOptions queryOptions)
      Check if the group has a member using point in time and the specified field.
      Parameters:
      subject - specifies the subject. This is required.
      fieldSourceId - specifies the field id. This is required.
      pointInTimeFrom - the start of the range of the point in time query. This is optional.
      pointInTimeTo - the end of the range of the point in time query. This is optional. If this is the same as pointInTimeFrom, then the query will be done at a single point in time rather than a range.
      queryOptions - optional query options.
      Returns:
      boolean
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      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:
    • getPITStem

      public PITStem getPITStem()
      Returns:
      pitStem