Package org.apache.rave.portal.model

Examples of org.apache.rave.portal.model.JpaWidget


    }


    @Test
    public void convertValid() {
        JpaWidget widget = new JpaWidget();
        widget.setEntityId(1L);
        PageTemplateWidget template = new PageTemplateWidgetImpl("1");
        template.setLocked(true);
        template.setHideChrome(true);
        template.setPageTemplateRegion(new PageTemplateRegionImpl("1"));
        template.setRenderSeq(1);
        template.setWidgetId(widget.getId());

        JpaPageTemplateWidget jpaTemplate = converter.convert(template);

        assertThat(jpaTemplate, is(not(sameInstance(template))));
        assertThat(jpaTemplate, is(instanceOf(JpaPageTemplateWidget.class)));
View Full Code Here


    public Class<Widget> getSourceType() {
        return Widget.class;
    }

    private JpaWidget createEntity(Widget source) {
        JpaWidget converted = null;
        if (source != null) {
            converted = new JpaWidget();
            updateProperties(source, converted);
        }
        return converted;
    }
View Full Code Here

    public Class<Widget> getSourceType() {
        return Widget.class;
    }

    private JpaWidget createEntity(Widget source) {
        JpaWidget converted = null;
        if (source != null) {
            converted = new JpaWidget();
            updateProperties(source, converted);
        }
        return converted;
    }
View Full Code Here

    public Class<Widget> getSourceType() {
        return Widget.class;
    }

    private JpaWidget createEntity(Widget source) {
        JpaWidget converted = null;
        if (source != null) {
            converted = new JpaWidget();
            updateProperties(source, converted);
        }
        return converted;
    }
View Full Code Here

        return expandProperties(manager.find(JpaWidget.class, Long.parseLong(id)));
    }

    @Override
    public Widget save(Widget item) {
        JpaWidget converted = converter.convert(item);
        converted.serializeData();
        return expandProperties(saveOrUpdate(item.getId(), manager, converted));
    }
View Full Code Here

    public Class<Widget> getSourceType() {
        return Widget.class;
    }

    private JpaWidget createEntity(Widget source) {
        JpaWidget converted = null;
        if (source != null) {
            converted = new JpaWidget();
            updateProperties(source, converted);
        }
        return converted;
    }
View Full Code Here

TOP

Related Classes of org.apache.rave.portal.model.JpaWidget

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.