Package com.ettrema.http

Examples of com.ettrema.http.AccessControlledResource


            return "principal-URL";
        }

        public String getValue( PropFindableResource res ) {
            if( res instanceof AccessControlledResource ) {
                AccessControlledResource acr = (AccessControlledResource) res;
                return acr.getPrincipalURL();
            } else {
                log.warn( "requested property 'principal-url', but resource doesnt implement AccessControlledResource: " + res.getClass().getCanonicalName() );
                return null;
            }
        }
View Full Code Here


            return "principal-collection-set";
        }

        public HrefList getValue( PropFindableResource res ) {
            if( res instanceof AccessControlledResource ) {
                AccessControlledResource acr = (AccessControlledResource) res;
                return acr.getPrincipalCollectionHrefs();
            } else {
                return null;
            }

        }
View Full Code Here

            return "current-user-privilege-set";
        }

        public PriviledgeList getValue( PropFindableResource res ) {
            if( res instanceof AccessControlledResource ) {
                AccessControlledResource acr = (AccessControlledResource) res;
                Auth auth = HttpManager.request().getAuthorization();
                List<Priviledge> list = acr.getPriviledges( auth );
                PriviledgeList privs = new PriviledgeList(list);
                return privs;
            } else {
                return null;
            }
View Full Code Here

TOP

Related Classes of com.ettrema.http.AccessControlledResource

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.