@Override public Shop updateShop(Shop shop) { if (shop == null) { return null; } long nowUtcTime = dateFactory.nowUTCDate().getTime(); shop.setModifiedAt(nowUtcTime); return shopDao.save(shop); }
@Override public List<Shop> findShopsNewerThan(long utcTime) { return shopDao.findShopsNewerThan(utcTime); }
@Override public void archiveShop(long shopKey) { long nowUtcTime = dateFactory.nowUTCDate().getTime(); shopDao.archiveShop(shopKey, nowUtcTime); }
@Override public List<Long> findAllShopKeys() { return shopDao.findAllShopKeys(); }
public void deleteShop(long shopKey) { shopDao.delete(shopKey); }
@Override public List<Shop> findAllShops() { return shopDao.findAllShops(); }
@Override public Shop findShop(long shopKey) { return shopDao.findOne(shopKey); }