public class Membership extends GrouperAPI implements GrouperHasContext, Hib3GrouperVersioned, XmlImportable<Membership>, AttributeAssignable
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_GET_ATTR_DEF |
static String |
CACHE_GET_GROUP |
static String |
CACHE_GET_STEM |
static String |
COLUMN_CREATE_TIME
col
|
static String |
COLUMN_CREATOR_ID
col
|
static String |
COLUMN_DEPTH |
static String |
COLUMN_DEPTH_BAK |
static String |
COLUMN_DISABLED_TIMESTAMP
epoch time of when to disable membership
|
static String |
COLUMN_ENABLED
whether the membership is enabled or disabled: T|F
|
static String |
COLUMN_ENABLED_TIMESTAMP
epoch time of when to enable membership
|
static String |
COLUMN_FIELD_ID
id col in db
|
static String |
COLUMN_ID
id col in db
|
static String |
COLUMN_LIST_NAME
list_name col in db
|
static String |
COLUMN_LIST_TYPE
list_type col in db
|
static String |
COLUMN_MEMBER_ID
col
|
static String |
COLUMN_MEMBERSHIP_UUID
uuid col in db
|
static String |
COLUMN_MSHIP_TYPE
col
|
static String |
COLUMN_OLD_ID
old id col for id conversion
|
static String |
COLUMN_OLD_LIST_NAME
old_list_name col in db
|
static String |
COLUMN_OLD_LIST_TYPE
old_list_type col in db
|
static String |
COLUMN_OLD_MEMBERSHIP_UUID
old uuid id col for id conversion
|
static String |
COLUMN_OWNER_ATTR_DEF_ID |
static String |
COLUMN_OWNER_GROUP_ID |
static String |
COLUMN_OWNER_ID |
static String |
COLUMN_OWNER_STEM_ID |
static String |
COLUMN_PARENT_MEMBERSHIP |
static String |
COLUMN_PARENT_MEMBERSHIP_BAK
col
|
static String |
COLUMN_VIA_COMPOSITE_ID |
static String |
COLUMN_VIA_ID |
static String |
COLUMN_VIA_ID_BAK |
static String |
COMPOSITE
Deprecated.
|
static String |
EFFECTIVE
Deprecated.
|
static String |
FIELD_CONTEXT_ID
constant for field name for: contextId
|
static String |
FIELD_CREATE_TIME_LONG
constant for field name for: createTimeLong
|
static String |
FIELD_CREATOR_UUID
constant for field name for: creatorUUID
|
static String |
FIELD_DB_VERSION
constant for field name for: dbVersion
|
static String |
FIELD_DEPTH
constant for field name for: depth
|
static String |
FIELD_DISABLED_TIME_DB
constant for field name for: disabledTimeDb
|
static String |
FIELD_ENABLED
constant for field name for: enabled
|
static String |
FIELD_ENABLED_TIME_DB
constant for field name for: enabledTimeDb
|
static String |
FIELD_FIELD_ID
constant for field name for: fieldId
|
static String |
FIELD_GROUP_SET_CREATE_TIME_LONG
constant for field name for: groupSetCreateTimeLong
|
static String |
FIELD_GROUP_SET_CREATOR_UUID
constant for field name for: groupSetCreatorUUID
|
static String |
FIELD_GROUP_SET_ID
constant for field name for: groupSetId
|
static String |
FIELD_GROUP_SET_PARENT_ID
constant for field name for: groupSetParentId
|
static String |
FIELD_IMMEDIATE_MEMBERSHIP_ID
constant for field name for: immediateMembershipId
|
static String |
FIELD_MEMBER_UUID
constant for field name for: memberUUID
|
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_STEM_ID
constant for field name for: ownerStemId
|
static String |
FIELD_TYPE
constant for field name for: type
|
static String |
FIELD_UUID
constant for field name for: uuid
|
static String |
FIELD_VIA_COMPOSITE_ID
constant for field name for: viaCompositeId
|
static String |
FIELD_VIA_GROUP_ID
constant for field name for: viaGroupId
|
static String |
IMMEDIATE
Deprecated.
|
static String |
membershipIdSeparator
separator used in the uuid field to split immediate_membership_id and group_set_id
|
static String |
OWNER_TYPE_ATTRIBUTE_DEF
attr def owner type for change log
|
static String |
OWNER_TYPE_GROUP
group owner type for change log
|
static String |
OWNER_TYPE_STEM
stem owner type for change log
|
static String |
TABLE_GROUPER_MEMBERSHIPS
table name where memberships are stored
|
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Constructor and Description |
---|
Membership() |
Modifier and Type | Method and Description |
---|---|
void |
addMembershipAddChangeLog()
add a change log entry for a membership add
|
void |
addMembershipDeleteChangeLog(Member member)
add a change log entry for a membership delete
|
Membership |
clone()
deep clone the fields in this object
|
Membership |
dbVersion()
save the state when retrieving from DB
|
Set<String> |
dbVersionDifferentFields()
note, these are massaged so that name, extension, etc look like normal fields.
|
void |
dbVersionReset()
take a snapshot of the data since this is what is in the db
|
void |
delete()
delete this record (and security and actions etc, but not attribute def names yet)
|
void |
deleteAndStore()
e.g.
|
boolean |
equals(Object other) |
protected static Set<String> |
fixComposites(Set<Composite> composites,
String ownerGroupId,
Set<String> membersList) |
AttributeDef |
getAttributeDef()
Deprecated.
use getOwnerAttributeDef() instead
|
AttributeAssignMembershipDelegate |
getAttributeDelegate()
get the logic delegate
|
AttributeAssignEffMshipDelegate |
getAttributeDelegateEffMship()
delegate for effective memberships
|
AttributeValueDelegate |
getAttributeValueDelegate()
this delegate works on attributes and values at the same time
|
AttributeValueDelegate |
getAttributeValueDelegateEffMship()
this delegate works on attributes and values at the same time
|
Set |
getChildMemberships()
Get child memberships of this membership.
|
String |
getContextId()
context id of the transaction
|
Date |
getCreateTime() |
long |
getCreateTimeLong()
This returns the create time of the membership.
|
Member |
getCreator() |
String |
getCreatorUuid()
This returns the creator of the membership.
|
int |
getDepth()
number of hops between this membership and direct membership
|
Timestamp |
getDisabledTime()
Time when this membership is disabled if the value is in the future.
|
Long |
getDisabledTimeDb()
Time when this membership is disabled if the value is in the future.
|
String |
getEnabledDb()
Whether or not this membership is enabled.
|
Timestamp |
getEnabledTime()
Time when this membership is enabled if the value is in the future.
|
Long |
getEnabledTimeDb()
Time when this membership is enabled if the value is in the future.
|
Field |
getField()
get the field based on field id (if there is one there)
|
String |
getFieldId()
id of the field which is the list name and type
|
Group |
getGroup()
Deprecated.
use getOwnerGroup() instead
|
String |
getGroupName()
getter for group name if group membership
|
long |
getGroupSetCreateTimeLong() |
String |
getGroupSetCreatorUuid() |
String |
getGroupSetId() |
String |
getGroupSetParentId() |
String |
getImmediateFieldId()
id of the field for the immediate membership that causes this membership
|
String |
getImmediateMembershipId() |
Field |
getList()
Get this membership's list.
|
String |
getListName() |
String |
getListType() |
Member |
getMember()
Get this membership's member.
|
String |
getMemberSourceId() |
String |
getMemberSubjectId() |
String |
getMemberUuid() |
String |
getOwnerAttrDefId()
if attrDef membership, this is the attrDef id
|
AttributeDef |
getOwnerAttributeDef()
Get this membership's group.
|
Group |
getOwnerGroup()
Get this membership's group.
|
String |
getOwnerGroupId()
if group membership, this is the group id
|
String |
getOwnerId()
get the owner id
|
String |
getOwnerName()
get the name of the owner (group or stem)
|
Stem |
getOwnerStem() |
String |
getOwnerStemId()
if this is a stem membership, this is the stem id
|
Membership |
getParentMembership()
Get parent membership of this membership.
|
String |
getParentUuid() |
Stem |
getStem()
Deprecated.
use getOwnerStem() instead
|
String |
getType() |
MembershipType |
getTypeEnum()
get MembershipType of type
|
String |
getUuid() |
Composite |
getViaComposite()
A composite group is composed of two groups and a set operator
(stored in grouper_composites table)
(e.g.
|
String |
getViaCompositeId()
if composite, this is composite id
|
Group |
getViaGroup()
Get this membership's via group.
|
String |
getViaGroupId()
if effective, this is group it is in
|
int |
hashCode() |
static Membership |
internal_addImmediateMembership(GrouperSession s,
AttributeDef attributeDef,
Subject subj,
Field f,
String uuid) |
static Membership |
internal_addImmediateMembership(GrouperSession s,
Group g,
Subject subj,
Field f,
String uuid,
Timestamp startDate,
Timestamp endDate) |
static Membership |
internal_addImmediateMembership(GrouperSession s,
Stem ns,
Subject subj,
Field f,
String uuid) |
static void |
internal_deleteAllField(GrouperSession s,
AttributeDef attributeDef,
Field f) |
static void |
internal_deleteAllField(GrouperSession s,
Group g,
Field f) |
static void |
internal_deleteAllField(GrouperSession s,
Stem ns,
Field f) |
static void |
internal_deleteAllFieldType(GrouperSession s,
AttributeDef attributeDef,
FieldType type) |
static void |
internal_deleteAllFieldType(GrouperSession s,
Group g,
FieldType type) |
static void |
internal_deleteAllFieldType(GrouperSession s,
Stem ns,
FieldType type) |
static Membership |
internal_delImmediateMembership(GrouperSession s,
AttributeDef attributeDef,
Subject subj,
Field f) |
static Membership |
internal_delImmediateMembership(GrouperSession s,
Group g,
Subject subj,
Field f) |
static Membership |
internal_delImmediateMembership(GrouperSession s,
Stem ns,
Subject subj,
Field f) |
static int |
internal_fixEnabledDisabled()
fix enabled and disabled memberships, and return the count of how many were fixed
|
boolean |
isComposite()
if this is a composite membership
|
boolean |
isEffective()
if this is a effective membership
|
boolean |
isEnabled()
Is this membership enabled? Only applies to immediate memberships.
|
boolean |
isImmediate()
if this is a immediate membership
|
static String |
membershipOwnerMemberToString(Collection<Object[]> membershipGroupMembers)
convert membership owner member to string
|
void |
onPostDelete(HibernateSession hibernateSession)
after a delete occurs
|
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
|
static void |
resolveSubjects(Collection<Object[]> rows)
resolve subjects from a collection of arrays of rows of object (typically members are the 3rd index)
|
static Set<Group> |
retrieveGroups(Collection<Membership> memberships)
retrieve a set of groups based on some memberships (and store in each membership, like getGroup
|
void |
setContextId(String contextId1)
context id of the transaction
|
void |
setCreateTimeLong(long createTime) |
void |
setCreatorUuid(String creatorUUID) |
void |
setDepth(int depth) |
void |
setDisabledTime(Timestamp disabledTimeDb)
Set the time to disable this membership.
|
void |
setDisabledTimeDb(Long disabledTimeDb)
Set the time to disable this membership.
|
void |
setEnabled(boolean enabled)
Whether to enable or disable this membership.
|
void |
setEnabledDb(String enabled)
Whether to enable or disable this membership.
|
void |
setEnabledTime(Timestamp enabledTimeDb)
Set the time when this membership should be enabled.
|
void |
setEnabledTimeDb(Long enabledTimeDb)
Set the time when this membership should be enabled.
|
void |
setFieldId(String fieldId1)
id of the field which is the list name and type
|
void |
setGroupSetCreateTimeLong(long groupSetCreateTimeLong) |
void |
setGroupSetCreatorUuid(String groupSetCreatorUUID) |
void |
setGroupSetId(String groupSetId) |
void |
setGroupSetParentId(String groupSetParentId) |
void |
setImmediateFieldId(String immediateFieldId)
id of the field for the immediate membership that causes this membership
|
void |
setImmediateMembershipId(String immediateMembershipId)
Set the immediate membership id
|
void |
setMember(Member member)
this can be called to set the member object even though the memberuuid is not
changing
|
void |
setMemberUuid(String memberUUID) |
void |
setOwnerAttrDefId(String attrDefId1)
if this is an attrDef membership, this is the attrDef id
|
void |
setOwnerAttributeDef(AttributeDef attributeDef)
set the owner attributeDef
|
void |
setOwnerGroup(Group group)
set the owner group
|
void |
setOwnerGroupId(String groupId1)
if this is a group membership, this is the group id
|
void |
setOwnerId(String owner)
This is for internal use only.
|
void |
setOwnerStem(Stem stem)
set the owner stem
|
void |
setOwnerStemId(String stemId1)
if this is a stem membership, this is the stem id
|
void |
setType(String type) |
void |
setUuid(String uuid) |
void |
setViaCompositeId(String viaCompositeId)
if composite, this is composite id
|
void |
setViaGroupId(String viaGroupId)
if effective, this is group it is in
|
String |
toString() |
void |
update()
update this record to the DB
|
protected static void |
updateLastMembershipChangeDuringMembersListUpdate(Set<String> groupIds)
Update the last_membership_change for the ancestor groups and stems for the given groups.
|
void |
xmlCopyBusinessPropertiesToExisting(Membership existingRecord)
copy business (non update) properties to an existing record
|
boolean |
xmlDifferentBusinessProperties(Membership other)
see if the non update cols are different (e.g.
|
boolean |
xmlDifferentUpdateProperties(Membership other)
see if the update cols are different (e.g.
|
String |
xmlGetId()
set id key in db
|
Membership |
xmlRetrieveByIdOrKey()
retrieve from db by id or key.
|
Membership |
xmlSaveBusinessProperties(Membership existingRecord)
save the business properties (not update properties)
|
void |
xmlSaveUpdateProperties()
save the udpate properties (e.g.
|
void |
xmlSetId(String theId)
set id key in db
|
XmlExportMembership |
xmlToExportMembership(GrouperVersion grouperVersion)
convert to xml bean for export
|
String |
xmlToString()
convert to string for log
|
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onSave, onUpdate, setHibernateVersionNumber
public static final String FIELD_CONTEXT_ID
public static final String TABLE_GROUPER_MEMBERSHIPS
public static final String COLUMN_ID
public static final String COLUMN_FIELD_ID
public static final String COLUMN_LIST_NAME
public static final String COLUMN_LIST_TYPE
public static final String COLUMN_OLD_LIST_NAME
public static final String COLUMN_OLD_LIST_TYPE
public static final String COLUMN_MEMBERSHIP_UUID
public static final String COLUMN_OLD_ID
public static final String COLUMN_OLD_MEMBERSHIP_UUID
public static final String COLUMN_DISABLED_TIMESTAMP
public static final String COLUMN_ENABLED_TIMESTAMP
public static final String COLUMN_ENABLED
public static final String FIELD_CREATE_TIME_LONG
public static final String FIELD_CREATOR_UUID
public static final String FIELD_GROUP_SET_CREATE_TIME_LONG
public static final String FIELD_GROUP_SET_CREATOR_UUID
public static final String FIELD_DB_VERSION
public static final String FIELD_DEPTH
public static final String FIELD_FIELD_ID
public static final String FIELD_MEMBER_UUID
public static final String FIELD_OWNER_GROUP_ID
public static final String FIELD_OWNER_STEM_ID
public static final String FIELD_OWNER_ATTR_DEF_ID
public static final String FIELD_TYPE
public static final String FIELD_UUID
public static final String FIELD_GROUP_SET_ID
public static final String FIELD_VIA_COMPOSITE_ID
public static final String FIELD_VIA_GROUP_ID
public static final String FIELD_GROUP_SET_PARENT_ID
public static final String FIELD_IMMEDIATE_MEMBERSHIP_ID
public static final String FIELD_DISABLED_TIME_DB
public static final String FIELD_ENABLED
public static final String FIELD_ENABLED_TIME_DB
@Deprecated public static final String COMPOSITE
@Deprecated public static final String EFFECTIVE
@Deprecated public static final String IMMEDIATE
public static final String OWNER_TYPE_GROUP
public static final String OWNER_TYPE_STEM
public static final String OWNER_TYPE_ATTRIBUTE_DEF
public static final String membershipIdSeparator
public static final String CACHE_GET_GROUP
public static final String CACHE_GET_ATTR_DEF
public static final String CACHE_GET_STEM
public static final String COLUMN_VIA_ID_BAK
public static final String COLUMN_VIA_COMPOSITE_ID
public static final String COLUMN_OWNER_STEM_ID
public static final String COLUMN_OWNER_GROUP_ID
public static final String COLUMN_OWNER_ATTR_DEF_ID
public static final String COLUMN_OWNER_ID
public static final String COLUMN_VIA_ID
public static final String COLUMN_DEPTH
public static final String COLUMN_DEPTH_BAK
public static final String COLUMN_PARENT_MEMBERSHIP
public static final String COLUMN_PARENT_MEMBERSHIP_BAK
public static final String COLUMN_MEMBER_ID
public static final String COLUMN_MSHIP_TYPE
public static final String COLUMN_CREATOR_ID
public static final String COLUMN_CREATE_TIME
public static void resolveSubjects(Collection<Object[]> rows)
rows
- public void update()
public String getOwnerName()
public AttributeAssignMembershipDelegate getAttributeDelegate()
AttributeAssignable
getAttributeDelegate
in interface AttributeAssignable
public AttributeValueDelegate getAttributeValueDelegate()
getAttributeValueDelegate
in interface AttributeAssignable
public boolean isEnabled()
public void deleteAndStore()
public void delete()
public void setEnabled(boolean enabled)
enabled
- public String getEnabledDb()
public void setEnabledDb(String enabled)
enabled
- public Long getEnabledTimeDb()
public Timestamp getEnabledTime()
public void setEnabledTimeDb(Long enabledTimeDb)
enabledTimeDb
- public void setEnabledTime(Timestamp enabledTimeDb)
enabledTimeDb
- public Long getDisabledTimeDb()
public Timestamp getDisabledTime()
public void setDisabledTimeDb(Long disabledTimeDb)
disabledTimeDb
- public void setDisabledTime(Timestamp disabledTimeDb)
disabledTimeDb
- public boolean isComposite()
public boolean isImmediate()
public boolean isEffective()
public Set getChildMemberships()
Set children = ms.getChildMemberships();
Membership
objects.public String getGroupSetParentId()
public void setGroupSetParentId(String groupSetParentId)
groupSetParentId
- public Date getCreateTime()
public Member getCreator() throws MemberNotFoundException
MemberNotFoundException
public int getDepth()
public String getGroupName()
@Deprecated public Group getGroup() throws GroupNotFoundException
Group g = ms.getGroup();
Group
GroupNotFoundException
- if group not found@Deprecated public AttributeDef getAttributeDef() throws AttributeDefNotFoundException
Group g = ms.getAttributeDef();
AttributeDef
AttributeDefNotFoundException
- if attrDef not foundpublic AttributeDef getOwnerAttributeDef() throws AttributeDefNotFoundException
Group g = ms.getAttributeDef();
AttributeDef
AttributeDefNotFoundException
- if attrDef not foundpublic static Set<Group> retrieveGroups(Collection<Membership> memberships)
memberships
- public Field getList()
String list = g.getList();
Field
type of this membership.public String getMemberSubjectId()
public String getMemberSourceId()
public Member getMember() throws MemberNotFoundException
Member m = ms.getMember();
Member
MemberNotFoundException
public Membership getParentMembership() throws MembershipNotFoundException
try { Membership parent = ms.getParentMembership(); } catch (MembershipNotFoundException e) { // Unable to retrieve parent membership }
Membership
MembershipNotFoundException
@Deprecated public Stem getStem() throws StemNotFoundException
StemNotFoundException
public String getType()
public MembershipType getTypeEnum()
public String getUuid()
public String getParentUuid()
public Composite getViaComposite() throws CompositeNotFoundException
CompositeNotFoundException
public Group getViaGroup() throws GroupNotFoundException
Group
s with Composite
memberships will not have a
via group. Use the getViaComposite()
method instead.
try { Group via = ms.getViaGroup(); } catch (GroupNotFoundException e) { // Unable to retrieve via group }
Group
GroupNotFoundException
public static Membership internal_addImmediateMembership(GrouperSession s, Group g, Subject subj, Field f, String uuid, Timestamp startDate, Timestamp endDate) throws MemberAddException
s
- g
- subj
- f
- uuid
- is uuid or nullstartDate
- endDate
- MemberAddException
public static Membership internal_addImmediateMembership(GrouperSession s, Stem ns, Subject subj, Field f, String uuid) throws MemberAddException
s
- ns
- subj
- f
- uuid
- MemberAddException
public static Membership internal_delImmediateMembership(GrouperSession s, Group g, Subject subj, Field f) throws MemberDeleteException
s
- g
- subj
- f
- MemberDeleteException
public static Membership internal_delImmediateMembership(GrouperSession s, Stem ns, Subject subj, Field f) throws MemberDeleteException
s
- ns
- subj
- f
- MemberDeleteException
public static void internal_deleteAllField(GrouperSession s, Group g, Field f) throws MemberDeleteException, SchemaException
s
- g
- f
- MemberDeleteException
SchemaException
public static void internal_deleteAllField(GrouperSession s, Stem ns, Field f) throws MemberDeleteException
s
- ns
- f
- MemberDeleteException
public static void internal_deleteAllFieldType(GrouperSession s, Group g, FieldType type) throws MemberDeleteException, SchemaException
s
- g
- type
- MemberDeleteException
SchemaException
public static void internal_deleteAllFieldType(GrouperSession s, Stem ns, FieldType type) throws MemberDeleteException, SchemaException
s
- ns
- type
- MemberDeleteException
SchemaException
public boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
public long getCreateTimeLong()
public String getCreatorUuid()
public static String membershipOwnerMemberToString(Collection<Object[]> membershipGroupMembers)
membershipGroupMembers
- public String getListName()
public Field getField()
public String getListType()
public String getMemberUuid()
public String getGroupSetId()
public void setGroupSetId(String groupSetId)
groupSetId
- public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave
in interface HibGrouperLifecycle
onPreSave
in class GrouperAPI
GrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void setCreateTimeLong(long createTime)
createTime
- public void setCreatorUuid(String creatorUUID)
creatorUUID
- public long getGroupSetCreateTimeLong()
public void setGroupSetCreateTimeLong(long groupSetCreateTimeLong)
groupSetCreateTimeLong
- public String getGroupSetCreatorUuid()
public void setGroupSetCreatorUuid(String groupSetCreatorUUID)
groupSetCreatorUUID
- public void setDepth(int depth)
depth
- public void setMember(Member member)
member
- public void setMemberUuid(String memberUUID)
memberUUID
- public void setType(String type)
type
- public void setUuid(String uuid)
uuid
- public String getViaGroupId()
public void setViaGroupId(String viaGroupId)
viaGroupId
- public String getViaCompositeId()
public void setViaCompositeId(String viaCompositeId)
viaCompositeId
- public void onPostDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostDelete
in interface HibGrouperLifecycle
onPostDelete
in class GrouperAPI
GrouperAPI.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPostSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostSave
in interface HibGrouperLifecycle
onPostSave
in class GrouperAPI
GrouperAPI.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
protected static void updateLastMembershipChangeDuringMembersListUpdate(Set<String> groupIds)
groupIds
- protected static Set<String> fixComposites(Set<Composite> composites, String ownerGroupId, Set<String> membersList)
composites
- ownerGroupId
- membersList
- public void onPostUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostUpdate
in interface HibGrouperLifecycle
onPostUpdate
in class GrouperAPI
GrouperAPI.onPostUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreDelete
in interface HibGrouperLifecycle
onPreDelete
in class GrouperAPI
GrouperAPI.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreUpdate
in interface HibGrouperLifecycle
onPreUpdate
in class GrouperAPI
GrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public Membership dbVersion()
dbVersion
in class GrouperAPI
public Set<String> dbVersionDifferentFields()
dbVersionDifferentFields
in class GrouperAPI
GrouperAPI.dbVersionDifferentFields()
public void dbVersionReset()
dbVersionReset
in class GrouperAPI
public static int internal_fixEnabledDisabled()
public Membership clone()
clone
in interface GrouperCloneable
clone
in class GrouperAPI
Object.clone()
public String getFieldId()
public void setFieldId(String fieldId1)
fieldId1
- public String getImmediateFieldId()
public void setImmediateFieldId(String immediateFieldId)
immediateFieldId
- public String getOwnerId()
public void setOwnerId(String owner)
owner
- public String getOwnerGroupId()
public String getOwnerAttrDefId()
public void setOwnerGroupId(String groupId1)
groupId1
- public Group getOwnerGroup()
Group g = ms.getGroup();
Group
GroupNotFoundException
- if group not foundpublic void setOwnerGroup(Group group)
group
- public void setOwnerAttributeDef(AttributeDef attributeDef)
attributeDef
- public void setOwnerStem(Stem stem)
stem
- public void setOwnerAttrDefId(String attrDefId1)
attrDefId1
- public String getOwnerStemId()
public void setOwnerStemId(String stemId1)
stemId1
- public String getContextId()
public void setContextId(String contextId1)
setContextId
in interface GrouperHasContext
contextId1
- public void setImmediateMembershipId(String immediateMembershipId)
immediateMembershipId
- public String getImmediateMembershipId()
public static Membership internal_addImmediateMembership(GrouperSession s, AttributeDef attributeDef, Subject subj, Field f, String uuid) throws MemberAddException
s
- attributeDef
- subj
- f
- uuid
- MemberAddException
public static void internal_deleteAllField(GrouperSession s, AttributeDef attributeDef, Field f) throws MemberDeleteException
s
- attributeDef
- f
- MemberDeleteException
public static void internal_deleteAllFieldType(GrouperSession s, AttributeDef attributeDef, FieldType type) throws MemberDeleteException, SchemaException
s
- attributeDef
- type
- MemberDeleteException
SchemaException
public static Membership internal_delImmediateMembership(GrouperSession s, AttributeDef attributeDef, Subject subj, Field f) throws MemberDeleteException
s
- attributeDef
- subj
- f
- MemberDeleteException
public void addMembershipAddChangeLog()
public void addMembershipDeleteChangeLog(Member member)
member
- public void xmlCopyBusinessPropertiesToExisting(Membership existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting
in interface XmlImportableBase<Membership>
XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)
public boolean xmlDifferentBusinessProperties(Membership other)
XmlImportableBase
xmlDifferentBusinessProperties
in interface XmlImportableBase<Membership>
other
- the one to compare withXmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)
public boolean xmlDifferentUpdateProperties(Membership other)
XmlImportableBase
xmlDifferentUpdateProperties
in interface XmlImportableBase<Membership>
other
- the one to compare withXmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)
public Membership xmlRetrieveByIdOrKey()
XmlImportable
xmlRetrieveByIdOrKey
in interface XmlImportable<Membership>
XmlImportable.xmlRetrieveByIdOrKey()
public Membership xmlSaveBusinessProperties(Membership existingRecord)
XmlImportableBase
xmlSaveBusinessProperties
in interface XmlImportableBase<Membership>
existingRecord
- null if insert, the object if exists in DB
generally just copy the hibernate version number, and last updated to the
object and store itXmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)
public void xmlSaveUpdateProperties()
XmlImportableBase
xmlSaveUpdateProperties
in interface XmlImportableBase<Membership>
XmlImportableBase.xmlSaveUpdateProperties()
public XmlExportMembership xmlToExportMembership(GrouperVersion grouperVersion)
grouperVersion
- public String xmlGetId()
XmlImportableBase
xmlGetId
in interface XmlImportableBase<Membership>
XmlImportableBase.xmlGetId()
public void xmlSetId(String theId)
XmlImportableBase
xmlSetId
in interface XmlImportableBase<Membership>
XmlImportableBase.xmlSetId(java.lang.String)
public String xmlToString()
XmlImportableBase
xmlToString
in interface XmlImportableBase<Membership>
XmlImportableBase.xmlToString()
public AttributeValueDelegate getAttributeValueDelegateEffMship()
public AttributeAssignEffMshipDelegate getAttributeDelegateEffMship()
public Stem getOwnerStem() throws StemNotFoundException
StemNotFoundException
Copyright © 2016 Internet2. All rights reserved.