Package org.apache.webdav.lib

Examples of org.apache.webdav.lib.Ace


        out.println("ACL for " + path + ":");
        out.println("------------------------------------------------------------");
        for (int i=0; i<aces.length ; i++)
        {
            Ace ace=aces[i];
            out.println((!ace.isNegative()?"granted":"denied") +
                " to " + ace.getPrincipal() + " " +
                "   (" + (ace.isProtected()?"protected":"not protected") + ")" +
                "   (" + (ace.isInherited()? ("inherited from '" + ace.getInheritedFrom() + "'"): "not inherited") +")");

            Enumeration privileges=ace.enumeratePrivileges();
            while (privileges.hasMoreElements())
            {
                Privilege priv=(Privilege)privileges.nextElement();
                out.println("   " + priv.getNamespace() + priv.getName() + "   " + (priv.getParameter()==null?"":("("+priv.getParameter()+")")));
            }
View Full Code Here

TOP

Related Classes of org.apache.webdav.lib.Ace

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.