Пример #1
0
 @Override
 public Shop updateShop(Shop shop) {
   if (shop == null) {
     return null;
   }
   long nowUtcTime = dateFactory.nowUTCDate().getTime();
   shop.setModifiedAt(nowUtcTime);
   return shopDao.save(shop);
 }
Пример #2
0
 @Override
 public List<Shop> findShopsNewerThan(long utcTime) {
   return shopDao.findShopsNewerThan(utcTime);
 }
Пример #3
0
 @Override
 public void archiveShop(long shopKey) {
   long nowUtcTime = dateFactory.nowUTCDate().getTime();
   shopDao.archiveShop(shopKey, nowUtcTime);
 }
Пример #4
0
 @Override
 public List<Long> findAllShopKeys() {
   return shopDao.findAllShopKeys();
 }
Пример #5
0
 public void deleteShop(long shopKey) {
   shopDao.delete(shopKey);
 }
Пример #6
0
 @Override
 public List<Shop> findAllShops() {
   return shopDao.findAllShops();
 }
Пример #7
0
 @Override
 public Shop findShop(long shopKey) {
   return shopDao.findOne(shopKey);
 }