Package com.liferay.portal.kernel.xml

Examples of com.liferay.portal.kernel.xml.Element.attribute()


        Element orderElement = entityElement.element("order");

        if (orderElement != null) {
            boolean asc = true;

            if ((orderElement.attribute("by") != null) &&
                    orderElement.attributeValue("by").equals("desc")) {

                asc = false;
            }
View Full Code Here


  protected boolean isJournalStructureXSD(String xsd) throws Exception {
    Document document = SAXReaderUtil.read(xsd);

    Element rootElement = document.getRootElement();

    Attribute availableLocalesAttribute = rootElement.attribute(
      "available-locales");

    if (availableLocalesAttribute == null) {
      return true;
    }
View Full Code Here

  protected boolean isJournalStructureXSD(String xsd) throws Exception {
    Document document = SAXReaderUtil.read(xsd);

    Element rootElement = document.getRootElement();

    Attribute availableLocalesAttribute = rootElement.attribute(
      "available-locales");

    if (availableLocalesAttribute == null) {
      return true;
    }
View Full Code Here

    Element renderConfigElement = rootElement.element("render-config");
    Iterator<Element> pageElementIterator = renderConfigElement.elementIterator("page");

    while (pageElementIterator.hasNext()) {
      Element pageElement = pageElementIterator.next();
      Attribute nameAttribute = pageElement.attribute("name");
      String pageName = nameAttribute.getValue();
      Element portletElement = pageElement.element("portlet");
      nameAttribute = portletElement.attribute("name");

      String portletName = nameAttribute.getValue();
View Full Code Here

    while (pageElementIterator.hasNext()) {
      Element pageElement = pageElementIterator.next();
      Attribute nameAttribute = pageElement.attribute("name");
      String pageName = nameAttribute.getValue();
      Element portletElement = pageElement.element("portlet");
      nameAttribute = portletElement.attribute("name");

      String portletName = nameAttribute.getValue();
      String liferayPortletName = portletName.replaceAll(StringPool.DASH, StringPool.BLANK);
      String liferayPortletId = liferayPortletName + "_WAR_bridgetckmainportlet";
      PortalPage portalPage = new PortalPage(pageName, liferayPortletId);
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.