Search in sources :

Example 1 with StorageOwner

use of org.jets3t.service.model.StorageOwner in project alluxio by Alluxio.

the class GCSUtilsTest method before.

@Before
public void before() throws Exception {
    // Setup owner.
    mUserGrantee = new CanonicalGrantee(ID);
    mUserGrantee.setDisplayName(NAME);
    // Setup the acl.
    mAcl = new GSAccessControlList();
    mAcl.setOwner(new StorageOwner(ID, NAME));
}
Also used : StorageOwner(org.jets3t.service.model.StorageOwner) CanonicalGrantee(org.jets3t.service.acl.CanonicalGrantee) GSAccessControlList(org.jets3t.service.acl.gs.GSAccessControlList) Before(org.junit.Before)

Example 2 with StorageOwner

use of org.jets3t.service.model.StorageOwner in project alluxio by Alluxio.

the class S3UtilsTest method before.

@Before
public void before() throws Exception {
    // Setup owner.
    mUserGrantee = new CanonicalGrantee(ID);
    mUserGrantee.setDisplayName(NAME);
    // Setup the acl.
    mAcl = new AccessControlList();
    mAcl.setOwner(new StorageOwner(ID, NAME));
}
Also used : AccessControlList(org.jets3t.service.acl.AccessControlList) StorageOwner(org.jets3t.service.model.StorageOwner) CanonicalGrantee(org.jets3t.service.acl.CanonicalGrantee) Before(org.junit.Before)

Aggregations

CanonicalGrantee (org.jets3t.service.acl.CanonicalGrantee)2 StorageOwner (org.jets3t.service.model.StorageOwner)2 Before (org.junit.Before)2 AccessControlList (org.jets3t.service.acl.AccessControlList)1 GSAccessControlList (org.jets3t.service.acl.gs.GSAccessControlList)1