|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.Member
public class Member
A member within the Groups Registry. All immediate subjects, and effective members are members.
Field Summary | |
---|---|
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 java.lang.String |
COLUMN_DESCRIPTION
description |
static java.lang.String |
COLUMN_ID
new uuid col in db |
static java.lang.String |
COLUMN_MEMBER_UUID
uuid col in db |
static java.lang.String |
COLUMN_NAME
name |
static java.lang.String |
COLUMN_OLD_ID
old id col for id conversion |
static java.lang.String |
COLUMN_OLD_MEMBER_UUID
old uuid id col for id conversion |
static java.lang.String |
COLUMN_SEARCH_STRING0
searchString0 |
static java.lang.String |
COLUMN_SEARCH_STRING1
searchString1 |
static java.lang.String |
COLUMN_SEARCH_STRING2
searchString2 |
static java.lang.String |
COLUMN_SEARCH_STRING3
searchString3 |
static java.lang.String |
COLUMN_SEARCH_STRING4
searchString4 |
static java.lang.String |
COLUMN_SORT_STRING0
sortString0 |
static java.lang.String |
COLUMN_SORT_STRING1
sortString1 |
static java.lang.String |
COLUMN_SORT_STRING2
sortString2 |
static java.lang.String |
COLUMN_SORT_STRING3
sortString3 |
static java.lang.String |
COLUMN_SORT_STRING4
sortString4 |
static java.lang.String |
COLUMN_SUBJECT_ID
column |
static java.lang.String |
COLUMN_SUBJECT_IDENTIFIER0
subjectIdentifier0 |
static java.lang.String |
COLUMN_SUBJECT_SOURCE
column |
static java.lang.String |
COLUMN_SUBJECT_TYPE
column |
static boolean |
DELETE_OLD_MEMBER
boolean constant for gsh param |
static java.lang.String |
FIELD_DB_VERSION
constant for field name for: dbVersion |
static java.lang.String |
FIELD_DESCRIPTION
constant for field name for: description |
static java.lang.String |
FIELD_MEMBER_UUID
constant for field name for: memberUUID |
static java.lang.String |
FIELD_NAME
constant for field name for: name |
static java.lang.String |
FIELD_SEARCH_STRING0
constant for field name for: searchString0 |
static java.lang.String |
FIELD_SEARCH_STRING1
constant for field name for: searchString1 |
static java.lang.String |
FIELD_SEARCH_STRING2
constant for field name for: searchString2 |
static java.lang.String |
FIELD_SEARCH_STRING3
constant for field name for: searchString3 |
static java.lang.String |
FIELD_SEARCH_STRING4
constant for field name for: searchString4 |
static java.lang.String |
FIELD_SORT_STRING0
constant for field name for: sortString0 |
static java.lang.String |
FIELD_SORT_STRING1
constant for field name for: sortString1 |
static java.lang.String |
FIELD_SORT_STRING2
constant for field name for: sortString2 |
static java.lang.String |
FIELD_SORT_STRING3
constant for field name for: sortString3 |
static java.lang.String |
FIELD_SORT_STRING4
constant for field name for: sortString4 |
static java.lang.String |
FIELD_SUBJECT_ID
constant for field name for: subjectID |
static java.lang.String |
FIELD_SUBJECT_IDENTIFIER0
constant for field name for: subjectIdentifier0 |
static java.lang.String |
FIELD_SUBJECT_SOURCE_ID
constant for field name for: subjectSourceID |
static java.lang.String |
FIELD_SUBJECT_TYPE_ID
constant for field name for: subjectTypeID |
static java.lang.String |
PROPERTY_SUBJECT_ID
constant for property name for: subjectId |
static java.lang.String |
PROPERTY_UUID
javabeans property for uuid |
static long |
serialVersionUID
serial version |
static java.lang.String |
TABLE_GROUPER_MEMBERS
grouper_members table in the DB |
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI |
---|
COLUMN_HIBERNATE_VERSION_NUMBER, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER |
Fields inherited from interface org.hibernate.classic.Lifecycle |
---|
NO_VETO, VETO |
Constructor Summary | |
---|---|
Member()
|
Method Summary | |
---|---|
java.util.Set<Group> |
_internal_getGroupsHelper(Field field,
MembershipType membershipType,
java.lang.String scope,
Stem stem,
Stem.Scope stemScope,
QueryOptions queryOptions,
java.lang.Boolean enabled)
Get groups where this member is a member. |
boolean |
canAdmin(Group g)
Can this Member ADMIN on this Group . |
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)
Can this Member CREATE on this Stem . |
boolean |
canGroupAttrRead(Group group)
Can this Member GROUP_ATTR_READ on this Group . |
boolean |
canGroupAttrUpdate(Group group)
Can this Member GROUP_ATTR_UPDATE on this Group . |
boolean |
canOptin(Group g)
Can this Member OPTIN on this Group . |
boolean |
canOptout(Group g)
Can this Member OPTOUT on this Group . |
boolean |
canRead(Group g)
Can this Member READ on this Group . |
boolean |
canStem(Stem ns)
Can this Member STEM on this Stem . |
boolean |
canStemAdmin(Stem stem)
Can this Member STEM_ADMIN on this Stem . |
boolean |
canStemAttrRead(Stem stem)
Can this Member STEM_ATTR_READ on this Stem . |
boolean |
canStemAttrUpdate(Stem stem)
Can this Member STEM_ATTR_UPDATE on this Stem . |
boolean |
canUpdate(Group g)
Can this Member UPDATE on this Group . |
boolean |
canView(Group g)
Can this Member VIEW on this Group . |
void |
changeSubject(edu.internet2.middleware.subject.Subject newSubject)
change the subject of a member to another subject. |
void |
changeSubject(edu.internet2.middleware.subject.Subject newSubject,
boolean deleteOldMember)
change the subject of a member to another subject. |
java.lang.String |
changeSubjectReport(edu.internet2.middleware.subject.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 |
java.util.Set<java.lang.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(java.lang.Object other)
|
AttributeAssignMemberDelegate |
getAttributeDelegate()
get the logic delegate |
AttributeValueDelegate |
getAttributeValueDelegate()
this delegate works on attributes and values at the same time |
java.lang.String |
getContextId()
context id of the transaction |
java.lang.String |
getDescription()
|
java.util.Set<Group> |
getEffectiveGroups()
Get groups where this member has an effective membership. |
java.util.Set<Group> |
getEffectiveGroups(Field field)
Get groups where this member has an effective membership. |
java.util.Set<Group> |
getEffectiveGroups(Field field,
java.lang.String scope,
Stem stem,
Stem.Scope stemScope,
QueryOptions queryOptions,
java.lang.Boolean enabled)
Get groups where this member is an effective member. |
java.util.Set<Membership> |
getEffectiveMemberships()
Get effective memberships. |
java.util.Set<Membership> |
getEffectiveMemberships(Field f)
Get effective memberships. |
java.util.Set<Group> |
getGroups()
Get groups where this member is a member. |
java.util.Set<Group> |
getGroups(Field field)
Get groups where this member is a member. |
java.util.Set<Group> |
getGroups(Field field,
java.lang.String scope,
Stem stem,
Stem.Scope stemScope,
QueryOptions queryOptions,
java.lang.Boolean enabled)
Get groups where this member is a member. |
java.lang.String |
getId()
get a members id |
java.util.Set<Group> |
getImmediateGroups()
Get groups where this member has an immediate membership. |
java.util.Set<Group> |
getImmediateGroups(Field field)
Get groups where this member has an immediate membership. |
java.util.Set<Group> |
getImmediateGroups(Field field,
java.lang.String scope,
Stem stem,
Stem.Scope stemScope,
QueryOptions queryOptions,
java.lang.Boolean enabled)
Get groups where this member is an immediate member. |
java.util.Set<Membership> |
getImmediateMemberships()
Get immediate memberships. |
java.util.Set<Membership> |
getImmediateMemberships(Field f)
Get immediate memberships. |
java.util.Set<Membership> |
getMemberships()
Get memberships. |
java.util.Set<Membership> |
getMemberships(Field f)
Get memberships. |
java.util.Set<Membership> |
getMemberships(Field f,
boolean requireListField)
Get memberships. |
java.lang.String |
getName()
|
java.util.Set<Group> |
getNonImmediateGroups()
Get groups where this member has a non immediate membership. |
java.util.Set<Group> |
getNonImmediateGroups(Field field)
Get groups where this member has an immediate membership. |
java.util.Set<Group> |
getNonImmediateGroups(Field field,
java.lang.String scope,
Stem stem,
Stem.Scope stemScope,
QueryOptions queryOptions,
java.lang.Boolean enabled)
Get groups where this member is a nonimmediate member. |
java.util.Set<Membership> |
getNonImmediateMemberships()
Get non-immediate memberships. |
java.util.Set<Membership> |
getNonImmediateMemberships(Field f)
Get non-immediate memberships. |
java.util.Set<AccessPrivilege> |
getPrivs(Group g)
Find access privileges held by this member on a Group . |
java.util.Set<NamingPrivilege> |
getPrivs(Stem ns)
Find naming privileges held by this member on a Stem . |
java.lang.String |
getSearchString0()
|
java.lang.String |
getSearchString1()
|
java.lang.String |
getSearchString2()
|
java.lang.String |
getSearchString3()
|
java.lang.String |
getSearchString4()
|
java.lang.String |
getSortString0()
|
java.lang.String |
getSortString1()
|
java.lang.String |
getSortString2()
|
java.lang.String |
getSortString3()
|
java.lang.String |
getSortString4()
|
edu.internet2.middleware.subject.Subject |
getSubject()
Get Subject that maps to this member. |
java.lang.String |
getSubjectId()
|
java.lang.String |
getSubjectIdDb()
|
java.lang.String |
getSubjectIdentifier0()
|
edu.internet2.middleware.subject.Source |
getSubjectSource()
Get the Source of the subject that maps to this member. |
java.lang.String |
getSubjectSourceId()
Get the Source id of the subject that maps to this
member. |
java.lang.String |
getSubjectSourceIdDb()
simple get subject source id |
edu.internet2.middleware.subject.SubjectType |
getSubjectType()
Get the SubjectType of the subject that maps to this member. |
java.lang.String |
getSubjectTypeId()
Get the subject type id of the subject that maps to this member. |
java.lang.String |
getUuid()
Get member's UUID. |
java.util.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. |
java.util.Set<Stem> |
hasAdminInStem()
Get stems where this member has the ADMIN privilege of a group inside. |
java.util.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. |
java.util.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. |
java.util.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. |
java.util.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. |
java.util.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. |
java.util.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. |
java.util.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. |
java.util.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. |
java.util.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. |
java.util.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. |
java.util.Set<Stem> |
hasGroupAttrReadInStem()
Get stems where this member has the GROUP_ATTR_READ privilege of a group inside. |
java.util.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. |
java.util.Set<Stem> |
hasGroupAttrUpdateInStem()
Get stems where this member has the GROUP_ATTR_UPDATE privilege of a group inside. |
int |
hashCode()
|
java.util.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. |
java.util.Set<Stem> |
hasOptinInStem()
Get stems where this member has the OPTIN privilege of a group inside. |
java.util.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. |
java.util.Set<Stem> |
hasOptoutInStem()
Get stems where this member has the OPTOUT privilege of a group inside. |
java.util.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. |
java.util.Set<Stem> |
hasReadInStem()
Get stems where this member has the READ privilege of a group inside. |
java.util.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. |
java.util.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. |
java.util.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. |
java.util.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. |
java.util.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. |
java.util.Set<Stem> |
hasUpdateInStem()
Get stems where this member has the UPDATE privilege of a group inside. |
java.util.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. |
java.util.Set<Stem> |
hasViewInStem()
Get stems where this member has the VIEW privilege of a group inside. |
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(java.lang.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 |
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(java.util.Collection<Member> members,
boolean resolveAllAlways)
resolve subjects in one batch |
void |
setContextId(java.lang.String contextId1)
context id of the transaction |
void |
setDescription(java.lang.String description)
|
void |
setName(java.lang.String name)
|
void |
setSearchString0(java.lang.String searchString0)
|
void |
setSearchString1(java.lang.String searchString1)
|
void |
setSearchString2(java.lang.String searchString2)
|
void |
setSearchString3(java.lang.String searchString3)
|
void |
setSearchString4(java.lang.String searchString4)
|
void |
setSortString0(java.lang.String sortString0)
|
void |
setSortString1(java.lang.String sortString1)
|
void |
setSortString2(java.lang.String sortString2)
|
void |
setSortString3(java.lang.String sortString3)
|
void |
setSortString4(java.lang.String sortString4)
|
void |
setSubjectId(java.lang.String id)
Change subject id associated with member. |
void |
setSubjectIdDb(java.lang.String id)
simple set subject id |
void |
setSubjectIdentifier0(java.lang.String subjectIdentifier0)
|
void |
setSubjectSourceId(java.lang.String id)
Change subject source id associated with member. |
void |
setSubjectSourceIdDb(java.lang.String id)
simple set subject source id |
void |
setSubjectTypeId(java.lang.String subjectTypeID)
|
void |
setUuid(java.lang.String memberUUID)
|
void |
store()
will be implemented soon |
static java.lang.String |
subjectIds(java.util.Collection<Member> collection)
print out a collection of members |
Group |
toGroup()
Convert this member back to a Group object. |
java.lang.String |
toString()
|
java.lang.String |
toStringDto()
|
void |
updateMemberAttributes(edu.internet2.middleware.subject.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. name) |
boolean |
xmlDifferentUpdateProperties(Member other)
see if the update cols are different (e.g. last updated) |
java.lang.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. last updated). |
void |
xmlSetId(java.lang.String theId)
set id key in db |
XmlExportMember |
xmlToExportMember(GrouperVersion grouperVersion)
convert to xml bean for export |
java.lang.String |
xmlToString()
convert to string for log |
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI |
---|
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onLoad, onUpdate, setHibernateVersionNumber |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_SUBJECT_ID
public static final java.lang.String TABLE_GROUPER_MEMBERS
public static final java.lang.String COLUMN_MEMBER_UUID
public static final java.lang.String COLUMN_ID
public static final java.lang.String COLUMN_OLD_ID
public static final java.lang.String COLUMN_OLD_MEMBER_UUID
public static final java.lang.String COLUMN_SUBJECT_IDENTIFIER0
public static final java.lang.String COLUMN_SORT_STRING0
public static final java.lang.String COLUMN_SORT_STRING1
public static final java.lang.String COLUMN_SORT_STRING2
public static final java.lang.String COLUMN_SORT_STRING3
public static final java.lang.String COLUMN_SORT_STRING4
public static final java.lang.String COLUMN_SEARCH_STRING0
public static final java.lang.String COLUMN_SEARCH_STRING1
public static final java.lang.String COLUMN_SEARCH_STRING2
public static final java.lang.String COLUMN_SEARCH_STRING3
public static final java.lang.String COLUMN_SEARCH_STRING4
public static final java.lang.String COLUMN_NAME
public static final java.lang.String COLUMN_SUBJECT_ID
public static final java.lang.String COLUMN_SUBJECT_SOURCE
public static final java.lang.String COLUMN_SUBJECT_TYPE
public static final java.lang.String COLUMN_DESCRIPTION
public static final long serialVersionUID
public static final java.lang.String FIELD_DB_VERSION
public static final java.lang.String FIELD_MEMBER_UUID
public static final java.lang.String FIELD_SUBJECT_ID
public static final java.lang.String FIELD_SUBJECT_SOURCE_ID
public static final java.lang.String FIELD_SUBJECT_TYPE_ID
public static final java.lang.String FIELD_SUBJECT_IDENTIFIER0
public static final java.lang.String FIELD_SORT_STRING0
public static final java.lang.String FIELD_SORT_STRING1
public static final java.lang.String FIELD_SORT_STRING2
public static final java.lang.String FIELD_SORT_STRING3
public static final java.lang.String FIELD_SORT_STRING4
public static final java.lang.String FIELD_SEARCH_STRING0
public static final java.lang.String FIELD_SEARCH_STRING1
public static final java.lang.String FIELD_SEARCH_STRING2
public static final java.lang.String FIELD_SEARCH_STRING3
public static final java.lang.String FIELD_SEARCH_STRING4
public static final java.lang.String FIELD_NAME
public static final java.lang.String FIELD_DESCRIPTION
public static final java.lang.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
Constructor Detail |
---|
public Member()
Method Detail |
---|
public static void resolveSubjects(java.util.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()
AttributeAssignable
getAttributeDelegate
in interface AttributeAssignable
public AttributeValueDelegate getAttributeValueDelegate()
getAttributeValueDelegate
in interface AttributeAssignable
public static java.lang.String subjectIds(java.util.Collection<Member> collection)
collection
-
public void changeSubject(edu.internet2.middleware.subject.Subject newSubject) throws InsufficientPrivilegeException
newSubject
-
InsufficientPrivilegeException
- if not a root userpublic void changeSubject(edu.internet2.middleware.subject.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 java.lang.String changeSubjectReport(edu.internet2.middleware.subject.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 boolean canAdmin(Group g) throws java.lang.IllegalArgumentException
Member
ADMIN on this Group
.
boolean rv = m.canAdmin(g);
g
- Check privileges on this Group
.
java.lang.IllegalArgumentException
- if null Group
public boolean canCreate(Stem ns) throws java.lang.IllegalArgumentException
Member
CREATE on this Stem
.
boolean rv = m.canCreate(ns);
ns
- Check privileges on this Stem
.
java.lang.IllegalArgumentException
- if null Stem
public boolean canOptin(Group g) throws java.lang.IllegalArgumentException
Member
OPTIN on this Group
.
boolean rv = m.canAdmin(g);
g
- Check privileges on this Group
.
java.lang.IllegalArgumentException
- if null Group
public boolean canOptout(Group g) throws java.lang.IllegalArgumentException
Member
OPTOUT on this Group
.
boolean rv = m.canOptout(g);
g
- Check privileges on this Group
.
java.lang.IllegalArgumentException
- if null Group
public boolean canRead(Group g) throws java.lang.IllegalArgumentException
Member
READ on this Group
.
boolean rv = m.canRead(g);
g
- Check privileges on this Group
.
java.lang.IllegalArgumentException
- if null Group
public boolean canStem(Stem ns) throws java.lang.IllegalArgumentException
Member
STEM on this Stem
.
boolean rv = m.canStem(ns);
ns
- Check privileges on this Stem
.
java.lang.IllegalArgumentException
- if null Stem
public boolean canUpdate(Group g) throws java.lang.IllegalArgumentException
Member
UPDATE on this Group
.
boolean rv = m.canUpdate(g);
g
- Check privileges on this Group
.
java.lang.IllegalArgumentException
- if null Group
public boolean canView(Group g) throws java.lang.IllegalArgumentException
Member
VIEW on this Group
.
boolean rv = m.canView(g);
g
- Check privileges on this Group
.
java.lang.IllegalArgumentException
- if null Group
public java.util.Set<Group> getEffectiveGroups()
// Get groups where this member is an effective member. Set effectives = m.getEffectiveGroups();
Group
objects.public java.util.Set<Group> getEffectiveGroups(Field field)
// Get groups where this member is an effective member. Set effectives = m.getEffectiveGroups();
field
-
Group
objects.public java.util.Set<Membership> getEffectiveMemberships() throws GrouperException
Set effectives = m.getEffectiveMemberships();
Membership
objects.
GrouperException
public java.util.Set<Membership> getEffectiveMemberships(Field f) throws SchemaException
Set effectives = m.getEffectiveMemberships(f);
f
- Get effective memberships in this list field.
Membership
objects.
SchemaException
public java.util.Set<Group> getGroups()
// Get groups where this member is a member. Set groups = m.getGroups();
Group
objects.public java.util.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 field
Group
objects.public java.util.Set<Group> _internal_getGroupsHelper(Field field, MembershipType membershipType, java.lang.String scope, Stem stem, Stem.Scope stemScope, QueryOptions queryOptions, java.lang.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 disabled
Group
objects.public java.util.Set<Group> getGroups(Field field, java.lang.String scope, Stem stem, Stem.Scope stemScope, QueryOptions queryOptions, java.lang.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 disabled
Group
objects.public java.util.Set<Group> getEffectiveGroups(Field field, java.lang.String scope, Stem stem, Stem.Scope stemScope, QueryOptions queryOptions, java.lang.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 disabled
Group
objects.public java.util.Set<Group> getImmediateGroups(Field field, java.lang.String scope, Stem stem, Stem.Scope stemScope, QueryOptions queryOptions, java.lang.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 disabled
Group
objects.public java.util.Set<Group> getNonImmediateGroups(Field field, java.lang.String scope, Stem stem, Stem.Scope stemScope, QueryOptions queryOptions, java.lang.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 disabled
Group
objects.public java.util.Set<Group> getImmediateGroups()
// Get groups where this member is an immediate member. Set immediates = m.getImmediateGroups();
Group
objects.public java.util.Set<Group> getNonImmediateGroups()
// Get groups where this member is a non immediate member. Set nonImmediates = m.getNonImmediateGroups();
Group
objects.public java.util.Set<Group> getImmediateGroups(Field field)
// Get groups where this member is an immediate member. Set immediates = m.getImmediateGroups();
field
-
Group
objects.public java.util.Set<Membership> getImmediateMemberships() throws GrouperException
Set immediates = m.getImmediateMemberships();
Membership
objects.
GrouperException
public java.util.Set<Membership> getNonImmediateMemberships() throws GrouperException
Set immediates = m.getNonImmediateMemberships();
Membership
objects.
GrouperException
public java.util.Set<Membership> getImmediateMemberships(Field f) throws SchemaException
Set immediates = m.getImmediateMemberships(f);
f
- Get immediate memberships in this list field.
Membership
objects.
SchemaException
public java.util.Set<Membership> getNonImmediateMemberships(Field f) throws SchemaException
Set immediates = m.getNonImmediateMemberships(f);
f
- Get non-immediate memberships in this list field.
Membership
objects.
SchemaException
public java.util.Set<Membership> getMemberships() throws GrouperException
Set groups = m.getMemberships();
Membership
objects.
GrouperException
public java.util.Set<Membership> getMemberships(Field f) throws SchemaException
Set groups = m.getMemberships(f);
f
- Get memberships in this list field.
Membership
objects.
SchemaException
public java.util.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 privilege
Membership
objects.
SchemaException
public java.util.Set<AccessPrivilege> getPrivs(Group g)
Group
.
Set access = m.getPrivs(g);
g
- Find Access Privileges on this Group
AccessPrivilege
objects.public java.util.Set<NamingPrivilege> getPrivs(Stem ns)
Stem
.
Set naming = m.getPrivs(ns);
ns
- Find Naming Privileges on this Stem
NamingPrivilege
objects.public edu.internet2.middleware.subject.Subject getSubject() throws edu.internet2.middleware.subject.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.
edu.internet2.middleware.subject.SubjectNotFoundException
public edu.internet2.middleware.subject.Source getSubjectSource() throws GrouperException
Source
of the subject that maps to this member.
Source sa = m.getSubjectSource();
Source
GrouperException
public java.lang.String getSubjectSourceId()
Source
id of the subject that maps to this
member.
String id = m.getSubjectSourceId();
Source
idpublic java.lang.String getSubjectSourceIdDb()
public edu.internet2.middleware.subject.SubjectType getSubjectType()
SubjectType
of the subject that maps to this member.
// Get this member's subject type. SubjectType type = m.getSubjectType();
SubjectType
public java.lang.String getSubjectTypeId()
// Get this member's subject type id. String type = m.getSubjectTypeId();
public java.lang.String getUuid()
// Get UUID of member. String uuid = m.getUuid();
public java.lang.String getId()
getId
in interface GrouperId
public java.util.Set<Group> hasAdmin() throws GrouperException
Set admin = m.hasAdmin();
Group
objects.
GrouperException
public java.util.Set<Stem> hasAdminInStem() throws GrouperException
SetadminInStem = m.hasAdminInStem();
Stem
objects.
GrouperException
public java.util.Set<Stem> hasGroupAttrReadInStem() throws GrouperException
Setresults = m.hasGroupAttrReadInStem();
Stem
objects.
GrouperException
public java.util.Set<Stem> hasGroupAttrUpdateInStem() throws GrouperException
Setresults = m.hasGroupAttrUpdateInStem();
Stem
objects.
GrouperException
public java.util.Set<Stem> hasOptoutInStem() throws GrouperException
SetoptoutInStem = m.hasOptoutInStem();
Stem
objects.
GrouperException
public java.util.Set<Stem> hasOptinInStem() throws GrouperException
SetoptinInStem = m.hasOptinInStem();
Stem
objects.
GrouperException
public java.util.Set<Stem> hasViewInStem() throws GrouperException
SetviewInStem = m.hasViewInStem();
Stem
objects.
GrouperException
public java.util.Set<Stem> hasReadInStem() throws GrouperException
SetreadInStem = m.hasReadInStem();
Stem
objects.
GrouperException
public java.util.Set<Stem> hasUpdateInStem() throws GrouperException
SetupdateInStem = m.hasUpdateInStem();
Stem
objects.
GrouperException
public 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 Group
public java.util.Set<Stem> hasCreate() throws GrouperException
Set create = m.hasCreate();
Stem
objects.
GrouperException
public 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 Stem
public java.util.Set<Group> hasOptin() throws GrouperException
Set optin = m.hasOptin();
Group
objects.
GrouperException
public 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 Group
public java.util.Set<Group> hasOptout() throws GrouperException
Set optout = m.hasOptout();
Group
objects.
GrouperException
public 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 Group
public java.util.Set<Group> hasRead() throws GrouperException
Set read = m.hasRead();
Group
objects.
GrouperException
public 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 Group
public java.util.Set<Stem> hasStem() throws GrouperException
Set stem = m.hasStem();
Stem
objects.
GrouperException
public boolean hasStem(Stem ns)
if (m.hasStem(ns)) { // Member has privilege }
ns
- Test for privilege on this Stem
public java.util.Set<Group> hasUpdate() throws GrouperException
Set update = m.hasUpdate();
Group
objects.
GrouperException
public 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 Group
public java.util.Set<Group> hasView() throws GrouperException
Set view = m.hasView();
Group
objects.
GrouperException
public 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 Group
public boolean isEffectiveMember(Group g) throws GrouperException
if (m.isEffectiveMember(g)) { // Is an effective member }
g
- Test for membership in this group.
GrouperException
public 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.
SchemaException
public boolean isImmediateMember(Group g) throws GrouperException
if (m.isImmediateMember(g)) { // Is an immediate member }
g
- Test for membership in this group.
GrouperException
public 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.
SchemaException
public boolean isMember(Group g)
if (m.isMember(g)) { // Is a member }
g
- Test for membership in this group.
GrouperException
public 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
.
SchemaException
public void setSubjectIdDb(java.lang.String id)
id
- public void setSubjectId(java.lang.String id) throws java.lang.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.
java.lang.IllegalArgumentException
InsufficientPrivilegeException
public void store()
public void setSubjectSourceIdDb(java.lang.String id)
id
- public void setSubjectSourceId(java.lang.String id) throws java.lang.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.
java.lang.IllegalArgumentException
InsufficientPrivilegeException
public Group toGroup() throws GroupNotFoundException
Group
object.
try { Group g = m.toGroup(); } catch (GroupNotFoundException e) { // unable to convert member back to group }
Member
as a Group
GroupNotFoundException
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean isMember(java.lang.String ownerUUID, Field f)
ownerUUID
- f
-
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String getSubjectId()
public java.lang.String getSubjectIdDb()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean onDelete(org.hibernate.Session hs) throws org.hibernate.CallbackException
onDelete
in interface org.hibernate.classic.Lifecycle
onDelete
in class GrouperAPI
org.hibernate.CallbackException
GrouperAPI.onDelete(org.hibernate.Session)
public boolean onSave(org.hibernate.Session hs) throws org.hibernate.CallbackException
onSave
in interface org.hibernate.classic.Lifecycle
onSave
in class GrouperAPI
org.hibernate.CallbackException
GrouperAPI.onSave(org.hibernate.Session)
public void setSubjectTypeId(java.lang.String subjectTypeID)
subjectTypeID
- public void setUuid(java.lang.String memberUUID)
memberUUID
- public java.lang.String toStringDto()
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)
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 onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave
in interface HibGrouperLifecycle
onPreSave
in class GrouperAPI
GrouperAPI.onPreSave(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 Member dbVersion()
dbVersion
in class GrouperAPI
public java.util.Set<java.lang.String> dbVersionDifferentFields()
dbVersionDifferentFields
in class GrouperAPI
GrouperAPI.dbVersionDifferentFields()
public void dbVersionReset()
dbVersionReset
in class GrouperAPI
public Member clone()
clone
in interface GrouperCloneable
clone
in class GrouperAPI
Object.clone()
public java.lang.String getContextId()
public void setContextId(java.lang.String contextId1)
setContextId
in interface GrouperHasContext
contextId1
- public boolean canAttrAdmin(AttributeDef attributeDef) throws java.lang.IllegalArgumentException
Member
ATTR_ADMIN on this AttributeDef
.
boolean rv = m.canAttrAdmin(attributeDef);
attributeDef
- Check privileges on this AttributeDef
.
java.lang.IllegalArgumentException
- if null AttributeDef
public boolean canAttrDefAttrRead(AttributeDef attributeDef) throws java.lang.IllegalArgumentException
Member
ATTR_DEF_ATTR_READ on this AttributeDef
.
boolean rv = m.canAttrDefAttrRead(attributeDef);
attributeDef
- Check privileges on this AttributeDef
.
java.lang.IllegalArgumentException
- if null AttributeDef
public boolean canAttrDefAttrUpdate(AttributeDef attributeDef) throws java.lang.IllegalArgumentException
Member
ATTR_DEF_ATTR_UPDATE on this AttributeDef
.
boolean rv = m.canAttrDefAttrUpdate(attributeDef);
attributeDef
- Check privileges on this AttributeDef
.
java.lang.IllegalArgumentException
- if null AttributeDef
public boolean canGroupAttrUpdate(Group group) throws java.lang.IllegalArgumentException
Member
GROUP_ATTR_UPDATE on this Group
.
boolean rv = m.canGroupAttrUpdate(group);
group
- Check privileges on this Group
.
java.lang.IllegalArgumentException
- if null Group
public boolean canGroupAttrRead(Group group) throws java.lang.IllegalArgumentException
Member
GROUP_ATTR_READ on this Group
.
boolean rv = m.canGroupAttrRead(group);
group
- Check privileges on this Group
.
java.lang.IllegalArgumentException
- if null Group
public boolean canStemAttrRead(Stem stem) throws java.lang.IllegalArgumentException
Member
STEM_ATTR_READ on this Stem
.
boolean rv = m.canStemAttrRead(stem);
stem
- Check privileges on this Stem
.
java.lang.IllegalArgumentException
- if null Stem
public boolean canStemAdmin(Stem stem) throws java.lang.IllegalArgumentException
Member
STEM_ADMIN on this Stem
.
boolean rv = m.canStemAdmin(stem);
stem
- Check privileges on this Stem
.
java.lang.IllegalArgumentException
- if null Stem
public boolean canStemAttrUpdate(Stem stem) throws java.lang.IllegalArgumentException
Member
STEM_ATTR_UPDATE on this Stem
.
boolean rv = m.canStemAttrUpdate(stem);
stem
- Check privileges on this Stem
.
java.lang.IllegalArgumentException
- if null Stem
public boolean canAttrOptin(AttributeDef attributeDef) throws java.lang.IllegalArgumentException
Member
ATTR_OPTIN on this AttributeDef
.
boolean rv = m.canAttrAdmin(attributeDef);
attributeDef
- Check privileges on this AttributeDef
.
java.lang.IllegalArgumentException
- if null AttributeDef
public boolean canAttrOptout(AttributeDef attributeDef) throws java.lang.IllegalArgumentException
Member
ATTR_OPTOUT on this AttributeDef
.
boolean rv = m.canAttrOptout(attributeDef);
attributeDef
- Check privileges on this AttributeDef
.
java.lang.IllegalArgumentException
- if null AttributeDef
public boolean canAttrRead(AttributeDef attributeDef) throws java.lang.IllegalArgumentException
Member
ATTR_READ on this AttributeDef
.
boolean rv = m.canAttrRead(attributeDef);
attributeDef
- Check privileges on this AttributeDef
.
java.lang.IllegalArgumentException
- if null AttributeDef
public boolean canAttrUpdate(AttributeDef attributeDef) throws java.lang.IllegalArgumentException
Member
ATTR_UPDATE on this AttributeDef
.
boolean rv = m.canAttrUpdate(attributeDef);
attributeDef
- Check privileges on this AttributeDef
.
java.lang.IllegalArgumentException
- if null AttributeDef
public boolean canAttrView(AttributeDef attributeDef) throws java.lang.IllegalArgumentException
Member
ATTR_VIEW on this AttributeDef
.
boolean rv = m.canAttrView(attributeDef);
attributeDef
- Check privileges on this AttributeDef
.
java.lang.IllegalArgumentException
- if null AttributeDef
public java.util.Set<AttributeDef> hasAttrAdmin() throws GrouperException
Setadmins = hasAttrAdmin();
AttributeDef
objects.
GrouperException
public 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 AttributeDef
public 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 Group
public 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 Group
public 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 Stem
public 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 Stem
public 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 Stem
public 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 AttributeDef
public 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 AttributeDef
public java.util.Set<AttributeDef> hasAttrOptin() throws GrouperException
Setoptin = m.hasAttrOptin();
AttributeDef
objects.
GrouperException
public java.util.Set<AttributeDef> hasAttrDefAttrRead() throws GrouperException
Setresults = m.hasAttrDefAttrRead();
AttributeDef
objects.
GrouperException
public java.util.Set<AttributeDef> hasAttrDefAttrUpdate() throws GrouperException
Setresults = m.hasAttrDefAttrUpdate();
AttributeDef
objects.
GrouperException
public java.util.Set<Group> hasGroupAttrUpdate() throws GrouperException
Setresults = m.hasGroupAttrUpdate();
Group
objects.
GrouperException
public java.util.Set<Group> hasGroupAttrRead() throws GrouperException
Setresults = m.hasGroupAttrRead();
Group
objects.
GrouperException
public java.util.Set<Stem> hasStemAttrRead() throws GrouperException
Setresults = m.hasStemAttrRead();
Stem
objects.
GrouperException
public java.util.Set<Stem> hasStemAdmin() throws GrouperException
Setresults = m.hasStemAdmin();
Stem
objects.
GrouperException
public java.util.Set<Stem> hasStemAttrUpdate() throws GrouperException
Setresults = m.hasStemAttrUpdate();
Stem
objects.
GrouperException
public 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 AttributeDef
public java.util.Set<AttributeDef> hasAttrOptout() throws GrouperException
Setoptout = m.hasOptout();
AttributeDef
objects.
GrouperException
public 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 AttributeDef
public java.util.Set<AttributeDef> hasAttrRead() throws GrouperException
Setread = m.hasRead();
AttributeDef
objects.
GrouperException
public 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 Group
public java.util.Set<AttributeDef> hasAttrUpdate() throws GrouperException
Setupdate = m.hasUpdate();
AttributeDef
objects.
GrouperException
public 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 AttributeDef
public java.util.Set<AttributeDef> hasAttrView() throws GrouperException
Setview = m.hasView();
AttributeDef
objects.
GrouperException
public 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 AttributeDef
public boolean isNonImmediateMember(Group g) throws GrouperException
if (m.isNonImmediateMember(g)) { // Is an immediate member }
g
- Test for membership in this group.
GrouperException
public 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.
SchemaException
public java.util.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 java.lang.Comparable<Member>
Comparable.compareTo(java.lang.Object)
public boolean xmlDifferentBusinessProperties(Member other)
XmlImportableBase
xmlDifferentBusinessProperties
in interface XmlImportableBase<Member>
other
- the one to compare with
XmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)
public boolean xmlDifferentUpdateProperties(Member other)
XmlImportableBase
xmlDifferentUpdateProperties
in interface XmlImportableBase<Member>
other
- the one to compare with
XmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)
public void xmlCopyBusinessPropertiesToExisting(Member existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting
in interface XmlImportableBase<Member>
XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)
public Member xmlRetrieveByIdOrKey()
XmlImportable
xmlRetrieveByIdOrKey
in interface XmlImportable<Member>
XmlImportable.xmlRetrieveByIdOrKey()
public Member xmlSaveBusinessProperties(Member existingRecord)
XmlImportableBase
xmlSaveBusinessProperties
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 it
XmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)
public void xmlSaveUpdateProperties()
XmlImportableBase
xmlSaveUpdateProperties
in interface XmlImportableBase<Member>
XmlImportableBase.xmlSaveUpdateProperties()
public XmlExportMember xmlToExportMember(GrouperVersion grouperVersion)
grouperVersion
-
public java.lang.String xmlGetId()
XmlImportableBase
xmlGetId
in interface XmlImportableBase<Member>
XmlImportableBase.xmlGetId()
public void xmlSetId(java.lang.String theId)
XmlImportableBase
xmlSetId
in interface XmlImportableBase<Member>
XmlImportableBase.xmlSetId(java.lang.String)
public java.lang.String xmlToString()
XmlImportableBase
xmlToString
in interface XmlImportableBase<Member>
XmlImportableBase.xmlToString()
public java.lang.String getSubjectIdentifier0()
public void setSubjectIdentifier0(java.lang.String subjectIdentifier0)
subjectIdentifier0
- the subjectIdentifier0 to setpublic java.lang.String getSortString0()
public void setSortString0(java.lang.String sortString0)
sortString0
- the sortString0 to setpublic java.lang.String getSortString1()
public void setSortString1(java.lang.String sortString1)
sortString1
- the sortString1 to setpublic java.lang.String getSortString2()
public void setSortString2(java.lang.String sortString2)
sortString2
- the sortString2 to setpublic java.lang.String getSortString3()
public void setSortString3(java.lang.String sortString3)
sortString3
- the sortString3 to setpublic java.lang.String getSortString4()
public void setSortString4(java.lang.String sortString4)
sortString4
- the sortString4 to setpublic java.lang.String getSearchString0()
public void setSearchString0(java.lang.String searchString0)
searchString0
- the searchString0 to setpublic java.lang.String getSearchString1()
public void setSearchString1(java.lang.String searchString1)
searchString1
- the searchString1 to setpublic java.lang.String getSearchString2()
public void setSearchString2(java.lang.String searchString2)
searchString2
- the searchString2 to setpublic java.lang.String getSearchString3()
public void setSearchString3(java.lang.String searchString3)
searchString3
- the searchString3 to setpublic java.lang.String getSearchString4()
public void setSearchString4(java.lang.String searchString4)
searchString4
- the searchString4 to setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to setpublic void updateMemberAttributes(edu.internet2.middleware.subject.Subject subject, boolean storeChanges)
subject
- storeChanges
- if there are changes, should they be saved to the database?
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |