Class GroupSet
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.group.GroupSet
- All Implemented Interfaces:
HibGrouperLifecycle
,Hib3GrouperVersioned
,GrouperCloneable
,GrouperHasContext
,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
number of millis since 1970 that this record was createdstatic final String
member uuid of the creator of this recordstatic final String
number of hops in directed graphstatic final String
field represented by this group setstatic final String
db id for this rowstatic final String
member attr def if applicablestatic final String
field id used in joining this record with entries in grouper_membershipsstatic final String
member group if applicablestatic final String
member idstatic final String
member stem if applicablestatic final String
type of membership represented by this group set, immediate or composite or effectivestatic final String
owner attribute def if applicablestatic final String
same as owner_attr_def_id except nulls are replaced with the string '' static final String
owner group if applicablestatic final String
same as owner_group_id except nulls are replaced with the string '' static final String
owner idstatic final String
owner stem if applicablestatic final String
same as owner_stem_id except nulls are replaced with the string '' static final String
parent group setstatic final String
same as member_group_id if depth is greater than 0, otherwise null.static final String
constant for field name for: contextIdstatic final String
constant for field name for: createTimestatic final String
constant for field name for: creatorIdstatic final String
constant for field name for: depthstatic final String
constant for field name for: fieldIdstatic final String
constant for field name for: idstatic final String
constant for field name for: memberFieldIdstatic final String
constant for field name for: memberGroupIdstatic final String
constant for field name for: memberStemIdstatic final String
constant for field name for: typestatic final String
constant for field name for: ownerGroupIdstatic final String
constant for field name for: ownerGroupIdNullstatic final String
constant for field name for: ownerIdstatic final String
constant for field name for: ownerStemIdstatic final String
constant for field name for: ownerStemIdNullstatic final String
constant for field name for: parentIdstatic final String
constant for field name for: viaGroupIdstatic final String
the value we're storing in the db for nulls that need a value so that we can add a unique constraint.static final String
name of the group set table in the database.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 TypeMethodDescriptionclone()
deep clone the fields in this objectvoid
delete
(boolean forceDisablePITEntry) boolean
int
getDepth()
This is 0 for self memberships (where the owner and member are the same).getId()
get the member idThis is for internal use only.This is for internal use only.This is for internal use only.getType()
This is 'immediate' for self memberships (owner and member are the same) except if the group is a composite in which case this will be 'composite'.int
hashCode()
boolean
internal_isCircular
(GroupSet newGroupSet, GroupSet startGroupSet) Check if the new group set being added will cause a circular group set.void
onPostSave
(HibernateSession hibernateSession) after a save (insert) occursvoid
onPreDelete
(HibernateSession hibernateSession) before a delete (insert) occursvoid
onPreSave
(HibernateSession hibernateSession) before a save (insert) occursvoid
onPreUpdate
(HibernateSession hibernateSession) before an update occursvoid
setContextId
(String contextId) set context idvoid
setCreateTime
(Long createTime) set create timevoid
setCreatorId
(String creatorId) set creatorvoid
setDepth
(int depth) set depthvoid
setFieldId
(String fieldId) void
set idvoid
setMemberAttrDefId
(String memberAttrDefId1) Set attr def id for the member if the member is a attrdefvoid
setMemberFieldId
(String memberFieldId) Internal use only.void
setMemberGroupId
(String memberGroupId) Set group id for the member if the member is a groupvoid
setMemberId
(String member) This is for internal use only.void
setMemberStemId
(String memberStemId) Set stem id for the member if the member is a stemvoid
setOwnerAttrDefId
(String ownerAttrDefId1) Set attrdef id for the owner if this is a attrdef membershipvoid
setOwnerAttrDefIdNull
(String ownerAttrDefIdNull1) Set attrdef id for the owner if this is a attrdef membership.void
setOwnerGroupId
(String ownerGroupId) Set group id for the owner if this is a group membershipvoid
setOwnerGroupIdNull
(String ownerGroupIdNull) Set group id for the owner if this is a group membership.void
setOwnerId
(String ownerId) Set owner id.void
setOwnerStemId
(String ownerStemId) Set stem id for the owner if this is a stem membershipvoid
setOwnerStemIdNull
(String ownerStemIdNull) Set stem id for the owner if this is a stem membership.void
setParentId
(String parentId) set parent idvoid
set membership typevoid
setViaGroupId
(String viaGroupId) Set via group id.toString()
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostUpdate, 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_FIELD_ID
field represented by this group set- See Also:
-
COLUMN_MSHIP_TYPE
type of membership represented by this group set, immediate or composite or effective- See Also:
-
COLUMN_VIA_GROUP_ID
same as member_group_id if depth is greater than 0, otherwise null.- See Also:
-
COLUMN_DEPTH
number of hops in directed graph- See Also:
-
COLUMN_PARENT_ID
parent group set- See Also:
-
COLUMN_CREATOR_ID
member uuid of the creator of this record- See Also:
-
COLUMN_CREATE_TIME
number of millis since 1970 that this record was created- See Also:
-
COLUMN_OWNER_ID
owner id- See Also:
-
COLUMN_OWNER_GROUP_ID
owner group if applicable- See Also:
-
COLUMN_OWNER_GROUP_ID_NULL
same as owner_group_id except nulls are replaced with the string '' - See Also:
-
COLUMN_OWNER_ATTR_DEF_ID
owner attribute def if applicable- See Also:
-
COLUMN_OWNER_ATTR_DEF_ID_NULL
same as owner_attr_def_id except nulls are replaced with the string '' - See Also:
-
COLUMN_OWNER_STEM_ID
owner stem if applicable- See Also:
-
COLUMN_OWNER_STEM_ID_NULL
same as owner_stem_id except nulls are replaced with the string '' - See Also:
-
COLUMN_MEMBER_GROUP_ID
member group if applicable- See Also:
-
COLUMN_MEMBER_ATTR_DEF_ID
member attr def if applicable- See Also:
-
COLUMN_MEMBER_STEM_ID
member stem if applicable- See Also:
-
COLUMN_MEMBER_ID
member id- See Also:
-
COLUMN_MEMBER_FIELD_ID
field id used in joining this record with entries in grouper_memberships- See Also:
-
FIELD_CONTEXT_ID
constant for field name for: contextId- See Also:
-
FIELD_CREATE_TIME
constant for field name for: createTime- See Also:
-
FIELD_CREATOR_ID
constant for field name for: creatorId- See Also:
-
FIELD_DEPTH
constant for field name for: depth- See Also:
-
FIELD_VIA_GROUP_ID
constant for field name for: viaGroupId- See Also:
-
FIELD_FIELD_ID
constant for field name for: fieldId- See Also:
-
FIELD_MSHIP_TYPE
constant for field name for: type- See Also:
-
FIELD_ID
constant for field name for: id- See Also:
-
FIELD_MEMBER_GROUP_ID
constant for field name for: memberGroupId- See Also:
-
FIELD_MEMBER_STEM_ID
constant for field name for: memberStemId- See Also:
-
FIELD_OWNER_ID
constant for field name for: ownerId- See Also:
-
FIELD_OWNER_GROUP_ID
constant for field name for: ownerGroupId- See Also:
-
FIELD_OWNER_GROUP_ID_NULL
constant for field name for: ownerGroupIdNull- See Also:
-
FIELD_OWNER_STEM_ID
constant for field name for: ownerStemId- See Also:
-
FIELD_OWNER_STEM_ID_NULL
constant for field name for: ownerStemIdNull- See Also:
-
FIELD_PARENT_ID
constant for field name for: parentId- See Also:
-
FIELD_MEMBER_FIELD_ID
constant for field name for: memberFieldId- See Also:
-
TABLE_GROUPER_GROUP_SET
name of the group set table in the database.- See Also:
-
nullColumnValue
the value we're storing in the db for nulls that need a value so that we can add a unique constraint.- See Also:
-
-
Constructor Details
-
GroupSet
public GroupSet()
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
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:
-
onPreSave
Description copied from interface:HibGrouperLifecycle
before a save (insert) occurs- Specified by:
onPreSave
in interfaceHibGrouperLifecycle
- Overrides:
onPreSave
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:
-
onPreDelete
Description copied from interface:HibGrouperLifecycle
before a delete (insert) occurs- Specified by:
onPreDelete
in interfaceHibGrouperLifecycle
- Overrides:
onPreDelete
in classGrouperAPI
- See Also:
-
internal_isCircular
Check if the new group set being added will cause a circular group set.- Parameters:
newGroupSet
- group set being addedstartGroupSet
- group set that's a parent of newGroupSet which will be used as a starting point to check if we're forming a circular group set- Returns:
- true if the new group set will cause a circular group set.
-
getParentGroupSet
- Returns:
- the parent group set
-
getId
- Returns:
- id
-
setId
set id- Parameters:
id
-
-
getContextId
- Returns:
- context id
-
setContextId
set context id- Specified by:
setContextId
in interfaceGrouperHasContext
- Parameters:
contextId
-
-
getFieldId
- Returns:
- field id
-
setFieldId
- Parameters:
fieldId
-
-
getMemberFieldId
- Returns:
- field id used in joining with grouper_memberships table
-
setMemberFieldId
Internal use only.- Parameters:
memberFieldId
-
-
getDepth
public int getDepth()This is 0 for self memberships (where the owner and member are the same). Otherwise, it's the number of hops in a directed graph from the member to the group.- Returns:
- depth
-
setDepth
public void setDepth(int depth) set depth- Parameters:
depth
-
-
getViaGroupId
- Returns:
- via group id
-
setViaGroupId
Set via group id. This is for internal use only.- Parameters:
viaGroupId
-
-
getParentId
- Returns:
- parent id
-
setParentId
set parent id- Parameters:
parentId
-
-
getCreatorId
- Returns:
- creator
-
setCreatorId
set creator- Parameters:
creatorId
-
-
getCreateTime
- Returns:
- create time
-
setCreateTime
set create time- Parameters:
createTime
-
-
getOwnerId
- Returns:
- owner id
-
setOwnerId
Set owner id. This is for internal use only.- Parameters:
ownerId
-
-
getOwnerGroupId
- Returns:
- group id for the owner if this is a group membership
-
setOwnerGroupId
Set group id for the owner if this is a group membership- Parameters:
ownerGroupId
-
-
getOwnerGroupIdNull
This is for internal use only. This is the same as getOwnerGroupId() except nulls are replaced with a constant string.- Returns:
- group id for the owner if this is a group membership
-
setOwnerGroupIdNull
Set group id for the owner if this is a group membership. This is for internal use only.- Parameters:
ownerGroupIdNull
-
-
getOwnerStemId
- Returns:
- stem id for the owner if this is a stem membership
-
setOwnerStemId
Set stem id for the owner if this is a stem membership- Parameters:
ownerStemId
-
-
getOwnerStemIdNull
This is for internal use only. This is the same as getOwnerStemId() except nulls are replaced with a constant string.- Returns:
- stem id for the owner if this is a stem membership
-
setOwnerStemIdNull
Set stem id for the owner if this is a stem membership. This is for internal use only.- Parameters:
ownerStemIdNull
-
-
getMemberGroupId
- Returns:
- group id for the member if the member is a group
-
setMemberGroupId
Set group id for the member if the member is a group- Parameters:
memberGroupId
-
-
getMemberStemId
- Returns:
- stem id for the member if the member is a stem
-
setMemberStemId
Set stem id for the member if the member is a stem- Parameters:
memberStemId
-
-
getType
This is 'immediate' for self memberships (owner and member are the same) except if the group is a composite in which case this will be 'composite'. For non-self memberships, this is 'effective'.- Returns:
- membership type (immediate, effective, or composite)
-
setType
set membership type- Parameters:
type
-
-
getMemberAttrDefId
- Returns:
- group id for the member if the member is a group
-
getOwnerAttrDefId
- Returns:
- attrdef id for the owner if this is a attrdef membership
-
getOwnerAttrDefIdNull
This is for internal use only. This is the same as getOwnerAttrDefId() except nulls are replaced with a constant string.- Returns:
- attr def id for the owner if this is a attrdef membership
-
setMemberAttrDefId
Set attr def id for the member if the member is a attrdef- Parameters:
memberAttrDefId1
-
-
setOwnerAttrDefId
Set attrdef id for the owner if this is a attrdef membership- Parameters:
ownerAttrDefId1
-
-
setOwnerAttrDefIdNull
Set attrdef id for the owner if this is a attrdef membership. This is for internal use only.- Parameters:
ownerAttrDefIdNull1
-
-
getMemberId
get the member id- Returns:
- the member id
-
setMemberId
This is for internal use only.- Parameters:
member
-
-
onPreUpdate
Description copied from interface:HibGrouperLifecycle
before an update occurs- Specified by:
onPreUpdate
in interfaceHibGrouperLifecycle
- Overrides:
onPreUpdate
in classGrouperAPI
- See Also:
-
delete
public void delete(boolean forceDisablePITEntry) - Parameters:
forceDisablePITEntry
- should only be used if we're removing a corrupt group set
-