Class UserFriendService
java.lang.Object
dev.getelements.elements.service.friend.UserFriendService
- All Implemented Interfaces:
FriendService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteFriend
(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 ofFriend
with the supplied offset and count.getFriends
(int offset, int count, String search) Gets the listing ofFriend
with the supplied offset, count, and search query.getUser()
void
setFriendDao
(FriendDao friendDao) void
-
Constructor Details
-
UserFriendService
public UserFriendService()
-
-
Method Details
-
getFriends
Description copied from interface:FriendService
Gets the listing ofFriend
with the supplied offset and count.- Specified by:
getFriends
in interfaceFriendService
- Parameters:
offset
- the offsetcount
- the count- Returns:
- the list of
Friend
instances
-
getFriends
Description copied from interface:FriendService
Gets the listing ofFriend
with the supplied offset, count, and search query.- Specified by:
getFriends
in interfaceFriendService
- Parameters:
offset
- the offsetcount
- the countsearch
- the search query- Returns:
- the list of
Friend
instances
-
getFriend
Description copied from interface:FriendService
- Specified by:
getFriend
in interfaceFriendService
- Parameters:
friendId
- the id, as obtained usingFriend.getId()
.- Returns:
- the
Friend
, never null
-
deleteFriend
Description copied from interface:FriendService
Deletes the suppliedFriend
, throwing an exception if the supplied id is not valid.- Specified by:
deleteFriend
in interfaceFriendService
- Parameters:
friendId
- the id, as obtained usingFriend.getId()
.
-
getUser
-
setUser
-
getFriendDao
-
setFriendDao
-