예제 #1
0
  /**
   * Returns the guest or current user's layout set group, organization groups, inherited
   * organization groups, and site groups.
   *
   * @return the user's layout set group, organization groups, and inherited organization groups,
   *     and site groups
   * @throws PortalException if a portal exception occurred
   * @throws SystemException if a system exception occurred
   */
  public static com.liferay.portal.model.GroupSoap[] getUserSites() throws RemoteException {
    try {
      java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getUserSites();

      return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
  public static com.liferay.portal.model.GroupSoap[] getUserPlaces(
      long userId, java.lang.String[] classNames, int max) throws RemoteException {
    try {
      java.util.List<com.liferay.portal.model.Group> returnValue =
          GroupServiceUtil.getUserPlaces(userId, classNames, max);

      return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
  public static com.liferay.portal.model.GroupSoap[] getUserOrganizationsGroups(
      long userId, int start, int end) throws RemoteException {
    try {
      java.util.List<com.liferay.portal.model.Group> returnValue =
          GroupServiceUtil.getUserOrganizationsGroups(userId, start, end);

      return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
  public static com.liferay.portal.model.GroupSoap[] getOrganizationsGroups(
      com.liferay.portal.model.OrganizationSoap[] organizations) throws RemoteException {
    try {
      java.util.List<com.liferay.portal.model.Group> returnValue =
          GroupServiceUtil.getOrganizationsGroups(
              com.liferay.portal.model.impl.OrganizationModelImpl.toModels(organizations));

      return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
  public static com.liferay.portal.model.GroupSoap[] getManageableSites(
      java.util.Collection<com.liferay.portal.model.Portlet> portlets, int max)
      throws RemoteException {
    try {
      java.util.List<com.liferay.portal.model.Group> returnValue =
          GroupServiceUtil.getManageableSites(portlets, max);

      return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
  public static com.liferay.portal.model.GroupSoap[] search(
      long companyId,
      java.lang.String name,
      java.lang.String description,
      java.lang.String[] params,
      int start,
      int end)
      throws RemoteException {
    try {
      java.util.List<com.liferay.portal.model.Group> returnValue =
          GroupServiceUtil.search(companyId, name, description, params, start, end);

      return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

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