public class IbisPerson extends Object
Modifier and Type | Field and Description |
---|---|
List<IbisAttribute> |
attributes
A list of the person's attributes.
|
Boolean |
cancelled
Flag indicating if the person is cancelled.
|
List<IbisGroup> |
directGroups
A list of all the groups that the person directly belongs to.
|
String |
displayName
The person's display name (if visible).
|
List<IbisGroup> |
groups
A list of all the groups to which the person belongs, including
indirect group memberships, via groups that include other groups.
|
String |
id
An ID that can uniquely identify this person within the returned
XML/JSON document.
|
IbisIdentifier |
identifier
The person's primary identifier (typically their CRSid).
|
List<IbisIdentifier> |
identifiers
A list of the person's identifiers.
|
List<IbisInstitution> |
institutions
A list of all the institution's to which the person belongs.
|
String |
misAffiliation
The person's MIS status (
"staff" , "student" ,
"staff,student" or "" ). |
String |
ref
A reference (by id) to a person element in the XML/JSON document.
|
String |
registeredName
The person's registered name (if visible).
|
String |
surname
The person's surname (if visible).
|
String |
visibleName
The person's display name if that is visible, otherwise their
registered name if that is visible, otherwise their surname if
that is visible, otherwise the value of their primary identifier
(typically their CRSid) which is always visible.
|
Constructor and Description |
---|
IbisPerson() |
Modifier and Type | Method and Description |
---|---|
String |
id()
Compute an ID that can uniquely identify this entity in XML/JSON.
|
boolean |
isStaff()
Returns
true if the person is a member of staff. |
boolean |
isStudent()
Returns
true if the person is a student. |
IbisPerson |
ref()
Return a new IbisPerson that refers to this person.
|
public Boolean cancelled
public IbisIdentifier identifier
public String displayName
public String registeredName
public String surname
public String visibleName
public String misAffiliation
"staff"
, "student"
,
"staff,student"
or ""
).public List<IbisIdentifier> identifiers
fetch
parameter included the
"all_identifiers"
option.public List<IbisAttribute> attributes
fetch
parameter includes the "all_attrs"
option,
or any specific attribute schemes such as "email"
or
"title"
, or the special pseudo-attribute scheme
"phone_numbers"
.public List<IbisInstitution> institutions
fetch
parameter includes
the "all_insts"
option.public List<IbisGroup> groups
fetch
parameter
includes the "all_groups"
option.public List<IbisGroup> directGroups
fetch
parameter includes the "direct_groups"
option.public String id
public String ref
public boolean isStaff()
true
if the person is a member of staff.
Note that this tests for an misAffiliation of ""
,
"staff"
or "staff,student"
since some members of staff
will have a blank misAffiliation.
public boolean isStudent()
true
if the person is a student.
This tests for an misAffiliation of "student"
or
"staff,student"
.
public String id()
public IbisPerson ref()