public class Member extends GrouperAPI implements GrouperHasContext, Hib3GrouperVersioned, Comparable<Member>, XmlImportable<Member>, AttributeAssignable, GrouperId
| Modifier and Type | Field and Description |
|---|---|
static int |
changeSubjectDidntExist
change a subject to a subject which didnt exist
|
static int |
changeSubjectExist
change a subject to a subject which did exist
|
static int |
changeSubjectMembershipAddCount
number of memberships edited
|
static int |
changeSubjectMembershipDeleteCount
number of memberships deleted due to duplicates
|
static int |
changeSubjectSameSubject
change a subject to the same subject (for testing)
|
static String |
COLUMN_DESCRIPTION
description
|
static String |
COLUMN_ID
new uuid col in db
|
static String |
COLUMN_MEMBER_UUID
uuid col in db
|
static String |
COLUMN_NAME
name
|
static String |
COLUMN_OLD_ID
old id col for id conversion
|
static String |
COLUMN_OLD_MEMBER_UUID
old uuid id col for id conversion
|
static String |
COLUMN_SEARCH_STRING0
searchString0
|
static String |
COLUMN_SEARCH_STRING1
searchString1
|
static String |
COLUMN_SEARCH_STRING2
searchString2
|
static String |
COLUMN_SEARCH_STRING3
searchString3
|
static String |
COLUMN_SEARCH_STRING4
searchString4
|
static String |
COLUMN_SORT_STRING0
sortString0
|
static String |
COLUMN_SORT_STRING1
sortString1
|
static String |
COLUMN_SORT_STRING2
sortString2
|
static String |
COLUMN_SORT_STRING3
sortString3
|
static String |
COLUMN_SORT_STRING4
sortString4
|
static String |
COLUMN_SUBJECT_ID
column
|
static String |
COLUMN_SUBJECT_IDENTIFIER0
subjectIdentifier0
|
static String |
COLUMN_SUBJECT_RESOLUTION_DELETED
subjectResolutionDeleted
|
static String |
COLUMN_SUBJECT_RESOLUTION_RESOLVABLE
subjectResolutionResolvable
|
static String |
COLUMN_SUBJECT_SOURCE
column
|
static String |
COLUMN_SUBJECT_TYPE
column
|
static boolean |
DELETE_OLD_MEMBER
boolean constant for gsh param
|
static String |
FIELD_DB_VERSION
constant for field name for: dbVersion
|
static String |
FIELD_DESCRIPTION
constant for field name for: description
|
static String |
FIELD_MEMBER_UUID
constant for field name for: memberUUID
|
static String |
FIELD_NAME
constant for field name for: name
|
static String |
FIELD_SEARCH_STRING0
constant for field name for: searchString0
|
static String |
FIELD_SEARCH_STRING1
constant for field name for: searchString1
|
static String |
FIELD_SEARCH_STRING2
constant for field name for: searchString2
|
static String |
FIELD_SEARCH_STRING3
constant for field name for: searchString3
|
static String |
FIELD_SEARCH_STRING4
constant for field name for: searchString4
|
static String |
FIELD_SORT_STRING0
constant for field name for: sortString0
|
static String |
FIELD_SORT_STRING1
constant for field name for: sortString1
|
static String |
FIELD_SORT_STRING2
constant for field name for: sortString2
|
static String |
FIELD_SORT_STRING3
constant for field name for: sortString3
|
static String |
FIELD_SORT_STRING4
constant for field name for: sortString4
|
static String |
FIELD_SUBJECT_ID
constant for field name for: subjectID
|
static String |
FIELD_SUBJECT_IDENTIFIER0
constant for field name for: subjectIdentifier0
|
static String |
FIELD_SUBJECT_RESOLUTION_DELETED
constant for field name for: subjectResolutionDeleted
|
static String |
FIELD_SUBJECT_RESOLUTION_RESOLVABLE
constant for field name for: subjectResolutionResolvable
|
static String |
FIELD_SUBJECT_SOURCE_ID
constant for field name for: subjectSourceID
|
static String |
FIELD_SUBJECT_TYPE_ID
constant for field name for: subjectTypeID
|
static String |
PROPERTY_SUBJECT_ID
constant for property name for: subjectId
|
static String |
PROPERTY_UUID
javabeans property for uuid
|
static long |
serialVersionUID
serial version
|
static String |
TABLE_GROUPER_MEMBERS
grouper_members table in the DB
|
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER| Constructor and Description |
|---|
Member() |
| Modifier and Type | Method and Description |
|---|---|
Set<Group> |
_internal_getGroupsHelper(Field field,
MembershipType membershipType,
String scope,
Stem stem,
Stem.Scope stemScope,
QueryOptions queryOptions,
Boolean enabled)
Get groups where this member is a member.
|
boolean |
canAdmin(Group g)
|
boolean |
canAttrAdmin(AttributeDef attributeDef)
Can this
Member ATTR_ADMIN on this AttributeDef. |
boolean |
canAttrDefAttrRead(AttributeDef attributeDef)
Can this
Member ATTR_DEF_ATTR_READ on this AttributeDef. |
boolean |
canAttrDefAttrUpdate(AttributeDef attributeDef)
Can this
Member ATTR_DEF_ATTR_UPDATE on this AttributeDef. |
boolean |
canAttrOptin(AttributeDef attributeDef)
Can this
Member ATTR_OPTIN on this AttributeDef. |
boolean |
canAttrOptout(AttributeDef attributeDef)
Can this
Member ATTR_OPTOUT on this AttributeDef. |
boolean |
canAttrRead(AttributeDef attributeDef)
Can this
Member ATTR_READ on this AttributeDef. |
boolean |
canAttrUpdate(AttributeDef attributeDef)
Can this
Member ATTR_UPDATE on this AttributeDef. |
boolean |
canAttrView(AttributeDef attributeDef)
Can this
Member ATTR_VIEW on this AttributeDef. |
boolean |
canCreate(Stem ns)
|
boolean |
canGroupAttrRead(Group group)
|
boolean |
canGroupAttrUpdate(Group group)
|
boolean |
canOptin(Group g)
|
boolean |
canOptout(Group g)
|
boolean |
canRead(Group g)
|
boolean |
canStem(Stem ns)
|
boolean |
canStemAdmin(Stem stem)
|
boolean |
canStemAttrRead(Stem stem)
|
boolean |
canStemAttrUpdate(Stem stem)
|
boolean |
canUpdate(Group g)
|
boolean |
canView(Group g)
|
void |
changeSubject(Subject newSubject)
change the subject of a member to another subject.
|
void |
changeSubject(Subject newSubject,
boolean deleteOldMember)
change the subject of a member to another subject.
|
String |
changeSubjectReport(Subject newSubject,
boolean deleteOldMember)
This is the readonly dry run report version of this operation...
|
Member |
clone()
deep clone the fields in this object
|
int |
compareTo(Member o) |
Member |
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
|
boolean |
equals(Object other) |
AttributeAssignMemberDelegate |
getAttributeDelegate()
get the logic delegate
|
AttributeValueDelegate |
getAttributeValueDelegate()
this delegate works on attributes and values at the same time
|
String |
getContextId()
context id of the transaction
|
String |
getDescription() |
Set<Group> |
getEffectiveGroups()
Get groups where this member has an effective membership.
|
Set<Group> |
getEffectiveGroups(Field field)
Get groups where this member has an effective membership.
|
Set<Group> |
getEffectiveGroups(Field field,
String scope,
Stem stem,
Stem.Scope stemScope,
QueryOptions queryOptions,
Boolean enabled)
Get groups where this member is an effective member.
|
Set<Membership> |
getEffectiveMemberships()
Get effective memberships.
|
Set<Membership> |
getEffectiveMemberships(Field f)
Get effective memberships.
|
Set<Group> |
getGroups()
Get groups where this member is a member.
|
Set<Group> |
getGroups(Field field)
Get groups where this member is a member.
|
Set<Group> |
getGroups(Field field,
String scope,
Stem stem,
Stem.Scope stemScope,
QueryOptions queryOptions,
Boolean enabled)
Get groups where this member is a member.
|
String |
getId()
get a members id
|
Set<Group> |
getImmediateGroups()
Get groups where this member has an immediate membership.
|
Set<Group> |
getImmediateGroups(Field field)
Get groups where this member has an immediate membership.
|
Set<Group> |
getImmediateGroups(Field field,
String scope,
Stem stem,
Stem.Scope stemScope,
QueryOptions queryOptions,
Boolean enabled)
Get groups where this member is an immediate member.
|
Set<Membership> |
getImmediateMemberships()
Get immediate memberships.
|
Set<Membership> |
getImmediateMemberships(Field f)
Get immediate memberships.
|
Set<Membership> |
getMemberships()
Get memberships.
|
Set<Membership> |
getMemberships(Field f)
Get memberships.
|
Set<Membership> |
getMemberships(Field f,
boolean requireListField)
Get memberships.
|
String |
getName() |
Set<Group> |
getNonImmediateGroups()
Get groups where this member has a non immediate membership.
|
Set<Group> |
getNonImmediateGroups(Field field)
Get groups where this member has an immediate membership.
|
Set<Group> |
getNonImmediateGroups(Field field,
String scope,
Stem stem,
Stem.Scope stemScope,
QueryOptions queryOptions,
Boolean enabled)
Get groups where this member is a nonimmediate member.
|
Set<Membership> |
getNonImmediateMemberships()
Get non-immediate memberships.
|
Set<Membership> |
getNonImmediateMemberships(Field f)
Get non-immediate memberships.
|
Set<AccessPrivilege> |
getPrivs(Group g)
Find access privileges held by this member on a
Group. |
Set<NamingPrivilege> |
getPrivs(Stem ns)
Find naming privileges held by this member on a
Stem. |
String |
getSearchString0() |
String |
getSearchString1() |
String |
getSearchString2() |
String |
getSearchString3() |
String |
getSearchString4() |
String |
getSortString0() |
String |
getSortString1() |
String |
getSortString2() |
String |
getSortString3() |
String |
getSortString4() |
Subject |
getSubject()
Get
Subject that maps to this member. |
String |
getSubjectId() |
String |
getSubjectIdDb() |
String |
getSubjectIdentifier0() |
String |
getSubjectResolutionDeletedDb() |
String |
getSubjectResolutionResolvableDb() |
Source |
getSubjectSource()
Get the
Source of the subject that maps to this member. |
String |
getSubjectSourceId()
Get the
Source id of the subject that maps to this
member. |
String |
getSubjectSourceIdDb()
simple get subject source id
|
SubjectType |
getSubjectType()
Get the
SubjectType of the subject that maps to this member. |
String |
getSubjectTypeId()
Get the subject type id of the subject that maps to this member.
|
String |
getUuid()
Get member's UUID.
|
Set<Group> |
hasAdmin()
Get groups where this member has the ADMIN privilege.
|
boolean |
hasAdmin(Group g)
Report whether this member has ADMIN on the specified group.
|
Set<Stem> |
hasAdminInStem()
Get stems where this member has the ADMIN privilege of a group inside.
|
Set<AttributeDef> |
hasAttrAdmin()
Get attributeDefs where this member has the ATTR_ADMIN privilege.
|
boolean |
hasAttrAdmin(AttributeDef attributeDef)
Report whether this member has ATTR_ADMIN on the specified attributeDef.
|
Set<AttributeDef> |
hasAttrDefAttrRead()
Get attribute defs where this member has the ATTR_DEF_ATTR_READ privilege.
|
boolean |
hasAttrDefAttrRead(AttributeDef attributeDef)
Report whether this member has ATTR_DEF_ATTR_READ on the specified attributeDef.
|
Set<AttributeDef> |
hasAttrDefAttrUpdate()
Get attribute defs where this member has the ATTR_DEF_ATTR_UPDATE privilege.
|
boolean |
hasAttrDefAttrUpdate(AttributeDef attributeDef)
Report whether this member has ATTR_DEF_ATTR_UPDATE on the specified attributeDef.
|
Set<AttributeDef> |
hasAttrOptin()
Get attribute defs where this member has the ATTR_OPTIN privilege.
|
boolean |
hasAttrOptin(AttributeDef attributeDef)
Report whether this member has ATTR_OPTIN on the specified AttributeDef.
|
Set<AttributeDef> |
hasAttrOptout()
Get groups where this member has the ATTR_OPTOUT privilege.
|
boolean |
hasAttrOptout(AttributeDef attributeDef)
Report whether this member has ATTR_OPTOUT on the specified AttributeDef.
|
Set<AttributeDef> |
hasAttrRead()
Get groups where this member has the ATTR_READ privilege.
|
boolean |
hasAttrRead(AttributeDef attributeDef)
Report whether this member has ATTR_READ on the specified AttributeDef.
|
Set<AttributeDef> |
hasAttrUpdate()
Get groups where this member has the ATTR_UPDATE privilege.
|
boolean |
hasAttrUpdate(AttributeDef attributeDef)
Report whether this member has ATTR_UPDATE on the specified AttributeDef.
|
Set<AttributeDef> |
hasAttrView()
Get groups where this member has the ATTR_VIEW privilege.
|
boolean |
hasAttrView(AttributeDef attributeDef)
Report whether this member has ATTR_VIEW on the specified AttributeDef.
|
Set<Stem> |
hasCreate()
Get stems where this member has the CREATE privilege.
|
boolean |
hasCreate(Stem ns)
Report whether this member has CREATE on the specified stem.
|
Set<Group> |
hasGroupAttrRead()
Get groups where this member has the GROUP_ATTR_READ privilege.
|
boolean |
hasGroupAttrRead(Group group)
Report whether this member has GROUP_ATTR_READ on the specified group.
|
Set<Stem> |
hasGroupAttrReadInStem()
Get stems where this member has the GROUP_ATTR_READ privilege of a group inside.
|
Set<Group> |
hasGroupAttrUpdate()
Get groups where this member has the GROUP_ATTR_UPDATE privilege.
|
boolean |
hasGroupAttrUpdate(Group group)
Report whether this member has GROUP_ATTR_UPDATE on the specified group.
|
Set<Stem> |
hasGroupAttrUpdateInStem()
Get stems where this member has the GROUP_ATTR_UPDATE privilege of a group inside.
|
int |
hashCode() |
Set<Group> |
hasOptin()
Get groups where this member has the OPTIN privilege.
|
boolean |
hasOptin(Group g)
Report whether this member has OPTIN on the specified group.
|
Set<Stem> |
hasOptinInStem()
Get stems where this member has the OPTIN privilege of a group inside.
|
Set<Group> |
hasOptout()
Get groups where this member has the OPTOUT privilege.
|
boolean |
hasOptout(Group g)
Report whether this member has OPTOUT on the specified group.
|
Set<Stem> |
hasOptoutInStem()
Get stems where this member has the OPTOUT privilege of a group inside.
|
Set<Group> |
hasRead()
Get groups where this member has the READ privilege.
|
boolean |
hasRead(Group g)
Report whether this member has READ on the specified group.
|
Set<Stem> |
hasReadInStem()
Get stems where this member has the READ privilege of a group inside.
|
Set<Stem> |
hasStem()
Get stems where this member has the STEM privilege.
|
boolean |
hasStem(Stem ns)
Report whether this member has STEM on the specified stem.
|
Set<Stem> |
hasStemAdmin()
Get stems where this member has the STEM_ADMIN privilege.
|
boolean |
hasStemAdmin(Stem stem)
Report whether this member has STEM_ADMIN on the specified stem.
|
Set<Stem> |
hasStemAttrRead()
Get stems where this member has the STEM_ATTR_READ privilege.
|
boolean |
hasStemAttrRead(Stem stem)
Report whether this member has STEM_ATTR_READ on the specified stem.
|
Set<Stem> |
hasStemAttrUpdate()
Get stems where this member has the STEM_ATTR_UPDATE privilege.
|
boolean |
hasStemAttrUpdate(Stem stem)
Report whether this member has STEM_ATTR_UPDATE on the specified stem.
|
Set<Group> |
hasUpdate()
Get groups where this member has the UPDATE privilege.
|
boolean |
hasUpdate(Group g)
Report whether this member has UPDATE on the specified group.
|
Set<Stem> |
hasUpdateInStem()
Get stems where this member has the UPDATE privilege of a group inside.
|
Set<Group> |
hasView()
Get groups where this member has the VIEW privilege.
|
boolean |
hasView(Group g)
Report whether this member has VIEW on the specified group.
|
Set<Stem> |
hasViewInStem()
Get stems where this member has the VIEW privilege of a group inside.
|
static boolean |
inMemberChangeSubject() |
boolean |
isEffectiveMember(Group g)
Test whether a member effectively belongs to a group.
|
boolean |
isEffectiveMember(Group g,
Field f)
Test whether a member effectively belongs to a group.
|
boolean |
isImmediateMember(Group g)
Test whether a member immediately belongs to a group.
|
boolean |
isImmediateMember(Group g,
Field f)
Test whether a member immediately belongs to a group.
|
boolean |
isMember(Group g)
Test whether a member belongs to a group.
|
boolean |
isMember(Group g,
Field f)
Test whether a member belongs to the specified group list.
|
boolean |
isMember(String ownerUUID,
Field f) |
boolean |
isNonImmediateMember(Group g)
Test whether a member nonimmediately belongs to a group.
|
boolean |
isNonImmediateMember(Group g,
Field f)
Test whether a member nonimmediately belongs to a group.
|
boolean |
isSubjectResolutionDeleted() |
boolean |
isSubjectResolutionResolvable() |
boolean |
onDelete(org.hibernate.Session hs) |
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
|
boolean |
onSave(org.hibernate.Session hs) |
static void |
resolveSubjects(Collection<Member> members,
boolean resolveAllAlways)
Deprecated.
|
void |
setContextId(String contextId1)
context id of the transaction
|
void |
setDescription(String description) |
void |
setName(String name) |
void |
setSearchString0(String searchString0) |
void |
setSearchString1(String searchString1) |
void |
setSearchString2(String searchString2) |
void |
setSearchString3(String searchString3) |
void |
setSearchString4(String searchString4) |
void |
setSortString0(String sortString0) |
void |
setSortString1(String sortString1) |
void |
setSortString2(String sortString2) |
void |
setSortString3(String sortString3) |
void |
setSortString4(String sortString4) |
void |
setSubjectId(String id)
Change subject id associated with member.
|
void |
setSubjectIdDb(String id)
simple set subject id
|
void |
setSubjectIdentifier0(String subjectIdentifier0) |
void |
setSubjectResolutionDeleted(boolean subjectResolutionDeleted) |
void |
setSubjectResolutionDeletedDb(String subjectResolutionDeleted) |
void |
setSubjectResolutionResolvable(boolean subjectResolutionResolvable) |
void |
setSubjectResolutionResolvableDb(String subjectResolutionResolvable) |
void |
setSubjectSourceId(String id)
Change subject source id associated with member.
|
void |
setSubjectSourceIdDb(String id)
simple set subject source id
|
void |
setSubjectTypeId(String subjectTypeID) |
void |
setUuid(String memberUUID) |
void |
store()
will be implemented soon
|
static String |
subjectIds(Collection<Member> collection)
print out a collection of members
|
Group |
toGroup()
Convert this member back to a
Group object. |
String |
toString() |
String |
toStringDto() |
void |
updateMemberAttributes(Subject subject,
boolean storeChanges) |
void |
xmlCopyBusinessPropertiesToExisting(Member existingRecord)
copy business (non update) properties to an existing record
|
boolean |
xmlDifferentBusinessProperties(Member other)
see if the non update cols are different (e.g.
|
boolean |
xmlDifferentUpdateProperties(Member other)
see if the update cols are different (e.g.
|
String |
xmlGetId()
set id key in db
|
Member |
xmlRetrieveByIdOrKey()
retrieve from db by id or key.
|
Member |
xmlSaveBusinessProperties(Member 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
|
XmlExportMember |
xmlToExportMember(GrouperVersion grouperVersion)
convert to xml bean for export
|
String |
xmlToString()
convert to string for log
|
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onLoad, onUpdate, setHibernateVersionNumberpublic static final String PROPERTY_SUBJECT_ID
public static final String TABLE_GROUPER_MEMBERS
public static final String COLUMN_MEMBER_UUID
public static final String COLUMN_ID
public static final String COLUMN_OLD_ID
public static final String COLUMN_OLD_MEMBER_UUID
public static final String COLUMN_SUBJECT_IDENTIFIER0
public static final String COLUMN_SUBJECT_RESOLUTION_RESOLVABLE
public static final String COLUMN_SUBJECT_RESOLUTION_DELETED
public static final String COLUMN_SORT_STRING0
public static final String COLUMN_SORT_STRING1
public static final String COLUMN_SORT_STRING2
public static final String COLUMN_SORT_STRING3
public static final String COLUMN_SORT_STRING4
public static final String COLUMN_SEARCH_STRING0
public static final String COLUMN_SEARCH_STRING1
public static final String COLUMN_SEARCH_STRING2
public static final String COLUMN_SEARCH_STRING3
public static final String COLUMN_SEARCH_STRING4
public static final String COLUMN_NAME
public static final String COLUMN_SUBJECT_ID
public static final String COLUMN_SUBJECT_SOURCE
public static final String COLUMN_SUBJECT_TYPE
public static final String COLUMN_DESCRIPTION
public static final long serialVersionUID
public static final String FIELD_DB_VERSION
public static final String FIELD_MEMBER_UUID
public static final String FIELD_SUBJECT_ID
public static final String FIELD_SUBJECT_SOURCE_ID
public static final String FIELD_SUBJECT_TYPE_ID
public static final String FIELD_SUBJECT_IDENTIFIER0
public static final String FIELD_SUBJECT_RESOLUTION_RESOLVABLE
public static final String FIELD_SUBJECT_RESOLUTION_DELETED
public static final String FIELD_SORT_STRING0
public static final String FIELD_SORT_STRING1
public static final String FIELD_SORT_STRING2
public static final String FIELD_SORT_STRING3
public static final String FIELD_SORT_STRING4
public static final String FIELD_SEARCH_STRING0
public static final String FIELD_SEARCH_STRING1
public static final String FIELD_SEARCH_STRING2
public static final String FIELD_SEARCH_STRING3
public static final String FIELD_SEARCH_STRING4
public static final String FIELD_NAME
public static final String FIELD_DESCRIPTION
public static final String PROPERTY_UUID
public static int changeSubjectSameSubject
public static int changeSubjectDidntExist
public static int changeSubjectExist
public static int changeSubjectMembershipAddCount
public static int changeSubjectMembershipDeleteCount
public static final boolean DELETE_OLD_MEMBER
public static void resolveSubjects(Collection<Member> members, boolean resolveAllAlways)
members - resolveAllAlways - true to always resolve all no matter how many, false
if there are more than 2000 or however many (e.g. for UI)public AttributeAssignMemberDelegate getAttributeDelegate()
AttributeAssignablegetAttributeDelegate in interface AttributeAssignablepublic AttributeValueDelegate getAttributeValueDelegate()
getAttributeValueDelegate in interface AttributeAssignablepublic static String subjectIds(Collection<Member> collection)
collection - public void changeSubject(Subject newSubject) throws InsufficientPrivilegeException
newSubject - InsufficientPrivilegeException - if not a root userpublic void changeSubject(Subject newSubject, boolean deleteOldMember) throws InsufficientPrivilegeException
newSubject - deleteOldMember - is only applicable if the new member exists. If true, it will delete the old one.
Generally you want this as true, and only set to false if there is a foreign key violation, and you want to
get as far as you can.InsufficientPrivilegeException - if not a root userpublic String changeSubjectReport(Subject newSubject, boolean deleteOldMember)
This is the readonly dry run report version of this operation... this will not call hooks change the subject of a member to another subject. This new subject might already exist, and it might not. If it doesnt exist, then this member object will have its subject and source information updated. If it does, then all objects in the system which use this member_id will be queried, and the member_id updated to the new member_id, and the old member_id will be removed.
newSubject - deleteOldMember - is only applicable if the new member exists. If true, it will delete the old one.
Generally you want this as true, and only set to false if there is a foreign key violation, and you want to
get as far as you can.public static boolean inMemberChangeSubject()
public boolean canAdmin(Group g) throws IllegalArgumentException
g - Check privileges on this Group.IllegalArgumentException - if null Grouppublic boolean canCreate(Stem ns) throws IllegalArgumentException
ns - Check privileges on this Stem.IllegalArgumentException - if null Stempublic boolean canOptin(Group g) throws IllegalArgumentException
g - Check privileges on this Group.IllegalArgumentException - if null Grouppublic boolean canOptout(Group g) throws IllegalArgumentException
g - Check privileges on this Group.IllegalArgumentException - if null Grouppublic boolean canRead(Group g) throws IllegalArgumentException
g - Check privileges on this Group.IllegalArgumentException - if null Grouppublic boolean canStem(Stem ns) throws IllegalArgumentException
ns - Check privileges on this Stem.IllegalArgumentException - if null Stempublic boolean canUpdate(Group g) throws IllegalArgumentException
g - Check privileges on this Group.IllegalArgumentException - if null Grouppublic boolean canView(Group g) throws IllegalArgumentException
g - Check privileges on this Group.IllegalArgumentException - if null Grouppublic Set<Group> getEffectiveGroups()
// Get groups where this member is an effective member. Set effectives = m.getEffectiveGroups();
Group objects.public Set<Group> getEffectiveGroups(Field field)
// Get groups where this member is an effective member. Set effectives = m.getEffectiveGroups();
field - Group objects.public Set<Membership> getEffectiveMemberships() throws GrouperException
Set effectives = m.getEffectiveMemberships();
Membership objects.GrouperExceptionpublic Set<Membership> getEffectiveMemberships(Field f) throws SchemaException
Set effectives = m.getEffectiveMemberships(f);
f - Get effective memberships in this list field.Membership objects.SchemaExceptionpublic Set<Group> getGroups()
// Get groups where this member is a member. Set groups = m.getGroups();
Group objects.public Set<Group> getGroups(Field field)
// Get groups where this member is a member. Set groups = m.getGroups();
field - to check, doesnt have to be list fieldGroup objects.public Set<Group> _internal_getGroupsHelper(Field field, MembershipType membershipType, String scope, Stem stem, Stem.Scope stemScope, QueryOptions queryOptions, Boolean enabled)
// Get groups where this member is a member. Set groups = m.getGroups();
field - to check, doesnt have to be list fieldmembershipType - immediate, effective, non immediate, etc, or null for allscope - is a DB pattern that will have % appended to it, or null for all. e.g. school:whatever:parent:stem - is the stem to check in, or null if all. If has stem, must have stemScopestemScope - is if in this stem, or in any stem underneath. You must pass stemScope if you pass a stemqueryOptions - is what to sort/page to or null for all. Can sort on name, displayName, extension, displayExtensionenabled - is null for all, true for enabled only, false for enabled and disabledGroup objects.public Set<Group> getGroups(Field field, String scope, Stem stem, Stem.Scope stemScope, QueryOptions queryOptions, Boolean enabled)
field - to check, doesnt have to be list fieldscope - is a DB pattern that will have % appended to it, or null for allstem - is the stem to check in, or null if allstemScope - is if in this stem, or in any stem underneath. You must pass stemScope if you pass a stemqueryOptions - is what to sort/page to or null for all. can sort on name, displayName, extension, displayExtensionenabled - is null for all, true for enabled only, false for enabled and disabledGroup objects.public Set<Group> getEffectiveGroups(Field field, String scope, Stem stem, Stem.Scope stemScope, QueryOptions queryOptions, Boolean enabled)
field - to check, doesnt have to be list fieldscope - is a DB pattern that will have % appended to it, or null for allstem - is the stem to check in, or null if allstemScope - is if in this stem, or in any stem underneath. You must pass stemScope if you pass a stemqueryOptions - is what to sort/page to or null for all, can sort on name, displayName, extension, displayExtensionenabled - is null for all, true for enabled only, false for enabled and disabledGroup objects.public Set<Group> getImmediateGroups(Field field, String scope, Stem stem, Stem.Scope stemScope, QueryOptions queryOptions, Boolean enabled)
field - to check, doesnt have to be list fieldscope - is a DB pattern that will have % appended to it, or null for allstem - is the stem to check in, or null if allstemScope - is if in this stem, or in any stem underneath. You must pass stemScope if you pass a stemqueryOptions - is what to sort/page to or null for all. can sort on name, displayName, extension, displayExtensionenabled - is null for all, true for enabled only, false for enabled and disabledGroup objects.public Set<Group> getNonImmediateGroups(Field field, String scope, Stem stem, Stem.Scope stemScope, QueryOptions queryOptions, Boolean enabled)
field - to check, doesnt have to be list fieldscope - is a DB pattern that will have % appended to it, or null for allstem - is the stem to check in, or null if allstemScope - is if in this stem, or in any stem underneath. You must pass stemScope if you pass a stemqueryOptions - is what to sort/page to or null for all. can sort on name, displayName, extension, displayExtensionenabled - is null for all, true for enabled only, false for enabled and disabledGroup objects.public Set<Group> getImmediateGroups()
// Get groups where this member is an immediate member. Set immediates = m.getImmediateGroups();
Group objects.public Set<Group> getNonImmediateGroups()
// Get groups where this member is a non immediate member. Set nonImmediates = m.getNonImmediateGroups();
Group objects.public Set<Group> getImmediateGroups(Field field)
// Get groups where this member is an immediate member. Set immediates = m.getImmediateGroups();
field - Group objects.public Set<Membership> getImmediateMemberships() throws GrouperException
Set immediates = m.getImmediateMemberships();
Membership objects.GrouperExceptionpublic Set<Membership> getNonImmediateMemberships() throws GrouperException
Set immediates = m.getNonImmediateMemberships();
Membership objects.GrouperExceptionpublic Set<Membership> getImmediateMemberships(Field f) throws SchemaException
Set immediates = m.getImmediateMemberships(f);
f - Get immediate memberships in this list field.Membership objects.SchemaExceptionpublic Set<Membership> getNonImmediateMemberships(Field f) throws SchemaException
Set immediates = m.getNonImmediateMemberships(f);
f - Get non-immediate memberships in this list field.Membership objects.SchemaExceptionpublic Set<Membership> getMemberships() throws GrouperException
Set groups = m.getMemberships();
Membership objects.GrouperExceptionpublic Set<Membership> getMemberships(Field f) throws SchemaException
Set groups = m.getMemberships(f);
f - Get memberships in this list field.Membership objects.SchemaExceptionpublic Set<Membership> getMemberships(Field f, boolean requireListField) throws SchemaException
Set groups = m.getMemberships(f);
f - Get memberships in this list field.requireListField - if list field must be a list field, and not privilegeMembership objects.SchemaExceptionpublic Set<AccessPrivilege> getPrivs(Group g)
Group.
Set access = m.getPrivs(g);
g - Find Access Privileges on this GroupAccessPrivilege objects.public Set<NamingPrivilege> getPrivs(Stem ns)
Stem.
Set naming = m.getPrivs(ns);
ns - Find Naming Privileges on this StemNamingPrivilege objects.public Subject getSubject() throws SubjectNotFoundException
Subject that maps to this member.
// Convert a member back into a subject
try {
Subject subj = m.getSubject();
}
catch (SubjectNotFoundException e) {
// Subject not found
}
Subject object.SubjectNotFoundExceptionpublic Source getSubjectSource() throws GrouperException
Source of the subject that maps to this member.
Source sa = m.getSubjectSource();
SourceGrouperExceptionpublic String getSubjectSourceId()
Source id of the subject that maps to this
member.
String id = m.getSubjectSourceId();
Source idpublic String getSubjectSourceIdDb()
public SubjectType getSubjectType()
SubjectType of the subject that maps to this member.
// Get this member's subject type. SubjectType type = m.getSubjectType();
SubjectTypepublic String getSubjectTypeId()
// Get this member's subject type id. String type = m.getSubjectTypeId();
public String getUuid()
// Get UUID of member. String uuid = m.getUuid();
public String getId()
public Set<Group> hasAdmin() throws GrouperException
Set admin = m.hasAdmin();
Group objects.GrouperExceptionpublic Set<Stem> hasAdminInStem() throws GrouperException
SetadminInStem = m.hasAdminInStem();
Stem objects.GrouperExceptionpublic Set<Stem> hasGroupAttrReadInStem() throws GrouperException
Setresults = m.hasGroupAttrReadInStem();
Stem objects.GrouperExceptionpublic Set<Stem> hasGroupAttrUpdateInStem() throws GrouperException
Setresults = m.hasGroupAttrUpdateInStem();
Stem objects.GrouperExceptionpublic Set<Stem> hasOptoutInStem() throws GrouperException
SetoptoutInStem = m.hasOptoutInStem();
Stem objects.GrouperExceptionpublic Set<Stem> hasOptinInStem() throws GrouperException
SetoptinInStem = m.hasOptinInStem();
Stem objects.GrouperExceptionpublic Set<Stem> hasViewInStem() throws GrouperException
SetviewInStem = m.hasViewInStem();
Stem objects.GrouperExceptionpublic Set<Stem> hasReadInStem() throws GrouperException
SetreadInStem = m.hasReadInStem();
Stem objects.GrouperExceptionpublic Set<Stem> hasUpdateInStem() throws GrouperException
SetupdateInStem = m.hasUpdateInStem();
Stem objects.GrouperExceptionpublic boolean hasAdmin(Group g)
// Check whether this member has ADMIN on the specified group.
if (m.hasAdmin(g)) {
// Member has privilege
}
g - Test for privilege on this Grouppublic Set<Stem> hasCreate() throws GrouperException
Set create = m.hasCreate();
Stem objects.GrouperExceptionpublic boolean hasCreate(Stem ns)
// Check whether this member has CREATE on the specified stem.
if (m.hasCreate(ns)) {
// Member has privilege
}
ns - Test for privilege on this Stempublic Set<Group> hasOptin() throws GrouperException
Set optin = m.hasOptin();
Group objects.GrouperExceptionpublic boolean hasOptin(Group g)
// Check whether this member has OPTIN on the specified group.
if (m.hasOptin(g)) {
// Member has privilege
}
g - Test for privilege on this Grouppublic Set<Group> hasOptout() throws GrouperException
Set optout = m.hasOptout();
Group objects.GrouperExceptionpublic boolean hasOptout(Group g)
// Check whether this member has OPTOUT on the specified group.
if (m.hasOptout(g)) {
// Member has privilege
}
g - Test for privilege on this Grouppublic Set<Group> hasRead() throws GrouperException
Set read = m.hasRead();
Group objects.GrouperExceptionpublic boolean hasRead(Group g)
// Check whether this member has READ on the specified group.
if (m.hasRead(g)) {
// Member has privilege
}
g - Test for privilege on this Grouppublic Set<Stem> hasStem() throws GrouperException
Set stem = m.hasStem();
Stem objects.GrouperExceptionpublic boolean hasStem(Stem ns)
if (m.hasStem(ns)) {
// Member has privilege
}
ns - Test for privilege on this Stempublic Set<Group> hasUpdate() throws GrouperException
Set update = m.hasUpdate();
Group objects.GrouperExceptionpublic boolean hasUpdate(Group g)
// Check whether this member has UPDATE on the specified group.
if (m.hasUpdate(g)) {
// Member has privilege
}
g - Test for privilege on this Grouppublic Set<Group> hasView() throws GrouperException
Set view = m.hasView();
Group objects.GrouperExceptionpublic boolean hasView(Group g)
// Check whether this member has VIEW on the specified group.
if (m.hasView(g)) {
// Member has privilege
}
g - Test for privilege on this Grouppublic boolean isEffectiveMember(Group g) throws GrouperException
if (m.isEffectiveMember(g)) {
// Is an effective member
}
g - Test for membership in this group.GrouperExceptionpublic boolean isEffectiveMember(Group g, Field f) throws SchemaException
// Does this member effectively belong to the specified group?
if (m.isEffectiveMember(g, f)) {
// Is an effective member
}
g - Test for membership in this group.f - Test for membership in this list field.SchemaExceptionpublic boolean isImmediateMember(Group g) throws GrouperException
if (m.isImmediateMember(g)) {
// Is an immediate member
}
g - Test for membership in this group.GrouperExceptionpublic boolean isImmediateMember(Group g, Field f) throws SchemaException
// Does this member immediately belong to the specified group?
if (m.isImmediateMember(g, f)) {
// Is an immediate member
}
g - Test for membership in this group.f - Test for memberhip in this list field.SchemaExceptionpublic boolean isMember(Group g)
if (m.isMember(g)) {
// Is a member
}
g - Test for membership in this group.GrouperExceptionpublic boolean isMember(Group g, Field f) throws SchemaException
// Does this member belong to the specified group?
if (m.isMember(g, f)) {
// Is a member
}
g - Test for membership in this group.f - Test for membership in this list Field.SchemaExceptionpublic void setSubjectIdDb(String id)
id - public void setSubjectId(String id) throws IllegalArgumentException, InsufficientPrivilegeException
You must be a root-like Subject to use this method.
try {
m.setSubjectId("new id");
}
catch (InsufficientPrivilegeException eIP) {
// not privileged to change subject id
}
id - Set subject id to this.IllegalArgumentExceptionInsufficientPrivilegeExceptionpublic void store()
public void setSubjectSourceIdDb(String id)
id - public void setSubjectSourceId(String id) throws IllegalArgumentException, InsufficientPrivilegeException
You must be a root-like Subject to use this method.
try {
m.setSubjectSourceId("new source id");
}
catch (InsufficientPrivilegeException eIP) {
// not privileged to change subject source id
}
id - Set subject source id to this.IllegalArgumentExceptionInsufficientPrivilegeExceptionpublic Group toGroup() throws GroupNotFoundException
Group object.
try {
Group g = m.toGroup();
}
catch (GroupNotFoundException e) {
// unable to convert member back to group
}
Member as a GroupGroupNotFoundExceptionpublic String toString()
toString in class ObjectObject.toString()public boolean isMember(String ownerUUID, Field f)
ownerUUID - f - public boolean equals(Object other)
equals in class ObjectObject.equals(java.lang.Object)public String getSubjectId()
public String getSubjectIdDb()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean onDelete(org.hibernate.Session hs)
throws org.hibernate.CallbackException
onDelete in interface org.hibernate.classic.LifecycleonDelete in class GrouperAPIorg.hibernate.CallbackExceptionGrouperAPI.onDelete(org.hibernate.Session)public boolean onSave(org.hibernate.Session hs)
throws org.hibernate.CallbackException
onSave in interface org.hibernate.classic.LifecycleonSave in class GrouperAPIorg.hibernate.CallbackExceptionGrouperAPI.onSave(org.hibernate.Session)public void setSubjectTypeId(String subjectTypeID)
subjectTypeID - public void setUuid(String memberUUID)
memberUUID - public String toStringDto()
public void onPostDelete(HibernateSession hibernateSession)
HibGrouperLifecycleonPostDelete in interface HibGrouperLifecycleonPostDelete in class GrouperAPIGrouperAPI.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPostSave(HibernateSession hibernateSession)
HibGrouperLifecycleonPostSave in interface HibGrouperLifecycleonPostSave in class GrouperAPIGrouperAPI.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPostUpdate(HibernateSession hibernateSession)
HibGrouperLifecycleonPostUpdate in interface HibGrouperLifecycleonPostUpdate in class GrouperAPIGrouperAPI.onPostUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPreDelete(HibernateSession hibernateSession)
HibGrouperLifecycleonPreDelete in interface HibGrouperLifecycleonPreDelete in class GrouperAPIGrouperAPI.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycleonPreSave in interface HibGrouperLifecycleonPreSave in class GrouperAPIGrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycleonPreUpdate in interface HibGrouperLifecycleonPreUpdate in class GrouperAPIGrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)public Member dbVersion()
dbVersion in class GrouperAPIpublic Set<String> dbVersionDifferentFields()
dbVersionDifferentFields in class GrouperAPIGrouperAPI.dbVersionDifferentFields()public void dbVersionReset()
dbVersionReset in class GrouperAPIpublic Member clone()
clone in interface GrouperCloneableclone in class GrouperAPIObject.clone()public String getContextId()
public void setContextId(String contextId1)
setContextId in interface GrouperHasContextcontextId1 - public boolean canAttrAdmin(AttributeDef attributeDef) throws IllegalArgumentException
attributeDef - Check privileges on this AttributeDef.IllegalArgumentException - if null AttributeDefpublic boolean canAttrDefAttrRead(AttributeDef attributeDef) throws IllegalArgumentException
Member ATTR_DEF_ATTR_READ on this AttributeDef.
boolean rv = m.canAttrDefAttrRead(attributeDef);
attributeDef - Check privileges on this AttributeDef.IllegalArgumentException - if null AttributeDefpublic boolean canAttrDefAttrUpdate(AttributeDef attributeDef) throws IllegalArgumentException
Member ATTR_DEF_ATTR_UPDATE on this AttributeDef.
boolean rv = m.canAttrDefAttrUpdate(attributeDef);
attributeDef - Check privileges on this AttributeDef.IllegalArgumentException - if null AttributeDefpublic boolean canGroupAttrUpdate(Group group) throws IllegalArgumentException
group - Check privileges on this Group.IllegalArgumentException - if null Grouppublic boolean canGroupAttrRead(Group group) throws IllegalArgumentException
group - Check privileges on this Group.IllegalArgumentException - if null Grouppublic boolean canStemAttrRead(Stem stem) throws IllegalArgumentException
stem - Check privileges on this Stem.IllegalArgumentException - if null Stempublic boolean canStemAdmin(Stem stem) throws IllegalArgumentException
stem - Check privileges on this Stem.IllegalArgumentException - if null Stempublic boolean canStemAttrUpdate(Stem stem) throws IllegalArgumentException
stem - Check privileges on this Stem.IllegalArgumentException - if null Stempublic boolean canAttrOptin(AttributeDef attributeDef) throws IllegalArgumentException
attributeDef - Check privileges on this AttributeDef.IllegalArgumentException - if null AttributeDefpublic boolean canAttrOptout(AttributeDef attributeDef) throws IllegalArgumentException
attributeDef - Check privileges on this AttributeDef.IllegalArgumentException - if null AttributeDefpublic boolean canAttrRead(AttributeDef attributeDef) throws IllegalArgumentException
attributeDef - Check privileges on this AttributeDef.IllegalArgumentException - if null AttributeDefpublic boolean canAttrUpdate(AttributeDef attributeDef) throws IllegalArgumentException
attributeDef - Check privileges on this AttributeDef.IllegalArgumentException - if null AttributeDefpublic boolean canAttrView(AttributeDef attributeDef) throws IllegalArgumentException
attributeDef - Check privileges on this AttributeDef.IllegalArgumentException - if null AttributeDefpublic Set<AttributeDef> hasAttrAdmin() throws GrouperException
Setadmins = hasAttrAdmin();
AttributeDef objects.GrouperExceptionpublic boolean hasAttrAdmin(AttributeDef attributeDef)
// Check whether this member has ATTR_ADMIN on the specified attributeDef.
if (m.hasAttrAdmin(attributeDef)) {
// Member has privilege
}
attributeDef - Test for privilege on this AttributeDefpublic boolean hasGroupAttrRead(Group group)
// Check whether this member has GROUP_ATTR_READ on the specified group.
if (m.hasGroupAttrRead(group)) {
// Member has privilege
}
group - Test for privilege on this Grouppublic boolean hasGroupAttrUpdate(Group group)
// Check whether this member has GROUP_ATTR_UPDATE on the specified group.
if (m.hasGroupAttrUpdate(group)) {
// Member has privilege
}
group - Test for privilege on this Grouppublic boolean hasStemAttrUpdate(Stem stem)
// Check whether this member has STEM_ATTR_UPDATE on the specified stem.
if (m.hasStemAttrUpdate(stem)) {
// Member has privilege
}
stem - Test for privilege on this Stempublic boolean hasStemAttrRead(Stem stem)
// Check whether this member has STEM_ATTR_READ on the specified stem.
if (m.hasStemAttrRead(stem)) {
// Member has privilege
}
stem - Test for privilege on this Stempublic boolean hasStemAdmin(Stem stem)
// Check whether this member has STEM_ADMIN on the specified stem.
if (m.hasStemAdmin(stem)) {
// Member has privilege
}
stem - Test for privilege on this Stempublic boolean hasAttrDefAttrRead(AttributeDef attributeDef)
// Check whether this member has ATTR_DEF_ATTR_READ on the specified attributeDef.
if (m.hasAttrDefAttrRead(stem)) {
// Member has privilege
}
attributeDef - Test for privilege on this AttributeDefpublic boolean hasAttrDefAttrUpdate(AttributeDef attributeDef)
// Check whether this member has ATTR_DEF_ATTR_UPDATE on the specified attributeDef.
if (m.hasAttrDefAttrUpdate(stem)) {
// Member has privilege
}
attributeDef - Test for privilege on this AttributeDefpublic Set<AttributeDef> hasAttrOptin() throws GrouperException
Setoptin = m.hasAttrOptin();
AttributeDef objects.GrouperExceptionpublic Set<AttributeDef> hasAttrDefAttrRead() throws GrouperException
Setresults = m.hasAttrDefAttrRead();
AttributeDef objects.GrouperExceptionpublic Set<AttributeDef> hasAttrDefAttrUpdate() throws GrouperException
Setresults = m.hasAttrDefAttrUpdate();
AttributeDef objects.GrouperExceptionpublic Set<Group> hasGroupAttrUpdate() throws GrouperException
Setresults = m.hasGroupAttrUpdate();
Group objects.GrouperExceptionpublic Set<Group> hasGroupAttrRead() throws GrouperException
Setresults = m.hasGroupAttrRead();
Group objects.GrouperExceptionpublic Set<Stem> hasStemAttrRead() throws GrouperException
Setresults = m.hasStemAttrRead();
Stem objects.GrouperExceptionpublic Set<Stem> hasStemAdmin() throws GrouperException
Setresults = m.hasStemAdmin();
Stem objects.GrouperExceptionpublic Set<Stem> hasStemAttrUpdate() throws GrouperException
Setresults = m.hasStemAttrUpdate();
Stem objects.GrouperExceptionpublic boolean hasAttrOptin(AttributeDef attributeDef)
// Check whether this member has ATTR_OPTIN on the specified AttributeDef.
if (m.hasOptin(attributeDef)) {
// Member has privilege
}
attributeDef - Test for privilege on this AttributeDefpublic Set<AttributeDef> hasAttrOptout() throws GrouperException
Setoptout = m.hasOptout();
AttributeDef objects.GrouperExceptionpublic boolean hasAttrOptout(AttributeDef attributeDef)
// Check whether this member has ATTR_OPTOUT on the specified AttributeDef.
if (m.hasOptout(attributeDef)) {
// Member has privilege
}
attributeDef - Test for privilege on this AttributeDefpublic Set<AttributeDef> hasAttrRead() throws GrouperException
Setread = m.hasRead();
AttributeDef objects.GrouperExceptionpublic boolean hasAttrRead(AttributeDef attributeDef)
// Check whether this member has ATTR_READ on the specified AttributeDef.
if (m.hasRead(attributeDef)) {
// Member has privilege
}
attributeDef - Test for privilege on this Grouppublic Set<AttributeDef> hasAttrUpdate() throws GrouperException
Setupdate = m.hasUpdate();
AttributeDef objects.GrouperExceptionpublic boolean hasAttrUpdate(AttributeDef attributeDef)
// Check whether this member has ATTR_UPDATE on the specified AttributeDef.
if (m.hasUpdate(attributeDef)) {
// Member has privilege
}
attributeDef - Test for privilege on this AttributeDefpublic Set<AttributeDef> hasAttrView() throws GrouperException
Setview = m.hasView();
AttributeDef objects.GrouperExceptionpublic boolean hasAttrView(AttributeDef attributeDef)
// Check whether this member has ATTR_VIEW on the specified AttributeDef.
if (m.hasView(attributeDef)) {
// Member has privilege
}
attributeDef - Test for privilege on this AttributeDefpublic boolean isNonImmediateMember(Group g) throws GrouperException
if (m.isNonImmediateMember(g)) {
// Is an immediate member
}
g - Test for membership in this group.GrouperExceptionpublic boolean isNonImmediateMember(Group g, Field f) throws SchemaException
// Does this member nonimmediately belong to the specified group?
if (m.isNonImmediateMember(g, f)) {
// Is an immediate member
}
g - Test for membership in this group.f - Test for memberhip in this list field.SchemaExceptionpublic Set<Group> getNonImmediateGroups(Field field)
// Get groups where this member is an immediate member. Set immediates = m.getImmediateGroups();
field - Group objects.public int compareTo(Member o)
compareTo in interface Comparable<Member>Comparable.compareTo(java.lang.Object)public boolean xmlDifferentBusinessProperties(Member other)
XmlImportableBasexmlDifferentBusinessProperties in interface XmlImportableBase<Member>other - the one to compare withXmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)public boolean xmlDifferentUpdateProperties(Member other)
XmlImportableBasexmlDifferentUpdateProperties in interface XmlImportableBase<Member>other - the one to compare withXmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)public void xmlCopyBusinessPropertiesToExisting(Member existingRecord)
XmlImportableBasexmlCopyBusinessPropertiesToExisting in interface XmlImportableBase<Member>XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)public Member xmlRetrieveByIdOrKey()
XmlImportablexmlRetrieveByIdOrKey in interface XmlImportable<Member>XmlImportable.xmlRetrieveByIdOrKey()public Member xmlSaveBusinessProperties(Member existingRecord)
XmlImportableBasexmlSaveBusinessProperties in interface XmlImportableBase<Member>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()
XmlImportableBasexmlSaveUpdateProperties in interface XmlImportableBase<Member>XmlImportableBase.xmlSaveUpdateProperties()public XmlExportMember xmlToExportMember(GrouperVersion grouperVersion)
grouperVersion - public String xmlGetId()
XmlImportableBasexmlGetId in interface XmlImportableBase<Member>XmlImportableBase.xmlGetId()public void xmlSetId(String theId)
XmlImportableBasexmlSetId in interface XmlImportableBase<Member>XmlImportableBase.xmlSetId(java.lang.String)public String xmlToString()
XmlImportableBasexmlToString in interface XmlImportableBase<Member>XmlImportableBase.xmlToString()public String getSubjectIdentifier0()
public void setSubjectIdentifier0(String subjectIdentifier0)
subjectIdentifier0 - the subjectIdentifier0 to setpublic String getSubjectResolutionResolvableDb()
public void setSubjectResolutionResolvableDb(String subjectResolutionResolvable)
subjectResolutionResolvable - public String getSubjectResolutionDeletedDb()
public void setSubjectResolutionDeletedDb(String subjectResolutionDeleted)
subjectResolutionDeleted - public boolean isSubjectResolutionResolvable()
public void setSubjectResolutionResolvable(boolean subjectResolutionResolvable)
subjectResolutionResolvable - public boolean isSubjectResolutionDeleted()
public void setSubjectResolutionDeleted(boolean subjectResolutionDeleted)
subjectResolutionDeleted - public String getSortString0()
public void setSortString0(String sortString0)
sortString0 - the sortString0 to setpublic String getSortString1()
public void setSortString1(String sortString1)
sortString1 - the sortString1 to setpublic String getSortString2()
public void setSortString2(String sortString2)
sortString2 - the sortString2 to setpublic String getSortString3()
public void setSortString3(String sortString3)
sortString3 - the sortString3 to setpublic String getSortString4()
public void setSortString4(String sortString4)
sortString4 - the sortString4 to setpublic String getSearchString0()
public void setSearchString0(String searchString0)
searchString0 - the searchString0 to setpublic String getSearchString1()
public void setSearchString1(String searchString1)
searchString1 - the searchString1 to setpublic String getSearchString2()
public void setSearchString2(String searchString2)
searchString2 - the searchString2 to setpublic String getSearchString3()
public void setSearchString3(String searchString3)
searchString3 - the searchString3 to setpublic String getSearchString4()
public void setSearchString4(String searchString4)
searchString4 - the searchString4 to setpublic String getName()
public void setName(String name)
name - the name to setpublic String getDescription()
public void setDescription(String description)
description - the description to setpublic void updateMemberAttributes(Subject subject, boolean storeChanges)
subject - storeChanges - if there are changes, should they be saved to the database?Copyright © 2016 Internet2. All rights reserved.