public interface OrderHistoryService
| Modifier and Type | Method and Description |
|---|---|
OrderModel |
createHistorySnapshot(OrderModel currentVersion)
Creates a exact copy of the given order except that the copy will be marked as copy by setting
OrderModel.VERSIONID to true. |
java.util.Collection<OrderHistoryEntryModel> |
getHistoryEntries(OrderModel ownerOrder,
java.util.Date dateFrom,
java.util.Date dateTo)
Fetches history entries of the ownerOrder from the given time range
|
java.util.Collection<OrderHistoryEntryModel> |
getHistoryEntries(OrderModel ownerOrder,
EmployeeModel employee)
Fetches history entries of the ownerOrder from the given employee
|
java.util.Collection<OrderHistoryEntryModel> |
getHistoryEntries(UserModel user,
java.util.Date dateFrom,
java.util.Date dateTo)
Fetches history entries of the orders placed by the user in the given time range
|
java.util.Collection<java.lang.String> |
getHistoryEntriesDescriptions(OrderModel ownerOrder,
java.util.Date dateFrom,
java.util.Date dateTo)
Fetches the descriptions of history entries of the ownerOrder from the given time range
|
java.util.Collection<OrderModel> |
getHistorySnapshots(OrderModel currentVersion)
Fetches all snapshots which have been created and assigned to the given order's history entries.
|
void |
saveHistorySnapshot(OrderModel snapshot)
Actually persists a previously created order snapshot.
|
OrderModel createHistorySnapshot(OrderModel currentVersion)
OrderModel.VERSIONID to true.currentVersion - the original order to be copied copyvoid saveHistorySnapshot(OrderModel snapshot)
ModelService.save(Object) to
overcome Jalo layer business logic resetting some attributes. In future this may not be necessary.snapshot - the order snapshotjava.lang.IllegalArgumentException - if the order is already persisted or is no snapshot at alljava.util.Collection<OrderModel> getHistorySnapshots(OrderModel currentVersion)
currentVersion - the original orderjava.util.Collection<OrderHistoryEntryModel> getHistoryEntries(OrderModel ownerOrder, java.util.Date dateFrom, java.util.Date dateTo)
ownerOrder - the owner orderdateFrom - upper limit of the time rangedateTo - lower limit of the time rangejava.util.Collection<java.lang.String> getHistoryEntriesDescriptions(OrderModel ownerOrder, java.util.Date dateFrom, java.util.Date dateTo)
ownerOrder - the owner orderdateFrom - upper limit of the time rangedateTo - lower limit of the time rangejava.util.Collection<OrderHistoryEntryModel> getHistoryEntries(OrderModel ownerOrder, EmployeeModel employee)
ownerOrder - the owner orderemployee - instance of EmployeeModel to get the history of orders forOrderHistoryEntryModeljava.util.Collection<OrderHistoryEntryModel> getHistoryEntries(UserModel user, java.util.Date dateFrom, java.util.Date dateTo)
user - user that placed the ordersdateFrom - set dateFrom to null if you want to make the time range only half limiteddateTo - set dateTo to null if you want to make the time range only half limitedOrderHistoryEntryModelCopyright © 2018 SAP SE. All Rights Reserved.