Package io.fathom.cloud.storage.api.os.models

Examples of io.fathom.cloud.storage.api.os.models.StorageAcl$UserAcl


            boolean allowed = false;

            if (bucket.hasBucketAttributes()) {
                BucketAttributes bucketAttributes = bucket.getBucketAttributes();
                if (bucketAttributes.hasAclRead()) {
                    StorageAcl acl = StorageAcl.parse(AclType.Read, bucketAttributes.getAclRead());

                    // TODO: Do we really care about referer?
                    String referer = "unknown";
                    // String referer = request.getHeader("Referer");

                    if (acl.isRefererAllowed(referer)) {
                        allowed = true;
                    }
                }
            }
View Full Code Here


        BucketAttributes.Builder bucketAttributes = BucketAttributes.newBuilder();
        {
            String header = httpRequest.getHeader(HEADER_ACL_READ);
            if (header != null) {
                StorageAcl acl = StorageAcl.parse(AclType.Read, header);
                bucketAttributes.setAclRead(acl.toString());
            }
        }

        Status status = fs.putBucket(project, bucketName, bucketAttributes.build(), userAttributes);
View Full Code Here

TOP

Related Classes of io.fathom.cloud.storage.api.os.models.StorageAcl$UserAcl

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.