Skip to content

Commit

Permalink
TEIID-2708 converting bean properties to be set from system properties
Browse files Browse the repository at this point in the history
by default
  • Loading branch information
shawkins committed Oct 23, 2013
1 parent 1a337e4 commit fc7bd7b
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -36,11 +36,12 @@
import org.teiid.adminapi.DataPolicy.Context;
import org.teiid.adminapi.DataPolicy.PermissionType;
import org.teiid.adminapi.impl.DataPolicyMetadata;
import org.teiid.core.util.PropertiesUtils;

public class DataRolePolicyDecider implements PolicyDecider {

private boolean allowCreateTemporaryTablesByDefault = false;
private boolean allowFunctionCallsByDefault = false;
private boolean allowCreateTemporaryTablesByDefault = PropertiesUtils.getBooleanProperty(System.getProperties(), "org.teiid.allowCreateTemporaryTablesByDefault", false); //$NON-NLS-1$
private boolean allowFunctionCallsByDefault = PropertiesUtils.getBooleanProperty(System.getProperties(), "org.teiid.allowFunctionCallsByDefault", false); //$NON-NLS-1$

@Override
public Set<String> getInaccessibleResources(PermissionType action,
Expand Down

0 comments on commit fc7bd7b

Please sign in to comment.