예제 #1
0
  public static void deleteFeed(long groupId, long feedId) throws RemoteException {
    try {
      JournalFeedServiceUtil.deleteFeed(groupId, feedId);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
예제 #2
0
  protected void deleteFeeds(ActionRequest actionRequest) throws Exception {
    long groupId = ParamUtil.getLong(actionRequest, "groupId");

    String[] deleteFeedIds = StringUtil.split(ParamUtil.getString(actionRequest, "deleteFeedIds"));

    for (int i = 0; i < deleteFeedIds.length; i++) {
      JournalFeedServiceUtil.deleteFeed(groupId, deleteFeedIds[i]);
    }
  }