Interface ProfileEntrySearchSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, ProfileEntryQuerySession
This session provides methods for searching ProfileEntries .
The search query is constructed using the ProfileEntryQuery .
getProfileEntriesByQuery() is the basic search method and returns
a list of ProfileEntries . A more advanced search may be performed
with getProfileEntriesBySearch() .It accepts an
ProfileEntrySearch in addition to the query for the purpose of specifying
additional options affecting the entire search, such as ordering.
getProfileEntriesBySearch() returns an ProfileEntrySearchResults
that can be used to access the resulting ProfileEntryList or be
used to perform a search within the result set through
ProfileEntrySearch .
This session defines views that offer differing behaviors for searching.
- federated profile view: searches include profile entries in
Profilesof which this profile is an ancestor in the profile hierarchy - isolated profile view: searches are restricted to entries in this
Profile
-
Method Summary
Modifier and TypeMethodDescriptiongetProfileEntriesBySearch(ProfileEntryQuery profileEntryQuery, ProfileEntrySearch profileEntrySearch) Gets the search results matching the given search query using the given search.getProfileEntryQueryFromInspector(ProfileEntryQueryInspector profileEntryQueryInspector) Gets a profile entry query from an inspector.Gets a profile entry search.Gets a profile entry search order.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.Methods inherited from interface ProfileEntryQuerySession
canSearchProfileEntries, getProfile, getProfileEntriesByQuery, getProfileEntryQuery, getProfileId, useExplicitProfileEntryView, useFederatedProfileView, useImplicitProfileEntryView, useIsolatedProfileViewModifier and TypeMethodDescriptionbooleanTests if this user can perform profile entry searches.Gets theProfileassociated with this session.getProfileEntriesByQuery(ProfileEntryQuery profileEntryQuery) Gets a list ofProfileEntriesmatching the given queryGets a profile entry query.Gets theProfileIdassociated with this session.voidSets the view for methods in this session to explicit proffile entries.voidFederates the view for methods in this session.voidSets the view for methods in this session to implicit profile entry.voidIsolates the view for methods in this session.
-
Method Details
-
getProfileEntrySearch
ProfileEntrySearch getProfileEntrySearch()Gets a profile entry search.- Returns:
- the profile entry search
- Compliance:
mandatory- This method must be implemented.
-
getProfileEntrySearchOrder
ProfileEntrySearchOrder getProfileEntrySearchOrder()Gets a profile entry search order. TheProfileEntrySearchOrderis supplied to anProfileEntrySearchto specify the ordering of results.- Returns:
- the profile entry search order
- Compliance:
mandatory- This method must be implemented.
-
getProfileEntriesBySearch
ProfileEntrySearchResults getProfileEntriesBySearch(ProfileEntryQuery profileEntryQuery, ProfileEntrySearch profileEntrySearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
profileEntryQuery- the profile entry queryprofileEntrySearch- the profile entry search- Returns:
- the returned search results
- Throws:
NullArgumentException-profileEntryQueryorprofileEntrySearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-profileEntryQueryorprofileEntrySearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getProfileEntryQueryFromInspector
ProfileEntryQuery getProfileEntryQueryFromInspector(ProfileEntryQueryInspector profileEntryQueryInspector) Gets a profile entry query from an inspector. The inspector is available from anPofileEntrySearchResults.- Parameters:
profileEntryQueryInspector- a profile entry query inspector- Returns:
- the profile entry query
- Throws:
NullArgumentException-profileEntryQueryInspectorisnullUnsupportedException-pofileEntryQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-