public interface StatusService
Modifier and Type | Method and Description |
---|---|
OrderStatusInformation |
getOrderStatus(java.lang.String shopId,
java.lang.String orderId)
Returns status information about a specific order.
|
ShopStatusInformation |
getShopStatus(java.lang.String shopId)
Returns status information about a specific shop.
|
void |
initializeShopStatus(java.lang.String shopId)
Initializes the status information for a specific shop.
|
boolean |
isFirstSynchronization(java.lang.String shopId)
Determines if the shop has already performed a
successful synchronization at least once.
|
boolean |
isReadyForSynchronization(java.lang.String shopId)
Determines if the shop with the specified identifier
is ready to perform a synchronization.
|
void |
setBusy(java.lang.String shopId)
Sets a specific shop sync-status to "busy".
|
void |
setConnected(java.lang.String shopId)
Sets a specific shop connection-status to "connected".
|
void |
setDisconnected(java.lang.String shopId)
Sets a specific shop connection-status to "disconnected".
|
void |
setIdle(java.lang.String shopId)
Sets a specific shop sync-status to "idle".
|
void |
setOrderStatus(OrderStatusInformation status)
Sets the status of a specific order.
|
void |
synchronizationAborted(java.lang.String shopId)
Sets a specific shop sync-status to "idle"
without updating the last synchronization timestamp.
|
void |
synchronizationCompleted(java.lang.String shopId)
Sets a specific shop sync-status to "idle"
and updates the last synchronization timestamp.
|
void |
synchronizationStarted(java.lang.String shopId)
Sets a specific shop sync-status to "busy".
|
boolean isReadyForSynchronization(java.lang.String shopId)
Identifier
- of the shop.boolean isFirstSynchronization(java.lang.String shopId)
Identifier
- of the shop.ShopStatusInformation getShopStatus(java.lang.String shopId) throws javax.persistence.EntityNotFoundException, javax.persistence.PersistenceException
Identifier
- of the shop to get information about.javax.persistence.EntityNotFoundException
- in case a shop with
the passed identifier could not be found.javax.persistence.PersistenceException
- in case an error
occurred while accessing the database.void initializeShopStatus(java.lang.String shopId) throws javax.persistence.PersistenceException
Identifier
- of the shop to initialize.javax.persistence.PersistenceException
- in case an error
occurred while saving the data.void setConnected(java.lang.String shopId) throws javax.persistence.EntityNotFoundException, javax.persistence.PersistenceException
Identifier
- of the desired shop.javax.persistence.EntityNotFoundException
- in case a shop with
the passed identifier could not be found.javax.persistence.PersistenceException
- in case an error
occurred while saving the data.void setDisconnected(java.lang.String shopId) throws javax.persistence.EntityNotFoundException, javax.persistence.PersistenceException
Identifier
- of the desired shop.javax.persistence.EntityNotFoundException
- in case a shop with
the passed identifier could not be found.javax.persistence.PersistenceException
- in case an error
occurred while saving the data.void setBusy(java.lang.String shopId) throws javax.persistence.EntityNotFoundException, javax.persistence.PersistenceException
Identifier
- of the desired shop.javax.persistence.EntityNotFoundException
- in case a shop with
the passed identifier could not be found.javax.persistence.PersistenceException
- in case an error
occurred while saving the data.void setIdle(java.lang.String shopId) throws javax.persistence.EntityNotFoundException, javax.persistence.PersistenceException
Identifier
- of the desired shop.javax.persistence.EntityNotFoundException
- in case a shop with
the passed identifier could not be found.javax.persistence.PersistenceException
- in case an error
occurred while saving the data.void synchronizationStarted(java.lang.String shopId) throws javax.persistence.EntityNotFoundException, javax.persistence.PersistenceException
Identifier
- of the desired shop.javax.persistence.EntityNotFoundException
- in case a shop with
the passed identifier could not be found.javax.persistence.PersistenceException
- in case an error
occurred while saving the data.void synchronizationAborted(java.lang.String shopId) throws javax.persistence.EntityNotFoundException, javax.persistence.PersistenceException
Identifier
- of the desired shop.javax.persistence.EntityNotFoundException
- in case a shop with
the passed identifier could not be found.javax.persistence.PersistenceException
- in case an error
occurred while saving the data.void synchronizationCompleted(java.lang.String shopId) throws javax.persistence.EntityNotFoundException, javax.persistence.PersistenceException
Identifier
- of the desired shop.javax.persistence.EntityNotFoundException
- in case a shop with
the passed identifier could not be found.javax.persistence.PersistenceException
- in case an error
occurred while saving the data.OrderStatusInformation getOrderStatus(java.lang.String shopId, java.lang.String orderId) throws javax.persistence.EntityNotFoundException, javax.persistence.PersistenceException
Identifier
- of the shop containing the order.Identifier
- of the order to get information about.javax.persistence.EntityNotFoundException
- in case a shop with
the passed identifier or a order with the passed
identifier could not be found.javax.persistence.PersistenceException
- in case an error
occurred while accessing the database.void setOrderStatus(OrderStatusInformation status) throws javax.persistence.PersistenceException
Order
- status to set.javax.persistence.PersistenceException
- in case an error
occurred while saving the data.