Class AclAttributeProvider.View

  • All Implemented Interfaces:
    java.nio.file.attribute.AclFileAttributeView, java.nio.file.attribute.AttributeView, java.nio.file.attribute.FileAttributeView, java.nio.file.attribute.FileOwnerAttributeView
    Enclosing class:
    AclAttributeProvider

    private static final class AclAttributeProvider.View
    extends AbstractAttributeView
    implements java.nio.file.attribute.AclFileAttributeView
    Implementation of AclFileAttributeView.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.file.attribute.FileOwnerAttributeView ownerView  
    • Constructor Summary

      Constructors 
      Constructor Description
      View​(FileLookup lookup, java.nio.file.attribute.FileOwnerAttributeView ownerView)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.nio.file.attribute.AclEntry> getAcl()  
      java.nio.file.attribute.UserPrincipal getOwner()  
      java.lang.String name()  
      void setAcl​(java.util.List<java.nio.file.attribute.AclEntry> acl)  
      void setOwner​(java.nio.file.attribute.UserPrincipal owner)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ownerView

        private final java.nio.file.attribute.FileOwnerAttributeView ownerView
    • Constructor Detail

      • View

        public View​(FileLookup lookup,
                    java.nio.file.attribute.FileOwnerAttributeView ownerView)
    • Method Detail

      • name

        public java.lang.String name()
        Specified by:
        name in interface java.nio.file.attribute.AclFileAttributeView
        Specified by:
        name in interface java.nio.file.attribute.AttributeView
        Specified by:
        name in interface java.nio.file.attribute.FileOwnerAttributeView
      • getAcl

        public java.util.List<java.nio.file.attribute.AclEntry> getAcl()
                                                                throws java.io.IOException
        Specified by:
        getAcl in interface java.nio.file.attribute.AclFileAttributeView
        Throws:
        java.io.IOException
      • setAcl

        public void setAcl​(java.util.List<java.nio.file.attribute.AclEntry> acl)
                    throws java.io.IOException
        Specified by:
        setAcl in interface java.nio.file.attribute.AclFileAttributeView
        Throws:
        java.io.IOException
      • getOwner

        public java.nio.file.attribute.UserPrincipal getOwner()
                                                       throws java.io.IOException
        Specified by:
        getOwner in interface java.nio.file.attribute.FileOwnerAttributeView
        Throws:
        java.io.IOException
      • setOwner

        public void setOwner​(java.nio.file.attribute.UserPrincipal owner)
                      throws java.io.IOException
        Specified by:
        setOwner in interface java.nio.file.attribute.FileOwnerAttributeView
        Throws:
        java.io.IOException