/* (non-Javadoc) * @see kiwi.api.fragment.FragmentService#getTextFragment(kiwi.api.fragment.FragmentFacade) */ @Override public TextFragment getTextFragment(FragmentFacade ff) { if (ff.getContainingContentItem() == null) { log.debug("getTextFragment: containing content item for #0 is null!", ff); return null; } return ff.getContainingContentItem() .getTextContent() .getFragment((KiWiUriResource) ff.getResource()); }
/* (non-Javadoc) * @see kiwi.api.fragment.FragmentService#removeFragment(kiwi.api.fragment.FragmentFacade) */ @Override public void removeFragment(FragmentFacade ff) { kiwiEntityManager.remove(ff.getDelegate()); }
/* (non-Javadoc) * @see kiwi.api.fragment.FragmentService#saveFragment(kiwi.api.fragment.FragmentFacade) */ @Override public void saveFragment(FragmentFacade ff) { kiwiEntityManager.persist(ff.getDelegate()); }