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. |
Collection<OrderHistoryEntryModel> |
getHistoryEntries(OrderModel ownerOrder,
Date dateFrom,
Date dateTo)
Fetches history entries of the ownerOrder from the given time range
|
Collection<OrderHistoryEntryModel> |
getHistoryEntries(OrderModel ownerOrder,
EmployeeModel employee)
Fetches history entries of the ownerOrder from the given employee
|
Collection<OrderHistoryEntryModel> |
getHistoryEntries(UserModel user,
Date dateFrom,
Date dateTo)
Fetches history entries of the orders placed by the user in the given time range
|
Collection<String> |
getHistoryEntriesDescriptions(OrderModel ownerOrder,
Date dateFrom,
Date dateTo)
Fetches the descriptions of history entries of the ownerOrder from the given time range
|
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 snapshotIllegalArgumentException - if the order is already persisted or is no snapshot at allCollection<OrderModel> getHistorySnapshots(OrderModel currentVersion)
currentVersion - the original orderCollection<OrderHistoryEntryModel> getHistoryEntries(OrderModel ownerOrder, Date dateFrom, Date dateTo)
ownerOrder - the owner orderdateFrom - upper limit of the time rangedateTo - lower limit of the time rangeCollection<String> getHistoryEntriesDescriptions(OrderModel ownerOrder, Date dateFrom, Date dateTo)
ownerOrder - the owner orderdateFrom - upper limit of the time rangedateTo - lower limit of the time rangeCollection<OrderHistoryEntryModel> getHistoryEntries(OrderModel ownerOrder, EmployeeModel employee)
ownerOrder - the owner orderemployee - Collection<OrderHistoryEntryModel> getHistoryEntries(UserModel user, Date dateFrom, 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 limitedCopyright © 2017 SAP SE. All Rights Reserved.