OSID Logo
OSID Specifications
tracking package
Version 3.0.0
Release Candidate Preview
Interfaceosid.tracking.LogEntryLookupSession
Implementsosid.OsidSession
Description

This session provides methods for retrieving premade LogEntries. The LogEntry represents a set of efforts .

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 front office view: All log entry methods in this session operate, retrieve and pertain to log entries defined explicitly in the current front office. Using an isolated view is useful for managing LogEntries with the LogEntryAdminSession.
  • federated front office view: All log entry methods in this session operate, retrieve and pertain to all log entries defined in this front office and any other log entries implicitly available in this front office through front office inheritence.

Generally, the comparative view should be used for most applications as it permits operation even if there is data that cannot be accessed. The methods useFederatedFrontOfficeView() and useIsolatedFrontOfficeView() behave as a radio group and one should be selected before invoking the methods in this session.

MethodgetFrontOfficeId
Description

Gets the FrontOffice Id associated with this session.

Returnosid.id.Idthe FrontOffice Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetFrontOffice
Description

Gets the FrontOffice associated with this session.

Returnosid.tracking.FrontOfficethe front office
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanLookupLogEntries
Description

Tests if this user can perform LogEntry lookups. 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.
MethoduseComparativeLogEntryView
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.
MethodusePlenaryLogEntryView
Description

A complete view of the LogEntry 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.
MethoduseFederatedFrontOfficeView
Description

Federates the view for methods in this session. A federated view will include log entries in front offices which are children of this front office in the front office hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedFrontOfficeView
Description

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

CompliancemandatoryThis method is must be implemented.
MethodgetLogEntry
Description

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

Parametersosid.id.IdlogEntryId Id of the LogEntry
Returnosid.tracking.LogEntrythe log entry
ErrorsNOT_FOUND logEntryId not found
NULL_ARGUMENT logEntryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetLogEntriesByIds
Description

Gets a LogEntryList corresponding to the given IdList. In plenary mode, the returned list contains all of the log entries 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 LogEntries may be omitted from the list.

Parametersosid.id.IdListlogEntryIdsthe list of Ids to retrieve
Returnosid.tracking.LogEntryListthe returned LogEntry list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT logEntryIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLogEntriesByGenusType
Description

Gets a LogEntryList corresponding to the given log entry genus Type which does not include log entries of genus types derived from the specified Type. In plenary mode, the returned list contains all known log entries or an error results. Otherwise, the returned list may contain only those log entries that are accessible through this session.

Parametersosid.type.TypelogEntryGenusTypea log entry genus type
Returnosid.tracking.LogEntryListthe returned LogEntry list
ErrorsNULL_ARGUMENT logEntryGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLogEntriesByParentGenusType
Description

Gets a LogEntryList corresponding to the given log entry genus Type and include any additional log entries with genus types derived from the specified Type. In plenary mode, the returned list contains all known log entries or an error results. Otherwise, the returned list may contain only those log entries that are accessible through this session.

Parametersosid.type.TypelogEntryGenusTypea log entry genus type
Returnosid.tracking.LogEntryListthe returned LogEntry list
ErrorsNULL_ARGUMENT logEntryGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLogEntriesByRecordType
Description

Gets a LogEntryList containing the given log entry record Type. In plenary mode, the returned list contains all known log entries or an error results. Otherwise, the returned list may contain only those log entries that are accessible through this session.

Parametersosid.type.TypelogEntryRecordTypea log entry record type
Returnosid.tracking.LogEntryListthe returned LogEntry list
ErrorsNULL_ARGUMENT logEntryRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLogEntriesByDate
Description

Gets a list of log entries logged in the date range. In plenary mode, the returned list contains all known availabilities or an error results. Otherwise, the returned list may contain only those log entries that are accessible through this session.

Parametersosid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.tracking.LogEntryListthe returned LogEntry list
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.
MethodgetLogEntriesForQueue
Description

Gets a LogEntryList in the given Queue. In plenary mode, the returned list contains all of the log entries, or an error results if a log entry connected to the issue is not found or inaccessible. Otherwise, inaccessible LogEntries may be omitted from the list.

Parametersosid.id.IdqueueIda queue Id
Returnosid.tracking.LogEntryListthe returned LogEntry list
ErrorsNULL_ARGUMENT issueId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLogEntriesByDateForQueue
Description

Gets a list of log entries logged in the date range in the given queue. In plenary mode, the returned list contains all known availabilities or an error results. Otherwise, the returned list may contain only those log entries that are accessible through this session.

Parametersosid.id.IdqueueIda queue Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.tracking.LogEntryListthe returned LogEntry list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT queueId, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLogEntriesForIssue
Description

Gets a LogEntryList connected to the given Issue. In plenary mode, the returned list contains all of the log entries, or an error results if a log entry connected to the issue is not found or inaccessible. Otherwise, inaccessible LogEntries may be omitted from the list.

Parametersosid.id.IdissueIdan issue Id
Returnosid.tracking.LogEntryListthe returned LogEntry list
ErrorsNULL_ARGUMENT issueId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLogEntriesByDateForIssue
Description

Gets a list of log entries logged in the date range in the given issue. In plenary mode, the returned list contains all known availabilities or an error results. Otherwise, the returned list may contain only those log entries that are accessible through this session.

Parametersosid.id.IdissueIdan issue Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.tracking.LogEntryListthe returned LogEntry list
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT issueId, from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetLogEntries
Description

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

Returnosid.tracking.LogEntryLista list of LogEntries
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.