Examples of FolderImpl


Examples of org.apache.jetspeed.om.folder.psml.FolderImpl

        // check for edit access
        link.checkAccess(JetspeedActions.EDIT);

        try
        {
            FolderImpl folder = getNodeFolder(link.getPath());

            // remove link
            handlerFactory.getDocumentHandler(Link.DOCUMENT_TYPE).removeDocument(link);
           
            // update folder
            ((NodeSetImpl)folder.getAllNodes()).remove(link);
           
            // notify page manager listeners
            notifyRemovedNode(link);
        }
        catch (FolderNotFoundException fnfe)
View Full Code Here

Examples of org.apache.jetspeed.om.folder.psml.FolderImpl

    public PageSecurity getPageSecurity() throws DocumentNotFoundException, UnsupportedDocumentTypeException, NodeException
    {
        // get page security via folder, (always allow access)
        try
        {
            FolderImpl folder = getNodeFolder(Folder.PATH_SEPARATOR);
            return folder.getPageSecurity();
        }
        catch (FolderNotFoundException fnfe)
        {
            throw new DocumentNotFoundException(fnfe.getMessage());
        }
View Full Code Here

Examples of org.apache.jetspeed.om.folder.psml.FolderImpl

        try
        {
            // set parent
            boolean newPageSecurity = false;
            FolderImpl parentFolder = getNodeFolder(Folder.PATH_SEPARATOR);
            if (pageSecurity.getParent() == null)
            {
                pageSecurity.setParent(parentFolder);
                newPageSecurity = true;
            }
           
            // enable permissions/constraints
            PageSecurityImpl pageSecurityImpl = (PageSecurityImpl)pageSecurity;
            pageSecurityImpl.setPermissionsEnabled(handlerFactory.getPermissionsEnabled());
            pageSecurityImpl.setConstraintsEnabled(handlerFactory.getConstraintsEnabled());
           
            // check for edit access
            pageSecurity.checkAccess(JetspeedActions.EDIT);
           
            // update pageSecurity
            handlerFactory.getDocumentHandler(PageSecurity.DOCUMENT_TYPE).updateDocument(pageSecurity);
           
            // update parent folder
            if (parentFolder != null)
            {
                NodeSetImpl parentAllNodes = (NodeSetImpl)parentFolder.getAllNodes();
                if (!parentAllNodes.contains(pageSecurity))
                {
                    // add new page security
                    parentAllNodes.add(pageSecurity);
                    newPageSecurity = true;
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.