Package org.jboss.arquillian.portal.impl

Examples of org.jboss.arquillian.portal.impl.PortletArchiveMetadata


        try {
            portletXml = Descriptors.importAs(PortletDescriptor.class).fromStream(
                    applicationArchive.get("WEB-INF/portlet.xml").getAsset().openStream());

            if (null != portletXml) {
                PortletArchiveMetadata metadata = new PortletArchiveMetadata();
                List<PortletType<PortletDescriptor>> portlets = portletXml.getAllPortlet();
                for (PortletType<PortletDescriptor> portlet : portlets) {
                    metadata.addPortletName(portlet.getPortletName());
                }
                portletMetadata.set(metadata);
            }
            return true;
        } catch (Exception e) {
View Full Code Here


                try {
                    portletXml = Descriptors.importAs(PortletDescriptor.class).fromStream(
                            applicationArchive.get("WEB-INF/portlet.xml").getAsset().openStream());

                    if (null != portletXml) {
                        PortletArchiveMetadata metadata = new PortletArchiveMetadata();
                        List<PortletType<PortletDescriptor>> portlets = portletXml.getAllPortlet();
                        for (PortletType<PortletDescriptor> portlet : portlets) {
                            metadata.addPortletName(portlet.getPortletName());
                        }
                        portletMetadata.set(metadata);
                    }
                    break;
                } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.portal.impl.PortletArchiveMetadata

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.