Class UserFollowerService
java.lang.Object
dev.getelements.elements.service.follower.UserFollowerService
- All Implemented Interfaces:
FollowerService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createFollower
(String profileId, CreateFollowerRequest createFollowerRequest) Creates a follower link between two profilesvoid
deleteFollower
(String profileId, String profileToUnfollowId) Deletes the link between the supplied profile id's, throwing an exception if the supplied id is not valid.getFollowees
(String profileId, int offset, int count) Gets the listing ofProfile
's followees with the supplied offset and count.getFollower
(String profileId, String followedId) Gets the listing ofProfile
with the supplied offset, count, and search query.getFollowers
(String profileId, int offset, int count) Gets the listing ofProfile
's followers with the supplied offset and count.getUser()
void
setCdnUtils
(LargeObjectCdnUtils cdnUtils) void
setFollowerDao
(FollowerDao followerDao) void
setProfileDao
(ProfileDao profileDao) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.sdk.service.follower.FollowerService
redactPrivateInformation
-
Constructor Details
-
UserFollowerService
public UserFollowerService()
-
-
Method Details
-
getFollowers
Description copied from interface:FollowerService
Gets the listing ofProfile
's followers with the supplied offset and count.- Specified by:
getFollowers
in interfaceFollowerService
- Parameters:
profileId
- the profile id to fetch followers foroffset
- the offsetcount
- the count- Returns:
- the list of
Profile
instances
-
getFollowees
Description copied from interface:FollowerService
Gets the listing ofProfile
's followees with the supplied offset and count.- Specified by:
getFollowees
in interfaceFollowerService
- Parameters:
profileId
- the profile id to fetch followers foroffset
- the offsetcount
- the count- Returns:
- the list of
Profile
instances
-
getFollower
Description copied from interface:FollowerService
Gets the listing ofProfile
with the supplied offset, count, and search query.- Specified by:
getFollower
in interfaceFollowerService
- Parameters:
profileId
- the profile id to fetch the follower forfollowedId
- the specific follower id to get the profile for- Returns:
Profile
instance
-
createFollower
Description copied from interface:FollowerService
Creates a follower link between two profiles- Specified by:
createFollower
in interfaceFollowerService
- Parameters:
profileId
- the id of the user profilecreateFollowerRequest
- the request body containing the the id of the profile to follow.
-
deleteFollower
Description copied from interface:FollowerService
Deletes the link between the supplied profile id's, throwing an exception if the supplied id is not valid.- Specified by:
deleteFollower
in interfaceFollowerService
- Parameters:
profileId
- the id of the user profile.profileToUnfollowId
- the id of the profile to unfollow
-
getUser
-
setUser
-
getFollowerDao
-
setFollowerDao
-
getProfileDao
-
setProfileDao
-
getCdnUtils
-
setCdnUtils
-