public void removeContentItem(@Delete ContentItem item) { kiwiEntityManager.remove(item); Events.instance().raiseEvent(KiWiEvents.ACTIVITY_DELETECONTENTITEM, currentUser, item); Events.instance().raiseTransactionSuccessEvent(KiWiEvents.ITEM_REMOVED, item); // TODO add contentitem to updateTransactionBean }
/* (non-Javadoc) * @see kiwi.api.fragment.FragmentService#removeFragment(kiwi.api.fragment.FragmentFacade) */ @Override public void removeFragment(FragmentFacade ff) { kiwiEntityManager.remove(ff.getDelegate()); }