Package com.liferay.util

Examples of com.liferay.util.KeyValuePair


        user.setPasswordReset(true);

        UserUtil.update(user);
      }

      return new KeyValuePair(userId, password);
    }
    else {
      throw new PrincipalException();
    }
  }
View Full Code Here


        portletIds.add(portletId);

        String status = portlet.attributeValue("status");

        portlets.add(new KeyValuePair(portletId, status));
      }

      if (portlets.size() > 0) {
        categories.put(name, portlets);
      }
    }

    // Portlets that do not belong to any categories should default to the
    // Undefined category

    List undefinedPortlets = new ArrayList();

    itr1 = _getPortletsPool().values().iterator();

    while (itr1.hasNext()) {
      Portlet portlet = (Portlet)itr1.next();

      String portletId = portlet.getPortletId();

      if ((servletContextName != null) && (portlet.isWARFile()) &&
        (portletId.startsWith(servletContextName) &&
        (!portletIds.contains(portletId)))) {

        undefinedPortlets.add(new KeyValuePair(portletId, null));
      }
      else if ((servletContextName == null) && (!portlet.isWARFile()) &&
           (!portletIds.contains(portletId))) {

        undefinedPortlets.add(new KeyValuePair(portletId, null));
      }
    }

    if (undefinedPortlets.size() > 0) {
      categories.put("category.undefined", undefinedPortlets);
View Full Code Here

      if (Validator.isNotNull(autoUserId) &&
        Validator.isNotNull(autoPassword)) {

        Company company = PortalUtil.getCompany(req);

        KeyValuePair kvp = null;
       
        if (company.isAutoLogin()) {
          kvp = UserManagerUtil.decryptUserId(
            company.getCompanyId(), autoUserId, autoPassword);

          credentials = new String[3];

          credentials[0] = kvp.getKey();
          credentials[1] = kvp.getValue();
          credentials[2] = Boolean.FALSE.toString();
        }
      }

      return credentials;
View Full Code Here

          List oldKvps = (List)entry.getValue();

          Iterator itr2 = oldKvps.iterator();

          while (itr2.hasNext()) {
            KeyValuePair kvp = (KeyValuePair)itr2.next();

            String portletId = (String)kvp.getKey();

            if (portletIds.contains(portletId)) {
              itr2.remove();
            }
          }
View Full Code Here

TOP

Related Classes of com.liferay.util.KeyValuePair

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.