public interface StatusService
Modifier and Type | Method and Description |
---|---|
void |
createShop(GUID shopGuid,
java.lang.String redirectUri,
java.lang.String ep6RedirectUrl)
Creates a new database entry for a specific shop.
|
OrderStatus |
getOrderStatus(GUID shopGuid,
GUID orderGuid)
Returns status information about a specific order.
|
ShopStatus |
getShopStatus(GUID shopGuid)
Returns status information about a specific shop.
|
boolean |
isFirstSynchronization(GUID shopGuid)
Determines if the shop has already performed a successful synchronization
at least once.
|
boolean |
isReadyForSynchronization(GUID shopGuid)
Determines if the shop with the specified identifier is ready to perform
a synchronization.
|
void |
setBusy(GUID shopGuid)
Sets a specific shop sync-status to "busy".
|
void |
setConnected(GUID shopGuid)
Sets a specific shop connection-status to "connected".
|
void |
setDisconnected(GUID shopGuid)
Sets a specific shop connection-status to "disconnected".
|
void |
setIdle(GUID shopGuid)
Sets a specific shop sync-status to "idle".
|
void |
setOrderStatus(OrderStatus status)
Sets the status of a specific order.
|
void |
synchronizationAborted(GUID shopGuid)
Sets a specific shop sync-status to "idle" without updating the last
synchronization timestamp.
|
void |
synchronizationCompleted(GUID shopGuid)
Sets a specific shop sync-status to "idle" and updates the last
synchronization timestamp.
|
void |
synchronizationStarted(GUID shopGuid)
Sets a specific shop sync-status to "busy".
|
boolean isReadyForSynchronization(GUID shopGuid)
shopGuid
- GUID of the shop.boolean isFirstSynchronization(GUID shopGuid)
shopGuid
- GUID of the shop.EntityNotFoundException
- in case a shop with the passed identifier could not be found.DataPersistenceException
- in case an error occurred while accessing the database.ShopStatus getShopStatus(GUID shopGuid)
shopGuid
- GUID of the shop to get information about.EntityNotFoundException
- in case a shop with the passed identifier could not be found.DataPersistenceException
- in case an error occurred while accessing the database.void createShop(GUID shopGuid, java.lang.String redirectUri, java.lang.String ep6RedirectUrl)
shopGuid
- GUID of the shop.redirectUri
- String used by Sage to redirect back to EpagesJep6RedirectUrl
- String used by EpagesJ to redirect back to Epages6DataPersistenceException
- in case an error occurred while saving the data.void setConnected(GUID shopGuid)
shopGuid
- GUID of the desired shop.EntityNotFoundException
- in case a shop with the passed identifier could not be found.DataPersistenceException
- in case an error occurred while saving the data.void setDisconnected(GUID shopGuid)
shopGuid
- GUID of the desired shop.EntityNotFoundException
- in case a shop with the passed identifier could not be found.DataPersistenceException
- in case an error occurred while saving the data.void setBusy(GUID shopGuid)
shopGuid
- GUID of the desired shop.EntityNotFoundException
- in case a shop with the passed identifier could not be found.DataPersistenceException
- in case an error occurred while saving the data.void setIdle(GUID shopGuid)
shopGuid
- GUID of the desired shop.EntityNotFoundException
- in case a shop with the passed identifier could not be found.DataPersistenceException
- in case an error occurred while saving the data.void synchronizationStarted(GUID shopGuid)
shopGuid
- GUID of the desired shop.EntityNotFoundException
- in case a shop with the passed identifier could not be found.DataPersistenceException
- in case an error occurred while saving the data.void synchronizationAborted(GUID shopGuid)
shopGuid
- GUID of the desired shop.EntityNotFoundException
- in case a shop with the passed identifier could not be found.DataPersistenceException
- in case an error occurred while saving the data.void synchronizationCompleted(GUID shopGuid)
shopGuid
- GUID of the desired shop.EntityNotFoundException
- in case a shop with the passed identifier could not be found.DataPersistenceException
- in case an error occurred while saving the data.OrderStatus getOrderStatus(GUID shopGuid, GUID orderGuid)
shopGuid
- GUID of the shop containing the order.orderGuid
- Identifier of the order to get information about.EntityNotFoundException
- in case a shop with the passed identifier or a order with the
passed identifier could not be found.DataPersistenceException
- in case an error occurred while accessing the database.void setOrderStatus(OrderStatus status)
status
- Order status to set.DataPersistenceException
- in case an error occurred while saving the data.