public interface InodeView extends JournalEntryRepresentable, java.lang.Comparable<InodeView>
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPermission(java.lang.String user,
java.util.List<java.lang.String> groups,
AclAction action)
Checks whether the user or one of the groups has the permission to take the action.
|
default int |
compareTo(InodeView o) |
FileInfo |
generateClientFileInfo(java.lang.String path)
Generates a
FileInfo of the file or folder. |
AccessControlList |
getACL() |
long |
getCreationTimeMs() |
DefaultAccessControlList |
getDefaultACL() |
java.lang.String |
getGroup() |
long |
getId() |
long |
getLastAccessTimeMs() |
long |
getLastModificationTimeMs() |
java.util.Set<java.lang.String> |
getMediumTypes() |
short |
getMode() |
java.lang.String |
getName() |
java.lang.String |
getOwner() |
long |
getParentId() |
AclActions |
getPermission(java.lang.String user,
java.util.List<java.lang.String> groups)
Gets the permitted actions for a user.
|
PersistenceState |
getPersistenceState() |
long |
getTtl() |
TtlAction |
getTtlAction() |
java.lang.String |
getUfsFingerprint() |
java.util.Map<java.lang.String,byte[]> |
getXAttr() |
boolean |
isDeleted() |
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isPersisted() |
boolean |
isPinned() |
InodeMeta.Inode |
toProto() |
toJournalEntrylong getCreationTimeMs()
java.lang.String getGroup()
long getId()
long getTtl()
long getLastModificationTimeMs()
long getLastAccessTimeMs()
java.lang.String getName()
short getMode()
PersistenceState getPersistenceState()
PersistenceState of the inodelong getParentId()
java.lang.String getOwner()
@Nullable java.util.Map<java.lang.String,byte[]> getXAttr()
boolean isDeleted()
boolean isDirectory()
boolean isFile()
boolean isPinned()
boolean isPersisted()
java.util.Set<java.lang.String> getMediumTypes()
java.lang.String getUfsFingerprint()
AccessControlList getACL()
DefaultAccessControlList getDefaultACL() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if the inode is a fileFileInfo generateClientFileInfo(java.lang.String path)
FileInfo of the file or folder.path - the path of the fileFileInfoboolean checkPermission(java.lang.String user,
java.util.List<java.lang.String> groups,
AclAction action)
user - the user checking permissiongroups - the groups the user belongs toaction - the action to takeAccessControlList.checkPermission(String, List, AclAction)AclActions getPermission(java.lang.String user, java.util.List<java.lang.String> groups)
user - the usergroups - the groups the user belongs toAccessControlList.getPermission(String, List)InodeMeta.Inode toProto()
Copyright © 2020. All Rights Reserved.