|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.ed.AbstractDataRelation<Group,V>
edu.vt.middleware.ed.AbstractGroupRelation<Person>
edu.vt.middleware.ed.GroupPersonRelation
public class GroupPersonRelation
Group-to-person relationship.
| Field Summary | |
|---|---|
static RoleType[] |
ALL_ROLES
all supported roles |
private static long |
serialVersionUID
Serialization version marker |
| Fields inherited from class edu.vt.middleware.ed.AbstractDataRelation |
|---|
createdBy, creationDate, dependent, expirationDate, owner, roleType, uid |
| Constructor Summary | |
|---|---|
GroupPersonRelation()
Creates a bare group-to-person relationship. |
|
GroupPersonRelation(Person p,
RoleType role)
Creates a group-to-person relationship with the given person of the specified role. |
|
| Method Summary | |
|---|---|
int |
compareTo(GroupPersonRelation o)
Sorts group-person relationships by the underlying account in each person, with a secondary sort by relation type code when the accounts are equal -- needed to keep all entries when the retrieval of relations is not limited by a role. |
Person |
getPerson()
Gets the person involved in the relationship. |
Long |
getUid()
This returns the uid. |
void |
setPerson(Person p)
Sets the person involved in the relationship. |
| Methods inherited from class edu.vt.middleware.ed.AbstractGroupRelation |
|---|
getGroup, setGroup |
| Methods inherited from class edu.vt.middleware.ed.AbstractDataRelation |
|---|
compareTo, getCreatedBy, getCreationDate, getExpirationDate, getRelation, getRelationship, getRoleType, setCreatedBy, setCreationDate, setExpirationDate, setRelation, setRelationship, setRoleType, setUid, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.vt.middleware.ed.DataRelation |
|---|
getExpirationDate, getRelation, getRelationship, getRoleType, setExpirationDate, setRelation, setRelationship, setRoleType |
| Methods inherited from interface edu.vt.middleware.ed.DataObject |
|---|
getCreatedBy, getCreationDate, setCreatedBy, setCreationDate, setUid |
| Field Detail |
|---|
public static final RoleType[] ALL_ROLES
private static final long serialVersionUID
| Constructor Detail |
|---|
public GroupPersonRelation()
public GroupPersonRelation(Person p,
RoleType role)
p - Person to whom a group should be related.role - Role describing relationship of group to person.| Method Detail |
|---|
public Long getUid()
getUid in interface DataObjectLong - uidpublic Person getPerson()
public void setPerson(Person p)
p - Person side of relationship.public int compareTo(GroupPersonRelation o)
compareTo in interface Comparable<GroupPersonRelation>o - Relation to compare with this one.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||