Package org.jboss.shrinkwrap.descriptor.api.portletapp20

Examples of org.jboss.shrinkwrap.descriptor.api.portletapp20.PortletDescriptor.exportAsString()


                    .getOrCreatePortletInfo()
                        .title(name)
                        .up()
                    .up();

        this.setPortletXML(new StringAsset(desc.exportAsString()));
        return covarientReturn();
    }

    @Override
    public PortletArchive createSimplePortlet(Class<? extends Portlet> portletClass, String name, String title) {
View Full Code Here


                    .getOrCreatePortletInfo()
                        .title(title)
                        .up()
                    .up();

        this.setPortletXML(new StringAsset(desc.exportAsString()));
        return covarientReturn();
    }

    @Override
    public PortletArchive createSimplePortlet(Class<? extends Portlet> portletClass, String name, String title, String mimeType, PortletMode... modes) {
View Full Code Here

                    .getOrCreatePortletInfo()
                        .title(title)
                        .up()
                    .up();

        this.setPortletXML(new StringAsset(desc.exportAsString()));
        return covarientReturn();
    }

    @Override
    public PortletArchive createFacesPortlet(String name) {
View Full Code Here

                    .getOrCreatePortletInfo()
                        .title(name)
                        .up()
                    .up();

        this.setPortletXML(new StringAsset(desc.exportAsString()));
        return covarientReturn();
    }

    @Override
    public PortletArchive createFacesPortlet(String name, String title) {
View Full Code Here

                .getOrCreatePortletInfo()
                .title(title)
                .up()
                .up();

        this.setPortletXML(new StringAsset(desc.exportAsString()));
        return covarientReturn();
    }

    @Override
    public PortletArchive createFacesPortlet(String name, String title, String viewModeViewId) {
View Full Code Here

                    .getOrCreatePortletInfo()
                        .title(title)
                        .up()
                    .up();

        this.setPortletXML(new StringAsset(desc.exportAsString()));
        return covarientReturn();
    }

    @Override
    public PortletArchive createFacesPortlet(String name, String title, String viewModeViewId, String editModeViewId) {
View Full Code Here

                    .getOrCreatePortletInfo()
                        .title(title)
                        .up()
                    .up();

        this.setPortletXML(new StringAsset(desc.exportAsString()));
        return covarientReturn();
    }

    @Override
    public PortletArchive createFacesPortlet(String name, String title, String viewModeViewId, String editModeViewId, String helpModeViewId) {
View Full Code Here

                    .getOrCreatePortletInfo()
                        .title(title)
                        .up()
                    .up();

        this.setPortletXML(new StringAsset(desc.exportAsString()));
        return covarientReturn();
    }

    private String checkForLeadingSlash(String viewId) {
        return viewId.indexOf("/") != 0 ? "/" + viewId : viewId;
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.