Interface Order
- All Superinterfaces:
Aggregateable, Browsable, Extensible, Identifiable, OsidObject
An Order .
-
Method Summary
Modifier and TypeMethodDescriptionGets the date this order has been closed.Gets the resource who closed the order.Gets the resourceIdwho closed the order.Gets the agent who closed the order.Gets the agentIdwho closed the order.Gets the customer.Gets theIdof the customer.Gets theIdsof the items.getItems()Gets the items.getOrderRecord(Type orderRecordType) Gets the order record corresponding to the givenOrderrecordType.This method is used to retrieve an object implementing the requested record.Gets the date submitted.Gets the agent who submitted the order.Gets the resourceIdwho submitted the order.Gets the agent who submitted the order.Gets the agentIdwho submitted the order.Gets the total cost for this order.booleanisAtomic()Tests if all the items are processed atomically.booleanisClosed()Tests if all this order is closed or canceled.booleanTests if all this order 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
-
getCustomerId
Id getCustomerId()Gets theIdof the customer.- Returns:
- the customer
Id - Compliance:
mandatory- This method must be implemented.
-
getCustomer
Gets the customer.- Returns:
- the customer
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getItemIds
IdList getItemIds()Gets theIdsof the items.- Returns:
- the item
Ids - Compliance:
mandatory- This method must be implemented.
-
getItems
Gets the items.- Returns:
- the items
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTotalCost
Currency getTotalCost()Gets the total cost for this order.- Returns:
- the total cost
- Compliance:
mandatory- This method must be implemented.
-
isAtomic
boolean isAtomic()Tests if all the items are processed atomically.- Returns:
trueif the order is atomic,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
isSubmitted
boolean isSubmitted()Tests if all this order has been submitted.- Returns:
trueif the order has been submitted,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSubmitDate
DateTime getSubmitDate()Gets the date submitted.- Returns:
- the date submitted
- Throws:
IllegalStateException-isSubmitted()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSubmitterId
Id getSubmitterId()Gets the resourceIdwho submitted the order.- Returns:
- the submitting resource
Id - Throws:
IllegalStateException-isSubmitted()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSubmitter
Gets the agent who submitted the order.- Returns:
- the submitting resource
- Throws:
IllegalStateException-isSubmitted()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSubmittingAgentId
Id getSubmittingAgentId()Gets the agentIdwho submitted the order.- Returns:
- the submitting agent
Id - Throws:
IllegalStateException-isSubmitted()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSubmittingAgent
Gets the agent who submitted the order.- Returns:
- the submitting agent
- Throws:
IllegalStateException-isSubmitted()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isClosed
boolean isClosed()Tests if all this order is closed or canceled.- Returns:
trueif the order is closed,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getClosedDate
DateTime getClosedDate()Gets the date this order has been closed.- Returns:
- the date closed
- Throws:
IllegalStateException-isClosed()isfalse- Compliance:
mandatory- This method must be implemented.
-
getCloserId
Id getCloserId()Gets the resourceIdwho closed the order.- Returns:
- the closing resource
Id - Throws:
IllegalStateException-isClosed()isfalse- Compliance:
mandatory- This method must be implemented.
-
getCloser
Gets the resource who closed the order.- Returns:
- the closing resource
- Throws:
IllegalStateException-isClosed()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getClosingAgentId
Id getClosingAgentId()Gets the agentIdwho closed the order.- Returns:
- the closing agent
Id - Throws:
IllegalStateException-isClosed()isfalse- Compliance:
mandatory- This method must be implemented.
-
getClosingAgent
Gets the agent who closed the order.- Returns:
- the closing agent
- Throws:
IllegalStateException-isClosed()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getOrderRecord
Gets the order record corresponding to the givenOrderrecordType.This method is used to retrieve an object implementing the requested record. TheorderRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(orderRecordType)istrue.- Parameters:
orderRecordType- the type of order record to retrieve- Returns:
- the order record
- Throws:
NullArgumentException-orderRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(orderRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-