public interface InodePermissionChecker
Modifier and Type | Method and Description |
---|---|
boolean |
checkPermission(String user,
List<String> groups,
Inode<?> inode,
Mode.Bits permission)
Checks whether user has the specified permission on the file or directory at path.
|
static InodePermissionChecker |
create() |
Mode.Bits |
getPermission(String user,
List<String> groups,
Inode<?> inode)
Gets the permission the user has for the file or directory at path.
|
static InodePermissionChecker create()
InodePermissionChecker
boolean checkPermission(String user, List<String> groups, Inode<?> inode, Mode.Bits permission)
user
- the usergroups
- the groups that user belongs toinode
- inode of the pathpermission
- the permissions to checkCopyright © 2023. All Rights Reserved.