public final class DefaultInodePermissionChecker extends Object implements InodePermissionChecker
InodePermissionChecker
implementation using standard POSIX permission model.Constructor and Description |
---|
DefaultInodePermissionChecker() |
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.
|
Mode.Bits |
getPermission(String user,
List<String> groups,
Inode<?> inode)
Gets the permission the user has for the file or directory at path.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public boolean checkPermission(String user, List<String> groups, Inode<?> inode, Mode.Bits permission)
InodePermissionChecker
checkPermission
in interface InodePermissionChecker
user
- the usergroups
- the groups that user belongs toinode
- inode of the pathpermission
- the permissions to checkpublic Mode.Bits getPermission(String user, List<String> groups, Inode<?> inode)
InodePermissionChecker
getPermission
in interface InodePermissionChecker
user
- the usergroups
- the groups that user belongs toinode
- inode of the pathCopyright © 2023. All Rights Reserved.