public interface UserProfile extends Accessor, Actioner, Versioned, Annotatable
Modifier and Type | Interface and Description |
---|---|
static class |
UserProfile.Impl |
Modifier and Type | Field and Description |
---|---|
static String |
FOLLOWER_COUNT |
static String |
FOLLOWING_COUNT |
static String |
WATCHING_COUNT |
Modifier and Type | Method and Description |
---|---|
void |
addBlocked(UserProfile user)
Add a user to this user's block list.
|
void |
addFollowing(UserProfile user)
Add a user the those this user follows.
|
void |
addWatching(Watchable item)
Add an item to this user's watch list.
|
Iterable<UserProfile> |
coGroupMembers()
Fetch users who share groups with this user.
|
Iterable<Annotation> |
getAnnotations()
Fetch annotations belonging to this user.
|
Iterable<UserProfile> |
getBlocked()
Fetch users on this user's block list.
|
int |
getFollowerCount() |
Iterable<UserProfile> |
getFollowers()
Get users who follow this user.
|
Iterable<UserProfile> |
getFollowing()
Get users who this user follows.
|
int |
getFollowingCount() |
Iterable<Group> |
getGroups()
Get the groups to which this user belongs.
|
Iterable<Link> |
getLinks()
Fetch links belonging to this user.
|
Iterable<VirtualUnit> |
getVirtualUnits()
Fetch virtual units created by this user.
|
Iterable<Watchable> |
getWatching()
Fetch items this user is watching.
|
int |
getWatchingCount() |
boolean |
isBlocking(UserProfile user)
Ascertain whether this user is blocking another user.
|
boolean |
isFollower(UserProfile otherUser)
Ascertain whether the other user is following this user.
|
boolean |
isFollowing(UserProfile otherUser)
Ascertain whether this user is following another user.
|
boolean |
isWatching(Watchable item)
Ascertain whether this user is watching an item.
|
void |
removeBlocked(UserProfile user)
Remove a user from this user's block list.
|
void |
removeFollowing(UserProfile user)
Remove a user from those this user follows.
|
void |
removeWatching(Watchable item)
Remove an item from this user's watch list.
|
addPermissionGrant, getAllParents, getParents, getPermissionGrants, isAdmin, isAnonymous
getIdentifier
getActions, getLatestAction
getAllPriorVersions, getPriorVersion
addAccessor, getAccessors, getHistory, getLatestEvent, getPermissionScope, getPermissionScopes, hasAccessRestriction, removeAccessor, setPermissionScope
getPermissionGrants
as, getId, getProperty, getProperty, getPropertyKeys, getType
addAnnotation, addAnnotationPart
static final String FOLLOWER_COUNT
static final String FOLLOWING_COUNT
static final String WATCHING_COUNT
int getFollowerCount()
int getFollowingCount()
int getWatchingCount()
Iterable<Group> getGroups()
Iterable<UserProfile> getFollowers()
Iterable<UserProfile> getFollowing()
void addFollowing(UserProfile user)
user
- a user framevoid removeFollowing(UserProfile user)
user
- a user frameboolean isFollowing(UserProfile otherUser)
otherUser
- a user frameboolean isFollower(UserProfile otherUser)
otherUser
- a user frameIterable<Watchable> getWatching()
Iterable<Link> getLinks()
Iterable<Annotation> getAnnotations()
getAnnotations
in interface Annotatable
Iterable<VirtualUnit> getVirtualUnits()
void addWatching(Watchable item)
item
- a generic item framevoid removeWatching(Watchable item)
item
- a generic item framevoid addBlocked(UserProfile user)
user
- a user framevoid removeBlocked(UserProfile user)
user
- a user frameIterable<UserProfile> getBlocked()
boolean isBlocking(UserProfile user)
user
- a user frameIterable<UserProfile> coGroupMembers()
boolean isWatching(Watchable item)
item
- a generic item frameCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.