OSID Logo
OSID Specifications
osid package
Version 3.0.0
Interfaceosid.OsidRequest
Implementsosid.OsidObject
Implemented Byosid.course.registration.request.RegistrationRequest
Description

OsidRequest is the top level interface for OsidObjects used to submit and process transactional requests. An OsidRequest typically has a submitting Agent and is acommpanied by a set of request item Subjugateables reprsenting the parts or line items of the OsidReques t.

OsidRequests have an explicit state model:
  • not submitted
  • submitted
  • processed
  • error
  • cancelled

Additional states may be added through an OsidRecord or orchestrated Process .

MethodgetPostingDate
Description

Gets the posting date of the request.

Returnosid.calendaring.DateTimethe request date
CompliancemandatoryThis method must be implemented.
MethodgetRequesterId
Description

Gets the Id of the requester.

Returnosid.id.Idthe resource Id
CompliancemandatoryThis method must be implemented.
MethodgetRequester
Description

Gets the requester.

Returnosid.resource.Resourcethe resource
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodisSubmitted
Description

Tests if this request has been submitted.

Returnbooleantrue if this request has been submitted, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetSubmittedDate
Description

Gets the date the request was submitted.

Returnosid.calendaring.DateTimethe submission date
ErrorsILLEGAL_STATEisSubmitted() is false
CompliancemandatoryThis method must be implemented.
MethodgetSubmitterId
Description

Gets the Id of the submittor.

Returnosid.id.Idthe resource Id
CompliancemandatoryThis method must be implemented.
MethodgetSubmitter
Description

Gets the submittor.

Returnosid.resource.Resourcethe resource
ErrorsILLEGAL_STATEisSubmitted() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetSubmittingAgentId
Description

Gets the Id of the submitting agent.

Returnosid.id.Idthe submitting agent Id
ErrorsILLEGAL_STATEisSubmitted() is false
CompliancemandatoryThis method must be implemented.
MethodgetSubmittingAgent
Description

Gets the submitting agent.

Returnosid.authentication.Agentthe submitting agent
ErrorsILLEGAL_STATEisSubmitted() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodisCanceled
Description

Tests if this request has been canceled.

Returnbooleantrue if this request has been canceled, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCanceledDate
Description

Gets the date the request was canceled.

Returnosid.calendaring.DateTimethe cancel date
ErrorsILLEGAL_STATEisCanceled() is false
CompliancemandatoryThis method must be implemented.
MethodisProcessed
Description

Tests if this request has been processed.

Returnbooleantrue if this request has been processed, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetProcessedDate
Description

Gets the date the request processing completed.

Returnosid.calendaring.DateTimethe procsssed date
ErrorsILLEGAL_STATEisProcessed() is false
CompliancemandatoryThis method must be implemented.
MethodhasError
Description

Tests if this request has been processed but not fulfilled due to error.

Returnbooleantrue if this request has error, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetErrorId
Description

Gets the Id of the error state.

Returnosid.id.Idthe state Id
ErrorsILLEGAL_STATEhasError() is false
CompliancemandatoryThis method must be implemented.
MethodgetError
Description

Gets the error state.

Returnosid.process.Statethe state
ErrorsILLEGAL_STATEhasError() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.