Examples of checkAccess()


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

            {
                throw new IllegalArgumentException("Remove fragmentId and page not consistent");               
            }

            // check for edit permission
            fragment.checkAccess(JetspeedActions.EDIT);
           
            // remove fragment and update in page manager
            boolean update = (pageOrTemplate.removeFragmentById(pageFragmentId) != null);
            if (update)
            {
View Full Code Here

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

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

                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

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

            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

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

            // 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

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

            }
            BasePageElement page = (BasePageElement)pageOrTemplate;
            BaseConcretePageElement concretePage = ((page instanceof BaseConcretePageElement) ? (BaseConcretePageElement)page : null);
           
            // check for edit permission
            page.checkAccess(JetspeedActions.EDIT);           

            // update default decorator and page in page manager
            boolean update = false;
            decoratorName = (!Utils.isNull(decoratorName) ? decoratorName : null);
            if (((decoratorName != null) && !decoratorName.equals(page.getDefaultDecorator(fragmentType)) ||
View Full Code Here

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

       
        try
        {
            RequestContext requestContext = (RequestContext) request.getAttribute(RequestContext.REQUEST_PORTALENV);
            ContentPage contentPage = requestContext.getPage();
            contentPage.checkAccess(JetspeedActions.EDIT);
            hasEditAccess = true;
        }
        catch(Exception ignore)
        {
        }
View Full Code Here

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

    boolean hasEditAccess = false;

    try {
      RequestContext requestContext = (RequestContext) request.getAttribute(RequestContext.REQUEST_PORTALENV);
      ContentPage contentPage = requestContext.getPage();
      contentPage.checkAccess(JetspeedActions.EDIT);
      hasEditAccess = true;
    } catch (Exception ignore) {
    }

    request.setAttribute("editAccess", hasEditAccess ? Boolean.TRUE : Boolean.FALSE);
View Full Code Here

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

                throw new IllegalArgumentException("Content only supported on dynamic pages.");
            }
            DynamicPage dynamicPage = (DynamicPage)pageOrTemplate;
           
            // check for edit permission
            dynamicPage.checkAccess(JetspeedActions.EDIT);           

            // update default decorator and page in page manager
            boolean update = false;
            if (!Utils.isNull(contentType) && !contentType.equals(dynamicPage.getContentType()))
            {
View Full Code Here

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

            {
                throw new IllegalArgumentException("New fragment cannot be added to non-layout page root fragment");               
            }
           
            // check for edit permission
            fragment.checkAccess(JetspeedActions.EDIT);
           
            // create fragment and add to layout root fragment
            Fragment newFragment = pageManager.newFragment();
            newFragment.setType(contentFragment.getType());
            newFragment.setName(contentFragment.getName());
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.