Interface ProfileItemSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, ProfileItemQuerySession
This session provides methods for searching ProfileItems . The
search query is constructed using the ProfileItemQuery . The
profile item record Type also specifies the query record for the
profile item query.
getProfileItemsByQuery() is the basic search method and returns a
list of ProfileItems . A more advanced search may be performed
with getProfileItemsBySearch() .It accepts a
ProfileItemSearch in addition to the query for the purpose of specifying
additional options affecting the entire search, such as ordering.
getProfileItemsBySearch() returns an ProfileItemSearchResults
that can be used to access the resulting ProfileItemList or be
used to perform a search within the result set through
ProfileItemSearch .
This session defines views that offer differing behaviors for searching.
- federated profile view: searches include profile item in profiles of which this profile is an ancestor in the profile hierarchy
- isolated profile view: searches are restricted to profile items in this profile
Profile items may have a profie item query record indicated by their
respective record types. The profile item query record is accessed via the
ProfileItemQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetProfileItemQueryFromInspector(ProfileItemQueryInspector profileItemQueryInspector) Gets a profile item query from an inspector.getProfileItemsBySearch(ProfileItemQuery profileItemQuery, ProfileItemSearch profileItemSearch) Gets the search results matching the given search query using the given search.Gets a profile item search.Gets a profile item 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 ProfileItemQuerySession
canSearchProfileItems, getProfile, getProfileId, getProfileItemQuery, getProfileItemsByQuery, useFederatedProfileView, useIsolatedProfileViewModifier and TypeMethodDescriptionbooleanTests if this user can performProfileItemsearches.Gets theProfileassociated with this session.Gets theProfileIdassociated with this session.Gets a profile item query.getProfileItemsByQuery(ProfileItemQuery profileItemQuery) Gets a list ofProfileItemsmatching the given profile item query interface.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.
-
Method Details
-
getProfileItemSearch
ProfileItemSearch getProfileItemSearch()Gets a profile item search.- Returns:
- the profile item search
- Compliance:
mandatory- This method must be implemented.
-
getProfileItemSearchOrder
ProfileItemSearchOrder getProfileItemSearchOrder()Gets a profile item search order. TheProfileItemSearchOrderis supplied to aProfileItemSearchto specify the ordering of results.- Returns:
- the profile item search order
- Compliance:
mandatory- This method must be implemented.
-
getProfileItemsBySearch
ProfileItemSearchResults getProfileItemsBySearch(ProfileItemQuery profileItemQuery, ProfileItemSearch profileItemSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
profileItemQuery- the profile item queryprofileItemSearch- the profile item search- Returns:
- the returned search results
- Throws:
NullArgumentException-profileItemQueryorprofileItemSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-profileItemSearchorprofileItemQueryis not of this service- Compliance:
mandatory- This method must be implemented.
-
getProfileItemQueryFromInspector
ProfileItemQuery getProfileItemQueryFromInspector(ProfileItemQueryInspector profileItemQueryInspector) Gets a profile item query from an inspector. The inspector is available from anProfileItemSearchResults.- Parameters:
profileItemQueryInspector- a profile item query inspector- Returns:
- the profile item query
- Throws:
NullArgumentException-profileItemQueryInspectorisnullUnsupportedException-profileItemQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-