Examples of syncPageFragments()


Examples of org.apache.jetspeed.layout.PortletPlacementContext.syncPageFragments()

                success = false;
                resultMap.put( REASON, "Fragment not found" );
                return success;               
            }
            placement.remove(fragment);
            page = placement.syncPageFragments();
            page.removeFragment( fragment.getId() );

            // Build the results for the response
            resultMap.put( PORTLETID, portletId );           
            resultMap.put( STATUS, status );
View Full Code Here

Examples of org.apache.jetspeed.layout.impl.PortletPlacementContextImpl.syncPageFragments()

                layoutFragment = getParentFragment(contentPage.getNonTemplateRootFragment(), addedContentFragmentId);
            }
           
            PortletPlacementContext ppc = new PortletPlacementContextImpl(contentPage, portletRegistry, layoutFragment);
            // synchronize back to the page layout root fragment
            contentPage = ppc.syncPageFragments();
           
            return new ContentFragmentBean(contentFragment);
        }
        catch (Exception e)
        {
View Full Code Here

Examples of org.apache.jetspeed.layout.impl.PortletPlacementContextImpl.syncPageFragments()

        {
            pageLayoutComponent.removeFragment(contentPage, fragmentId);
           
            PortletPlacementContext ppc = new PortletPlacementContextImpl(contentPage, portletRegistry, layoutFragment);
            // synchronize back to the page layout root fragment
            contentPage = ppc.syncPageFragments();
        }
        catch (Exception e)
        {
            throw new WebApplicationException(e);
        }
View Full Code Here

Examples of org.apache.jetspeed.layout.impl.PortletPlacementContextImpl.syncPageFragments()

                    {
                        pageLayoutComponent.updatePosition(contentFragment, -1.0f, -1.0f, -1.0f, -1.0f, posHeight, PageLayoutComponent.USER_PROPERTY_SCOPE, null);
                    }
                   
                    // synchronize back to the page layout root fragment
                    contentPage = ppc.syncPageFragments(PageLayoutComponent.USER_PROPERTY_SCOPE, null);
                    if (attach)
                      pageLayoutComponent.updateStateMode(contentFragment, JetspeedActions.NORMAL, null, PageLayoutComponent.USER_PROPERTY_SCOPE, null);                   
                }
                catch (Exception e)
                {
View Full Code Here

Examples of org.apache.jetspeed.layout.impl.PortletPlacementContextImpl.syncPageFragments()

                    PortletPlacementContext ppc = new PortletPlacementContextImpl(contentPage, portletRegistry, layoutFragment);
                    int col = contentFragment.getLayoutColumn();
                    int row = ppc.getNumberRows((col <= 0) ? 0 : col - 1);
                    Coordinate coordinate = new CoordinateImpl(col, contentFragment.getLayoutRow(), col, row);
                    ppc.moveAbsolute(contentFragment, coordinate);
                    contentPage = ppc.syncPageFragments(PageLayoutComponent.USER_PROPERTY_SCOPE, null);
                }
            }
            catch (Exception e)
            {
                throw new WebApplicationException(e);
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.