Package org.eurekastreams.server.persistence.mappers.requests

Examples of org.eurekastreams.server.persistence.mappers.requests.UpdateGadgetsWithNewTabLayoutRequest


        tabMapper.flush();

        // Call mapper to update gadgets for a shrinking layout.
        if (oldTabLayout.getNumberOfZones() > currentRequest.getLayout().getNumberOfZones())
        {
            updateMapper.execute(new UpdateGadgetsWithNewTabLayoutRequest(tab.getTemplate().getId(), currentRequest
                    .getLayout()));
        }

        // Need to retrieve the updated tab and touch the gadgets to return to the caller.
        Tab updatedTab = tabMapper.findById(currentRequest.getTabId());
View Full Code Here


        assertEquals(1, fordsThirdTab.getGadgets().get(3).getZoneNumber());
        assertEquals(2, fordsThirdTab.getGadgets().get(4).getZoneNumber());
        assertEquals(2, fordsThirdTab.getGadgets().get(5).getZoneNumber());
        assertEquals(2, fordsThirdTab.getGadgets().get(6).getZoneNumber());

        UpdateGadgetsWithNewTabLayoutRequest request = new UpdateGadgetsWithNewTabLayoutRequest(fordsThirdTab
                .getTemplate().getId(), Layout.TWOCOLUMN);
        sut.execute(request);

        getEntityManager().clear();
View Full Code Here

        //down to an empty column.
        jpaTabMapper.deleteGadget(fordsThirdTab.getGadgets().get(3));

        getEntityManager().clear();

        UpdateGadgetsWithNewTabLayoutRequest request = new UpdateGadgetsWithNewTabLayoutRequest(fordsThirdTab
                .getTemplate().getId(), Layout.TWOCOLUMN);
        sut.execute(request);

        getEntityManager().clear();
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.persistence.mappers.requests.UpdateGadgetsWithNewTabLayoutRequest

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.