Examples of checkAccess()


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

        {
            throw new PageNotFoundException("FragmentDefinition not found: " + name);
        }

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

        return fragmentDefinition;
    }

    /* (non-Javadoc)
 
View Full Code Here

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

                throw new IllegalArgumentException("Fragment reference required");               
            }
            FragmentReference fragmentReference = (FragmentReference)fragment;

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

            // update fragment reference in page manager
            boolean update = false;
            if (!refId.equals(fragmentReference.getRefId()))
            {
View Full Code Here

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

        }

        // check access
        if (checkAccess)
        {
            link.checkAccess(SecuredResource.VIEW_ACTION);
        }
        return link;
    }

    /*
 
View Full Code Here

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

            {
                throw new DocumentNotFoundException("Link " + path + " not found.");
            }

            // check for view access on link
            link.checkAccess(JetspeedActions.VIEW);

            return link;
        }
        catch (DocumentNotFoundException dnfe)
        {
View Full Code Here

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

        }

        // check access
        if (checkAccess)
        {
            page.checkAccess(SecuredResource.VIEW_ACTION);
        }
        return page;
    }

    /*
 
View Full Code Here

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

            {
                throw new DocumentNotFoundException("Document " + path + " not found.");
            }

            // check for view access on document
            document.checkAccess(JetspeedActions.VIEW);

            return document;
        }
        catch (DocumentNotFoundException dnfe)
        {
View Full Code Here

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

        {
            throw new PageNotFoundException("PageTemplate not found: " + name);
        }

        // check for view access on page template
        pageTemplate.checkAccess(JetspeedActions.VIEW);

        return pageTemplate;
    }
   
    /* (non-Javadoc)
 
View Full Code Here

Examples of org.apache.jetspeed.om.page.impl.BaseFragmentElementImpl.checkAccess()

            // update lists only if not global or all scope
            if ((scope != null) && !scope.equals(ALL_PROPERTY_SCOPE))
            {
                // check access
                boolean checkEditAccess = !scope.equals(USER_PROPERTY_SCOPE);
                baseFragmentElementImpl.checkAccess(checkEditAccess ? JetspeedActions.EDIT : JetspeedActions.VIEW);

                // update fragment properties
                updateFragmentPropertyList(baseFragmentElementImpl, scope, null);
            }
            else
View Full Code Here

Examples of org.apache.jetspeed.page.document.Node.checkAccess()

            {
                Node node = (Node)checkAccessIter.next();
                try
                {
                    // check access
                    node.checkAccess(JetspeedActions.VIEW);

                    // add to filteredNodes nodes if copying
                    if (filteredNodes != null)
                    {
                        // permitted, add to filteredNodes nodes
View Full Code Here

Examples of org.apache.jetspeed.page.document.impl.NodeImpl.checkAccess()

        // optimized retrieval from cache by path if available
        NodeImpl cachedNode = DatabasePageManagerCache.cacheLookup(path);
        if (fragmentsElementType.isInstance(cachedNode))
        {
            // check for view access on page element
            cachedNode.checkAccess(JetspeedActions.VIEW);

            return (BaseFragmentsElement)cachedNode;
        }

        // retrieve page element from database
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.