Package com.dotcms.repackage.org.dom4j

Examples of com.dotcms.repackage.org.dom4j.Element.elementText()


    Iterator itr1 = root.elements("user-attribute").iterator();

    while (itr1.hasNext()) {
      Element userAttribute = (Element)itr1.next();

      String name = userAttribute.elementText("name");

      userAttributes.add(name);
    }

    itr1 = root.elements("portlet").iterator();
View Full Code Here


    itr1 = root.elements("portlet").iterator();

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

      String portletId = portlet.elementText("portlet-name");
      if (servletContextName != null) {
        portletId =
          servletContextName + PortletConfigImpl.WAR_SEPARATOR +
          portletId;
      }
View Full Code Here

      if (servletContextName != null) {
        portletModel.setWARFile(true);
      }

      portletModel.setPortletClass(portlet.elementText("portlet-class"));

      Iterator itr2 = portlet.elements("init-param").iterator();

      while (itr2.hasNext()) {
        Element initParam = (Element)itr2.next();
View Full Code Here

      while (itr2.hasNext()) {
        Element initParam = (Element)itr2.next();

        portletModel.getInitParams().put(
          initParam.elementText("name"),
          initParam.elementText("value"));
      }

      Element expirationCache = portlet.element("expiration-cache");
      if (expirationCache != null) {
View Full Code Here

      while (itr2.hasNext()) {
        Element initParam = (Element)itr2.next();

        portletModel.getInitParams().put(
          initParam.elementText("name"),
          initParam.elementText("value"));
      }

      Element expirationCache = portlet.element("expiration-cache");
      if (expirationCache != null) {
        portletModel.setExpCache(new Integer(GetterUtil.getInteger(
View Full Code Here

      itr2 = portlet.elements("supports").iterator();

      while (itr2.hasNext()) {
        Element supports = (Element)itr2.next();

        String mimeType = supports.elementText("mime-type");

        Iterator itr3 = supports.elements("portlet-mode").iterator();

        while (itr3.hasNext()) {
          Element portletMode = (Element)itr3.next();
View Full Code Here

      String portletInfoTitle = null;
      String portletInfoShortTitle = null;
      String portletInfoKeyWords = null;

      if (portletInfo != null) {
        portletInfoTitle = portletInfo.elementText("title");
        portletInfoShortTitle = portletInfo.elementText("short-title");
        portletInfoKeyWords = portletInfo.elementText("keywords");
      }

      portletModel.setPortletInfo(new PortletInfo(
View Full Code Here

      String portletInfoShortTitle = null;
      String portletInfoKeyWords = null;

      if (portletInfo != null) {
        portletInfoTitle = portletInfo.elementText("title");
        portletInfoShortTitle = portletInfo.elementText("short-title");
        portletInfoKeyWords = portletInfo.elementText("keywords");
      }

      portletModel.setPortletInfo(new PortletInfo(
        portletInfoTitle, portletInfoShortTitle, portletInfoKeyWords));
View Full Code Here

      String portletInfoKeyWords = null;

      if (portletInfo != null) {
        portletInfoTitle = portletInfo.elementText("title");
        portletInfoShortTitle = portletInfo.elementText("short-title");
        portletInfoKeyWords = portletInfo.elementText("keywords");
      }

      portletModel.setPortletInfo(new PortletInfo(
        portletInfoTitle, portletInfoShortTitle, portletInfoKeyWords));
View Full Code Here

      itr2 = portlet.elements("security-role-ref").iterator();

      while (itr2.hasNext()) {
        Element role = (Element)itr2.next();

        roles.add(role.elementText("role-name"));
      }

      portletModel.setRolesArray((String[])roles.toArray(new String[0]));

      portletModel.getUserAttributes().addAll(userAttributes);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.