예제 #1
0
  public static com.liferay.portlet.messageboards.model.MBMessageSoap updateMessage(
      long messageId,
      java.lang.String subject,
      java.lang.String body,
      java.util.List<
              com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>>
          inputStreamOVPs,
      java.util.List<java.lang.String> existingFiles,
      double priority,
      boolean allowPingbacks,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws RemoteException {
    try {
      com.liferay.portlet.messageboards.model.MBMessage returnValue =
          MBMessageServiceUtil.updateMessage(
              messageId,
              subject,
              body,
              inputStreamOVPs,
              existingFiles,
              priority,
              allowPingbacks,
              serviceContext);

      return com.liferay.portlet.messageboards.model.MBMessageSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
예제 #2
0
  public static com.liferay.portlet.messageboards.model.MBMessageSoap addDiscussionMessage(
      long groupId,
      java.lang.String className,
      long classPK,
      java.lang.String permissionClassName,
      long permissionClassPK,
      long permissionOwnerId,
      long threadId,
      long parentMessageId,
      java.lang.String subject,
      java.lang.String body,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws RemoteException {
    try {
      com.liferay.portlet.messageboards.model.MBMessage returnValue =
          MBMessageServiceUtil.addDiscussionMessage(
              groupId,
              className,
              classPK,
              permissionClassName,
              permissionClassPK,
              permissionOwnerId,
              threadId,
              parentMessageId,
              subject,
              body,
              serviceContext);

      return com.liferay.portlet.messageboards.model.MBMessageSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
예제 #3
0
  public static com.liferay.portlet.messageboards.model.MBMessageSoap getMessage(long messageId)
      throws RemoteException {
    try {
      com.liferay.portlet.messageboards.model.MBMessage returnValue =
          MBMessageServiceUtil.getMessage(messageId);

      return com.liferay.portlet.messageboards.model.MBMessageSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
예제 #4
0
  public static com.liferay.portlet.messageboards.model.MBMessageSoap addMessage(
      long groupId,
      long categoryId,
      long threadId,
      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.service.ServiceContext serviceContext)
      throws RemoteException {
    try {
      com.liferay.portlet.messageboards.model.MBMessage returnValue =
          MBMessageServiceUtil.addMessage(
              groupId,
              categoryId,
              threadId,
              parentMessageId,
              subject,
              body,
              format,
              inputStreamOVPs,
              anonymous,
              priority,
              allowPingbacks,
              serviceContext);

      return com.liferay.portlet.messageboards.model.MBMessageSoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }