mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve wall filter
This commit is contained in:
@@ -36,6 +36,7 @@ public class WallConfig implements WallConfigMBean {
|
||||
private boolean createTableAllow = true;
|
||||
private boolean dropTableAllow = true;
|
||||
private boolean alterTableAllow = true;
|
||||
private boolean conditionAndAlwayTrueAllow = false;
|
||||
|
||||
private boolean selectAllColumnAllow = true;
|
||||
|
||||
@@ -54,6 +55,7 @@ public class WallConfig implements WallConfigMBean {
|
||||
private boolean replaceAllow = true;
|
||||
private boolean setAllow = true;
|
||||
private boolean commitAllow = true;
|
||||
private boolean rollbackAllow = true;
|
||||
private boolean useAllow = false;
|
||||
|
||||
private boolean multiStatementAllow = false;
|
||||
@@ -107,6 +109,14 @@ public class WallConfig implements WallConfigMBean {
|
||||
|
||||
}
|
||||
|
||||
public boolean isConditionAndAlwayTrueAllow() {
|
||||
return conditionAndAlwayTrueAllow;
|
||||
}
|
||||
|
||||
public void setConditionAndAlwayTrueAllow(boolean conditionAndAlwayTrueAllow) {
|
||||
this.conditionAndAlwayTrueAllow = conditionAndAlwayTrueAllow;
|
||||
}
|
||||
|
||||
public boolean isUseAllow() {
|
||||
return useAllow;
|
||||
}
|
||||
@@ -115,7 +125,6 @@ public class WallConfig implements WallConfigMBean {
|
||||
this.useAllow = useAllow;
|
||||
}
|
||||
|
||||
|
||||
public boolean isCommitAllow() {
|
||||
return commitAllow;
|
||||
}
|
||||
@@ -124,6 +133,14 @@ public class WallConfig implements WallConfigMBean {
|
||||
this.commitAllow = commitAllow;
|
||||
}
|
||||
|
||||
public boolean isRollbackAllow() {
|
||||
return rollbackAllow;
|
||||
}
|
||||
|
||||
public void setRollbackAllow(boolean rollbackAllow) {
|
||||
this.rollbackAllow = rollbackAllow;
|
||||
}
|
||||
|
||||
public boolean isIntersectAllow() {
|
||||
return intersectAllow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user