Interface OsidRequest
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
- All Known Subinterfaces:
RegistrationRequest
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 .
-
Method Summary
Modifier and TypeMethodDescriptionGets the date the request was canceled.getError()Gets the error state.Gets theIdof the error state.Gets the posting date of the request.Gets the date the request processing completed.Gets the requester.Gets theIdof the requester.Gets the date the request was submitted.Gets the submittor.Gets theIdof the submittor.Gets the submitting agent.Gets theIdof the submitting agent.booleanhasError()Tests if this request has been processed but not fulfilled due to error.booleanTests if this request has been canceled.booleanTests if this request has been processed.booleanTests if this request has been submitted.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
-
getPostingDate
DateTime getPostingDate()Gets the posting date of the request.- Returns:
- the request date
- Compliance:
mandatory- This method must be implemented.
-
getRequesterId
Id getRequesterId()Gets theIdof the requester.- Returns:
- the resource
Id - Compliance:
mandatory- This method must be implemented.
-
getRequester
Gets the requester.- Returns:
- the resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isSubmitted
boolean isSubmitted()Tests if this request has been submitted.- Returns:
- true if this request has been submitted, false otherwise
- Compliance:
mandatory- This method must be implemented.
-
getSubmittedDate
DateTime getSubmittedDate()Gets the date the request was submitted.- Returns:
- the submission date
- Throws:
IllegalStateException-isSubmitted()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSubmitterId
Id getSubmitterId()Gets theIdof the submittor.- Returns:
- the resource
Id - Compliance:
mandatory- This method must be implemented.
-
getSubmitter
Gets the submittor.- Returns:
- the resource
- Throws:
IllegalStateException-isSubmitted()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSubmittingAgentId
Id getSubmittingAgentId()Gets theIdof the submitting agent.- Returns:
- the submitting agent
Id - Throws:
IllegalStateException-isSubmitted()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSubmittingAgent
Gets the submitting agent.- Returns:
- the submitting agent
- Throws:
IllegalStateException-isSubmitted()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isCanceled
boolean isCanceled()Tests if this request has been canceled.- Returns:
- true if this request has been canceled, false otherwise
- Compliance:
mandatory- This method must be implemented.
-
getCanceledDate
DateTime getCanceledDate()Gets the date the request was canceled.- Returns:
- the cancel date
- Throws:
IllegalStateException-isCanceled()isfalse- Compliance:
mandatory- This method must be implemented.
-
isProcessed
boolean isProcessed()Tests if this request has been processed.- Returns:
- true if this request has been processed, false otherwise
- Compliance:
mandatory- This method must be implemented.
-
getProcessedDate
DateTime getProcessedDate()Gets the date the request processing completed.- Returns:
- the procsssed date
- Throws:
IllegalStateException-isProcessed()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasError
boolean hasError()Tests if this request has been processed but not fulfilled due to error.- Returns:
- true if this request has error, false otherwise
- Compliance:
mandatory- This method must be implemented.
-
getErrorId
Id getErrorId()Gets theIdof the error state.- Returns:
- the state
Id - Throws:
IllegalStateException-hasError()isfalse- Compliance:
mandatory- This method must be implemented.
-
getError
Gets the error state.- Returns:
- the state
- Throws:
IllegalStateException-hasError()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-