Class UserFriendService

java.lang.Object
dev.getelements.elements.service.friend.UserFriendService
All Implemented Interfaces:
FriendService

public class UserFriendService extends Object implements FriendService
  • Constructor Details

    • UserFriendService

      public UserFriendService()
  • Method Details

    • getFriends

      public Pagination<Friend> getFriends(int offset, int count)
      Description copied from interface: FriendService
      Gets the listing of Friend with the supplied offset and count.
      Specified by:
      getFriends in interface FriendService
      Parameters:
      offset - the offset
      count - the count
      Returns:
      the list of Friend instances
    • getFriends

      public Pagination<Friend> getFriends(int offset, int count, String search)
      Description copied from interface: FriendService
      Gets the listing of Friend with the supplied offset, count, and search query.
      Specified by:
      getFriends in interface FriendService
      Parameters:
      offset - the offset
      count - the count
      search - the search query
      Returns:
      the list of Friend instances
    • getFriend

      public Friend getFriend(String friendId)
      Description copied from interface: FriendService
      Gets a single instance of Friend. Throws an exception if the supplied Friend is not found.
      Specified by:
      getFriend in interface FriendService
      Parameters:
      friendId - the id, as obtained using Friend.getId().
      Returns:
      the Friend, never null
    • deleteFriend

      public void deleteFriend(String friendId)
      Description copied from interface: FriendService
      Deletes the supplied Friend, throwing an exception if the supplied id is not valid.
      Specified by:
      deleteFriend in interface FriendService
      Parameters:
      friendId - the id, as obtained using Friend.getId().
    • getUser

      public User getUser()
    • setUser

      @Inject public void setUser(User user)
    • getFriendDao

      public FriendDao getFriendDao()
    • setFriendDao

      @Inject public void setFriendDao(FriendDao friendDao)