Class SftpAclFileAttributeView
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.client.subsystem.sftp.impl.AbstractSftpFileAttributeView
-
- org.apache.sshd.client.subsystem.sftp.fs.SftpAclFileAttributeView
-
- All Implemented Interfaces:
java.nio.file.attribute.AclFileAttributeView
,java.nio.file.attribute.AttributeView
,java.nio.file.attribute.FileAttributeView
,java.nio.file.attribute.FileOwnerAttributeView
public class SftpAclFileAttributeView extends AbstractSftpFileAttributeView implements java.nio.file.attribute.AclFileAttributeView
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.client.subsystem.sftp.impl.AbstractSftpFileAttributeView
options, path, provider
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description SftpAclFileAttributeView(SftpFileSystemProvider provider, java.nio.file.Path path, java.nio.file.LinkOption... options)
-
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 org.apache.sshd.client.subsystem.sftp.impl.AbstractSftpFileAttributeView
getPath, provider, readRemoteAttributes, writeRemoteAttributes
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
getSimplifiedLogger
-
-
-
-
Constructor Detail
-
SftpAclFileAttributeView
public SftpAclFileAttributeView(SftpFileSystemProvider provider, java.nio.file.Path path, java.nio.file.LinkOption... options)
-
-
Method Detail
-
getOwner
public java.nio.file.attribute.UserPrincipal getOwner() throws java.io.IOException
- Specified by:
getOwner
in interfacejava.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 interfacejava.nio.file.attribute.FileOwnerAttributeView
- Throws:
java.io.IOException
-
name
public java.lang.String name()
- Specified by:
name
in interfacejava.nio.file.attribute.AclFileAttributeView
- Specified by:
name
in interfacejava.nio.file.attribute.AttributeView
- Specified by:
name
in interfacejava.nio.file.attribute.FileOwnerAttributeView
- Overrides:
name
in classAbstractSftpFileAttributeView
-
getAcl
public java.util.List<java.nio.file.attribute.AclEntry> getAcl() throws java.io.IOException
- Specified by:
getAcl
in interfacejava.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 interfacejava.nio.file.attribute.AclFileAttributeView
- Throws:
java.io.IOException
-
-