Package com.liferay.portal.model

Examples of com.liferay.portal.model.Organization


      WebKeys.THEME_DISPLAY);

    Group group = GroupLocalServiceUtil.getGroup(
      themeDisplay.getScopeGroupId());

    Organization organization =
      OrganizationLocalServiceUtil.getOrganization(group.getClassPK());

    Role role = RoleLocalServiceUtil.getRole(
      themeDisplay.getCompanyId(), "Organization Administrator");

    LinkedHashMap<String, Object> userParams =
      new LinkedHashMap<String, Object>();

    userParams.put(
      "userGroupRole",
      new Long[] {new Long(group.getGroupId()),
      new Long(role.getRoleId())});

    List<User> users = UserLocalServiceUtil.search(
      themeDisplay.getCompanyId(), null, Boolean.TRUE, userParams,
      QueryUtil.ALL_POS, QueryUtil.ALL_POS, (OrderByComparator) null);

    for (User user : users) {
      SocialRequestLocalServiceUtil.addRequest(
        themeDisplay.getUserId(), 0, Organization.class.getName(),
        organization.getOrganizationId(), MembersRequestKeys.ADD_MEMBER,
        StringPool.BLANK, user.getUserId());
    }
  }
View Full Code Here


    if (className.equals(Group.class.getName())) {
      group = GroupLocalServiceUtil.getGroup(request.getClassPK());
    }
    else {
      Organization organization =
        OrganizationLocalServiceUtil.getOrganization(
          request.getClassPK());

      group = organization.getGroup();
    }

    // Title

    String title = StringPool.BLANK;
View Full Code Here

      link = sb.toString();
    }

    // Title

    Organization organization =
      OrganizationLocalServiceUtil.getOrganization(activity.getClassPK());

    Group group = organization.getGroup();

    String title = StringPool.BLANK;

    if (activityType == MembersActivityKeys.ADD_MEMBER) {
      StringBuilder sb = new StringBuilder();

      sb.append("<a href=\"");
      sb.append(link);
      sb.append("\">");
      sb.append(creatorUserName);
      sb.append("</a>");

      String creatorUserNameURL = sb.toString();

      sb = new StringBuilder();

      sb.append("<a href=\"");
      sb.append(themeDisplay.getPortalURL());
      sb.append(themeDisplay.getPathFriendlyURLPublic());
      sb.append(group.getFriendlyURL());
      sb.append("/profile\">");
      sb.append(HtmlUtil.escape(organization.getName()));
      sb.append("</a>");

      String organizationNameURL = sb.toString();

      title = themeDisplay.translate(
View Full Code Here

TOP

Related Classes of com.liferay.portal.model.Organization

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.