OSID Logo
OSID Specifications
communication package
Version 3.0.0
Release Candidate Preview
Interfaceosid.communication.Communique
Implementsosid.OsidObject
Description

A communique is a message to a user handled through an application. Communiques may require some form of acknowledgement ranging from a simple confirmation to data input.

MethodgetMessage
Description

Gets the message.

Returnosid.locale.DisplayTextthe message
CompliancemandatoryThis method must be implemented.
MethodgetLevel
Description

Gets the message level for this communique.

Returnosid.communication.CommuniqueLevelthe message level
CompliancemandatoryThis method must be implemented.
MethodisResponseRequired
Description

Tests if the provider is blocking for a response. A response may take the form of s simple acknowledgement, a selection among a list of options, or a form input.

Returnboolean true if the provider is blocking for a response false if no response is required
CompliancemandatoryThis method must be implemented.
MethodrespondViaOption
Description

Tests if the provider is blocking on a choice selection. If respondViaForm() is true, then this method must return false. If isResponseRequired() is false and respondViaOption() is true, then a response is optional.

Returnboolean true if the provider accepts a selection input, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetResponseOptions
Description

Gets a list of possible response choices to this communique.

Returnosid.communication.ResponseOption[]a list of possible responses
ErrorsILLEGAL_STATE respondViaOption() is false
CompliancemandatoryThis method must be implemented.
MethodrespondViaForm
Description

Tests if the provider is blocking on a form input. If respondViaOption() is true, then this method must return false . If isResponseRequired() is false and respondViaForm() is true , then a response is optional.

Returnboolean true if the provider accepts form input, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCommuniqueRecord
Description

Gets the communique record corresponding to the given Communique record Type. This method is used to retrieve an object implementing the requested record. The communiqueRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(communiqueRecordType) is true .

Parametersosid.type.TypecommuniqueRecordTypethe type of the record to retrieve
Returnosid.communication.records.CommuniqueRecordthe communique record
ErrorsNULL_ARGUMENT communiqueRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(communiqueRecordType) is false
CompliancemandatoryThis method must be implemented.