public interface IdentityTransformerInterface
IdentityTransformerInterface defines the set of translation
operations that any identity transformer implementation must provide.| Modifier and Type | Method and Description |
|---|---|
void |
transformAclEntriesForGetRequest(List<org.apache.hadoop.fs.permission.AclEntry> aclEntries,
String localUser,
String localGroup)
Perform Identity transformation when calling GetAclStatus().
|
void |
transformAclEntriesForSetRequest(List<org.apache.hadoop.fs.permission.AclEntry> aclEntries)
Perform Identity transformation when calling setAcl(),removeAclEntries() and modifyAclEntries().
|
String |
transformIdentityForGetRequest(String originalIdentity,
boolean isUserName,
String localIdentity)
Perform identity transformation for the Get request.
|
String |
transformUserOrGroupForSetRequest(String userOrGroup)
Perform Identity transformation when setting owner on a path.
|
String transformIdentityForGetRequest(String originalIdentity, boolean isUserName, String localIdentity) throws IOException
originalIdentity - the original user or group in the get request.isUserName - indicate whether the input originalIdentity is an owner name or owning group name.localIdentity - the local user or group, should be parsed from UserGroupInformation.IOExceptionString transformUserOrGroupForSetRequest(String userOrGroup)
userOrGroup - the user or group to be set as owner.void transformAclEntriesForSetRequest(List<org.apache.hadoop.fs.permission.AclEntry> aclEntries)
aclEntries - list of AclEntry.void transformAclEntriesForGetRequest(List<org.apache.hadoop.fs.permission.AclEntry> aclEntries, String localUser, String localGroup) throws IOException
aclEntries - list of AclEntry.localUser - local user name.localGroup - local primary group.IOExceptionCopyright © 2008–2022 Apache Software Foundation. All rights reserved.