Package org.teiid.dqp.internal.process
Class DataRolePolicyDecider
- java.lang.Object
-
- org.teiid.dqp.internal.process.DataRolePolicyDecider
-
- All Implemented Interfaces:
PolicyDecider
public class DataRolePolicyDecider extends Object implements PolicyDecider
-
-
Constructor Summary
Constructors Constructor Description DataRolePolicyDecider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<AbstractMetadataRecord>
getInaccessibleResources(DataPolicy.PermissionType action, Set<AbstractMetadataRecord> resources, DataPolicy.Context context, CommandContext commandContext)
DataPolicy.ResourceType
getResourceType(AbstractMetadataRecord record)
boolean
hasRole(String roleName, CommandContext context)
boolean
isLanguageAllowed(String language, CommandContext commandContext)
boolean
isTempAccessible(DataPolicy.PermissionType action, AbstractMetadataRecord resource, DataPolicy.Context context, CommandContext commandContext)
void
setAllowCreateTemporaryTablesByDefault(boolean allowCreateTemporaryTablesByDefault)
void
setAllowFunctionCallsByDefault(boolean allowFunctionCallsDefault)
boolean
validateCommand(CommandContext commandContext)
-
-
-
Method Detail
-
getInaccessibleResources
public Set<AbstractMetadataRecord> getInaccessibleResources(DataPolicy.PermissionType action, Set<AbstractMetadataRecord> resources, DataPolicy.Context context, CommandContext commandContext)
- Specified by:
getInaccessibleResources
in interfacePolicyDecider
-
isLanguageAllowed
public boolean isLanguageAllowed(String language, CommandContext commandContext)
- Specified by:
isLanguageAllowed
in interfacePolicyDecider
-
hasRole
public boolean hasRole(String roleName, CommandContext context)
- Specified by:
hasRole
in interfacePolicyDecider
-
isTempAccessible
public boolean isTempAccessible(DataPolicy.PermissionType action, AbstractMetadataRecord resource, DataPolicy.Context context, CommandContext commandContext)
- Specified by:
isTempAccessible
in interfacePolicyDecider
-
setAllowCreateTemporaryTablesByDefault
public void setAllowCreateTemporaryTablesByDefault(boolean allowCreateTemporaryTablesByDefault)
-
setAllowFunctionCallsByDefault
public void setAllowFunctionCallsByDefault(boolean allowFunctionCallsDefault)
-
validateCommand
public boolean validateCommand(CommandContext commandContext)
- Specified by:
validateCommand
in interfacePolicyDecider
-
getResourceType
public DataPolicy.ResourceType getResourceType(AbstractMetadataRecord record)
-
-