public static java.lang.String getAutoDeployDirectory(HttpPrincipal httpPrincipal)
      throws com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(
              PortalServiceUtil.class.getName(),
              "getAutoDeployDirectory",
              _getAutoDeployDirectoryParameterTypes0);

      MethodHandler methodHandler = new MethodHandler(methodKey);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
          throw (com.liferay.portal.kernel.exception.SystemException) 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;
    }
  }
  public static int getThreadMessagesCount(HttpPrincipal httpPrincipal, long mbThreadId)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              UserThreadServiceUtil.class,
              "getThreadMessagesCount",
              _getThreadMessagesCountParameterTypes2);

      MethodHandler methodHandler = new MethodHandler(methodKey, mbThreadId);

      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;
    }
  }
  public static com.liferay.portlet.messageboards.model.MBMessage getLastThreadMessage(
      HttpPrincipal httpPrincipal, long mbThreadId)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              UserThreadServiceUtil.class,
              "getLastThreadMessage",
              _getLastThreadMessageParameterTypes0);

      MethodHandler methodHandler = new MethodHandler(methodKey, mbThreadId);

      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.portlet.messageboards.model.MBMessage) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
  public static void unsubscribe(HttpPrincipal httpPrincipal, long groupId, long folderId)
      throws com.liferay.portal.kernel.exception.PortalException,
          com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(
              JournalFolderServiceUtil.class, "unsubscribe", _unsubscribeParameterTypes25);

      MethodHandler methodHandler = new MethodHandler(methodKey, groupId, folderId);

      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;
        }

        if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
          throw (com.liferay.portal.kernel.exception.SystemException) e;
        }

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

      throw se;
    }
  }
  public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
      HttpPrincipal httpPrincipal,
      long companyId,
      java.lang.Boolean active,
      com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype>
          obc)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(LayoutSetPrototypeServiceUtil.class, "search", _searchParameterTypes4);

      MethodHandler methodHandler = new MethodHandler(methodKey, companyId, active, obc);

      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.model.LayoutSetPrototype>) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
  public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
      HttpPrincipal httpPrincipal,
      long groupId,
      long parentFolderId,
      int status,
      int start,
      int end)
      throws com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(JournalFolderServiceUtil.class, "getFolders", _getFoldersParameterTypes9);

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

      Object returnObj = null;

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

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

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

      throw se;
    }
  }
  public static void getSubfolderIds(
      HttpPrincipal httpPrincipal,
      java.util.List<java.lang.Long> folderIds,
      long groupId,
      long folderId)
      throws com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(
              JournalFolderServiceUtil.class, "getSubfolderIds", _getSubfolderIdsParameterTypes17);

      MethodHandler methodHandler = new MethodHandler(methodKey, folderIds, groupId, folderId);

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

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

      throw se;
    }
  }
  public static com.liferay.portlet.dynamicdatalists.model.DDLRecord getRecord(
      HttpPrincipal httpPrincipal, long recordId)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(DDLRecordServiceUtil.class, "getRecord", _getRecordParameterTypes5);

      MethodHandler methodHandler = new MethodHandler(methodKey, recordId);

      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.portlet.dynamicdatalists.model.DDLRecord) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
  public static void revertRecordVersion(
      HttpPrincipal httpPrincipal,
      long recordId,
      java.lang.String version,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              DDLRecordServiceUtil.class,
              "revertRecordVersion",
              _revertRecordVersionParameterTypes7);

      MethodHandler methodHandler = new MethodHandler(methodKey, recordId, version, serviceContext);

      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;
    }
  }
Beispiel #10
0
  public static int searchCount(
      HttpPrincipal httpPrincipal,
      long companyId,
      long groupId,
      java.lang.String name,
      java.lang.String description,
      int scope,
      boolean andOperator)
      throws com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(DDLRecordSetServiceUtil.class, "searchCount", _searchCountParameterTypes6);

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

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
          throw (com.liferay.portal.kernel.exception.SystemException) 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;
    }
  }
Beispiel #11
0
  public static void deleteRecordSet(HttpPrincipal httpPrincipal, long recordSetId)
      throws com.liferay.portal.kernel.exception.PortalException,
          com.liferay.portal.kernel.exception.SystemException {
    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;
        }

        if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
          throw (com.liferay.portal.kernel.exception.SystemException) e;
        }

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

      throw se;
    }
  }
Beispiel #12
0
  public static void deleteFolder(HttpPrincipal httpPrincipal, long folderId)
      throws com.liferay.portal.kernel.exception.PortalException,
          com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(
              BookmarksFolderServiceUtil.class.getName(),
              "deleteFolder",
              _deleteFolderParameterTypes1);

      MethodHandler methodHandler = new MethodHandler(methodKey, folderId);

      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;
        }

        if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
          throw (com.liferay.portal.kernel.exception.SystemException) e;
        }

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

      throw se;
    }
  }
Beispiel #13
0
  public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
      HttpPrincipal httpPrincipal, long groupId)
      throws com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(
              BookmarksFolderServiceUtil.class.getName(), "getFolders", _getFoldersParameterTypes3);

      MethodHandler methodHandler = new MethodHandler(methodKey, groupId);

      Object returnObj = null;

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

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

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

      throw se;
    }
  }
  public static com.liferay.dynamic.data.lists.model.DDLRecord deleteRecordLocale(
      HttpPrincipal httpPrincipal,
      long recordId,
      java.util.Locale locale,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              DDLRecordServiceUtil.class, "deleteRecordLocale", _deleteRecordLocaleParameterTypes4);

      MethodHandler methodHandler = new MethodHandler(methodKey, recordId, locale, 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.DDLRecord) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
  public static void deleteFolder(
      HttpPrincipal httpPrincipal, long folderId, boolean includeTrashedEntries)
      throws com.liferay.portal.kernel.exception.PortalException,
          com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(
              JournalFolderServiceUtil.class, "deleteFolder", _deleteFolderParameterTypes2);

      MethodHandler methodHandler = new MethodHandler(methodKey, folderId, includeTrashedEntries);

      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;
        }

        if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
          throw (com.liferay.portal.kernel.exception.SystemException) e;
        }

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

      throw se;
    }
  }
  public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
      HttpPrincipal httpPrincipal,
      long recordId,
      boolean majorVersion,
      int displayIndex,
      com.liferay.portlet.dynamicdatamapping.storage.DDMFormValues ddmFormValues,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(DDLRecordServiceUtil.class, "updateRecord", _updateRecordParameterTypes8);

      MethodHandler methodHandler =
          new MethodHandler(
              methodKey, recordId, majorVersion, displayIndex, ddmFormValues, 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.portlet.dynamicdatalists.model.DDLRecord) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
  public static com.liferay.portlet.journal.model.JournalFolder getFolder(
      HttpPrincipal httpPrincipal, long folderId)
      throws com.liferay.portal.kernel.exception.PortalException,
          com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(JournalFolderServiceUtil.class, "getFolder", _getFolderParameterTypes3);

      MethodHandler methodHandler = new MethodHandler(methodKey, folderId);

      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 com.liferay.portal.kernel.exception.SystemException) {
          throw (com.liferay.portal.kernel.exception.SystemException) e;
        }

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

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

      throw se;
    }
  }
  public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateRecord(
      HttpPrincipal httpPrincipal,
      long recordId,
      int displayIndex,
      java.util.Map<java.lang.String, java.io.Serializable> fieldsMap,
      boolean mergeFields,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(DDLRecordServiceUtil.class, "updateRecord", _updateRecordParameterTypes10);

      MethodHandler methodHandler =
          new MethodHandler(
              methodKey, recordId, displayIndex, fieldsMap, mergeFields, 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.portlet.dynamicdatalists.model.DDLRecord) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
  public static int getFoldersCount(
      HttpPrincipal httpPrincipal, long groupId, long parentFolderId, int status)
      throws com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(
              JournalFolderServiceUtil.class, "getFoldersCount", _getFoldersCountParameterTypes16);

      MethodHandler methodHandler = new MethodHandler(methodKey, groupId, parentFolderId, status);

      Object returnObj = null;

      try {
        returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
      } catch (Exception e) {
        if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
          throw (com.liferay.portal.kernel.exception.SystemException) 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;
    }
  }
  public static com.liferay.portlet.dynamicdatalists.model.DDLRecord addRecord(
      HttpPrincipal httpPrincipal,
      long groupId,
      long recordSetId,
      int displayIndex,
      com.liferay.portlet.dynamicdatamapping.storage.Fields fields,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(DDLRecordServiceUtil.class, "addRecord", _addRecordParameterTypes1);

      MethodHandler methodHandler =
          new MethodHandler(methodKey, groupId, recordSetId, displayIndex, fields, 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.portlet.dynamicdatalists.model.DDLRecord) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
  public static java.util.List<java.lang.Long> getSubfolderIds(
      HttpPrincipal httpPrincipal, long groupId, long folderId, boolean recurse)
      throws com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(
              JournalFolderServiceUtil.class, "getSubfolderIds", _getSubfolderIdsParameterTypes19);

      MethodHandler methodHandler = new MethodHandler(methodKey, groupId, folderId, recurse);

      Object returnObj = null;

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

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

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

      throw se;
    }
  }
  public static com.liferay.portlet.ratings.model.RatingsEntry updateEntry(
      HttpPrincipal httpPrincipal, java.lang.String className, long classPK, double score)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(RatingsEntryServiceUtil.class, "updateEntry", _updateEntryParameterTypes1);

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

      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.portlet.ratings.model.RatingsEntry) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
  public static void deleteLayoutSetPrototype(
      HttpPrincipal httpPrincipal, long layoutSetPrototypeId)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              LayoutSetPrototypeServiceUtil.class,
              "deleteLayoutSetPrototype",
              _deleteLayoutSetPrototypeParameterTypes2);

      MethodHandler methodHandler = new MethodHandler(methodKey, layoutSetPrototypeId);

      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;
    }
  }
  public static com.liferay.portal.model.UserGroup getUserGroup(
      HttpPrincipal httpPrincipal, java.lang.String name)
      throws com.liferay.portal.kernel.exception.PortalException,
          com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(
              UserGroupServiceUtil.class.getName(), "getUserGroup", _getUserGroupParameterTypes5);

      MethodHandler methodHandler = new MethodHandler(methodKey, name);

      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 com.liferay.portal.kernel.exception.SystemException) {
          throw (com.liferay.portal.kernel.exception.SystemException) e;
        }

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

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

      throw se;
    }
  }
  public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
      HttpPrincipal httpPrincipal, long layoutSetPrototypeId, java.lang.String settings)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              LayoutSetPrototypeServiceUtil.class,
              "updateLayoutSetPrototype",
              _updateLayoutSetPrototypeParameterTypes7);

      MethodHandler methodHandler = new MethodHandler(methodKey, layoutSetPrototypeId, settings);

      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.model.LayoutSetPrototype) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
  public static java.util.List<com.liferay.portal.model.UserGroup> getUserUserGroups(
      HttpPrincipal httpPrincipal, long userId)
      throws com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(
              UserGroupServiceUtil.class.getName(),
              "getUserUserGroups",
              _getUserUserGroupsParameterTypes6);

      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.SystemException) {
          throw (com.liferay.portal.kernel.exception.SystemException) e;
        }

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

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

      throw se;
    }
  }
  public static java.util.List<com.liferay.privatemessaging.model.UserThread> getUserUserThreads(
      HttpPrincipal httpPrincipal, boolean deleted)
      throws com.liferay.portal.kernel.security.auth.PrincipalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              UserThreadServiceUtil.class,
              "getUserUserThreads",
              _getUserUserThreadsParameterTypes3);

      MethodHandler methodHandler = new MethodHandler(methodKey, deleted);

      Object returnObj = null;

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

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

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

      throw se;
    }
  }
  public static void addTeamUserGroups(
      HttpPrincipal httpPrincipal, long teamId, long[] userGroupIds)
      throws com.liferay.portal.kernel.exception.PortalException,
          com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(
              UserGroupServiceUtil.class.getName(),
              "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;
        }

        if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
          throw (com.liferay.portal.kernel.exception.SystemException) e;
        }

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

      throw se;
    }
  }
  public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> getThreadMessages(
      HttpPrincipal httpPrincipal, long mbThreadId, int start, int end, boolean ascending)
      throws com.liferay.portal.kernel.exception.PortalException {
    try {
      MethodKey methodKey =
          new MethodKey(
              UserThreadServiceUtil.class, "getThreadMessages", _getThreadMessagesParameterTypes1);

      MethodHandler methodHandler = new MethodHandler(methodKey, mbThreadId, start, end, ascending);

      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.portlet.messageboards.model.MBMessage>) returnObj;
    } catch (com.liferay.portal.kernel.exception.SystemException se) {
      _log.error(se, se);

      throw se;
    }
  }
  public static void testCounterRollback(HttpPrincipal httpPrincipal)
      throws com.liferay.portal.kernel.exception.SystemException {
    try {
      MethodKey methodKey =
          new MethodKey(
              PortalServiceUtil.class.getName(),
              "testCounterRollback",
              _testCounterRollbackParameterTypes5);

      MethodHandler methodHandler = new MethodHandler(methodKey);

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

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

      throw se;
    }
  }