Class UserFollowerService

java.lang.Object
dev.getelements.elements.service.follower.UserFollowerService
All Implemented Interfaces:
FollowerService

public class UserFollowerService extends Object implements FollowerService
  • Constructor Details

    • UserFollowerService

      public UserFollowerService()
  • Method Details

    • getFollowers

      public Pagination<Profile> getFollowers(String profileId, int offset, int count)
      Description copied from interface: FollowerService
      Gets the listing of Profile's followers with the supplied offset and count.
      Specified by:
      getFollowers in interface FollowerService
      Parameters:
      profileId - the profile id to fetch followers for
      offset - the offset
      count - the count
      Returns:
      the list of Profile instances
    • getFollowees

      public Pagination<Profile> getFollowees(String profileId, int offset, int count)
      Description copied from interface: FollowerService
      Gets the listing of Profile's followees with the supplied offset and count.
      Specified by:
      getFollowees in interface FollowerService
      Parameters:
      profileId - the profile id to fetch followers for
      offset - the offset
      count - the count
      Returns:
      the list of Profile instances
    • getFollower

      public Profile getFollower(String profileId, String followedId)
      Description copied from interface: FollowerService
      Gets the listing of Profile with the supplied offset, count, and search query.
      Specified by:
      getFollower in interface FollowerService
      Parameters:
      profileId - the profile id to fetch the follower for
      followedId - the specific follower id to get the profile for
      Returns:
      Profile instance
    • createFollower

      public void createFollower(String profileId, CreateFollowerRequest createFollowerRequest)
      Description copied from interface: FollowerService
      Creates a follower link between two profiles
      Specified by:
      createFollower in interface FollowerService
      Parameters:
      profileId - the id of the user profile
      createFollowerRequest - the request body containing the the id of the profile to follow.
    • deleteFollower

      public void deleteFollower(String profileId, String profileToUnfollowId)
      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 interface FollowerService
      Parameters:
      profileId - the id of the user profile.
      profileToUnfollowId - the id of the profile to unfollow
    • getUser

      public User getUser()
    • setUser

      @Inject public void setUser(User user)
    • getFollowerDao

      public FollowerDao getFollowerDao()
    • setFollowerDao

      @Inject public void setFollowerDao(FollowerDao followerDao)
    • getProfileDao

      public ProfileDao getProfileDao()
    • setProfileDao

      @Inject public void setProfileDao(ProfileDao profileDao)
    • getCdnUtils

      public LargeObjectCdnUtils getCdnUtils()
    • setCdnUtils

      @Inject public void setCdnUtils(LargeObjectCdnUtils cdnUtils)