Package com.liferay.portal.kernel.xml

Examples of com.liferay.portal.kernel.xml.Element


        bundle.getResource("/WEB-INF/liferay-plugin-package.xml"));

      if (pluginPackageXml != null) {
        Document document = SAXReaderUtil.read(pluginPackageXml);

        Element rootElement = document.getRootElement();

        deploymentContext = GetterUtil.getString(
          rootElement.elementText("recommended-deployment-context"));
      }
      else {
        String pluginPackageProperties = HttpUtil.URLtoString(
          bundle.getResource(
            "/WEB-INF/liferay-plugin-package.properties"));
View Full Code Here


    String xml = new String(FileUtil.getBytes(inputStream));

    Document document = SAXReaderUtil.read(xml);

    Element rootElement = document.getRootElement();

    List<Element> batchElements = rootElement.elements("batch");

    for (Element batchElement : batchElements) {
      String testSQL = batchElement.elementText("test-sql");

      int count = getCount(testSQL);
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

    long groupId = site.getGroupId();
    addAllUsersToSite(companyId, groupId);

    URL configFileURL = getClass().getClassLoader().getResource("pluto-portal-driver-config.xml");
    Document document = SAXReaderUtil.read(configFileURL);
    Element rootElement = document.getRootElement();
    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();
      String liferayPortletName = portletName.replaceAll(StringPool.DASH, StringPool.BLANK);
      String liferayPortletId = liferayPortletName + "_WAR_bridgetckmainportlet";
      PortalPage portalPage = new PortalPage(pageName, liferayPortletId);
View Full Code Here

TOP

Related Classes of com.liferay.portal.kernel.xml.Element

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.