Package org.apache.jetspeed.page.impl

Examples of org.apache.jetspeed.page.impl.DatabasePageManager


    {
        // get properties for this fragment from page manager
        // if fragment is not newly constructed
        if (getIdentity() != 0)
        {
            DatabasePageManager pageManager = getPageManager();
            if (pageManager != null)
            {
                FragmentPropertyList properties = pageManager.getFragmentPropertyList(this, fragmentProperties);
                fragmentProperties = null;
                return properties;
            }
        }
        // create transient properties list place holder
View Full Code Here


     */
    public void afterInsert(PersistenceBroker broker)
    {
        // notify page manager of fragment insert so that fragment
        // properties can be inserted as part of the insert operation
        DatabasePageManager pageManager = getPageManager();
        if (pageManager != null)
        {
            pageManager.updateFragmentPropertyList(this, PageManager.ALL_PROPERTY_SCOPE, fragmentProperties);
            fragmentProperties = null;
        }
    }
View Full Code Here

     */
    public void afterUpdate(PersistenceBroker broker)
    {
        // notify page manager of fragment update so that fragment
        // properties can be updated as part of the update operation
        DatabasePageManager pageManager = getPageManager();
        if (pageManager != null)
        {
            pageManager.updateFragmentPropertyList(this, PageManager.ALL_PROPERTY_SCOPE, fragmentProperties);
            fragmentProperties = null;
        }
    }
View Full Code Here

     */
    public void beforeDelete(PersistenceBroker broker)
    {
        // notify page manager of fragment delete so that fragment
        // properties can be removed as part of the remove operation
        DatabasePageManager pageManager = getPageManager();
        if (pageManager != null)
        {
            pageManager.removeFragmentPropertyList(this, fragmentProperties);
            fragmentProperties = null;
        }
    }
View Full Code Here

    }
   
   
    public void testBuildBasePage()
    {
        PageManager pm = new DatabasePageManager(persistenceStore, new JetspeedIdGenerator(10,"Page",""));
       
        Page page = pm.newPage();
        page.setTitle("TEST");

        Fragment frag = pm.newFragment();
        frag.setId("Frag1");
        frag.setType(Fragment.LAYOUT);

        page.setRootFragment(frag);
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.page.impl.DatabasePageManager

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.