HDFS-15234. Add a default method body for the INodeAttributeProvider#checkPermissionWithContext API. (#1909)
This commit is contained in:
parent
cdcb77a2c5
commit
0fa7bf47df
@ -399,8 +399,12 @@ public abstract void checkPermission(String fsOwner, String supergroup,
|
||||
* operation.
|
||||
* @throws AccessControlException
|
||||
*/
|
||||
void checkPermissionWithContext(AuthorizationContext authzContext)
|
||||
throws AccessControlException;
|
||||
default void checkPermissionWithContext(AuthorizationContext authzContext)
|
||||
throws AccessControlException {
|
||||
throw new AccessControlException("The authorization provider does not "
|
||||
+ "implement the checkPermissionWithContext(AuthorizationContext) "
|
||||
+ "API.");
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Initialize the provider. This method is called at NameNode startup
|
||||
|
Loading…
Reference in New Issue
Block a user