OSID Logo
OSID Specifications
commenting package
Version 3.1.0
Interfaceosid.commenting.CommentSearchOrder
Implementsosid.OsidRelationshipSearchOrder
Used Byosid.commenting.CommentSearchSession
osid.commenting.CommentSmartBookSession
Description

An interface for specifying the ordering of search results.

MethodorderByReference
Description

Specifies a preference for ordering the result set by the reference.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodorderByCommentor
Description

Specifies a preference for ordering the result set by the resource.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodsupportsCommentorSearchOrder
Description

Tests if a resource order interface is available.

Returnboolean true if a resource order interface is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetCommentorSearchOrder
Description

Gets the resource order interface.

Returnosid.resource.ResourceQuery the resource search order interface
ErrorsUNIMPLEMENTED supportsCommentorSearchOrder() is false
Complianceoptional This method must be implemented if supportsCommentorSearchOrder() is true.
MethodorderByCommentingAgent
Description

Specifies a preference for ordering the result set by the agent.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodsupportsCommentingAgentSearchOrder
Description

Tests if an agent order interface is available.

Returnboolean true if an agent order interface is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetCommentingAgentSearchOrder
Description

Gets the agent order interface.

Returnosid.authentication.AgentSearchOrder the agent search order interface
ErrorsUNIMPLEMENTED supportsCommentingAgentSearchOrder() is false
Complianceoptional This method must be implemented if supportsCommentingAgentSearchOrder() is true.
MethodorderByText
Description

Specifies a preference for ordering the result set by the text.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodorderByRating
Description

Specifies a preference for ordering the result set by the rating.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodsupportsRatingSearchOrder
Description

Tests if a rating order interface is available.

Returnboolean true if a rating order interface is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRatingSearchOrder
Description

Gets the rating order interface.

Returnosid.grading.GradeSearchOrder the rating search order interface
ErrorsUNIMPLEMENTED supportsRatingSearchOrder() is false
Complianceoptional This method must be implemented if supportsRatingSearchOrder() is true.
MethodgetCommentSearchOrderRecord
Description

Gets the comment search order record corresponding to the given comment record Type. Multiple retrievals return the same underlying object.

Parametersosid.type.TypecommentRecordType a comment record type
Returnosid.commenting.records.CommentSearchOrderRecord the comment search order record
ErrorsNULL_ARGUMENT commentRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(commentRecordType) is false
Compliancemandatory This method must be implemented.