final class ShopServiceImpl extends java.lang.Object implements ShopService
Modifier and Type | Field and Description |
---|---|
private ShopConfiguration |
config |
private javax.inject.Provider<ShopRepository> |
repo |
Constructor and Description |
---|
ShopServiceImpl(ShopConfiguration config,
javax.inject.Provider<ShopRepository> repo) |
Modifier and Type | Method and Description |
---|---|
void |
delete(GUID shopGuid) |
Shop |
find(GUID shopId) |
Shop |
find(java.lang.String publicId,
java.lang.String host) |
private Shop |
getShop(java.lang.String publicId) |
private Shop |
getShop(java.lang.String publicId,
java.lang.String host) |
Shop |
save(Shop shop) |
private final ShopConfiguration config
private final javax.inject.Provider<ShopRepository> repo
@Inject public ShopServiceImpl(ShopConfiguration config, javax.inject.Provider<ShopRepository> repo)
public Shop find(GUID shopId)
find
in interface ShopService
public Shop find(java.lang.String publicId, java.lang.String host)
find
in interface ShopService
publicId
- host
- parameter will be matched to either domainName or
systemDomainName.private Shop getShop(java.lang.String publicId, java.lang.String host)
private Shop getShop(java.lang.String publicId)
public void delete(GUID shopGuid)
delete
in interface ShopService
public Shop save(Shop shop)
save
in interface ShopService