Exemplo n.º 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);
 }
Exemplo n.º 2
0
 @Override
 public List<Shop> findShopsNewerThan(long utcTime) {
   return shopDao.findShopsNewerThan(utcTime);
 }
Exemplo n.º 3
0
 @Override
 public void archiveShop(long shopKey) {
   long nowUtcTime = dateFactory.nowUTCDate().getTime();
   shopDao.archiveShop(shopKey, nowUtcTime);
 }
Exemplo n.º 4
0
 @Override
 public List<Long> findAllShopKeys() {
   return shopDao.findAllShopKeys();
 }
Exemplo n.º 5
0
 public void deleteShop(long shopKey) {
   shopDao.delete(shopKey);
 }
Exemplo n.º 6
0
 @Override
 public List<Shop> findAllShops() {
   return shopDao.findAllShops();
 }
Exemplo n.º 7
0
 @Override
 public Shop findShop(long shopKey) {
   return shopDao.findOne(shopKey);
 }