final class ShopServiceImpl extends java.lang.Object implements ShopService
Modifier and Type | Field and Description |
---|---|
private javax.inject.Provider<ShopRepository> |
repo |
Constructor and Description |
---|
ShopServiceImpl(javax.inject.Provider<ShopRepository> repo) |
Modifier and Type | Method and Description |
---|---|
void |
delete(GUID shopGUID) |
Shop |
findShopByPublicId(java.lang.String publicId)
Find shop by its publicId (e.g.
|
Shop |
get(GUID shopGUID) |
Shop |
save(Shop shop) |
private final javax.inject.Provider<ShopRepository> repo
@Inject public ShopServiceImpl(javax.inject.Provider<ShopRepository> repo)
public Shop get(GUID shopGUID)
get
in interface ShopService
public Shop findShopByPublicId(java.lang.String publicId)
ShopService
findShopByPublicId
in interface ShopService
publicId
- shop public id ("DemoShop")public void delete(GUID shopGUID)
delete
in interface ShopService
public Shop save(Shop shop)
save
in interface ShopService