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