コード例 #1
0
  public void deleteWallEntry(WallEntry wallEntry) throws SystemException {

    // Social

    SocialActivityLocalServiceUtil.deleteActivities(
        WallEntry.class.getName(), wallEntry.getWallEntryId());

    // Entry

    wallEntryPersistence.remove(wallEntry);
  }
コード例 #2
0
  @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;
  }
コード例 #3
0
  @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());
  }