public void deleteWallEntry(WallEntry wallEntry) throws SystemException { // Social SocialActivityLocalServiceUtil.deleteActivities( WallEntry.class.getName(), wallEntry.getWallEntryId()); // Entry wallEntryPersistence.remove(wallEntry); }
@Override public MicroblogsEntry deleteMicroblogsEntry(MicroblogsEntry microblogsEntry) throws PortalException, SystemException { // Microblogs entry microblogsEntryPersistence.remove(microblogsEntry); // Asset AssetEntryLocalServiceUtil.deleteEntry( MicroblogsEntry.class.getName(), microblogsEntry.getMicroblogsEntryId()); // Social SocialActivityLocalServiceUtil.deleteActivities( MicroblogsEntry.class.getName(), microblogsEntry.getMicroblogsEntryId()); return microblogsEntry; }
@Override public void deleteTasksEntry(TasksEntry tasksEntry) throws PortalException, SystemException { // Tasks entry tasksEntryPersistence.remove(tasksEntry); // Asset AssetEntryLocalServiceUtil.deleteEntry( TasksEntry.class.getName(), tasksEntry.getTasksEntryId()); // Message boards MBMessageLocalServiceUtil.deleteDiscussionMessages( TasksEntry.class.getName(), tasksEntry.getTasksEntryId()); // Social SocialActivityLocalServiceUtil.deleteActivities( TasksEntry.class.getName(), tasksEntry.getTasksEntryId()); }