OSID Logo
OSID Specifications
calendaring rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.rules.CommitmentEnablerSearchSession
Implementsosid.calendaring.rules.CommitmentEnablerQuerySession
Description

This session provides methods for searching among CommitmentEnabler objects. The search query is constructed using the CommitmentEnablerQuery.

getCommitmentEnablersByQuery() is the basic search method and returns a list of CommitmentEnablers. A more advanced search may be performed with getCommitmentEnablersBySearch(). It accepts a CommitmentEnablerSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getCommitmentEnablersBySearch() returns a CommitmentEnablerSearchResults that can be used to access the resulting CommitmentEnablerList or be used to perform a search within the result set through CommitmentEnablerSearch.

This session defines views that offer differing behaviors for searching.

  • federated calendar view: searches include commitment enablers in calendars of which this calendar is an ancestor in the calendar hierarchy
  • isolated calendar view: searches are restricted to commitment enablers in this calendar

CommitmentEnablers may have a query record indicated by their respective record types. The query record is accessed via the CommitmentEnablerQuery.

MethodgetCommitmentEnablerSearch
Description

Gets a commitment enabler search.

Returnosid.calendaring.rules.CommitmentEnablerSearchthe commitment enabler search
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentEnablerSearchOrder
Description

Gets a commitment enabler search order. The CommitmentEnablerSearchOrder is supplied to a CommitmentEnablerSearch to specify the ordering of results.

Returnosid.calendaring.rules.CommitmentEnablerSearchOrderthe commitment enabler search order
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentEnablersBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.calendaring.rules.CommitmentEnablerQuerycommitmentEnablerQuerythe commitment enabler query
osid.calendaring.rules.CommitmentEnablerSearchcommitmentEnablerSearchthe commitment enabler search
Returnosid.calendaring.rules.CommitmentEnablerSearchResultsthe returned search results
ErrorsNULL_ARGUMENT commitmentEnablerQuery or commitmentEnablerSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED commitmentEnablerQuery or commitmentEnablerSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentEnablerQueryFromInspector
Description

Gets a commitment enabler query from an inspector. The inspector is available from a CommitmentEnablerSearchResults.

Parametersosid.calendaring.rules.CommitmentEnablerQueryInspectorcommitmentEnablerQueryInspectora commitment enabler query inspector
Returnosid.calendaring.rules.CommitmentEnablerQuerythe commitment enabler query
ErrorsNULL_ARGUMENT commitmentEnablerQueryInspector is null
UNSUPPORTED commitmentEnablerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.