org.teiid.dqp.internal.process
Class DataRolePolicyDecider

java.lang.Object
  extended by org.teiid.dqp.internal.process.DataRolePolicyDecider
All Implemented Interfaces:
PolicyDecider

public class DataRolePolicyDecider
extends java.lang.Object
implements PolicyDecider


Constructor Summary
DataRolePolicyDecider()
           
 
Method Summary
 java.util.Set<java.lang.String> getInaccessibleResources(DataPolicy.PermissionType action, java.util.Set<java.lang.String> resources, DataPolicy.Context context, CommandContext commandContext)
           
 boolean hasRole(java.lang.String roleName, CommandContext context)
           
 boolean isTempAccessable(DataPolicy.PermissionType action, java.lang.String resource, DataPolicy.Context context, CommandContext commandContext)
           
 void setAllowCreateTemporaryTablesByDefault(boolean allowCreateTemporaryTablesByDefault)
           
 void setAllowFunctionCallsByDefault(boolean allowFunctionCallsDefault)
           
 boolean validateCommand(CommandContext commandContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataRolePolicyDecider

public DataRolePolicyDecider()
Method Detail

getInaccessibleResources

public java.util.Set<java.lang.String> getInaccessibleResources(DataPolicy.PermissionType action,
                                                                java.util.Set<java.lang.String> resources,
                                                                DataPolicy.Context context,
                                                                CommandContext commandContext)
Specified by:
getInaccessibleResources in interface PolicyDecider

hasRole

public boolean hasRole(java.lang.String roleName,
                       CommandContext context)
Specified by:
hasRole in interface PolicyDecider

isTempAccessable

public boolean isTempAccessable(DataPolicy.PermissionType action,
                                java.lang.String resource,
                                DataPolicy.Context context,
                                CommandContext commandContext)
Specified by:
isTempAccessable in interface PolicyDecider

setAllowCreateTemporaryTablesByDefault

public void setAllowCreateTemporaryTablesByDefault(boolean allowCreateTemporaryTablesByDefault)

setAllowFunctionCallsByDefault

public void setAllowFunctionCallsByDefault(boolean allowFunctionCallsDefault)

validateCommand

public boolean validateCommand(CommandContext commandContext)
Specified by:
validateCommand in interface PolicyDecider


Copyright © 2011. All Rights Reserved.