Example #1
0
 /** {@inheritDoc} */
 @Override
 public Page create(Page page) {
   Calendar now = Calendar.getInstance();
   page.setCreated(now.getTime());
   page.setUpdated(now.getTime());
   return daoService.create(page);
 }
Example #2
0
 /** {@inheritDoc} */
 @Override
 public Page findPageByTitle(String title) throws DataNotFoundException {
   return daoService.findObjectWithNamedQuery(
       Page.class, Page.FIND_BY_TITLE, QueryBuilder.with(Page.PARAMETER_TITLE, title));
 }
Example #3
0
 /** {@inheritDoc} */
 @Override
 public Page findPageById(Long id) throws DataNotFoundException {
   return daoService.findById(Page.class, id);
 }
Example #4
0
 /** {@inheritDoc} */
 @Override
 public void deletePageById(Long id) {
   daoService.delete(Page.class, id);
 }
Example #5
0
 /** {@inheritDoc} */
 @Override
 public List<Page> findSubmenuPages() {
   return daoService.findWithNamedQuery(Page.FIND_SUBMENU);
 }