Interface | osid.calendaring.CalendarHierarchySession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for traversing a hierarchy of
A user may not be authorized to traverse the entire
hierarchy. Parts of the hierarchy may be made invisible
through omission from the returns of This session defines views that offer differing behaviors when retrieving multiple objects.
| ||
Method | getCalendarHierarchyId | ||
Description |
Gets the hierarchy | ||
Return | osid.id.Id | the hierarchy Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getCalendarHierarchy | ||
Description |
Gets the hierarchy associated with this session. | ||
Return | osid.hierarchy.Hierarchy | the hierarchy associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canAccessCalendarHierarchy | ||
Description |
Tests if this user can perform hierarchy queries. 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 | ||
Return | boolean | false if hierarchy traversal methods are not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeCalendarView | ||
Description |
The returns from the calendar 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. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryCalendarView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getRootCalendarIds | ||
Description |
Gets the root calendar | ||
Return | osid.id.IdList | the root calendar Ids | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRootCalendars | ||
Description |
Gets the root calendars in this calendar hierarchy. | ||
Return | osid.calendaring.CalendarList | the root calendars | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | hasParentCalendars | ||
Description |
Tests if the | ||
Parameters | osid.id.Id | calendarId | the Id of a calendar |
Return | boolean | true if the calendar has parents, false
otherwise | |
Errors | NOT_FOUND | calendarId is not found | |
NULL_ARGUMENT | calendarId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isParentOfCalendar | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | calendarId | the Id of a calendar | |
Return | boolean | true if this id is a parent of
calendarId, false otherwise | |
Errors | NOT_FOUND | calendarId is not found | |
NULL_ARGUMENT | id or calendarId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getParentCalendarIds | ||
Description |
Gets the parent | ||
Parameters | osid.id.Id | calendarId | the Id of a calendar |
Return | osid.id.IdList | the parent Ids of the calendar | |
Errors | NOT_FOUND | calendarId is not found | |
NULL_ARGUMENT | calendarId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getParentCalendars | ||
Description |
Gets the parents of the given calendar. | ||
Parameters | osid.id.Id | calendarId | the Id of a calendar |
Return | osid.calendaring.CalendarList | the parents of the calendar | |
Errors | NOT_FOUND | calendarId is not found | |
NULL_ARGUMENT | calendarId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isAncestorOfCalendar | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | calendarId | the Id of a calendar | |
Return | boolean | true if this id is an ancestor of
calendarId, false otherwise | |
Errors | NOT_FOUND | calendarId is not found | |
NULL_ARGUMENT | id or calendarId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | hasChildCalendars | ||
Description |
Tests if a calendar has any children. | ||
Parameters | osid.id.Id | calendarId | the Id of a calendar |
Return | boolean | true if the calendarId has children,
false otherwise | |
Errors | NOT_FOUND | calendarId is not found | |
NULL_ARGUMENT | calendarId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isChildOfCalendar | ||
Description |
Tests if a calendar is a direct child of another. | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | calendarId | the Id of a calendar | |
Return | boolean | true if the id is a child of
calendarId, false otherwise | |
Errors | NOT_FOUND | calendarId is not found | |
NULL_ARGUMENT | id or calendarId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getChildCalendarIds | ||
Description |
Gets the child | ||
Parameters | osid.id.Id | calendarId | the Id to query |
Return | osid.id.IdList | the children of the calendar | |
Errors | NOT_FOUND | calendarId is not found | |
NULL_ARGUMENT | calendarId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getChildCalendars | ||
Description |
Gets the children of the given calendar. | ||
Parameters | osid.id.Id | calendarId | the Id to query |
Return | osid.calendaring.CalendarList | the children of the calendar | |
Errors | NOT_FOUND | calendarId is not found | |
NULL_ARGUMENT | calendarId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | isDescendantOfCalendar | ||
Description |
Tests if an | ||
Parameters | osid.id.Id | id | an Id |
osid.id.Id | calendarId | the Id of a calendar | |
Return | boolean | true if the id is a descendant of the
calendarId, false otherwise | |
Errors | NOT_FOUND | calendarId is not found | |
NULL_ARGUMENT | id or calendarId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If | ||
Method | getCalendarNodeIds | ||
Description |
Gets a portion of the hierarchy for the given calendar. | ||
Parameters | osid.id.Id | calendarId | the Id to query |
cardinal | ancestorLevels | the maximum number of ancestor levels to include. A value of 0 returns no parents in the node. | |
cardinal | descendantLevels | the maximum number of descendant levels to include. A value of 0 returns no children in the node. | |
boolean | includeSiblings | true to include the siblings of the given node, false
to omit the siblings | |
Return | osid.hierarchy.Node | a catalog node | |
Errors | NOT_FOUND | calendarId not found | |
NULL_ARGUMENT | calendarId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getCalendarNodes | ||
Description |
Gets a portion of the hierarchy for the given calendar. | ||
Parameters | osid.id.Id | calendarId | the Id to query |
cardinal | ancestorLevels | the maximum number of ancestor levels to include. A value of 0 returns no parents in the node. | |
cardinal | descendantLevels | the maximum number of descendant levels to include. A value of 0 returns no children in the node. | |
boolean | includeSiblings | true to include the siblings of the given node, false
to omit the siblings | |
Return | osid.calendaring.CalendarNode | a calendar node | |
Errors | NOT_FOUND | calendarId not found | |
NULL_ARGUMENT | calendarId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |