Package org.apache.jetspeed.om.page

Examples of org.apache.jetspeed.om.page.BaseFragmentsElement.checkAccess()


            {
                throw new PageNotFoundException("Fragments/page element " + path + " not found.");
            }

            // check for view access on page element
            fragmentsElement.checkAccess(JetspeedActions.VIEW);

            return fragmentsElement;
        }
        catch (PageNotFoundException pnfe)
        {
View Full Code Here


                throw new IllegalArgumentException("Move to fragmentId and page not consistent");
            }
            Fragment toFragment = (Fragment)toFragmentElement;

            // check for edit permission
            pageOrTemplate.checkAccess(JetspeedActions.EDIT);

            // move page fragment and update page in page manager
            fragment = fromFragment.removeFragmentById(fragment.getId());
            toFragment.getFragments().add(fragment);
            updatePage(pageOrTemplate);
View Full Code Here

            BaseFragmentsElement pageOrTemplates = getPageOrTemplate(contentPageImpl.getPageOrTemplate().getPath());
            String documentName = pageOrTemplates.getName();
            Folder documentOrderingFolder = (Folder)pageOrTemplates.getParent();

            // check for edit permission
            pageOrTemplates.checkAccess(JetspeedActions.EDIT);

            // remove in page manager
            removePage(pageOrTemplates);

            // check for ordering folder edit permission
View Full Code Here

            // retrieve current page or template from page manager
            ContentPageImpl contentPageImpl = (ContentPageImpl)contentPage;
            BaseFragmentsElement pageOrTemplate = getPageOrTemplate(contentPageImpl.getPageOrTemplate().getPath());

            // check for edit permission
            pageOrTemplate.checkAccess(JetspeedActions.EDIT);           

            // update titles and page in page manager
            boolean update = false;
            if (!Utils.isNull(title))
            {
View Full Code Here

            {
                throw new PageNotFoundException("Fragments/page element " + path + " not found.");
            }

            // check for view access on page element
            fragmentsElement.checkAccess(JetspeedActions.VIEW);

            return fragmentsElement;
        }
        catch (PageNotFoundException pnfe)
        {
View Full Code Here

                throw new IllegalArgumentException("Move to fragmentId and page not consistent");
            }
            Fragment toFragment = (Fragment)toFragmentElement;

            // check for edit permission
            pageOrTemplate.checkAccess(JetspeedActions.EDIT);

            // move page fragment and update page in page manager
            fragment = fromFragment.removeFragmentById(fragment.getId());
            toFragment.getFragments().add(fragment);
            updatePage(pageOrTemplate);
View Full Code Here

            BaseFragmentsElement pageOrTemplates = getPageOrTemplate(contentPageImpl.getPageOrTemplate().getPath());
            String documentName = pageOrTemplates.getName();
            Folder documentOrderingFolder = (Folder)pageOrTemplates.getParent();

            // check for edit permission
            pageOrTemplates.checkAccess(JetspeedActions.EDIT);

            // remove in page manager
            removePage(pageOrTemplates);

            // check for ordering folder edit permission
View Full Code Here

            // retrieve current page or template from page manager
            ContentPageImpl contentPageImpl = (ContentPageImpl)contentPage;
            BaseFragmentsElement pageOrTemplate = getPageOrTemplate(contentPageImpl.getPageOrTemplate().getPath());

            // check for edit permission
            pageOrTemplate.checkAccess(JetspeedActions.EDIT);           

            // update titles and page in page manager
            boolean update = false;
            if (!Utils.isNull(title))
            {
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.