OSID Logo
OSID Specifications
calendaring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.CommitmentLookupSession
Implementsosid.OsidSession
Description

This session provides methods for examining event commitments.

This session defines views that offer differing behaviors when retrieving multiple objects.

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete set or is an error condition
  • isolated calendar view: All event methods in this session operate, retrieve and pertain to commitments defined explicitly in the current calendar. Using an isolated view is useful for managing events with the CommitmentAdminSession.
  • federated calendar view: All commitment methods in this session operate, retrieve and pertain to all commitments defined in this calendar and any other calendars implicitly available in this calendar through calendar inheritence.
  • effective commitment view: Commitment methods return only effective commitments
  • any effective commitment view: Commitment methods return all commitments
MethodgetCalendarId
Description

Gets the Calendar Id associated with this session.

Returnosid.id.Idthe Calendar Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCalendar
Description

Gets the Calendar associated with this session.

Returnosid.calendaring.Calendarthe Calendar associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupCommitments
Description

Tests if this user can lookup event commitments. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeCommitmentView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryCommitmentView
Description

A complete view of the Commitment returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is must be implemented.
MethoduseFederatedCalendarView
Description

Federates the view for methods in this session. A federated view will include commitments in calendars which are children of this calendar in the calendar hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedCalendarView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this calendar only.

CompliancemandatoryThis method is must be implemented.
MethoduseEffectiveCommitmentView
Description

The commitments in this lookup session return only commitments currently in effect.

CompliancemandatoryThis method is must be implemented.
MethoduseAnyEffectiveCommitmentView
Description

The commitments in this lookup session return both effective and ineffective commitments.

CompliancemandatoryThis method is must be implemented.
MethodgetCommitment
Description

Gets the Commitment specified by its Id.

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Commitment may have a different Id than requested, such as the case where a duplicate Id was assigned to a Commitment and retained for compatibility.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdcommitmentId Id of the Commitment
Returnosid.calendaring.Commitmentthe commitment
ErrorsNOT_FOUND commitmentId not found
NULL_ARGUMENT commitmentId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetCommitmentsByIds
Description

Gets a CommitmentList corresponding to the given IdList.

In plenary mode, the returned list contains all of the commitments specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Commitments may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdListcommitmentIdsthe list of Ids to retrieve
Returnosid.calendaring.CommitmentListthe returned Commitment list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT commitmentIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentsByGenusType
Description

Gets the commitments for the given event genus type.

In plenary mode, the returned list contains all known commitments or an error results. Otherwise, the returned list may contain only those commitments that are accessible through this session.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.type.TypecommitmentGenusTypecommitment genus type
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsNULL_ARGUMENT commitmentGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetCommitmentsByParentGenusType
Description

Gets the commitments for the given event genus type and include any commitments with a genus type derived from the specified genus type.

In plenary mode, the returned list contains all known commitments or an error results. Otherwise, the returned list may contain only those commitments that are accessible through this session.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.type.TypecommitmentGenusTypecommitment genus type
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsNULL_ARGUMENT commitmentGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetCommitmentsByRecordType
Description

Gets a CommitmentList containing the given event commitment record Type.

In plenary mode, the returned list contains all known commitments or an error results. Otherwise, the returned list may contain only those commitments that are accessible through this session.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.type.TypecommitmentRecordTypea commitment record type
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsNULL_ARGUMENT eventRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentsOnDate
Description

Gets a CommitmentList effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known commitments or an error results. Otherwise, the returned list may contain only those commitments that are accessible through this session.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.calendaring.DateTimefromstarting date
osid.calendaring.DateTimetoending date
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentsByGenusTypeOnDate
Description

Gets a CommitmentList of the given genus type and effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known commitments or an error results. Otherwise, the returned list may contain only those commitments that are accessible through this session.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.type.TypecommitmentGenusTypea commitment genus type
osid.calendaring.DateTimefromstarting date
osid.calendaring.DateTimetoending date
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT commitmentGenusType, from, or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentsForEvent
Description

Gets the commitments for the given event. If the event is a recurring event, the commitments are returned for the recurring event only.

In plenary mode, the returned list contains all of the commitments mapped to the event Id or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Commitments may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdeventId Id of the Event
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsNULL_ARGUMENT eventId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetCommitmentsForEventOnDate
Description

Gets a CommitmentList for the given event and effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known commitments or an error results. Otherwise, the returned list may contain only those commitments that are accessible through this session.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdeventId Id of the Event
osid.calendaring.DateTimefromstarting date
osid.calendaring.DateTimetoending date
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT eventId, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentsByGenusTypeForEvent
Description

Gets the commitments for the given event and commitment genus type including any genus types derived from the given genus type.

If the event is a recurring event, the commitments are returned for the recurring event only. In plenary mode, the returned list contains all of the commitments mapped to the event Id or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible commitments may be ommitted.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdeventId Id of the Event
osid.type.TypecommitmentGenusTypecommitment genus type
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsNULL_ARGUMENT eventId or commitmentGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetCommitmentsByGenusTypeForEventOnDate
Description

Gets a CommitmentList for the given event and commitment genus type effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known commitments or an error results. Otherwise, the returned list may contain only those commitments that are accessible through this session.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdeventId Id of the Event
osid.type.TypecommitmentGenusTypecommitment genus type
osid.calendaring.DateTimefromstarting date
osid.calendaring.DateTimetoending date
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT eventId, commitmentGenusType, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentsForResource
Description

Gets the commitments for the given resource.

In plenary mode, the returned list contains all of the commitments mapped to the resource Id or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Commitments may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdresourceId Id of a Resource
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetCommitmentsForResourceOnDate
Description

Gets a CommitmentList for the given resource and effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known commitments or an error results. Otherwise, the returned list may contain only those commitments that are accessible through this session.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdresourceId Id of the Event
osid.calendaring.DateTimefromstarting date
osid.calendaring.DateTimetoending date
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT resourceId, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentsByGenusTypeForResource
Description

Gets the commitments for the given resource and commitment genus type including any genus types derived from the given genus type.

In plenary mode, the returned list contains all of the commitments mapped to the resource Id or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Commitments may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdresourceId Id of a Resource
osid.type.TypecommitmentGenusTypecommitment genus type
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsNULL_ARGUMENT resourceId or commitmentGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetCommitmentsByGenusTypeForResourceOnDate
Description

Gets a CommitmentList for the given resource, commitment genus type, and effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known commitments or an error results. Otherwise, the returned list may contain only those commitments that are accessible through this session.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdresourceId Id of the Event
osid.type.TypecommitmentGenusTypecommitment genus type
osid.calendaring.DateTimefromstarting date
osid.calendaring.DateTimetoending date
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT resourceId, commitmentGenusType, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentsForEventAndResource
Description

Gets the commitments for the given event and resource. If the event is a recurring event, the commitments are returned for the recurring event only.

In plenary mode, the returned list contains all of the commitments mapped to the event Id or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Commitments may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdeventId Id of the Event
osid.id.IdresourceId Id of a Resource
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsNULL_ARGUMENT eventId or resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetCommitmentsForEventAndResourceOnDate
Description

Gets a CommitmentList for the given event and resource and effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known commitments or an error results. Otherwise, the returned list may contain only those commitments that are accessible through this session.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdeventId Id of the Event
osid.id.IdresourceId Id of a Resource
osid.calendaring.DateTimefromstarting date
osid.calendaring.DateTimetoending date
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT eventId, resourceId, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitmentsByGenusTypeForEventAndResource
Description

Gets the commitments of the given genus type for the given event, resource, and commitment genus type including any genus types derived from the given genus type. If the event is a recurring event, the commitments are returned for the recurring event only.

In plenary mode, the returned list contains all of the commitments mapped to the event Id or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Commitments may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdeventId Id of the Event
osid.id.IdresourceId Id of a Resource
osid.type.TypecommitmentGenusTypecommitment genus type
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsNULL_ARGUMENT eventId, resourceId or commitmentGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetCommitmentsByGenusTypeForEventAndResourceOnDate
Description

Gets a CommitmentList of the given genus type for the given event, resource, commitment genus type and effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known commitments or an error results. Otherwise, the returned list may contain only those commitments that are accessible through this session.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Parametersosid.id.IdeventId Id of the Event
osid.id.IdresourceId Id of a Resource
osid.type.TypecommitmentGenusTypecommitment genus type
osid.calendaring.DateTimefromstarting date
osid.calendaring.DateTimetoending date
Returnosid.calendaring.CommitmentListlist of commitments
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT eventId, resourceId, commitmentGenusType, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCommitments
Description

Gets all commitments.

In plenary mode, the returned list contains all known commitments or an error results. Otherwise, the returned list may contain only those commitments that are accessible through this session.

In effective mode, commitments are returned that are currently effective. In any effective mode, effective commitments and those currently expired are returned.

Returnosid.calendaring.CommitmentListlist of commitments
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.