public class DataRolePolicyDecider extends Object implements PolicyDecider
Constructor and Description |
---|
DataRolePolicyDecider() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getInaccessibleResources(DataPolicy.PermissionType action,
Set<String> resources,
DataPolicy.Context context,
CommandContext commandContext) |
boolean |
hasRole(String roleName,
CommandContext context) |
boolean |
isTempAccessible(DataPolicy.PermissionType action,
String resource,
DataPolicy.Context context,
CommandContext commandContext) |
void |
setAllowCreateTemporaryTablesByDefault(boolean allowCreateTemporaryTablesByDefault) |
void |
setAllowFunctionCallsByDefault(boolean allowFunctionCallsDefault) |
boolean |
validateCommand(CommandContext commandContext) |
public Set<String> getInaccessibleResources(DataPolicy.PermissionType action, Set<String> resources, DataPolicy.Context context, CommandContext commandContext)
getInaccessibleResources
in interface PolicyDecider
public boolean hasRole(String roleName, CommandContext context)
hasRole
in interface PolicyDecider
public boolean isTempAccessible(DataPolicy.PermissionType action, String resource, DataPolicy.Context context, CommandContext commandContext)
isTempAccessible
in interface PolicyDecider
public void setAllowCreateTemporaryTablesByDefault(boolean allowCreateTemporaryTablesByDefault)
public void setAllowFunctionCallsByDefault(boolean allowFunctionCallsDefault)
public boolean validateCommand(CommandContext commandContext)
validateCommand
in interface PolicyDecider
Copyright © 2019. All rights reserved.