コード例 #1
0
  public static com.liferay.message.boards.kernel.model.MBMessage addMessage(
      HttpPrincipal httpPrincipal,
      long categoryId,
      java.lang.String subject,
      java.lang.String body,
      com.liferay.portal.kernel.service.ServiceContext serviceContext)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(MBMessageServiceUtil.class, "addMessage", _addMessageParameterTypes3);

      MethodHandler methodHandler =
          new MethodHandler(methodKey, categoryId, subject, body, serviceContext);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.message.boards.kernel.model.MBMessage) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #2
0
  public static void addTeamUserGroups(
      HttpPrincipal httpPrincipal, long teamId, long[] userGroupIds)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              UserGroupServiceUtil.class, "addTeamUserGroups", _addTeamUserGroupsParameterTypes1);

      MethodHandler methodHandler = new MethodHandler(methodKey, teamId, userGroupIds);

      try {
        TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #3
0
  public static com.liferay.dynamic.data.lists.model.DDLRecordSet updateMinDisplayRows(
      HttpPrincipal httpPrincipal,
      long recordSetId,
      int minDisplayRows,
      com.liferay.portal.kernel.service.ServiceContext serviceContext)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              DDLRecordSetServiceUtil.class,
              "updateMinDisplayRows",
              _updateMinDisplayRowsParameterTypes9);

      MethodHandler methodHandler =
          new MethodHandler(methodKey, recordSetId, minDisplayRows, serviceContext);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.dynamic.data.lists.model.DDLRecordSet) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #4
0
  public static com.liferay.asset.kernel.model.AssetEntry incrementViewCounter(
      HttpPrincipal httpPrincipal, java.lang.String className, long classPK)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              AssetEntryServiceUtil.class,
              "incrementViewCounter",
              _incrementViewCounterParameterTypes6);

      MethodHandler methodHandler = new MethodHandler(methodKey, className, classPK);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.asset.kernel.model.AssetEntry) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #5
0
  public static int getCompanyEntriesCount(HttpPrincipal httpPrincipal, long companyId) {
    try {
      MethodKey methodKey =
          new MethodKey(
              AssetEntryServiceUtil.class,
              "getCompanyEntriesCount",
              _getCompanyEntriesCountParameterTypes2);

      MethodHandler methodHandler = new MethodHandler(methodKey, companyId);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return ((Integer) returnObj).intValue();
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #6
0
  public static com.liferay.portal.kernel.model.UserGroup addUserGroup(
      HttpPrincipal httpPrincipal, java.lang.String name, java.lang.String description)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(UserGroupServiceUtil.class, "addUserGroup", _addUserGroupParameterTypes2);

      MethodHandler methodHandler = new MethodHandler(methodKey, name, description);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.portal.kernel.model.UserGroup) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #7
0
  public static java.util.List<com.liferay.dynamic.data.lists.model.DDLRecordSet> search(
      HttpPrincipal httpPrincipal,
      long companyId,
      long groupId,
      java.lang.String keywords,
      int scope,
      int start,
      int end,
      com.liferay.portal.kernel.util.OrderByComparator<
              com.liferay.dynamic.data.lists.model.DDLRecordSet>
          orderByComparator) {
    try {
      MethodKey methodKey =
          new MethodKey(DDLRecordSetServiceUtil.class, "search", _searchParameterTypes5);

      MethodHandler methodHandler =
          new MethodHandler(
              methodKey, companyId, groupId, keywords, scope, start, end, orderByComparator);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (java.util.List<com.liferay.dynamic.data.lists.model.DDLRecordSet>) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #8
0
  public static java.util.List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(
      HttpPrincipal httpPrincipal, long userId)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              UserGroupServiceUtil.class, "getUserUserGroups", _getUserUserGroupsParameterTypes9);

      MethodHandler methodHandler = new MethodHandler(methodKey, userId);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (java.util.List<com.liferay.portal.kernel.model.UserGroup>) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #9
0
  public static com.liferay.dynamic.data.lists.model.DDLRecordSet updateRecordSet(
      HttpPrincipal httpPrincipal,
      long recordSetId,
      com.liferay.dynamic.data.mapping.storage.DDMFormValues settingsDDMFormValues)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              DDLRecordSetServiceUtil.class, "updateRecordSet", _updateRecordSetParameterTypes10);

      MethodHandler methodHandler =
          new MethodHandler(methodKey, recordSetId, settingsDDMFormValues);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.dynamic.data.lists.model.DDLRecordSet) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #10
0
  public static java.util.List<com.liferay.message.boards.kernel.model.MBMessage> getThreadMessages(
      HttpPrincipal httpPrincipal,
      long groupId,
      long categoryId,
      long threadId,
      int status,
      int start,
      int end) {
    try {
      MethodKey methodKey =
          new MethodKey(
              MBMessageServiceUtil.class, "getThreadMessages", _getThreadMessagesParameterTypes23);

      MethodHandler methodHandler =
          new MethodHandler(methodKey, groupId, categoryId, threadId, status, start, end);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (java.util.List<com.liferay.message.boards.kernel.model.MBMessage>) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #11
0
  public static int getThreadMessagesCount(
      HttpPrincipal httpPrincipal, long groupId, long categoryId, long threadId, int status) {
    try {
      MethodKey methodKey =
          new MethodKey(
              MBMessageServiceUtil.class,
              "getThreadMessagesCount",
              _getThreadMessagesCountParameterTypes24);

      MethodHandler methodHandler =
          new MethodHandler(methodKey, groupId, categoryId, threadId, status);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return ((Integer) returnObj).intValue();
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #12
0
  public static com.liferay.message.boards.kernel.model.MBMessage getMessage(
      HttpPrincipal httpPrincipal, long messageId)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(MBMessageServiceUtil.class, "getMessage", _getMessageParameterTypes19);

      MethodHandler methodHandler = new MethodHandler(methodKey, messageId);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.message.boards.kernel.model.MBMessage) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #13
0
  public static com.liferay.message.boards.kernel.model.MBMessageDisplay getMessageDisplay(
      HttpPrincipal httpPrincipal,
      long messageId,
      int status,
      java.lang.String threadView,
      boolean includePrevAndNext)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              MBMessageServiceUtil.class, "getMessageDisplay", _getMessageDisplayParameterTypes21);

      MethodHandler methodHandler =
          new MethodHandler(methodKey, messageId, status, threadView, includePrevAndNext);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.message.boards.kernel.model.MBMessageDisplay) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #14
0
  public static int searchCount(
      HttpPrincipal httpPrincipal,
      long companyId,
      long groupId,
      java.lang.String name,
      java.lang.String description,
      int scope,
      boolean andOperator) {
    try {
      MethodKey methodKey =
          new MethodKey(DDLRecordSetServiceUtil.class, "searchCount", _searchCountParameterTypes8);

      MethodHandler methodHandler =
          new MethodHandler(methodKey, companyId, groupId, name, description, scope, andOperator);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return ((Integer) returnObj).intValue();
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #15
0
  public static void emptyMessageAttachments(HttpPrincipal httpPrincipal, long messageId)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              MBMessageServiceUtil.class,
              "emptyMessageAttachments",
              _emptyMessageAttachmentsParameterTypes11);

      MethodHandler methodHandler = new MethodHandler(methodKey, messageId);

      try {
        TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #16
0
  public static void deleteMessageAttachment(
      HttpPrincipal httpPrincipal, long messageId, java.lang.String fileName)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              MBMessageServiceUtil.class,
              "deleteMessageAttachment",
              _deleteMessageAttachmentParameterTypes9);

      MethodHandler methodHandler = new MethodHandler(methodKey, messageId, fileName);

      try {
        TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #17
0
  public static com.liferay.asset.kernel.model.AssetEntry fetchEntry(
      HttpPrincipal httpPrincipal, long entryId)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(AssetEntryServiceUtil.class, "fetchEntry", _fetchEntryParameterTypes0);

      MethodHandler methodHandler = new MethodHandler(methodKey, entryId);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.asset.kernel.model.AssetEntry) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #18
0
  public static int getEntriesCount(
      HttpPrincipal httpPrincipal,
      com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              AssetEntryServiceUtil.class, "getEntriesCount", _getEntriesCountParameterTypes4);

      MethodHandler methodHandler = new MethodHandler(methodKey, entryQuery);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return ((Integer) returnObj).intValue();
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #19
0
  public static com.liferay.message.boards.kernel.model.MBMessage addMessage(
      HttpPrincipal httpPrincipal,
      long groupId,
      long categoryId,
      java.lang.String subject,
      java.lang.String body,
      java.lang.String format,
      java.lang.String fileName,
      java.io.File file,
      boolean anonymous,
      double priority,
      boolean allowPingbacks,
      com.liferay.portal.kernel.service.ServiceContext serviceContext)
      throws com.liferay.portal.kernel.exception.PortalException, java.io.FileNotFoundException {
    try {
      MethodKey methodKey =
          new MethodKey(MBMessageServiceUtil.class, "addMessage", _addMessageParameterTypes2);

      MethodHandler methodHandler =
          new MethodHandler(
              methodKey,
              groupId,
              categoryId,
              subject,
              body,
              format,
              fileName,
              file,
              anonymous,
              priority,
              allowPingbacks,
              serviceContext);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        if (e instanceof java.io.FileNotFoundException) {
          throw (java.io.FileNotFoundException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.message.boards.kernel.model.MBMessage) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #20
0
  public static java.lang.String getGroupMessagesRSS(
      HttpPrincipal httpPrincipal,
      long groupId,
      long userId,
      int status,
      int max,
      java.lang.String type,
      double version,
      java.lang.String displayStyle,
      java.lang.String feedURL,
      java.lang.String entryURL,
      com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              MBMessageServiceUtil.class,
              "getGroupMessagesRSS",
              _getGroupMessagesRSSParameterTypes18);

      MethodHandler methodHandler =
          new MethodHandler(
              methodKey,
              groupId,
              userId,
              status,
              max,
              type,
              version,
              displayStyle,
              feedURL,
              entryURL,
              themeDisplay);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (java.lang.String) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #21
0
  public static com.liferay.message.boards.kernel.model.MBMessage addMessage(
      HttpPrincipal httpPrincipal,
      long parentMessageId,
      java.lang.String subject,
      java.lang.String body,
      java.lang.String format,
      java.util.List<
              com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>>
          inputStreamOVPs,
      boolean anonymous,
      double priority,
      boolean allowPingbacks,
      com.liferay.portal.kernel.service.ServiceContext serviceContext)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(MBMessageServiceUtil.class, "addMessage", _addMessageParameterTypes4);

      MethodHandler methodHandler =
          new MethodHandler(
              methodKey,
              parentMessageId,
              subject,
              body,
              format,
              inputStreamOVPs,
              anonymous,
              priority,
              allowPingbacks,
              serviceContext);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.message.boards.kernel.model.MBMessage) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #22
0
  public static com.liferay.dynamic.data.lists.model.DDLRecordSet addRecordSet(
      HttpPrincipal httpPrincipal,
      long groupId,
      long ddmStructureId,
      java.lang.String recordSetKey,
      java.util.Map<java.util.Locale, java.lang.String> nameMap,
      java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
      int minDisplayRows,
      int scope,
      com.liferay.portal.kernel.service.ServiceContext serviceContext)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              DDLRecordSetServiceUtil.class, "addRecordSet", _addRecordSetParameterTypes0);

      MethodHandler methodHandler =
          new MethodHandler(
              methodKey,
              groupId,
              ddmStructureId,
              recordSetKey,
              nameMap,
              descriptionMap,
              minDisplayRows,
              scope,
              serviceContext);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.dynamic.data.lists.model.DDLRecordSet) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #23
0
  public static void deleteDiscussionMessage(
      HttpPrincipal httpPrincipal,
      long groupId,
      java.lang.String className,
      long classPK,
      java.lang.String permissionClassName,
      long permissionClassPK,
      long permissionOwnerId,
      long messageId)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              MBMessageServiceUtil.class,
              "deleteDiscussionMessage",
              _deleteDiscussionMessageParameterTypes7);

      MethodHandler methodHandler =
          new MethodHandler(
              methodKey,
              groupId,
              className,
              classPK,
              permissionClassName,
              permissionClassPK,
              permissionOwnerId,
              messageId);

      try {
        TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #24
0
  public static com.liferay.portal.kernel.json.JSONArray getWARThemes(HttpPrincipal httpPrincipal) {
    try {
      MethodKey methodKey =
          new MethodKey(ThemeServiceUtil.class, "getWARThemes", _getWARThemesParameterTypes1);

      MethodHandler methodHandler = new MethodHandler(methodKey);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.portal.kernel.json.JSONArray) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #25
0
  public static java.util.List<com.liferay.portal.kernel.model.Theme> getThemes(
      HttpPrincipal httpPrincipal, long companyId) {
    try {
      MethodKey methodKey =
          new MethodKey(ThemeServiceUtil.class, "getThemes", _getThemesParameterTypes0);

      MethodHandler methodHandler = new MethodHandler(methodKey, companyId);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (java.util.List<com.liferay.portal.kernel.model.Theme>) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #26
0
  public static void addEntry(
      HttpPrincipal httpPrincipal,
      java.lang.String className,
      long classPK,
      java.lang.String reporterEmailAddress,
      long reportedUserId,
      java.lang.String contentTitle,
      java.lang.String contentURL,
      java.lang.String reason,
      com.liferay.portal.kernel.service.ServiceContext serviceContext) {
    try {
      MethodKey methodKey =
          new MethodKey(FlagsEntryServiceUtil.class, "addEntry", _addEntryParameterTypes0);

      MethodHandler methodHandler =
          new MethodHandler(
              methodKey,
              className,
              classPK,
              reporterEmailAddress,
              reportedUserId,
              contentTitle,
              contentURL,
              reason,
              serviceContext);

      try {
        TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #27
0
  public static java.util.List<com.liferay.dynamic.data.lists.model.DDLRecordSet> getRecordSets(
      HttpPrincipal httpPrincipal, long[] groupIds) {
    try {
      MethodKey methodKey =
          new MethodKey(
              DDLRecordSetServiceUtil.class, "getRecordSets", _getRecordSetsParameterTypes4);

      MethodHandler methodHandler = new MethodHandler(methodKey, groupIds);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (java.util.List<com.liferay.dynamic.data.lists.model.DDLRecordSet>) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #28
0
  public static void deleteRecordSet(HttpPrincipal httpPrincipal, long recordSetId)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              DDLRecordSetServiceUtil.class, "deleteRecordSet", _deleteRecordSetParameterTypes1);

      MethodHandler methodHandler = new MethodHandler(methodKey, recordSetId);

      try {
        TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #29
0
  public static void updateAnswer(
      HttpPrincipal httpPrincipal, long messageId, boolean answer, boolean cascade)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(MBMessageServiceUtil.class, "updateAnswer", _updateAnswerParameterTypes29);

      MethodHandler methodHandler = new MethodHandler(methodKey, messageId, answer, cascade);

      try {
        TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
コード例 #30
0
  public static com.liferay.asset.kernel.model.AssetEntry updateEntry(
      HttpPrincipal httpPrincipal,
      long groupId,
      java.util.Date createDate,
      java.util.Date modifiedDate,
      java.lang.String className,
      long classPK,
      java.lang.String classUuid,
      long classTypeId,
      long[] categoryIds,
      java.lang.String[] tagNames,
      boolean visible,
      java.util.Date startDate,
      java.util.Date endDate,
      java.util.Date expirationDate,
      java.lang.String mimeType,
      java.lang.String title,
      java.lang.String description,
      java.lang.String summary,
      java.lang.String url,
      java.lang.String layoutUuid,
      int height,
      int width,
      java.lang.Integer priority,
      boolean sync)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(AssetEntryServiceUtil.class, "updateEntry", _updateEntryParameterTypes9);

      MethodHandler methodHandler =
          new MethodHandler(
              methodKey,
              groupId,
              createDate,
              modifiedDate,
              className,
              classPK,
              classUuid,
              classTypeId,
              categoryIds,
              tagNames,
              visible,
              startDate,
              endDate,
              expirationDate,
              mimeType,
              title,
              description,
              summary,
              url,
              layoutUuid,
              height,
              width,
              priority,
              sync);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
          throw (com.liferay.portal.kernel.exception.PortalException) e;
        }

        throw new com.liferay.portal.kernel.exception.SystemException(e);
      }

      return (com.liferay.asset.kernel.model.AssetEntry) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }