Interface ResourceRelationshipSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, ResourceRelationshipQuerySession
This session provides methods for searching
ResourceRelationship objects. The search query is constructed using the
ResourceRelationshipQuery . The resource relationship record
Type also specifies the record for the relationship query.
getResourceRelationshipsByQuery() is the basic search method and
returns a list of ResourceRelationships . A more advanced search
may be performed with getResourceRelationshipsBySearch() . It
accepts a ResourceRelationshipSearch in addition to the query for
the purpose of specifying additional options affecting the entire search,
such as ordering. getResourceRelationshipsBySearch() returns an
ResourceRelationshipSearchResults that can be used to access the
resulting ResourceRelationshipList or be used to perform a search
within the result set through ResourceRelationshipSearch .
This session defines views that offer differing behaviors for searching.
- federated bin view: searches include relationships in bins of which this bin is an ancestor in the bin hierarchy
- isolated bin view: searches are restricted to relationships in this bin only
Relationships may have a resource relationship query record indicated
by their respective record types. The resource relationship query record
is accessed via the ResourceRelationshipQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetResourceRelationshipQueryFromInspector(ResourceRelationshipQueryInspector resourceRelationshipQueryInspector) Gets a resource relationship query from an inspector.getResourceRelationshipsBySearch(ResourceRelationshipQuery resourceRelationshipQuery, ResourceRelationshipSearch resourceRelationshipSearch) Gets the search results matching the given search query using the given search.Gets a relationship search.Gets a relationship 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 ResourceRelationshipQuerySession
canSearchResourceRelationships, getBin, getBinId, getResourceRelationshipQuery, getResourceRelationshipsByQuery, useFederatedBinView, useIsolatedBinViewModifier and TypeMethodDescriptionbooleanTests if this user can performResourceRelationshipsearches.getBin()Gets theBinassociated with this session.getBinId()Gets theBinIdassociated with this session.Gets a relationship query.getResourceRelationshipsByQuery(ResourceRelationshipQuery resourceRelationshipQuery) Gets a list ofResourceRelationshipmatching the given resource relationship query.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.
-
Method Details
-
getResourceRelationshipSearch
ResourceRelationshipSearch getResourceRelationshipSearch()Gets a relationship search.- Returns:
- the relationship search
- Compliance:
mandatory- This method must be implemented.
-
getResourceRelationshipSearchOrder
ResourceRelationshipSearchOrder getResourceRelationshipSearchOrder()Gets a relationship search order. TheResourceRelationshipSearchOrderis supplied to aResourceRelationshipSearchto specify the ordering of results.- Returns:
- the relationship search order
- Compliance:
mandatory- This method must be implemented.
-
getResourceRelationshipsBySearch
ResourceRelationshipSearchResults getResourceRelationshipsBySearch(ResourceRelationshipQuery resourceRelationshipQuery, ResourceRelationshipSearch resourceRelationshipSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
resourceRelationshipQuery- the resource relationship queryresourceRelationshipSearch- the resource relationship search- Returns:
- the returned resource relationship search results
- Throws:
NullArgumentException-resourceRelationshipQueryor resourceRelationshipSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-resourceRelationshipSearchor resourceRelationshipQueryis not of this service- Compliance:
mandatory- This method must be implemented.
-
getResourceRelationshipQueryFromInspector
ResourceRelationshipQuery getResourceRelationshipQueryFromInspector(ResourceRelationshipQueryInspector resourceRelationshipQueryInspector) Gets a resource relationship query from an inspector. The inspector is available from aResourceRelationshipSearchResults.- Parameters:
resourceRelationshipQueryInspector- a query inspector- Returns:
- the resource relationship query
- Throws:
NullArgumentException-resourceRelationshipQueryInspectorisnullUnsupportedException-resourceRelationshipQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-