public class WallConfig extends Object implements WallConfigMBean
Modifier and Type | Class and Description |
---|---|
static interface |
WallConfig.TenantCallBack |
Constructor and Description |
---|
WallConfig() |
WallConfig(String dir) |
Modifier and Type | Method and Description |
---|---|
void |
addReadOnlyTable(String tableName) |
void |
addUpdateCheckCoumns(String columnInfo) |
void |
configFromProperties(Properties properties) |
Set<String> |
getDenyFunctions() |
Set<String> |
getDenyObjects() |
Set<String> |
getDenySchemas() |
Set<String> |
getDenyTables() |
Set<String> |
getDenyVariants() |
String |
getDir() |
int |
getInsertValuesCheckSize() |
Set<String> |
getPermitFunctions() |
Set<String> |
getPermitSchemas() |
Set<String> |
getPermitTables() |
Set<String> |
getPermitVariants() |
Set<String> |
getReadOnlyTables() |
int |
getSelectLimit() |
WallConfig.TenantCallBack |
getTenantCallBack() |
String |
getTenantColumn() |
String |
getTenantTablePattern() |
WallUpdateCheckHandler |
getUpdateCheckHandler() |
Set<String> |
getUpdateCheckTable(String tableName) |
void |
init() |
boolean |
isAlterTableAllow() |
boolean |
isBlockAllow() |
boolean |
isCallAllow() |
boolean |
isCaseConditionConstAllow() |
boolean |
isCommentAllow() |
boolean |
isCommitAllow() |
boolean |
isCompleteInsertValuesCheck() |
boolean |
isConditionAndAlwayFalseAllow() |
boolean |
isConditionAndAlwayTrueAllow() |
boolean |
isConditionDoubleConstAllow() |
boolean |
isConditionLikeTrueAllow() |
boolean |
isConditionOpBitwseAllow() |
boolean |
isConditionOpXorAllow() |
boolean |
isConstArithmeticAllow() |
boolean |
isCreateTableAllow() |
boolean |
isDeleteAllow() |
boolean |
isDeleteWhereAlwayTrueCheck() |
boolean |
isDeleteWhereNoneCheck() |
boolean |
isDenyFunction(String name) |
boolean |
isDenyObjects(String name) |
boolean |
isDenySchema(String name) |
boolean |
isDescribeAllow()
allow mysql describe statement
|
boolean |
isDoPrivilegedAllow() |
boolean |
isDropTableAllow() |
boolean |
isFunctionCheck() |
boolean |
isHintAllow() |
boolean |
isInited() |
boolean |
isInsertAllow() |
boolean |
isIntersectAllow() |
boolean |
isLimitZeroAllow() |
boolean |
isLockTableAllow() |
boolean |
isMergeAllow() |
boolean |
isMetadataAllow() |
boolean |
isMinusAllow() |
boolean |
isMultiStatementAllow() |
boolean |
isMustParameterized() |
boolean |
isNoneBaseStatementAllow() |
boolean |
isObjectCheck() |
boolean |
isReadOnly(String tableName) |
boolean |
isRenameTableAllow() |
boolean |
isReplaceAllow() |
boolean |
isRollbackAllow() |
boolean |
isSchemaCheck() |
boolean |
isSelectAllColumnAllow() |
boolean |
isSelectExceptCheck() |
boolean |
isSelectHavingAlwayTrueCheck() |
boolean |
isSelectIntersectCheck() |
boolean |
isSelectIntoAllow() |
boolean |
isSelectIntoOutfileAllow() |
boolean |
isSelectMinusCheck() |
boolean |
isSelectUnionCheck() |
boolean |
isSelectWhereAlwayTrueCheck() |
boolean |
isSelelctAllow() |
boolean |
isSetAllow() |
boolean |
isShowAllow() |
boolean |
isStartTransactionAllow() |
boolean |
isStrictSyntaxCheck() |
boolean |
isTableCheck() |
boolean |
isTruncateAllow() |
boolean |
isUpdateAllow() |
boolean |
isUpdateCheckTable(String tableName) |
boolean |
isUpdateWhereAlayTrueCheck() |
boolean |
isUpdateWhereNoneCheck() |
boolean |
isUseAllow() |
boolean |
isVariantCheck() |
boolean |
isWrapAllow() |
void |
loadConfig(String dir) |
void |
setAlterTableAllow(boolean alterTableAllow) |
void |
setBlockAllow(boolean blockAllow) |
void |
setCallAllow(boolean callAllow) |
void |
setCaseConditionConstAllow(boolean caseConditionConstAllow) |
void |
setCommentAllow(boolean commentAllow) |
void |
setCommitAllow(boolean commitAllow) |
void |
setCompleteInsertValuesCheck(boolean completeInsertValuesCheck) |
void |
setConditionAndAlwayFalseAllow(boolean conditionAndAlwayFalseAllow) |
void |
setConditionAndAlwayTrueAllow(boolean conditionAndAlwayTrueAllow) |
void |
setConditionDoubleConstAllow(boolean conditionDoubleConstAllow) |
void |
setConditionLikeTrueAllow(boolean conditionLikeTrueAllow) |
void |
setConditionOpBitwseAllow(boolean conditionOpBitwseAllow) |
void |
setConditionOpXorAllow(boolean conditionOpXorAllow) |
void |
setConstArithmeticAllow(boolean constArithmeticAllow) |
void |
setCreateTableAllow(boolean createTableAllow) |
void |
setDeleteAllow(boolean deleteAllow) |
void |
setDeleteWhereAlwayTrueCheck(boolean deleteWhereAlwayTrueCheck) |
void |
setDeleteWhereNoneCheck(boolean deleteWhereNoneCheck) |
void |
setDescribeAllow(boolean describeAllow)
set allow mysql describe statement
|
void |
setDir(String dir) |
void |
setDoPrivilegedAllow(boolean doPrivilegedAllow) |
void |
setDropTableAllow(boolean dropTableAllow) |
void |
setFunctionCheck(boolean functionCheck) |
void |
setHintAllow(boolean hintAllow) |
void |
setInited(boolean inited) |
void |
setInsertAllow(boolean insertAllow) |
void |
setInsertValuesCheckSize(int insertValuesCheckSize) |
void |
setIntersectAllow(boolean intersectAllow) |
void |
setLimitZeroAllow(boolean limitZero) |
void |
setLockTableAllow(boolean lockTableAllow) |
void |
setMergeAllow(boolean mergeAllow) |
void |
setMetadataAllow(boolean metadataAllow) |
void |
setMinusAllow(boolean minusAllow) |
void |
setMultiStatementAllow(boolean multiStatementAllow) |
void |
setMustParameterized(boolean mustParameterized) |
void |
setNoneBaseStatementAllow(boolean noneBaseStatementAllow) |
void |
setObjectCheck(boolean objectCheck) |
void |
setRenameTableAllow(boolean renameTableAllow) |
void |
setReplaceAllow(boolean replaceAllow) |
void |
setRollbackAllow(boolean rollbackAllow) |
void |
setSchemaCheck(boolean schemaCheck) |
void |
setSelectAllColumnAllow(boolean selectAllColumnAllow) |
void |
setSelectExceptCheck(boolean selectExceptCheck) |
void |
setSelectHavingAlwayTrueCheck(boolean selectHavingAlwayTrueCheck) |
void |
setSelectIntersectCheck(boolean selectIntersectCheck) |
void |
setSelectIntoAllow(boolean selectIntoAllow) |
void |
setSelectIntoOutfileAllow(boolean selectIntoOutfileAllow) |
void |
setSelectLimit(int selectLimit) |
void |
setSelectMinusCheck(boolean selectMinusCheck) |
void |
setSelectUnionCheck(boolean selectUnionCheck) |
void |
setSelectWhereAlwayTrueCheck(boolean selectWhereAlwayTrueCheck) |
void |
setSelelctAllow(boolean selelctAllow) |
void |
setSetAllow(boolean value) |
void |
setShowAllow(boolean showAllow) |
void |
setStartTransactionAllow(boolean startTransactionAllow) |
void |
setStrictSyntaxCheck(boolean strictSyntaxCheck) |
void |
setTableCheck(boolean tableCheck) |
void |
setTenantCallBack(WallConfig.TenantCallBack tenantCallBack) |
void |
setTenantColumn(String tenantColumn) |
void |
setTenantTablePattern(String tenantTablePattern) |
void |
setTruncateAllow(boolean truncateAllow) |
void |
setUpdateAllow(boolean updateAllow) |
void |
setUpdateCheckHandler(WallUpdateCheckHandler updateCheckHandler) |
void |
setUpdateWhereAlayTrueCheck(boolean updateWhereAlayTrueCheck) |
void |
setUpdateWhereNoneCheck(boolean updateWhereNoneCheck) |
void |
setUseAllow(boolean useAllow) |
void |
setVariantCheck(boolean variantCheck) |
void |
setWrapAllow(boolean wrapAllow) |
public WallConfig()
public WallConfig(String dir)
public boolean isCaseConditionConstAllow()
public void setCaseConditionConstAllow(boolean caseConditionConstAllow)
public boolean isConditionDoubleConstAllow()
public void setConditionDoubleConstAllow(boolean conditionDoubleConstAllow)
public boolean isConditionLikeTrueAllow()
public void setConditionLikeTrueAllow(boolean conditionLikeTrueAllow)
public boolean isLimitZeroAllow()
public void setLimitZeroAllow(boolean limitZero)
public boolean isUseAllow()
public void setUseAllow(boolean useAllow)
public boolean isCommitAllow()
public void setCommitAllow(boolean commitAllow)
public boolean isRollbackAllow()
public void setRollbackAllow(boolean rollbackAllow)
public boolean isIntersectAllow()
public void setIntersectAllow(boolean intersectAllow)
public boolean isMinusAllow()
public void setMinusAllow(boolean minusAllow)
public boolean isConditionOpXorAllow()
public void setConditionOpXorAllow(boolean conditionOpXorAllow)
public String getTenantTablePattern()
public void setTenantTablePattern(String tenantTablePattern)
public String getTenantColumn()
public void setTenantColumn(String tenantColumn)
public WallConfig.TenantCallBack getTenantCallBack()
public void setTenantCallBack(WallConfig.TenantCallBack tenantCallBack)
public boolean isMetadataAllow()
public void setMetadataAllow(boolean metadataAllow)
public boolean isWrapAllow()
public void setWrapAllow(boolean wrapAllow)
public boolean isDoPrivilegedAllow()
public void setDoPrivilegedAllow(boolean doPrivilegedAllow)
public boolean isSelectAllColumnAllow()
public void setSelectAllColumnAllow(boolean selectAllColumnAllow)
public boolean isInited()
isInited
in interface WallConfigMBean
public String getDir()
getDir
in interface WallConfigMBean
public void setDir(String dir)
setDir
in interface WallConfigMBean
public final void init()
init
in interface WallConfigMBean
public void loadConfig(String dir)
loadConfig
in interface WallConfigMBean
public boolean isNoneBaseStatementAllow()
isNoneBaseStatementAllow
in interface WallConfigMBean
public void setNoneBaseStatementAllow(boolean noneBaseStatementAllow)
setNoneBaseStatementAllow
in interface WallConfigMBean
public boolean isDescribeAllow()
public void setDescribeAllow(boolean describeAllow)
public boolean isShowAllow()
public void setShowAllow(boolean showAllow)
public boolean isTruncateAllow()
isTruncateAllow
in interface WallConfigMBean
public void setTruncateAllow(boolean truncateAllow)
setTruncateAllow
in interface WallConfigMBean
public boolean isSelectIntoAllow()
isSelectIntoAllow
in interface WallConfigMBean
public void setSelectIntoAllow(boolean selectIntoAllow)
setSelectIntoAllow
in interface WallConfigMBean
public boolean isSelectIntoOutfileAllow()
isSelectIntoOutfileAllow
in interface WallConfigMBean
public void setSelectIntoOutfileAllow(boolean selectIntoOutfileAllow)
setSelectIntoOutfileAllow
in interface WallConfigMBean
public boolean isCreateTableAllow()
public void setCreateTableAllow(boolean createTableAllow)
public boolean isDropTableAllow()
public void setDropTableAllow(boolean dropTableAllow)
public boolean isAlterTableAllow()
public void setAlterTableAllow(boolean alterTableAllow)
public boolean isRenameTableAllow()
public void setRenameTableAllow(boolean renameTableAllow)
public boolean isSelectUnionCheck()
isSelectUnionCheck
in interface WallConfigMBean
public void setSelectUnionCheck(boolean selectUnionCheck)
setSelectUnionCheck
in interface WallConfigMBean
public boolean isSelectMinusCheck()
public void setSelectMinusCheck(boolean selectMinusCheck)
public boolean isSelectExceptCheck()
public void setSelectExceptCheck(boolean selectExceptCheck)
public boolean isSelectIntersectCheck()
public void setSelectIntersectCheck(boolean selectIntersectCheck)
public boolean isDeleteAllow()
isDeleteAllow
in interface WallConfigMBean
public void setDeleteAllow(boolean deleteAllow)
setDeleteAllow
in interface WallConfigMBean
public boolean isDeleteWhereNoneCheck()
public void setDeleteWhereNoneCheck(boolean deleteWhereNoneCheck)
public boolean isUpdateAllow()
isUpdateAllow
in interface WallConfigMBean
public void setUpdateAllow(boolean updateAllow)
setUpdateAllow
in interface WallConfigMBean
public boolean isUpdateWhereNoneCheck()
public void setUpdateWhereNoneCheck(boolean updateWhereNoneCheck)
public boolean isInsertAllow()
isInsertAllow
in interface WallConfigMBean
public void setInsertAllow(boolean insertAllow)
setInsertAllow
in interface WallConfigMBean
public boolean isReplaceAllow()
public void setReplaceAllow(boolean replaceAllow)
public boolean isSetAllow()
public void setSetAllow(boolean value)
public boolean isMergeAllow()
isMergeAllow
in interface WallConfigMBean
public void setMergeAllow(boolean mergeAllow)
setMergeAllow
in interface WallConfigMBean
public boolean isMultiStatementAllow()
isMultiStatementAllow
in interface WallConfigMBean
public void setMultiStatementAllow(boolean multiStatementAllow)
setMultiStatementAllow
in interface WallConfigMBean
public boolean isSchemaCheck()
isSchemaCheck
in interface WallConfigMBean
public void setSchemaCheck(boolean schemaCheck)
setSchemaCheck
in interface WallConfigMBean
public boolean isTableCheck()
isTableCheck
in interface WallConfigMBean
public void setTableCheck(boolean tableCheck)
setTableCheck
in interface WallConfigMBean
public boolean isFunctionCheck()
isFunctionCheck
in interface WallConfigMBean
public void setFunctionCheck(boolean functionCheck)
setFunctionCheck
in interface WallConfigMBean
public boolean isVariantCheck()
isVariantCheck
in interface WallConfigMBean
public void setVariantCheck(boolean variantCheck)
setVariantCheck
in interface WallConfigMBean
public boolean isObjectCheck()
isObjectCheck
in interface WallConfigMBean
public void setObjectCheck(boolean objectCheck)
setObjectCheck
in interface WallConfigMBean
public boolean isCommentAllow()
isCommentAllow
in interface WallConfigMBean
public void setCommentAllow(boolean commentAllow)
setCommentAllow
in interface WallConfigMBean
public boolean isStrictSyntaxCheck()
public void setStrictSyntaxCheck(boolean strictSyntaxCheck)
public boolean isConstArithmeticAllow()
public void setConstArithmeticAllow(boolean constArithmeticAllow)
public Set<String> getDenyFunctions()
getDenyFunctions
in interface WallConfigMBean
public Set<String> getDenyTables()
getDenyTables
in interface WallConfigMBean
public Set<String> getDenySchemas()
getDenySchemas
in interface WallConfigMBean
public Set<String> getDenyVariants()
getDenyVariants
in interface WallConfigMBean
public Set<String> getDenyObjects()
getDenyObjects
in interface WallConfigMBean
public Set<String> getReadOnlyTables()
getReadOnlyTables
in interface WallConfigMBean
public void addReadOnlyTable(String tableName)
public boolean isReadOnly(String tableName)
public boolean isMustParameterized()
public void setMustParameterized(boolean mustParameterized)
public boolean isDenyObjects(String name)
isDenyObjects
in interface WallConfigMBean
public boolean isDenySchema(String name)
isDenySchema
in interface WallConfigMBean
public boolean isDenyFunction(String name)
isDenyFunction
in interface WallConfigMBean
public boolean isCallAllow()
public void setCallAllow(boolean callAllow)
public boolean isHintAllow()
public void setHintAllow(boolean hintAllow)
public boolean isSelelctAllow()
isSelelctAllow
in interface WallConfigMBean
public void setSelelctAllow(boolean selelctAllow)
setSelelctAllow
in interface WallConfigMBean
public boolean isSelectWhereAlwayTrueCheck()
isSelectWhereAlwayTrueCheck
in interface WallConfigMBean
public void setSelectWhereAlwayTrueCheck(boolean selectWhereAlwayTrueCheck)
setSelectWhereAlwayTrueCheck
in interface WallConfigMBean
public boolean isSelectHavingAlwayTrueCheck()
isSelectHavingAlwayTrueCheck
in interface WallConfigMBean
public void setSelectHavingAlwayTrueCheck(boolean selectHavingAlwayTrueCheck)
setSelectHavingAlwayTrueCheck
in interface WallConfigMBean
public boolean isConditionAndAlwayTrueAllow()
public void setConditionAndAlwayTrueAllow(boolean conditionAndAlwayTrueAllow)
public boolean isConditionAndAlwayFalseAllow()
public void setConditionAndAlwayFalseAllow(boolean conditionAndAlwayFalseAllow)
public boolean isDeleteWhereAlwayTrueCheck()
isDeleteWhereAlwayTrueCheck
in interface WallConfigMBean
public void setDeleteWhereAlwayTrueCheck(boolean deleteWhereAlwayTrueCheck)
setDeleteWhereAlwayTrueCheck
in interface WallConfigMBean
public boolean isUpdateWhereAlayTrueCheck()
isUpdateWhereAlayTrueCheck
in interface WallConfigMBean
public void setUpdateWhereAlayTrueCheck(boolean updateWhereAlayTrueCheck)
setUpdateWhereAlayTrueCheck
in interface WallConfigMBean
public boolean isConditionOpBitwseAllow()
public void setConditionOpBitwseAllow(boolean conditionOpBitwseAllow)
public void setInited(boolean inited)
public boolean isLockTableAllow()
public void setLockTableAllow(boolean lockTableAllow)
public boolean isStartTransactionAllow()
public void setStartTransactionAllow(boolean startTransactionAllow)
public boolean isCompleteInsertValuesCheck()
public void setCompleteInsertValuesCheck(boolean completeInsertValuesCheck)
public int getInsertValuesCheckSize()
public void setInsertValuesCheckSize(int insertValuesCheckSize)
public boolean isBlockAllow()
public void setBlockAllow(boolean blockAllow)
public int getSelectLimit()
public void setSelectLimit(int selectLimit)
public void configFromProperties(Properties properties)
public void addUpdateCheckCoumns(String columnInfo)
public boolean isUpdateCheckTable(String tableName)
public WallUpdateCheckHandler getUpdateCheckHandler()
public void setUpdateCheckHandler(WallUpdateCheckHandler updateCheckHandler)
Copyright © 2013–2017 Alibaba Group. All rights reserved.