|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.user.relationships.UserRelationshipView
public class UserRelationshipView
Represents the relative view of a relationship as opposed to UserRelationship which represents the data-store view.
| Nested Class Summary | |
|---|---|
static class |
UserRelationshipView.ViewType
Represents the different types of relationships between users. |
| Field Summary | |
|---|---|
protected Date |
dateCreated
|
protected Date |
dateRetired
|
protected long |
id
|
protected String |
label
|
protected User |
person
|
protected UserRelationship.RelationshipState |
state
|
protected User |
user
|
protected UserRelationshipView.ViewType |
viewType
|
| Constructor Summary | |
|---|---|
UserRelationshipView(long relationshipID,
User person)
A constructor for "friend" relationships. |
|
UserRelationshipView(UserRelationship rel,
User user,
User person,
UserRelationshipGraph graph)
This is a simple, non-relative constructor where we don't have any relative directionality for the manager/direct report relationship (x is always y's manager, and label is not relative to requester, whether they're x or y). |
|
UserRelationshipView(UserRelationshipView.ViewType viewType,
long relationshipID,
User user,
User person,
String label)
|
|
UserRelationshipView(UserRelationshipView view)
Construct one view from another. |
|
UserRelationshipView(User requester,
UserRelationship rel,
User user,
User person,
UserRelationshipGraph graph)
This constructor is relative to who is requesting the view (for the directional manager/direct report relationship). |
|
| Method Summary | |
|---|---|
static Collection<User> |
asUsers(User targetUser,
Collection<UserRelationshipView> views)
A convenience method for extracting Users from UserRelationshipViews. |
Date |
getDateCreated()
|
Date |
getDateRetired()
|
long |
getID()
|
String |
getLabel()
|
User |
getPerson()
|
UserRelationship.RelationshipState |
getState()
|
UserRelationshipView.ViewType |
getType()
|
User |
getUser()
|
boolean |
isApproved()
|
boolean |
isDirectReport()
|
boolean |
isManager()
|
boolean |
isPeer()
|
boolean |
isPendingApproval()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected UserRelationshipView.ViewType viewType
protected long id
protected User user
protected User person
protected String label
protected Date dateCreated
protected Date dateRetired
protected UserRelationship.RelationshipState state
| Constructor Detail |
|---|
public UserRelationshipView(UserRelationship rel,
User user,
User person,
UserRelationshipGraph graph)
rel - user - person - graph -
public UserRelationshipView(User requester,
UserRelationship rel,
User user,
User person,
UserRelationshipGraph graph)
requester - rel - user - person - graph -
public UserRelationshipView(UserRelationshipView.ViewType viewType,
long relationshipID,
User user,
User person,
String label)
public UserRelationshipView(long relationshipID,
User person)
relationshipID - person - public UserRelationshipView(UserRelationshipView view)
view - | Method Detail |
|---|
public long getID()
public User getUser()
public User getPerson()
public String getLabel()
public UserRelationshipView.ViewType getType()
public UserRelationship.RelationshipState getState()
public boolean isManager()
public boolean isPeer()
public boolean isDirectReport()
public boolean isApproved()
public boolean isPendingApproval()
public String toString()
toString in class Objectpublic Date getDateCreated()
public Date getDateRetired()
public static Collection<User> asUsers(User targetUser,
Collection<UserRelationshipView> views)
targetUser - views -
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||