コード例 #1
0
  public static com.liferay.portal.model.GroupSoap getGroup(long groupId) throws RemoteException {
    try {
      com.liferay.portal.model.Group returnValue = GroupServiceUtil.getGroup(groupId);

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

      throw new RemoteException(e.getMessage());
    }
  }
コード例 #2
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());
    }
  }
コード例 #3
0
  public static com.liferay.portal.model.GroupSoap getGroup(long companyId, java.lang.String name)
      throws RemoteException {
    try {
      com.liferay.portal.model.Group returnValue = GroupServiceUtil.getGroup(companyId, name);

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

      throw new RemoteException(e.getMessage());
    }
  }
コード例 #4
0
  public static com.liferay.portal.model.GroupSoap updateGroup(
      long groupId, java.lang.String typeSettings) throws RemoteException {
    try {
      com.liferay.portal.model.Group returnValue =
          GroupServiceUtil.updateGroup(groupId, typeSettings);

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

      throw new RemoteException(e.getMessage());
    }
  }
コード例 #5
0
  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());
    }
  }
コード例 #6
0
  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());
    }
  }
コード例 #7
0
  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());
    }
  }
コード例 #8
0
  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());
    }
  }
コード例 #9
0
  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());
    }
  }
コード例 #10
0
  public static com.liferay.portal.model.GroupSoap addGroup(
      java.lang.String name,
      java.lang.String description,
      int type,
      java.lang.String friendlyURL,
      boolean site,
      boolean active,
      com.liferay.portal.service.ServiceContext serviceContext)
      throws RemoteException {
    try {
      com.liferay.portal.model.Group returnValue =
          GroupServiceUtil.addGroup(
              name, description, type, friendlyURL, site, active, serviceContext);

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

      throw new RemoteException(e.getMessage());
    }
  }
コード例 #11
0
  /**
   * Converts the soap model instance into a normal model instance.
   *
   * @param soapModel the soap model instance to convert
   * @return the normal model instance
   */
  public static Group toModel(GroupSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    Group model = new GroupImpl();

    model.setUuid(soapModel.getUuid());
    model.setGroupId(soapModel.getGroupId());
    model.setCompanyId(soapModel.getCompanyId());
    model.setCreatorUserId(soapModel.getCreatorUserId());
    model.setClassNameId(soapModel.getClassNameId());
    model.setClassPK(soapModel.getClassPK());
    model.setParentGroupId(soapModel.getParentGroupId());
    model.setLiveGroupId(soapModel.getLiveGroupId());
    model.setTreePath(soapModel.getTreePath());
    model.setName(soapModel.getName());
    model.setDescription(soapModel.getDescription());
    model.setType(soapModel.getType());
    model.setTypeSettings(soapModel.getTypeSettings());
    model.setFriendlyURL(soapModel.getFriendlyURL());
    model.setSite(soapModel.getSite());
    model.setActive(soapModel.getActive());

    return model;
  }