Пример #1
0
  /* (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());
  }
Пример #2
0
 /* (non-Javadoc)
  * @see kiwi.api.fragment.FragmentService#removeFragment(kiwi.api.fragment.FragmentFacade)
  */
 @Override
 public void removeFragment(FragmentFacade ff) {
   kiwiEntityManager.remove(ff.getDelegate());
 }
Пример #3
0
 /* (non-Javadoc)
  * @see kiwi.api.fragment.FragmentService#saveFragment(kiwi.api.fragment.FragmentFacade)
  */
 @Override
 public void saveFragment(FragmentFacade ff) {
   kiwiEntityManager.persist(ff.getDelegate());
 }