Package org.apache.cocoon.portal.tools

Examples of org.apache.cocoon.portal.tools.PortalToolCatalogue


            ProcessingException {
      this.xmlConsumer.startDocument();
      this.xmlConsumer.startElement("", CATALOGUE_TAG, CATALOGUE_TAG, new AttributesImpl());
            List cats = ptm.getI18n();
            for(Iterator it = cats.iterator(); it.hasNext();) {
                PortalToolCatalogue ptc = (PortalToolCatalogue) it.next();
                try {
                    Source cat;
                  cat = resolver.resolveURI(ptc.getLocation() + ptc.getName() + lang);
                  IncludeXMLConsumer ixc = new IncludeXMLConsumer(this.xmlConsumer);
                  ixc.setIgnoreRootElement(true);
                  this.parser.parse(new InputSource(cat.getInputStream()),  ixc);
                } catch (MalformedURLException e) {
                  // ignore
View Full Code Here


        PortalToolManager ptm = null;
        try {
            ptm = (PortalToolManager) this.manager.lookup(PortalToolManager.ROLE);
            List i18nc = ptm.getI18n();
            for(Iterator it = i18nc.iterator(); it.hasNext();) {
                PortalToolCatalogue ptc = (PortalToolCatalogue) it.next();
                DefaultConfiguration catConf = new DefaultConfiguration("catalogue");
              catConf.setAttribute("id", ptc.getId());
              catConf.setAttribute("name", ptc.getName());
                catConf.setAttribute("location", ptc.getLocation());
                defconf.addChild(catConf);
            }
            super.configure(root);
        } catch (ServiceException e) {
           e.printStackTrace();
View Full Code Here

    throws IOException, SAXException, ProcessingException {
      this.xmlConsumer.startDocument();
      this.xmlConsumer.startElement("", CATALOGUE_TAG, CATALOGUE_TAG, XMLUtils.EMPTY_ATTRIBUTES);
            List cats = ptm.getI18n();
            for(Iterator it = cats.iterator(); it.hasNext();) {
                PortalToolCatalogue ptc = (PortalToolCatalogue) it.next();
                try {
                    Source cat;
                  cat = resolver.resolveURI(ptc.getLocation() + ptc.getName() + lang);
                  IncludeXMLConsumer ixc = new IncludeXMLConsumer(this.xmlConsumer);
                  ixc.setIgnoreRootElement(true);
                  this.parser.parse(new InputSource(cat.getInputStream()),  ixc);
                } catch (MalformedURLException e) {
                  // ignore
View Full Code Here

    throws IOException, SAXException, ProcessingException {
      this.xmlConsumer.startDocument();
      this.xmlConsumer.startElement("", CATALOGUE_TAG, CATALOGUE_TAG, XMLUtils.EMPTY_ATTRIBUTES);
            List cats = ptm.getI18n();
            for(Iterator it = cats.iterator(); it.hasNext();) {
                PortalToolCatalogue ptc = (PortalToolCatalogue) it.next();
                try {
                    Source cat;
                  cat = resolver.resolveURI(ptc.getLocation() + ptc.getName() + lang);
                  IncludeXMLConsumer ixc = new IncludeXMLConsumer(this.xmlConsumer);
                  ixc.setIgnoreRootElement(true);
                  this.parser.parse(new InputSource(cat.getInputStream()),  ixc);
                } catch (MalformedURLException e) {
                  // ignore
View Full Code Here

        PortalToolManager ptm = null;
        try {
            ptm = (PortalToolManager) this.manager.lookup(PortalToolManager.ROLE);
            List i18nc = ptm.getI18n();
            for(Iterator it = i18nc.iterator(); it.hasNext();) {
                PortalToolCatalogue ptc = (PortalToolCatalogue) it.next();
                DefaultConfiguration catConf = new DefaultConfiguration("catalogue");
              catConf.setAttribute("id", ptc.getId());
              catConf.setAttribute("name", ptc.getName());
                catConf.setAttribute("location", ptc.getLocation());
                defconf.addChild(catConf);
            }
            super.configure(root);
        } catch (ServiceException e) {
           e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.apache.cocoon.portal.tools.PortalToolCatalogue

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.