OSID Logo
OSID Specifications
communication package
Version 3.1.0
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.DisplayText the message
Compliancemandatory This method must be implemented.
MethodgetLevel
Description

Gets the message level for this communique.

Returnosid.communication.CommuniqueLevel the message level
Compliancemandatory This 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
Compliancemandatory This 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
Compliancemandatory This 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
Compliancemandatory This 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
Compliancemandatory This 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.TypecommuniqueRecordType the type of the record to retrieve
Returnosid.communication.records.CommuniqueRecord the communique record
ErrorsNULL_ARGUMENT communiqueRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(communiqueRecordType) is false
Compliancemandatory This method must be implemented.