|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProfileSearchLogic
An interface for dealing with profile searches.
| Method Summary | |
|---|---|
void |
addSearchTermToHistory(String userUuid,
ProfileSearchTerm searchTerm)
Adds the given profile search term to a user's search history. |
void |
clearSearchHistory(String userUuid)
Clears the search history for the user with the given UUID. |
List<Person> |
findUsersByInterest(String search,
boolean includeConnections,
String worksiteId)
Find all users that match the search string in any of the relevant SakaiPerson fields |
List<Person> |
findUsersByNameOrEmail(String search,
boolean includeConnections,
String worksiteId)
Find all users that match the search string in either name or email. |
ProfileSearchTerm |
getLastSearchTerm(String userUuid)
Retrieves the last search term made by the user with the given UUID. |
List<ProfileSearchTerm> |
getSearchHistory(String userUuid)
Retrieves the search history for the user with the given UUID. |
| Method Detail |
|---|
List<Person> findUsersByNameOrEmail(String search,
boolean includeConnections,
String worksiteId)
Searches SakaiPerson, UserDirectorySerice internal users as well as external users if your provider supports SearchExternalUsersUDP.
This list is automatically cleaned for non-existent users by way of UserDirectoryService.getUsers.
search - string to search forincludeConnections - should connections be returned in resultsworksiteId - optional parameter to limit search to a single worksite. Specify null to search all users.
List<Person> findUsersByInterest(String search,
boolean includeConnections,
String worksiteId)
This list is automatically cleaned for non-existent users by way of UserDirectoryService.getUsers.
search - string to search forincludeConnections - should connections be returned in resultsworksiteId - optional parameter to limit search to a single worksite. Specify null to search all users.
ProfileSearchTerm getLastSearchTerm(String userUuid)
userUuid - the UUID of the user to query by.
null if no search term is found.List<ProfileSearchTerm> getSearchHistory(String userUuid)
userUuid - the UUID of the user to query by.
null if no search history is found.
void addSearchTermToHistory(String userUuid,
ProfileSearchTerm searchTerm)
userUuid - the user whose history we're adding to.searchTerm - the search term to add.void clearSearchHistory(String userUuid)
userUuid - the UUID of the user to clear history for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||