Class UserFriendService
java.lang.Object
dev.getelements.elements.service.friend.UserFriendService
- All Implemented Interfaces:
FriendService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteFriend(String friendId) Deletes the suppliedFriend, throwing an exception if the supplied id is not valid.Gets a single instance ofFriend.getFriends(int offset, int count) Gets the listing ofFriendwith the supplied offset and count.getFriends(int offset, int count, String search) Gets the listing ofFriendwith the supplied offset, count, and search query.getUser()voidsetFriendDao(FriendDao friendDao) void
-
Constructor Details
-
UserFriendService
public UserFriendService()
-
-
Method Details
-
getFriends
Description copied from interface:FriendServiceGets the listing ofFriendwith the supplied offset and count.- Specified by:
getFriendsin interfaceFriendService- Parameters:
offset- the offsetcount- the count- Returns:
- the list of
Friendinstances
-
getFriends
Description copied from interface:FriendServiceGets the listing ofFriendwith the supplied offset, count, and search query.- Specified by:
getFriendsin interfaceFriendService- Parameters:
offset- the offsetcount- the countsearch- the search query- Returns:
- the list of
Friendinstances
-
getFriend
Description copied from interface:FriendService- Specified by:
getFriendin interfaceFriendService- Parameters:
friendId- the id, as obtained usingFriend.getId().- Returns:
- the
Friend, never null
-
deleteFriend
Description copied from interface:FriendServiceDeletes the suppliedFriend, throwing an exception if the supplied id is not valid.- Specified by:
deleteFriendin interfaceFriendService- Parameters:
friendId- the id, as obtained usingFriend.getId().
-
getUser
-
setUser
-
getFriendDao
-
setFriendDao
-