Interface Communique
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
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.
-
Method Summary
Modifier and TypeMethodDescriptiongetCommuniqueRecord(Type communiqueRecordType) Gets the communique record corresponding to the givenCommuniquerecordType.getLevel()Gets the message level for this communique.Gets the message.Gets a list of possible response choices to this communique.booleanTests if the provider is blocking for a response.booleanTests if the provider is blocking on a form input.booleanTests if the provider is blocking on a choice selection.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getMessage
DisplayText getMessage()Gets the message.- Returns:
- the message
- Compliance:
mandatory- This method must be implemented.
-
getLevel
CommuniqueLevel getLevel()Gets the message level for this communique.- Returns:
- the message level
- Compliance:
mandatory- This method must be implemented.
-
isResponseRequired
boolean isResponseRequired()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.- Returns:
trueif the provider is blocking for a responsefalseif no response is required- Compliance:
mandatory- This method must be implemented.
-
respondViaOption
boolean respondViaOption()Tests if the provider is blocking on a choice selection. IfrespondViaForm()istrue, then this method must returnfalse. IfisResponseRequired()isfalseandrespondViaOption()istrue, then a response is optional.- Returns:
trueif the provider accepts a selection input,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getResponseOptions
ResponseOption[] getResponseOptions()Gets a list of possible response choices to this communique.- Returns:
- a list of possible responses
- Throws:
IllegalStateException-respondViaOption()isfalse- Compliance:
mandatory- This method must be implemented.
-
respondViaForm
boolean respondViaForm()Tests if the provider is blocking on a form input. IfrespondViaOption()istrue, then this method must returnfalse. IfisResponseRequired()is false andrespondViaForm()istrue, then a response is optional.- Returns:
trueif the provider accepts form input,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCommuniqueRecord
Gets the communique record corresponding to the givenCommuniquerecordType. This method is used to retrieve an object implementing the requested record. ThecommuniqueRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(communiqueRecordType)istrue.- Parameters:
communiqueRecordType- the type of the record to retrieve- Returns:
- the communique record
- Throws:
NullArgumentException-communiqueRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(communiqueRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-