Package com.intridea.io.vfs.operations

Examples of com.intridea.io.vfs.operations.IAclSetter


    @Test(dependsOnMethods="getAcl")
    public void setAcl () throws FileSystemException {
        // Set allow read to Guest
        fileAcl.allow(Acl.Group.EVERYONE, Acl.Permission.READ);
        IAclSetter aclSetter = (IAclSetter)file.getFileOperations().getOperation(IAclSetter.class);
        aclSetter.setAcl(fileAcl);
        aclSetter.process();

        // Verify
        IAclGetter aclGetter = (IAclGetter)file.getFileOperations().getOperation(IAclGetter.class);
        aclGetter.process();
        Acl changedAcl = aclGetter.getAcl();
View Full Code Here


    @Test(dependsOnMethods="setAcl")
    public void setAcl2 () throws FileSystemException {
        // Set allow all to Authorized
        fileAcl.allow(Acl.Group.AUTHORIZED);
        IAclSetter aclSetter = (IAclSetter)file.getFileOperations().getOperation(IAclSetter.class);
        aclSetter.setAcl(fileAcl);
        aclSetter.process();

        // Verify
        IAclGetter aclGetter = (IAclGetter)file.getFileOperations().getOperation(IAclGetter.class);
        aclGetter.process();
        Acl changedAcl = aclGetter.getAcl();
View Full Code Here

    @Test(dependsOnMethods={"setAcl2"})
    public void setAcl3 () throws FileSystemException {
        // Set deny to all
        fileAcl.denyAll();
        IAclSetter aclSetter = (IAclSetter)file.getFileOperations().getOperation(IAclSetter.class);
        aclSetter.setAcl(fileAcl);
        aclSetter.process();

        // Verify
        IAclGetter aclGetter = (IAclGetter)file.getFileOperations().getOperation(IAclGetter.class);
        aclGetter.process();
        Acl changedAcl = aclGetter.getAcl();
View Full Code Here

    public void restoreAcl () throws FileSystemException {
        fileAcl.denyAll();
        fileAcl.allow(Acl.Group.OWNER);

        // Set ACL
        IAclSetter aclSetter = (IAclSetter)file.getFileOperations().getOperation(IAclSetter.class);
        aclSetter.setAcl(fileAcl);
        aclSetter.process();
    }
View Full Code Here

TOP

Related Classes of com.intridea.io.vfs.operations.IAclSetter

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.