Merge branch 'temp'
# Conflicts: # .gitignore # .idea/CopilotChatHistory.xml # .idea/compiler.xml # .idea/encodings.xml # .idea/inspectionProfiles/Project_Default.xml # .idea/jarRepositories.xml # .idea/misc.xml # dependencies/pom.xml # framework/spring-boot-starter-biz-tenant/src/main/java/cd/casic/framework/tenant/core/mq/rocketmq/TenantRocketMQConsumeMessageHook.java # framework/spring-boot-starter-biz-tenant/src/main/java/cd/casic/framework/tenant/core/mq/rocketmq/TenantRocketMQSendMessageHook.java # modules/module-ci-commons/pom.xml # modules/module-ci-commons/src/main/java/cd/casic/ci/commons/work/package-info.java # modules/module-ci-engine/pom.xml # modules/module-ci-execute/pom.xml # modules/module-ci-market/pom.xml # modules/module-ci-plugin/pom.xml # modules/module-ci-process-api/pom.xml # modules/module-ci-process-biz/src/main/java/cd/casic/module/process/convert/package-info.java # modules/module-ci-process-biz/src/main/java/cd/casic/module/process/toolkit/beans/model/FieldMapping.java # modules/module-ci-repository/pom.xml # modules/pom.xml # ops-server/pom.xml # ops-server/src/main/java/cd/casic/server/OpsServerApplication.java
This commit is contained in:
commit
5ae719b1f3
5
.gitignore
vendored
5
.gitignore
vendored
@ -27,7 +27,7 @@ replay_pid*
|
||||
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
.idea/*
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr!/.flattened-pom.xml
|
||||
@ -41,5 +41,4 @@ target/
|
||||
.vscode/!/.xcodemap/
|
||||
!/.idea/
|
||||
/.idea/
|
||||
/.idea/
|
||||
/.xcodemap/
|
||||
/dependencies/.flattened-pom.xml
|
||||
|
11
.idea/$PROJECT_FILE$
generated
11
.idea/$PROJECT_FILE$
generated
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AnalysisProjectProfileManager">
|
||||
<option name="PROJECT_PROFILE" />
|
||||
<option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />
|
||||
<list size="0" />
|
||||
</component>
|
||||
<component name="SuppressionsComponent">
|
||||
<option name="suppComments" value="[]" />
|
||||
</component>
|
||||
</project>
|
9
.idea/.gitignore
generated
vendored
9
.idea/.gitignore
generated
vendored
@ -1,9 +0,0 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
../.idea
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
7
.idea/MarsCodeWorkspaceAppSettings.xml
generated
7
.idea/MarsCodeWorkspaceAppSettings.xml
generated
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="com.codeverse.userSettings.MarscodeWorkspaceAppSettingsState">
|
||||
<option name="ckgOperationStatus" value="SUCCESS" />
|
||||
<option name="progress" value="0.99902534" />
|
||||
</component>
|
||||
</project>
|
32
.idea/gradle.xml
generated
32
.idea/gradle.xml
generated
@ -1,32 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$/modules/ci-commons/pipeline-ci-common" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$/modules/ci-commons/pipeline-ci-common" />
|
||||
</set>
|
||||
</option>
|
||||
</GradleProjectSettings>
|
||||
<GradleProjectSettings>
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$/modules/pipeline-ci-process/ci-process-api" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$/modules/pipeline-ci-process/ci-process-api" />
|
||||
</set>
|
||||
</option>
|
||||
</GradleProjectSettings>
|
||||
<GradleProjectSettings>
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$/modules/pipeline-ci-process/ci-process-base" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$/modules/pipeline-ci-process/ci-process-base" />
|
||||
</set>
|
||||
</option>
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
74
.idea/inspectionProfiles/Project_Default.xml
generated
74
.idea/inspectionProfiles/Project_Default.xml
generated
@ -1,74 +0,0 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="AliAccessStaticViaInstance" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliArrayNamingShouldHaveBracket" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliControlFlowStatementWithoutBraces" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliDeprecation" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliEqualsAvoidNull" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliLongLiteralsEndingWithLowercaseL" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliMissingOverrideAnnotation" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AliWrapperTypeEquality" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAbstractClassShouldStartWithAbstractNaming" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAbstractMethodOrInterfaceMethodMustUseJavadoc" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidApacheBeanUtilsCopy" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidCallStaticSimpleDateFormat" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidCommentBehindStatement" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidComplexCondition" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidConcurrentCompetitionRandom" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidDoubleOrFloatEqualCompare" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidManuallyCreateThread" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidMissUseOfMathRandom" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidNegationOperator" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidNewDateGetTime" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidPatternCompileInMethod" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidReturnInFinally" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidStartWithDollarAndUnderLineNaming" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaAvoidUseTimer" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaBigDecimalAvoidDoubleConstructor" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaBooleanPropertyShouldNotStartWithIs" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaClassCastExceptionWithSubListToArrayList" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaClassCastExceptionWithToArray" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaClassMustHaveAuthor" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaClassNamingShouldBeCamel" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaCollectionInitShouldAssignCapacity" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaCommentsMustBeJavadocFormat" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaConcurrentExceptionWithModifyOriginSubList" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaConstantFieldShouldBeUpperCase" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaCountDownShouldInFinally" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaDontModifyInForeachCircle" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaEnumConstantsMustHaveComment" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaExceptionClassShouldEndWithException" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaIbatisMethodQueryForList" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaLockShouldWithTryFinally" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaLowerCamelCaseVariableNaming" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaMethodReturnWrapperType" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaMethodTooLong" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaPackageNaming" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaPojoMustOverrideToString" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaPojoMustUsePrimitiveField" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaPojoNoDefaultValue" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaRemoveCommentedCode" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaServiceOrDaoClassShouldEndWithImpl" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaSneakyThrowsWithoutExceptionType" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaStringConcat" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaSwitchExpression" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaSwitchStatement" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaTestClassShouldEndWithTestNaming" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaThreadLocalShouldRemove" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaThreadPoolCreation" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaThreadShouldSetName" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaTransactionMustHaveRollback" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaUndefineMagicConstant" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaUnsupportedExceptionWithModifyAsList" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaUseQuietReferenceNotation" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AlibabaUseRightCaseForDateFormat" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="AutoCloseableResource" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="METHOD_MATCHER_CONFIG" value="java.util.Formatter,format,java.io.Writer,append,com.google.common.base.Preconditions,checkNotNull,org.hibernate.Session,close,java.io.PrintWriter,printf,java.io.PrintStream,printf,java.util.Optional,orElseThrow" />
|
||||
</inspection_tool>
|
||||
<inspection_tool class="JavadocDeclaration" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ADDITIONAL_TAGS" value="Created,Date" />
|
||||
</inspection_tool>
|
||||
<inspection_tool class="MapOrSetKeyShouldOverrideHashCodeEquals" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
</profile>
|
||||
</component>
|
80
.idea/jarRepositories.xml
generated
80
.idea/jarRepositories.xml
generated
@ -1,80 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="huaweicloud" />
|
||||
<option name="name" value="huawei" />
|
||||
<option name="url" value="https://maven.aliyun.com/repository/public" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="aliyunmaven" />
|
||||
<option name="name" value="aliyun" />
|
||||
<option name="url" value="https://maven.aliyun.com/repository/public" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="aliyunmaven" />
|
||||
<option name="name" value="aliyun" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://maven.aliyun.com/repository/public" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="huaweicloud" />
|
||||
<option name="name" value="huawei" />
|
||||
<option name="url" value="https://mirrors.huaweicloud.com/repository/maven/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="aliyunmaven" />
|
||||
<option name="name" value="aliyun" />
|
||||
<option name="url" value="https://maven.aliyun.com/repository/central" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="MavenRepo" />
|
||||
<option name="name" value="MavenRepo" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="huaweicloud" />
|
||||
<option name="name" value="huawei" />
|
||||
<option name="url" value="https://maven.aliyun.com/repository/central" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="huaweicloud" />
|
||||
<option name="name" value="huawei" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://maven.aliyun.com/repository/central" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
89
.idea/misc.xml
generated
89
.idea/misc.xml
generated
@ -1,89 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CheckstyleConfigurable">
|
||||
<option name="suppFilterFilename" value="" />
|
||||
<option name="suppCommentFilter" value="false" />
|
||||
<option name="offComment" value="CHECKSTYLE\:OFF" />
|
||||
<option name="onComment" value="CHECKSTYLE\:ON" />
|
||||
<option name="checkFormat" value=".*" />
|
||||
<option name="messageFormat" value="" />
|
||||
<option name="checkCPP" value="true" />
|
||||
<option name="checkC" value="true" />
|
||||
<option name="suppNearbyCommentFilter" value="false" />
|
||||
<option name="snCommentFormat" value="SUPPRESS CHECKSTYLE (\w+)" />
|
||||
<option name="snCheckFormat" value="$1" />
|
||||
<option name="snMessageFormat" value="" />
|
||||
<option name="snInfluenceFormat" value="0" />
|
||||
<option name="snCheckCPP" value="true" />
|
||||
<option name="snCheckC" value="true" />
|
||||
<option name="pathToUserRulesConfiguration" value="" />
|
||||
<option name="pathToJarWithRules" value="" />
|
||||
</component>
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="FindBugsConfigurable">
|
||||
<option name="make" value="true" />
|
||||
<option name="effort" value="default" />
|
||||
<option name="priority" value="Medium" />
|
||||
<option name="excludeFilter" value="" />
|
||||
</component>
|
||||
<component name="FrameworkDetectionExcludesConfiguration">
|
||||
<file type="web" url="file://$PROJECT_DIR$/modules/module-ci-commons/pipeline-ci-common" />
|
||||
<file type="web" url="file://$PROJECT_DIR$/modules/module-ci-process-biz/ci-process-api" />
|
||||
<file type="web" url="file://$PROJECT_DIR$/modules/module-ci-process-biz/ci-process-base" />
|
||||
</component>
|
||||
<component name="MavenProjectsManager">
|
||||
<option name="originalFiles">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/pipeline-ci-process/pipeline-ci-process-api/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/ci-process/pipeline-ci-process-api/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/ci-worker/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/ci-commons/pipline-ci-common/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/ci-commons/pipeline-ci-api/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/ci-commons/common-api/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/ci-commons/common-pipeline/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-commons/common-public/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-commons/common-pipeline/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-environment/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-worker/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-commons/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-commons/ci-common-public/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-commons/ci-common-pipeline/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-store-api/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-process-biz/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-process-api/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="ignoredFiles">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$/modules/ci-commons/pipeline-ci-api/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/ci-commons/pipline-ci-common/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-common-pipeline/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-common/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-commons/ci-common-pipeline/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-commons/ci-common-public/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-commons/ci-common/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-dispatch-api/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-environment/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-event/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-log/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-market/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-process/pipeline-ci-process-api/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-project/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-quality/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-repository/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-store-api/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-ticket/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/modules/module-ci-worker/pom.xml" />
|
||||
<option value="$PROJECT_DIR$/system-framework/system-plugin-example-web/pom.xml" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="17" project-jdk-type="JavaSDK" />
|
||||
<component name="SuppressKotlinCodeStyleNotification">
|
||||
<option name="disableForAll" value="true" />
|
||||
</component>
|
||||
<component name="SuppressionsComponent">
|
||||
<option name="suppComments" value="[]" />
|
||||
</component>
|
||||
</project>
|
1468
.idea/mybatisx/templates.xml
generated
1468
.idea/mybatisx/templates.xml
generated
File diff suppressed because it is too large
Load Diff
933
.idea/qaplug_profiles.xml
generated
933
.idea/qaplug_profiles.xml
generated
@ -1,933 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AnalysisProjectProfileManager">
|
||||
<option name="PROJECT_PROFILE" value="Project Default" />
|
||||
<option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />
|
||||
<scopes />
|
||||
<profiles>
|
||||
<profile profile_name="Project Default" version="1.0" is_locked="false">
|
||||
<coding_rule class="AM_CREATES_EMPTY_JAR_FILE_ENTRY" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="AM_CREATES_EMPTY_ZIP_FILE_ENTRY" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="AbbreviationAsWordInNameCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="AbstractClassNameCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="AnnotationLocationCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="AnnotationOnSameLineCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="AnnotationUseStyleCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="AnonInnerLengthCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ArrayTrailingCommaCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ArrayTypeStyleCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="AtclauseOrderCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="AvoidEscapedUnicodeCharactersCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="AvoidInlineConditionalsCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="AvoidNestedBlocksCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="AvoidNoArgumentSuperConstructorCallCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="AvoidStarImportCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="AvoidStaticImportCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BAC_BAD_APPLET_CONSTRUCTOR" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BC_BAD_CAST_TO_ABSTRACT_COLLECTION" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BC_BAD_CAST_TO_CONCRETE_COLLECTION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BC_IMPOSSIBLE_CAST" level="BLOCKER" enabled="true" />
|
||||
<coding_rule class="BC_IMPOSSIBLE_DOWNCAST" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BC_IMPOSSIBLE_DOWNCAST_OF_TOARRAY" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BC_IMPOSSIBLE_INSTANCEOF" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BC_UNCONFIRMED_CAST" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BC_UNCONFIRMED_CAST_OF_RETURN_VALUE" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="BC_VACUOUS_INSTANCEOF" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BIT_ADD_OF_SIGNED_BYTE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BIT_AND" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BIT_AND_ZZ" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BIT_IOR" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BIT_IOR_OF_SIGNED_BYTE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BIT_SIGNED_CHECK" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BIT_SIGNED_CHECK_HIGH_BIT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BOA_BADLY_OVERRIDDEN_ADAPTER" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BSHIFT_WRONG_ADD_PRIORITY" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BX_BOXING_IMMEDIATELY_UNBOXED" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BX_BOXING_IMMEDIATELY_UNBOXED_TO_PERFORM_COERCION" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BX_UNBOXED_AND_COERCED_FOR_TERNARY_OPERATOR" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BX_UNBOXING_IMMEDIATELY_REBOXED" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="BestPracticesAbstractClassWithoutAbstractMethod" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesAccessorClassGeneration" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesAccessorMethodGeneration" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesArrayIsStoredDirectly" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="BestPracticesAvoidPrintStackTrace" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BestPracticesAvoidReassigningParameters" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesAvoidStringBufferField" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesAvoidUsingHardCodedIP" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesCheckResultSet" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesConstantsInInterface" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesDefaultLabelNotLastInSwitchStmt" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesDontNestJsfInJstlIteration" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesForLoopCanBeForeach" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesGuardDebugLogging" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesGuardLogStatement" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesGuardLogStatementJavaUtil" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesJUnit4SuitesShouldUseSuiteAnnotation" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesJUnit4TestShouldUseAfterAnnotation" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesJUnit4TestShouldUseBeforeAnnotation" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesJUnit4TestShouldUseTestAnnotation" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesJUnitAssertionsShouldIncludeMessage" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesJUnitTestContainsTooManyAsserts" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesJUnitTestsShouldIncludeAssert" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesJUnitUseExpected" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesLooseCoupling" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BestPracticesMethodReturnsInternalArray" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="BestPracticesNoClassAttribute" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesNoHtmlComments" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesNoJspForward" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesOneDeclarationPerLine" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesPositionLiteralsFirstInCaseInsensitiveComparisons" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesPositionLiteralsFirstInComparisons" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesPreserveStackTrace" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BestPracticesReplaceEnumerationWithIterator" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BestPracticesReplaceHashtableWithMap" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BestPracticesReplaceVectorWithList" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BestPracticesSwitchStmtsShouldHaveDefault" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesSystemPrintln" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BestPracticesUnusedFormalParameter" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BestPracticesUnusedImports" level="INFO" enabled="false" />
|
||||
<coding_rule class="BestPracticesUnusedLocalVariable" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BestPracticesUnusedPrivateField" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BestPracticesUnusedPrivateMethod" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="BestPracticesUseAssertEqualsInsteadOfAssertTrue" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesUseAssertNullInsteadOfAssertTrue" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesUseAssertSameInsteadOfAssertTrue" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesUseAssertTrueInsteadOfAssertEquals" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesUseCollectionIsEmpty" level="MINOR" enabled="false" />
|
||||
<coding_rule class="BestPracticesUseVarargs" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="BooleanExpressionComplexityCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CAA_COVARIANT_ARRAY_ELEMENT_STORE" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CAA_COVARIANT_ARRAY_FIELD" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CAA_COVARIANT_ARRAY_LOCAL" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CAA_COVARIANT_ARRAY_RETURN" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CD_CIRCULAR_DEPENDENCY" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CI_CONFUSED_INHERITANCE" level="MINOR" enabled="true" />
|
||||
<coding_rule class="CNT_ROUGH_CONSTANT_VALUE" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CN_IDIOM" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CN_IDIOM_NO_SUPER_CALL" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CO_ABSTRACT_SELF" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CO_COMPARETO_INCORRECT_FLOATING" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CO_COMPARETO_RESULTS_MIN_VALUE" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="CO_SELF_NO_OBJECT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CatchParameterNameCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ClassDataAbstractionCouplingCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ClassFanOutComplexityCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ClassMemberImpliedModifierCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ClassTypeParameterNameCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleAbstractNaming" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleAtLeastOneConstructor" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleAvoidDollarSigns" level="MINOR" enabled="true" />
|
||||
<coding_rule class="CodeStyleAvoidFinalLocalVariable" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleAvoidPrefixingMethodParameters" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleAvoidProtectedFieldInFinalClass" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleAvoidProtectedMethodInFinalClassNotExtending" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleAvoidUsingNativeCode" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleBooleanGetMethodName" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleCallSuperInConstructor" level="MINOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleClassNamingConventions" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CodeStyleCommentDefaultAccessModifier" level="MINOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleConfusingTernary" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleDefaultPackage" level="MINOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleDontImportJavaLang" level="MINOR" enabled="true" />
|
||||
<coding_rule class="CodeStyleDuplicateImports" level="MINOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleDuplicateJspImports" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleEmptyMethodInAbstractClassShouldBeAbstract" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleExtendsObject" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleFieldDeclarationsShouldBeAtStartOfClass" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleForLoopShouldBeWhileLoop" level="MINOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleForLoopsMustUseBraces" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CodeStyleGenericsNaming" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleIfElseStmtsMustUseBraces" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CodeStyleIfStmtsMustUseBraces" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CodeStyleLocalHomeNamingConvention" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleLocalInterfaceSessionNamingConvention" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleLocalVariableCouldBeFinal" level="MINOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleLongVariable" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleMDBAndSessionBeanNamingConvention" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleMIsLeadingVariableName" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleMethodArgumentCouldBeFinal" level="MINOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleMethodNamingConventions" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleMisleadingVariableName" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleNoPackage" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleOnlyOneReturn" level="MINOR" enabled="false" />
|
||||
<coding_rule class="CodeStylePackageCase" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStylePrematureDeclaration" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleRemoteInterfaceNamingConvention" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleRemoteSessionInterfaceNamingConvention" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleShortClassName" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleShortMethodName" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleShortVariable" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleSuspiciousConstantFieldName" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CodeStyleTooManyStaticImports" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleUnnecessaryConstructor" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleUnnecessaryFinalModifier" level="INFO" enabled="false" />
|
||||
<coding_rule class="CodeStyleUnnecessaryFullyQualifiedName" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleUnnecessaryLocalBeforeReturn" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CodeStyleUnnecessaryModifier" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleUnnecessaryParentheses" level="MINOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleUnnecessaryReturn" level="MINOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleUselessParentheses" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleUselessQualifiedThis" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleVariableNamingConventions" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CodeStyleWhileLoopsMustUseBraces" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="CommentsIndentationCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ConstantNameCheck" level="MINOR" enabled="true" />
|
||||
<coding_rule class="CovariantEqualsCheck" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="CustomImportOrderCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="CyclomaticComplexityCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DB_DUPLICATE_BRANCHES" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DB_DUPLICATE_SWITCH_CLAUSES" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DC_DOUBLECHECK" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DC_PARTIALLY_CONSTRUCTED" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DE_MIGHT_DROP" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DE_MIGHT_IGNORE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DLS_DEAD_LOCAL_INCREMENT_IN_RETURN" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DLS_DEAD_LOCAL_STORE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DLS_DEAD_LOCAL_STORE_IN_RETURN" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DLS_DEAD_LOCAL_STORE_OF_NULL" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="DLS_DEAD_STORE_OF_CLASS_LITERAL" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DLS_OVERWRITTEN_INCREMENT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DL_SYNCHRONIZATION_ON_BOOLEAN" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DL_SYNCHRONIZATION_ON_BOXED_PRIMITIVE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DL_SYNCHRONIZATION_ON_SHARED_CONSTANT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DL_SYNCHRONIZATION_ON_UNSHARED_BOXED_PRIMITIVE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DMI_ARGUMENTS_WRONG_ORDER" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="DMI_BAD_MONTH" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_BIGDECIMAL_CONSTRUCTED_FROM_DOUBLE" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="DMI_BLOCKING_METHODS_ON_URL" level="BLOCKER" enabled="true" />
|
||||
<coding_rule class="DMI_CALLING_NEXT_FROM_HASNEXT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_COLLECTIONS_SHOULD_NOT_CONTAIN_THEMSELVES" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_COLLECTION_OF_URLS" level="BLOCKER" enabled="true" />
|
||||
<coding_rule class="DMI_CONSTANT_DB_PASSWORD" level="BLOCKER" enabled="true" />
|
||||
<coding_rule class="DMI_DOH" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="DMI_EMPTY_DB_PASSWORD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_ENTRY_SETS_MAY_REUSE_ENTRY_OBJECTS" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="DMI_FUTILE_ATTEMPT_TO_CHANGE_MAXPOOL_SIZE_OF_SCHEDULED_THREAD_POOL_EXECUTOR" level="MINOR" enabled="true" />
|
||||
<coding_rule class="DMI_HARDCODED_ABSOLUTE_FILENAME" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_INVOKING_HASHCODE_ON_ARRAY" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_INVOKING_TOSTRING_ON_ANONYMOUS_ARRAY" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_INVOKING_TOSTRING_ON_ARRAY" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_LONG_BITS_TO_DOUBLE_INVOKED_ON_INT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_NONSERIALIZABLE_OBJECT_WRITTEN" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_RANDOM_USED_ONLY_ONCE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_SCHEDULED_THREAD_POOL_EXECUTOR_WITH_ZERO_CORE_THREADS" level="MINOR" enabled="true" />
|
||||
<coding_rule class="DMI_THREAD_PASSED_WHERE_RUNNABLE_EXPECTED" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DMI_UNSUPPORTED_METHOD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DMI_USELESS_SUBSTRING" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_USING_REMOVEALL_TO_CLEAR_COLLECTION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DMI_VACUOUS_CALL_TO_EASYMOCK_METHOD" level="MINOR" enabled="true" />
|
||||
<coding_rule class="DMI_VACUOUS_SELF_COLLECTION_CALL" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DM_BOOLEAN_CTOR" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DM_BOXED_PRIMITIVE_FOR_COMPARE" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DM_BOXED_PRIMITIVE_FOR_PARSING" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DM_BOXED_PRIMITIVE_TOSTRING" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DM_CONVERT_CASE" level="INFO" enabled="true" />
|
||||
<coding_rule class="DM_DEFAULT_ENCODING" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="DM_EXIT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DM_FP_NUMBER_CTOR" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DM_GC" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DM_INVALID_MIN_MAX" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DM_MONITOR_WAIT_ON_CONDITION" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DM_NEW_FOR_GETCLASS" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DM_NEXTINT_VIA_NEXTDOUBLE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DM_NUMBER_CTOR" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="DM_RUN_FINALIZERS_ON_EXIT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DM_STRING_CTOR" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DM_STRING_TOSTRING" level="INFO" enabled="true" />
|
||||
<coding_rule class="DM_STRING_VOID_CTOR" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DM_USELESS_THREAD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DP_DO_INSIDE_DO_PRIVILEGED" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DeclarationOrderCheck" level="INFO" enabled="false" />
|
||||
<coding_rule class="DefaultComesLastCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DescendantTokenCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignAbstractClassWithoutAnyMethod" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignAvoidCatchingGenericException" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignAvoidDeeplyNestedIfStmts" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignAvoidRethrowingException" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DesignAvoidThrowingNewInstanceOfSameException" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignAvoidThrowingNullPointerException" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DesignAvoidThrowingRawExceptionTypes" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DesignClassWithOnlyPrivateConstructorsShouldBeFinal" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignCollapsibleIfStatements" level="MINOR" enabled="true" />
|
||||
<coding_rule class="DesignCouplingBetweenObjects" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignCyclomaticComplexity" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignDataClass" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignDoNotExtendJavaLangError" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignExceptionAsFlowControl" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DesignExcessiveClassLength" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignExcessiveImports" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignExcessiveMethodLength" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignExcessiveParameterList" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignExcessivePublicCount" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignFinalFieldCouldBeStatic" level="MINOR" enabled="true" />
|
||||
<coding_rule class="DesignForExtensionCheck" level="MINOR" enabled="true" />
|
||||
<coding_rule class="DesignGodClass" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignImmutableField" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignLawOfDemeter" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignLogicInversion" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignLoosePackageCoupling" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignModifiedCyclomaticComplexity" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignNPathComplexity" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignNcssConstructorCount" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignNcssCount" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignNcssMethodCount" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DesignNcssTypeCount" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DesignNoInlineScript" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignNoInlineStyleInformation" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignNoLongScripts" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignNoScriptlets" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignSignatureDeclareThrowsException" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DesignSimplifiedTernary" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignSimplifyBooleanAssertion" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignSimplifyBooleanExpressions" level="MINOR" enabled="false" />
|
||||
<coding_rule class="DesignSimplifyBooleanReturns" level="MINOR" enabled="false" />
|
||||
<coding_rule class="DesignSimplifyConditional" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DesignSingularField" level="MINOR" enabled="true" />
|
||||
<coding_rule class="DesignStdCyclomaticComplexity" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignSwitchDensity" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignTooManyFields" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignTooManyMethods" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignUseObjectForClearerAPI" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignUseUtilityClass" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DesignUselessOverridingMethod" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="DocumentationCommentContent" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DocumentationCommentRequired" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DocumentationCommentSize" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DocumentationUncommentedEmptyConstructor" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="DocumentationUncommentedEmptyMethodBody" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="EC_ARRAY_AND_NONARRAY" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="EC_BAD_ARRAY_COMPARE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="EC_INCOMPATIBLE_ARRAY_COMPARE" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="EC_NULL_ARG" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="EC_UNRELATED_CLASS_AND_INTERFACE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="EC_UNRELATED_INTERFACES" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="EC_UNRELATED_TYPES" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="EC_UNRELATED_TYPES_USING_POINTER_EQUALITY" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="EI_EXPOSE_REP" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EI_EXPOSE_REP2" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EI_EXPOSE_STATIC_REP2" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EQ_ABSTRACT_SELF" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EQ_ALWAYS_FALSE" level="BLOCKER" enabled="true" />
|
||||
<coding_rule class="EQ_ALWAYS_TRUE" level="BLOCKER" enabled="true" />
|
||||
<coding_rule class="EQ_CHECK_FOR_OPERAND_NOT_COMPATIBLE_WITH_THIS" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EQ_COMPARETO_USE_OBJECT_EQUALS" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="EQ_COMPARING_CLASS_NAMES" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EQ_DOESNT_OVERRIDE_EQUALS" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="EQ_DONT_DEFINE_EQUALS_FOR_ENUM" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EQ_GETCLASS_AND_CLASS_CONSTANT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="EQ_OTHER_NO_OBJECT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EQ_OTHER_USE_OBJECT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EQ_OVERRIDING_EQUALS_NOT_SYMMETRIC" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EQ_SELF_NO_OBJECT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EQ_SELF_USE_OBJECT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EQ_UNUSUAL" level="MINOR" enabled="true" />
|
||||
<coding_rule class="ES_COMPARING_PARAMETER_STRING_WITH_EQ" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ES_COMPARING_STRINGS_WITH_EQ" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ESync_EMPTY_SYNC" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="EmptyBlockCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="EmptyCatchBlockCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="EmptyForInitializerPadCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="EmptyForIteratorPadCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="EmptyLineSeparatorCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="EmptyStatementCheck" level="MINOR" enabled="true" />
|
||||
<coding_rule class="EqualsAvoidNullCheck" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="EqualsHashCodeCheck" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ErrorProneAssignmentInOperand" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneAssignmentToNonFinalStatic" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneAvoidAccessibilityAlteration" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneAvoidAssertAsIdentifier" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneAvoidBranchingStatementAsLastInLoop" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneAvoidCallingFinalize" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneAvoidCatchingNPE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneAvoidCatchingThrowable" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ErrorProneAvoidDecimalLiteralsInBigDecimalConstructor" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneAvoidDuplicateLiterals" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneAvoidEnumAsIdentifier" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneAvoidFieldNameMatchingMethodName" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneAvoidFieldNameMatchingTypeName" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneAvoidInstanceofChecksInCatchClause" level="MINOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneAvoidLiteralsInIfCondition" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneAvoidLosingExceptionInformation" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneAvoidMultipleUnaryOperators" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneAvoidUsingOctalValues" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneBadComparison" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneBeanMembersShouldSerialize" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneBrokenNullCheck" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ErrorProneCallSuperFirst" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneCallSuperLast" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneCheckSkipResult" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneClassCastExceptionWithToArray" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneCloneMethodMustBePublic" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneCloneMethodMustImplementCloneable" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneCloneMethodReturnTypeMustMatchClassName" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneCloneThrowsCloneNotSupportedException" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneCloseResource" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneCompareObjectsWithEquals" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneConstructorCallsOverridableMethod" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneDataflowAnomalyAnalysis" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneDoNotCallGarbageCollectionExplicitly" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="ErrorProneDoNotCallSystemExit" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneDoNotHardCodeSDCard" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneDoNotThrowExceptionInFinally" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneDontImportSun" level="MINOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneDontUseFloatTypeForLoopIndices" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneEmptyCatchBlock" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="ErrorProneEmptyFinalizer" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneEmptyFinallyBlock" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ErrorProneEmptyIfStmt" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ErrorProneEmptyInitializer" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneEmptyStatementBlock" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneEmptyStatementNotInLoop" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneEmptyStaticInitializer" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneEmptySwitchStatements" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneEmptySynchronizedBlock" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ErrorProneEmptyTryBlock" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneEmptyWhileStmt" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ErrorProneEqualsNull" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ErrorProneFinalizeDoesNotCallSuperFinalize" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneFinalizeOnlyCallsSuperFinalize" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneFinalizeOverloaded" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneFinalizeShouldBeProtected" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneIdempotentOperations" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneImportFromSamePackage" level="MINOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneInstantiationToGetClass" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneInvalidSlf4jMessageFormat" level="MINOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneJUnitSpelling" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneJUnitStaticSuite" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneJspEncoding" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneJumbledIncrementer" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneLoggerIsNotStaticFinal" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneMethodWithSameNameAsEnclosingClass" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneMisplacedNullCheck" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="ErrorProneMissingBreakInSwitch" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="ErrorProneMissingSerialVersionUID" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneMissingStaticMethodInNonInstantiatableClass" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneMoreThanOneLogger" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneNonCaseLabelInSwitchStatement" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneNonStaticInitializer" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneNullAssignment" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneOverrideBothEqualsAndHashcode" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="ErrorProneProperCloneImplementation" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="ErrorProneProperLogger" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneReturnEmptyArrayRatherThanNull" level="MINOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneReturnFromFinallyBlock" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneSimpleDateFormatNeedsLocale" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneSingleMethodSingleton" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneSingletonClassReturningNewInstance" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneStaticEJBFieldShouldBeFinal" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneStringBufferInstantiationWithChar" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneSuspiciousEqualsMethodName" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ErrorProneSuspiciousHashcodeMethodName" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneSuspiciousOctalEscape" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneTestClassWithoutTestCases" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneUnconditionalIfStatement" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ErrorProneUnnecessaryBooleanAssertion" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneUnnecessaryCaseChange" level="MINOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneUnnecessaryConversionTemporary" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneUnusedNullCheckInEquals" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneUseCorrectExceptionLogging" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ErrorProneUseEqualsToCompareStrings" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneUseLocaleWithCaseConversions" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ErrorProneUseProperClassLoader" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="ErrorProneUselessOperationOnImmutable" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ExecutableStatementCountCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ExplicitInitializationCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="FB_MISSING_EXPECTED_WARNING" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="FB_UNEXPECTED_WARNING" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="FE_FLOATING_POINT_EQUALITY" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="FE_TEST_IF_EQUAL_TO_NOT_A_NUMBER" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="FI_EMPTY" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="FI_EXPLICIT_INVOCATION" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="FI_FINALIZER_NULLS_FIELDS" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="FI_FINALIZER_ONLY_NULLS_FIELDS" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="FI_MISSING_SUPER_CALL" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="FI_NULLIFY_SUPER" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="FI_PUBLIC_SHOULD_BE_PROTECTED" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="FI_USELESS" level="MINOR" enabled="true" />
|
||||
<coding_rule class="FL_MATH_USING_FLOAT_PRECISION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="FallThroughCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="FileLengthCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="FileTabCharacterCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="FinalClassCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="FinalLocalVariableCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="FinalParametersCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="GC_UNCHECKED_TYPE_IN_GENERIC_CALL" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="GC_UNRELATED_TYPES" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="GenericWhitespaceCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="HE_EQUALS_NO_HASHCODE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="HE_EQUALS_USE_HASHCODE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="HE_HASHCODE_NO_EQUALS" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="HE_HASHCODE_USE_OBJECT_EQUALS" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="HE_INHERITS_EQUALS_USE_HASHCODE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="HE_SIGNATURE_DECLARES_HASHING_OF_UNHASHABLE_CLASS" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="HE_USE_OF_UNHASHABLE_CLASS" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="HRS_REQUEST_PARAMETER_TO_COOKIE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="HRS_REQUEST_PARAMETER_TO_HTTP_HEADER" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="HSC_HUGE_SHARED_STRING_CONSTANT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="HeaderCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="HiddenFieldCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="HideUtilityClassConstructorCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ICAST_BAD_SHIFT_AMOUNT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ICAST_IDIV_CAST_TO_DOUBLE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ICAST_INTEGER_MULTIPLY_CAST_TO_LONG" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ICAST_INT_2_LONG_AS_INSTANT" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="ICAST_INT_CAST_TO_DOUBLE_PASSED_TO_CEIL" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ICAST_INT_CAST_TO_FLOAT_PASSED_TO_ROUND" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ICAST_QUESTIONABLE_UNSIGNED_RIGHT_SHIFT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IC_INIT_CIRCULARITY" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IC_SUPERCLASS_USES_SUBCLASS_DURING_INITIALIZATION" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="IIL_ELEMENTS_GET_LENGTH_IN_LOOP" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="IIL_PATTERN_COMPILE_IN_LOOP" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="IIL_PATTERN_COMPILE_IN_LOOP_INDIRECT" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="IIL_PREPARE_STATEMENT_IN_LOOP" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="IIO_INEFFICIENT_INDEX_OF" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="IIO_INEFFICIENT_LAST_INDEX_OF" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="IJU_ASSERT_METHOD_INVOKED_FROM_RUN_METHOD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IJU_BAD_SUITE_METHOD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IJU_NO_TESTS" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IJU_SETUP_NO_SUPER" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IJU_SUITE_NOT_STATIC" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IJU_TEARDOWN_NO_SUPER" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IL_CONTAINER_ADDED_TO_ITSELF" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IL_INFINITE_LOOP" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IL_INFINITE_RECURSIVE_LOOP" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IMA_INEFFICIENT_MEMBER_ACCESS" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="IMSE_DONT_CATCH_IMSE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="IM_AVERAGE_COMPUTATION_COULD_OVERFLOW" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IM_BAD_CHECK_FOR_ODD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IM_MULTIPLYING_RESULT_OF_IREM" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="INT_BAD_COMPARISON_WITH_INT_VALUE" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="INT_BAD_COMPARISON_WITH_NONNEGATIVE_VALUE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="INT_BAD_COMPARISON_WITH_SIGNED_BYTE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="INT_BAD_REM_BY_1" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="INT_VACUOUS_BIT_OPERATION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="INT_VACUOUS_COMPARISON" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IO_APPENDING_TO_OBJECT_OUTPUT_STREAM" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IP_PARAMETER_IS_DEAD_BUT_OVERWRITTEN" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IS2_INCONSISTENT_SYNC" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ISC_INSTANTIATE_STATIC_CLASS" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="IS_FIELD_NOT_GUARDED" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ITA_INEFFICIENT_TO_ARRAY" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="IT_NO_SUCH_ELEMENT" level="MINOR" enabled="true" />
|
||||
<coding_rule class="IllegalCatchCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="IllegalImportCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="IllegalInstantiationCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="IllegalThrowsCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="IllegalTokenCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="IllegalTokenTextCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="IllegalTypeCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ImportControlCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ImportOrderCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="IndentationCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="InnerAssignmentCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="InnerTypeLastCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="InterfaceIsTypeCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="InterfaceMemberImpliedModifierCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="InterfaceTypeParameterNameCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="InvalidJavadocPositionCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="J2EE_STORE_OF_NON_SERIALIZABLE_OBJECT_INTO_SESSION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="JCIP_FIELD_ISNT_FINAL_IN_IMMUTABLE_CLASS" level="MINOR" enabled="true" />
|
||||
<coding_rule class="JLM_JSR166_LOCK_MONITORENTER" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="JLM_JSR166_UTILCONCURRENT_MONITORENTER" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="JML_JSR166_CALLING_WAIT_RATHER_THAN_AWAIT" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="JavaNCSSCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="JavadocBlockTagLocationCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="JavadocContentLocationCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="JavadocMethodCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="JavadocPackageCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="JavadocParagraphCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="JavadocStyleCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="JavadocTagContinuationIndentationCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="JavadocTypeCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="JavadocVariableCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="LI_LAZY_INIT_STATIC" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="LI_LAZY_INIT_UPDATE_STATIC" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="LambdaParameterNameCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="LeftCurlyCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="LineLengthCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="LocalFinalVariableNameCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="LocalVariableNameCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ME_ENUM_FIELD_SETTER" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ME_MUTABLE_ENUM_FIELD" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MF_CLASS_MASKS_FIELD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="MF_METHOD_MASKS_FIELD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ML_SYNC_ON_FIELD_TO_GUARD_CHANGING_THAT_FIELD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ML_SYNC_ON_UPDATED_FIELD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="MSF_MUTABLE_SERVLET_FIELD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="MS_CANNOT_BE_FINAL" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="MS_EXPOSE_REP" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="MS_FINAL_PKGPROTECT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="MS_MUTABLE_ARRAY" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="MS_MUTABLE_COLLECTION" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MS_MUTABLE_COLLECTION_PKGPROTECT" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MS_MUTABLE_HASHTABLE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="MS_OOI_PKGPROTECT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="MS_PKGPROTECT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="MS_SHOULD_BE_FINAL" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="MS_SHOULD_BE_REFACTORED_TO_BE_FINAL" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="MTIA_SUSPECT_SERVLET_INSTANCE_FIELD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="MTIA_SUSPECT_STRUTS_INSTANCE_FIELD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="MWN_MISMATCHED_NOTIFY" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="MWN_MISMATCHED_WAIT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="MagicNumberCheck" level="MINOR" enabled="true" />
|
||||
<coding_rule class="MemberNameCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="MethodCountCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MethodLengthCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MethodNameCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="MethodParamPadCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MethodTypeParameterNameCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MissingCtorCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MissingDeprecatedCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MissingJavadocMethodCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MissingJavadocPackageCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MissingJavadocTypeCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MissingOverrideCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MissingSwitchDefaultCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ModifiedControlVariableCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ModifierOrderCheck" level="MINOR" enabled="true" />
|
||||
<coding_rule class="MultipleStringLiteralsCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MultipleVariableDeclarationsCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MultithreadingAvoidSynchronizedAtMethodLevel" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MultithreadingAvoidThreadGroup" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="MultithreadingAvoidUsingVolatile" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MultithreadingDoNotUseThreads" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MultithreadingDontCallThreadRun" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MultithreadingDoubleCheckedLocking" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MultithreadingNonThreadSafeSingleton" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MultithreadingUnsynchronizedStaticDateFormatter" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MultithreadingUseConcurrentHashMap" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MultithreadingUseNotifyAllInsteadOfNotify" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="MutableExceptionCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NM_BAD_EQUAL" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NM_CLASS_NAMING_CONVENTION" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NM_CLASS_NOT_EXCEPTION" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NM_CONFUSING" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NM_FIELD_NAMING_CONVENTION" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NM_FUTURE_KEYWORD_USED_AS_IDENTIFIER" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NM_FUTURE_KEYWORD_USED_AS_MEMBER_IDENTIFIER" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NM_LCASE_HASHCODE" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NM_LCASE_TOSTRING" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NM_METHOD_CONSTRUCTOR_CONFUSION" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NM_METHOD_NAMING_CONVENTION" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NM_SAME_SIMPLE_NAME_AS_INTERFACE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NM_VERY_CONFUSING" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NM_VERY_CONFUSING_INTENTIONAL" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NM_WRONG_PACKAGE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NM_WRONG_PACKAGE_INTENTIONAL" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NN_NAKED_NOTIFY" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NOISE_FIELD_REFERENCE" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NOISE_METHOD_CALL" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NOISE_NULL_DEREFERENCE" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NOISE_OPERATION" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NO_NOTIFY_NOT_NOTIFYALL" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_ALWAYS_NULL" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_ALWAYS_NULL_EXCEPTION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_ARGUMENT_MIGHT_BE_NULL" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NP_BOOLEAN_RETURN_NULL" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NP_CLONE_COULD_RETURN_NULL" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_CLOSING_NULL" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NP_DEREFERENCE_OF_READLINE_VALUE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_GUARANTEED_DEREF" level="BLOCKER" enabled="true" />
|
||||
<coding_rule class="NP_GUARANTEED_DEREF_ON_EXCEPTION_PATH" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_IMMEDIATE_DEREFERENCE_OF_READLINE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_LOAD_OF_KNOWN_NULL_VALUE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NP_METHOD_RETURN_RELAXING_ANNOTATION" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="NP_NONNULL_PARAM_VIOLATION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_NONNULL_RETURN_VIOLATION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_NULL_INSTANCEOF" level="BLOCKER" enabled="true" />
|
||||
<coding_rule class="NP_NULL_ON_SOME_PATH" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_NULL_ON_SOME_PATH_EXCEPTION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_NULL_PARAM_DEREF" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_NULL_PARAM_DEREF_NONVIRTUAL" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_OPTIONAL_RETURN_NULL" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_STORE_INTO_NONNULL_FIELD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_SYNC_AND_NULL_CHECK_FIELD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NP_TOSTRING_COULD_RETURN_NULL" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NP_UNWRITTEN_FIELD" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NP_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="NPathComplexityCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NS_DANGEROUS_NON_SHORT_CIRCUIT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="NS_NON_SHORT_CIRCUIT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="NeedBracesCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="NestedForDepthCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NestedIfDepthCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NestedTryDepthCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NewlineAtEndOfFileCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="NoArrayTrailingCommaCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NoCloneCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NoEnumTrailingCommaCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NoFinalizerCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NoLineWrapCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="NoWhitespaceAfterCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="NoWhitespaceBeforeCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="NonEmptyAtclauseDescriptionCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="OBL_UNSATISFIED_OBLIGATION" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="ODR_OPEN_DATABASE_RESOURCE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ODR_OPEN_DATABASE_RESOURCE_EXCEPTION_PATH" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="OS_OPEN_STREAM" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="OS_OPEN_STREAM_EXCEPTION_PATH" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="OneStatementPerLineCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="OneTopLevelClassCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="OperatorWrapCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="OrderedPropertiesCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="OuterTypeFilenameCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="OuterTypeNumberCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="OverloadMethodsDeclarationOrderCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PS_PUBLIC_SEMAPHORES" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="PT_ABSOLUTE_PATH_TRAVERSAL" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="PT_RELATIVE_PATH_TRAVERSAL" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="PZLA_PREFER_ZERO_LENGTH_ARRAYS" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="PZ_DONT_REUSE_ENTRY_OBJECTS_IN_ITERATORS" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="PackageAnnotationCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PackageDeclarationCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PackageNameCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ParameterAssignmentCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ParameterNameCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="ParameterNumberCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ParenPadCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="PerformanceAddEmptyString" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PerformanceAppendCharacterWithChar" level="MINOR" enabled="false" />
|
||||
<coding_rule class="PerformanceAvoidArrayLoops" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="PerformanceAvoidInstantiatingObjectsInLoops" level="MINOR" enabled="false" />
|
||||
<coding_rule class="PerformanceAvoidUsingShortType" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PerformanceBigIntegerInstantiation" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="PerformanceBooleanInstantiation" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="PerformanceByteInstantiation" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PerformanceConsecutiveAppendsShouldReuse" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PerformanceConsecutiveLiteralAppends" level="MINOR" enabled="false" />
|
||||
<coding_rule class="PerformanceInefficientEmptyStringCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PerformanceInefficientStringBuffering" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="PerformanceInsufficientStringBufferDeclaration" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PerformanceIntegerInstantiation" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="PerformanceLongInstantiation" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PerformanceOptimizableToArrayCall" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PerformanceRedundantFieldInitializer" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PerformanceShortInstantiation" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PerformanceSimplifyStartsWith" level="MINOR" enabled="false" />
|
||||
<coding_rule class="PerformanceStringInstantiation" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="PerformanceStringToString" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="PerformanceTooFewBranchesForASwitchStatement" level="MINOR" enabled="false" />
|
||||
<coding_rule class="PerformanceUnnecessaryWrapperObjectCreation" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PerformanceUseArrayListInsteadOfVector" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="PerformanceUseArraysAsList" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="PerformanceUseIndexOfChar" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="PerformanceUseStringBufferForStringAppends" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="PerformanceUseStringBufferLength" level="MINOR" enabled="true" />
|
||||
<coding_rule class="PerformanceUselessStringValueOf" level="MINOR" enabled="true" />
|
||||
<coding_rule class="QBA_QUESTIONABLE_BOOLEAN_ASSIGNMENT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="QF_QUESTIONABLE_FOR_LOOP" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RANGE_ARRAY_INDEX" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RANGE_ARRAY_LENGTH" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RANGE_ARRAY_OFFSET" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RANGE_STRING_INDEX" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RCN_REDUNDANT_COMPARISON_OF_NULL_AND_NONNULL_VALUE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RCN_REDUNDANT_COMPARISON_TWO_NULL_VALUES" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RC_REF_COMPARISON" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RC_REF_COMPARISON_BAD_PRACTICE" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="REC_CATCH_EXCEPTION" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="RE_BAD_SYNTAX_FOR_REGULAR_EXPRESSION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RE_CANT_USE_FILE_SEPARATOR_AS_REGULAR_EXPRESSION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RE_POSSIBLE_UNINTENDED_PATTERN" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RI_REDUNDANT_INTERFACES" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="RR_NOT_CHECKED" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="RS_READOBJECT_SYNC" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RU_INVOKE_RUN" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="RV_01_TO_INT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="RV_ABSOLUTE_VALUE_OF_HASHCODE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RV_ABSOLUTE_VALUE_OF_RANDOM_INT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RV_CHECK_COMPARETO_FOR_SPECIFIC_RETURN_VALUE" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="RV_CHECK_FOR_POSITIVE_INDEXOF" level="MINOR" enabled="true" />
|
||||
<coding_rule class="RV_DONT_JUST_NULL_CHECK_READLINE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="RV_EXCEPTION_NOT_THROWN" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RV_NEGATING_RESULT_OF_COMPARETO" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="RV_REM_OF_HASHCODE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RV_REM_OF_RANDOM_INT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="RV_RETURN_VALUE_IGNORED" level="MINOR" enabled="true" />
|
||||
<coding_rule class="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="RV_RETURN_VALUE_IGNORED_INFERRED" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RV_RETURN_VALUE_OF_PUTIFABSENT_IGNORED" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RedundantImportCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="RedundantModifierCheck" level="MINOR" enabled="true" />
|
||||
<coding_rule class="RegexpCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RegexpHeaderCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RegexpMultilineCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RegexpOnFilenameCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RegexpSinglelineCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RegexpSinglelineJavaCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RequireThisCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="ReturnCountCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="RightCurlyCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="RpC_REPEATED_CONDITIONAL_TEST" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SA_FIELD_DOUBLE_ASSIGNMENT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SA_FIELD_SELF_ASSIGNMENT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SA_FIELD_SELF_COMPARISON" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SA_FIELD_SELF_COMPUTATION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SA_LOCAL_DOUBLE_ASSIGNMENT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SA_LOCAL_SELF_ASSIGNMENT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SA_LOCAL_SELF_ASSIGNMENT_INSTEAD_OF_FIELD" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="SA_LOCAL_SELF_COMPARISON" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SA_LOCAL_SELF_COMPUTATION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SBSC_USE_STRINGBUFFER_CONCATENATION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SC_START_IN_CTOR" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SE_BAD_FIELD" level="MINOR" enabled="false" />
|
||||
<coding_rule class="SE_BAD_FIELD_INNER_CLASS" level="MINOR" enabled="true" />
|
||||
<coding_rule class="SE_BAD_FIELD_STORE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SE_COMPARATOR_SHOULD_BE_SERIALIZABLE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SE_INNER_CLASS" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SE_METHOD_MUST_BE_PRIVATE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SE_NONFINAL_SERIALVERSIONID" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SE_NONLONG_SERIALVERSIONID" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SE_NONSTATIC_SERIALVERSIONID" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SE_NO_SERIALVERSIONID" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SE_NO_SUITABLE_CONSTRUCTOR" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SE_NO_SUITABLE_CONSTRUCTOR_FOR_EXTERNALIZATION" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SE_PRIVATE_READ_RESOLVE_NOT_INHERITED" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SE_READ_RESOLVE_IS_STATIC" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SE_READ_RESOLVE_MUST_RETURN_OBJECT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SE_TRANSIENT_FIELD_NOT_RESTORED" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SF_DEAD_STORE_DUE_TO_SWITCH_FALLTHROUGH_TO_THROW" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SF_SWITCH_FALLTHROUGH" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SF_SWITCH_NO_DEFAULT" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SIC_INNER_SHOULD_BE_STATIC" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SIC_INNER_SHOULD_BE_STATIC_ANON" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SIC_THREADLOCAL_DEADLY_EMBRACE" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SIO_SUPERFLUOUS_INSTANCEOF" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SI_INSTANCE_BEFORE_FINALS_ASSIGNED" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SP_SPIN_ON_FIELD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SQL_BAD_PREPARED_STATEMENT_ACCESS" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SQL_BAD_RESULTSET_ACCESS" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SR_NOT_CHECKED" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SS_SHOULD_BE_STATIC" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="STCAL_INVOKE_ON_STATIC_CALENDAR_INSTANCE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="STCAL_STATIC_CALENDAR_INSTANCE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="STCAL_STATIC_SIMPLE_DATE_FORMAT_INSTANCE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="STI_INTERRUPTED_ON_CURRENTTHREAD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="STI_INTERRUPTED_ON_UNKNOWNTHREAD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SWL_SLEEP_WITH_LOCK_HELD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="SW_SWING_METHODS_INVOKED_IN_SWING_THREAD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SecurityIframeMissingSrcAttribute" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SecurityNoUnsanitizedJSPExpression" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SeparatorWrapCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SimplifyBooleanExpressionCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SimplifyBooleanReturnCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SingleLineJavadocCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SingleSpaceSeparatorCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="StaticVariableNameCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="StringLiteralEqualityCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="SummaryJavadocCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SuperCloneCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SuperFinalizeCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SuppressWarningsCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="SuppressWarningsHolder" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="TLW_TWO_LOCK_WAIT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="TQ_ALWAYS_VALUE_USED_WHERE_NEVER_REQUIRED" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="TQ_COMPARING_VALUES_WITH_INCOMPATIBLE_TYPE_QUALIFIERS" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_ALWAYS_SINK" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="TQ_EXPLICIT_UNKNOWN_SOURCE_VALUE_REACHES_NEVER_SINK" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="TQ_MAYBE_SOURCE_VALUE_REACHES_ALWAYS_SINK" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="TQ_MAYBE_SOURCE_VALUE_REACHES_NEVER_SINK" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="TQ_NEVER_VALUE_USED_WHERE_ALWAYS_REQUIRED" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="TQ_UNKNOWN_VALUE_USED_WHERE_ALWAYS_STRICTLY_REQUIRED" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="ThrowsCountCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="TodoCommentCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="TrailingCommentCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="TranslationCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="TypeNameCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="TypecastParenPadCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UCF_USELESS_CONTROL_FLOW" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="UCF_USELESS_CONTROL_FLOW_NEXT_LINE" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="UC_USELESS_CONDITION" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UC_USELESS_CONDITION_TYPE" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UC_USELESS_OBJECT" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UC_USELESS_OBJECT_STACK" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UC_USELESS_VOID_METHOD" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UG_SYNC_SET_UNSYNC_GET" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="UI_INHERITANCE_UNSAFE_GETRESOURCE" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="UL_UNRELEASED_LOCK" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="UL_UNRELEASED_LOCK_EXCEPTION_PATH" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="UMAC_UNCALLABLE_METHOD_OF_ANONYMOUS_CLASS" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="UM_UNNECESSARY_MATH" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="UPM_UNCALLED_PRIVATE_METHOD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="URF_UNREAD_FIELD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="UR_UNINIT_READ" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="UR_UNINIT_READ_CALLED_FROM_SUPER_CONSTRUCTOR" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="USM_USELESS_ABSTRACT_METHOD" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="USM_USELESS_SUBCLASS_METHOD" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UUF_UNUSED_FIELD" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UWF_NULL_FIELD" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="UWF_UNWRITTEN_FIELD" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="UW_UNCOND_WAIT" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="UncommentedMainCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UniquePropertiesCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UnnecessaryParenthesesCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="UnnecessarySemicolonAfterTypeMemberDeclarationCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UnnecessarySemicolonInEnumerationCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UnnecessarySemicolonInTryWithResourcesCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="UnusedImportsCheck" level="INFO" enabled="true" />
|
||||
<coding_rule class="UpperEllCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="VA_FORMAT_STRING_BAD_ARGUMENT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="VA_FORMAT_STRING_BAD_CONVERSION" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="VA_FORMAT_STRING_BAD_CONVERSION_FROM_ARRAY" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="VA_FORMAT_STRING_BAD_CONVERSION_TO_BOOLEAN" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="VA_FORMAT_STRING_EXPECTED_MESSAGE_FORMAT_SUPPLIED" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="VA_FORMAT_STRING_EXTRA_ARGUMENTS_PASSED" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="VA_FORMAT_STRING_ILLEGAL" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="VA_FORMAT_STRING_MISSING_ARGUMENT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="VA_FORMAT_STRING_NO_PREVIOUS_ARGUMENT" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="VA_FORMAT_STRING_USES_NEWLINE" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="VA_PRIMITIVE_ARRAY_PASSED_TO_OBJECT_VARARG" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="VO_VOLATILE_INCREMENT" level="CRITICAL" enabled="false" />
|
||||
<coding_rule class="VO_VOLATILE_REFERENCE_TO_ARRAY" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="VR_UNRESOLVABLE_REFERENCE" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="VariableDeclarationUsageDistanceCheck" level="MAJOR" enabled="false" />
|
||||
<coding_rule class="VisibilityModifierCheck" level="MAJOR" enabled="true" />
|
||||
<coding_rule class="WA_AWAIT_NOT_IN_LOOP" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="WA_NOT_IN_LOOP" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="WL_USING_GETCLASS_RATHER_THAN_CLASS_LITERAL" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="WMI_WRONG_MAP_ITERATOR" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="WS_WRITEOBJECT_SYNC" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="WhitespaceAfterCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="WhitespaceAroundCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="WriteTagCheck" level="MINOR" enabled="false" />
|
||||
<coding_rule class="XFB_XML_FACTORY_BYPASS" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="XSS_REQUEST_PARAMETER_TO_JSP_WRITER" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="XSS_REQUEST_PARAMETER_TO_SEND_ERROR" level="CRITICAL" enabled="true" />
|
||||
<coding_rule class="XSS_REQUEST_PARAMETER_TO_SERVLET_WRITER" level="CRITICAL" enabled="true" />
|
||||
</profile>
|
||||
</profiles>
|
||||
<list size="0" />
|
||||
</component>
|
||||
</project>
|
124
.idea/uiDesigner.xml
generated
124
.idea/uiDesigner.xml
generated
@ -1,124 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||
<preferred-size width="-1" height="20" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
</project>
|
6
.idea/vcs.xml
generated
6
.idea/vcs.xml
generated
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
160
dependencies/pom.xml
vendored
160
dependencies/pom.xml
vendored
@ -35,6 +35,8 @@
|
||||
<postgresql.version>42.7.4</postgresql.version>
|
||||
<!-- <anwena.version>2.1.0</anwena.version>-->
|
||||
<anwena.version>2.0.8.3</anwena.version>
|
||||
<!-- 消息队列 -->
|
||||
<rocketmq-spring.version>2.3.1</rocketmq-spring.version>
|
||||
<!-- 服务保障相关 -->
|
||||
<lock4j.version>2.2.7</lock4j.version>
|
||||
<!-- 监控相关 -->
|
||||
@ -68,7 +70,6 @@
|
||||
<bizlog-sdk.version>3.0.6</bizlog-sdk.version>
|
||||
<netty.version>4.1.113.Final</netty.version>
|
||||
<oshi-version>6.6.5</oshi-version>
|
||||
<okhttp.version>4.12.0</okhttp.version>
|
||||
<!-- 三方云服务相关 -->
|
||||
<commons-io.version>2.17.0</commons-io.version>
|
||||
<commons-compress.version>1.27.1</commons-compress.version>
|
||||
@ -76,7 +77,6 @@
|
||||
<jimureport.version>1.7.8</jimureport.version>
|
||||
<logback.version>1.2.13</logback.version> <!-- 无法使用 1.3.X 版本,启动会报错 -->
|
||||
<bcprov-jdk18on.version>1.80</bcprov-jdk18on.version>
|
||||
<docker-java.version>3.5.0</docker-java.version>
|
||||
<!-- devops ci worker-->
|
||||
<winp.version>1.28</winp.version>
|
||||
<version-number.version>1.12</version-number.version>
|
||||
@ -85,9 +85,12 @@
|
||||
<commons-exec.version>1.4.0</commons-exec.version>
|
||||
<dd-plist.version>1.28</dd-plist.version>
|
||||
<apk-parser.version>2.6.10</apk-parser.version>
|
||||
<logback-core.version>1.5.8</logback-core.version>
|
||||
<logback-classic.version>1.5.8</logback-classic.version>
|
||||
<caffeine.version>2.9.3</caffeine.version>
|
||||
<resilience4j-circuitbreaker.version>2.3.0</resilience4j-circuitbreaker.version>
|
||||
<ognl.version>3.2.1</ognl.version>
|
||||
<!-- <winrm4j.version>0.12.3</winrm4j.version>-->
|
||||
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
@ -155,6 +158,12 @@
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.rocketmq</groupId>
|
||||
<artifactId>rocketmq-spring-boot-starter</artifactId>
|
||||
<version>${rocketmq-spring.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>spring-boot-starter-mybatis</artifactId>
|
||||
@ -210,6 +219,62 @@
|
||||
<artifactId>module-system-biz</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<!--ci-pipeline-dependency-->
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-process-api</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-environment</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-event</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-log</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-market</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-process-api</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-project</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-quality</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-ticket</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-repository</artifactId>
|
||||
@ -218,29 +283,22 @@
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-commons</artifactId>
|
||||
<artifactId>module-ci-worker</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-process-api</artifactId>
|
||||
<artifactId>module-ci-dispatch-api</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-process-biz</artifactId>
|
||||
<artifactId>module-ci-store-api</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cd.casic.boot</groupId>
|
||||
<artifactId>module-ci-process-api</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
||||
<!--ci-pipeline-dependency-->
|
||||
<!---->
|
||||
<dependency>
|
||||
<groupId>io.github.mouzt</groupId>
|
||||
@ -413,22 +471,6 @@
|
||||
<artifactId>spring-boot-admin-starter-client</artifactId> <!-- 实现 Spring Boot Admin Server 客户端 -->
|
||||
<version>${spring-boot-admin.version}</version>
|
||||
</dependency>
|
||||
<!--鉴权相关-->
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-oauth2-jose</artifactId>
|
||||
<version>6.3.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-oauth2-client</artifactId>
|
||||
<version>6.3.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-oauth2-resource-server</artifactId>
|
||||
<version>6.3.4</version>
|
||||
</dependency>
|
||||
<!-- Test 测试 -->
|
||||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
@ -603,9 +645,9 @@
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.pf4j</groupId>
|
||||
<artifactId>pf4j-spring</artifactId>
|
||||
<version>${pf4j-spring.version}</version>
|
||||
<groupId>io.cloudsoft.windows</groupId>
|
||||
<artifactId>winrm4j</artifactId>
|
||||
<version>0.12.0</version> <!-- 最新稳定版 -->
|
||||
</dependency>
|
||||
|
||||
<!--数据库驱动-->
|
||||
@ -657,38 +699,7 @@
|
||||
<artifactId>bcprov-jdk18on</artifactId>
|
||||
<version>${bcprov-jdk18on.version}</version>
|
||||
</dependency>
|
||||
<!--docker 操作-->
|
||||
<dependency>
|
||||
<groupId>com.github.docker-java</groupId>
|
||||
<artifactId>docker-java</artifactId>
|
||||
<version>${docker-java.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>guava</artifactId>
|
||||
<groupId>com.google.guava</groupId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<groupId>commons-io</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.docker-java</groupId>
|
||||
<artifactId>docker-java-transport-httpclient5</artifactId>
|
||||
<version>${docker-java.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<version>${okhttp.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- devops ci- worker start-->
|
||||
<dependency>
|
||||
<groupId>org.jvnet.winp</groupId>
|
||||
@ -722,23 +733,34 @@
|
||||
<version>${apk-parser.version}</version>
|
||||
<!-- <version></version>-->
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-core</artifactId>
|
||||
<version>${logback-core.version}</version>
|
||||
<!-- <version>1</version>-->
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>${logback-classic.version}</version>
|
||||
<!-- <version></version>-->
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.ben-manes.caffeine</groupId>
|
||||
<artifactId>caffeine</artifactId>
|
||||
<version>${caffeine.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.github.resilience4j</groupId>
|
||||
<artifactId>resilience4j-circuitbreaker</artifactId>
|
||||
<version>${resilience4j-circuitbreaker.version}</version>
|
||||
</dependency>
|
||||
<!-- devops ci- worker end-->
|
||||
<!-- ssh相关依赖-->
|
||||
<dependency>
|
||||
<groupId>ognl</groupId>
|
||||
<artifactId>ognl</artifactId>
|
||||
<version>${ognl.version}</version>
|
||||
<groupId>io.cloudsoft.windows</groupId>
|
||||
<artifactId>winrm4j</artifactId>
|
||||
<version>0.12.3</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
@ -171,6 +171,27 @@
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-annotation</artifactId>
|
||||
<version>3.5.8</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis</artifactId>
|
||||
<version>3.5.16</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.github.mouzt</groupId>
|
||||
<artifactId>bizlog-sdk</artifactId>
|
||||
<version>3.0.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.lionsoul</groupId>
|
||||
<artifactId>ip2region</artifactId>
|
||||
<version>2.7.0</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.framework.tenant.core.aop;
|
||||
package cd.casic.framework.commons.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.framework.web.config;
|
||||
package cd.casic.framework.commons.config;
|
||||
|
||||
import jakarta.validation.Valid;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.framework.tenant.core.context;
|
||||
package cd.casic.framework.commons.context;
|
||||
|
||||
import com.alibaba.ttl.TransmittableThreadLocal;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.framework.mybatis.core.dataobject;
|
||||
package cd.casic.framework.commons.dataobject;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
@ -52,7 +52,7 @@ public abstract class BaseDO implements Serializable, TransPojo {
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
@TableLogic
|
||||
// @TableLogic
|
||||
private Boolean deleted;
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package cd.casic.framework.commons.dataobject;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ClassName group
|
||||
* @Author hopeli
|
||||
* @Date 2025/5/10 10:20
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class Group {
|
||||
// id
|
||||
private String id;
|
||||
|
||||
// 环境名称
|
||||
private String groupName;
|
||||
|
||||
// 创建时间
|
||||
private String createTime;
|
||||
|
||||
/**
|
||||
* @pi.model:User
|
||||
* @pi.desc:用户
|
||||
*/
|
||||
private User user;
|
||||
|
||||
// 说明
|
||||
private String detail;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package cd.casic.framework.commons.dataobject;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ClassName PatchUser
|
||||
* @Author hopeli
|
||||
* @Date 2025/5/10 10:21
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class PatchUser {
|
||||
private String userId;
|
||||
private Integer roleType = 0;
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package cd.casic.framework.commons.dataobject;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ClassName User
|
||||
* @Author hopeli
|
||||
* @Date 2025/5/10 10:19
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class User {
|
||||
private String id;
|
||||
private String name;
|
||||
private String phone;
|
||||
private String email;
|
||||
private String avatar;
|
||||
private String nickname;
|
||||
private String dirId;
|
||||
private String password;
|
||||
private Integer status;
|
||||
private Integer type;
|
||||
private String openId;
|
||||
private String newPassword;
|
||||
|
||||
}
|
@ -1,8 +1,7 @@
|
||||
package cd.casic.module.system.dal.dataobject.dept;
|
||||
package cd.casic.framework.commons.dataobject.dept;
|
||||
|
||||
import cd.casic.framework.commons.enums.CommonStatusEnum;
|
||||
import cd.casic.framework.tenant.core.db.TenantBaseDO;
|
||||
import cd.casic.module.system.dal.dataobject.user.AdminUserDO;
|
||||
import cd.casic.framework.commons.dataobject.tenant.TenantBaseDO;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
@ -1,7 +1,7 @@
|
||||
package cd.casic.module.system.dal.dataobject.dept;
|
||||
package cd.casic.framework.commons.dataobject.dept;
|
||||
|
||||
import cd.casic.framework.commons.enums.CommonStatusEnum;
|
||||
import cd.casic.framework.mybatis.core.dataobject.BaseDO;
|
||||
import cd.casic.framework.commons.dataobject.BaseDO;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
@ -1,7 +1,6 @@
|
||||
package cd.casic.module.system.dal.dataobject.dept;
|
||||
package cd.casic.framework.commons.dataobject.dept;
|
||||
|
||||
import cd.casic.framework.mybatis.core.dataobject.BaseDO;
|
||||
import cd.casic.module.system.dal.dataobject.user.AdminUserDO;
|
||||
import cd.casic.framework.commons.dataobject.BaseDO;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
@ -1,6 +1,7 @@
|
||||
package cd.casic.framework.tenant.core.db;
|
||||
package cd.casic.framework.commons.dataobject.tenant;
|
||||
|
||||
import cd.casic.framework.mybatis.core.dataobject.BaseDO;
|
||||
|
||||
import cd.casic.framework.commons.dataobject.BaseDO;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
@ -41,4 +41,6 @@ public interface GlobalErrorCodeConstants {
|
||||
|
||||
ErrorCode ID_DUPLICATION = new ErrorCode(1000, "ID重复");
|
||||
|
||||
ErrorCode PIPELINE_ERROR = new ErrorCode(1001,"流水线执行错误");
|
||||
|
||||
}
|
||||
|
@ -82,6 +82,13 @@ public class CommonResult<T> implements Serializable {
|
||||
return Objects.equals(code, GlobalErrorCodeConstants.SUCCESS.getCode());
|
||||
}
|
||||
|
||||
public static <T>CommonResult<T> success() {
|
||||
CommonResult<T> result = new CommonResult<>();
|
||||
result.code = GlobalErrorCodeConstants.SUCCESS.getCode();
|
||||
result.msg = "";
|
||||
return result;
|
||||
}
|
||||
|
||||
@JsonIgnore // 避免 jackson 序列化
|
||||
public boolean isSuccess() {
|
||||
return isSuccess(code);
|
||||
|
@ -1,6 +1,6 @@
|
||||
package cd.casic.framework.redis.core;
|
||||
package cd.casic.framework.commons.util.redis.core;
|
||||
|
||||
import cd.casic.framework.redis.core.enums.AreaTypeEnum;
|
||||
import cd.casic.framework.commons.util.redis.core.enums.AreaTypeEnum;
|
||||
import com.fasterxml.jackson.annotation.JsonBackReference;
|
||||
import com.fasterxml.jackson.annotation.JsonManagedReference;
|
||||
import lombok.AllArgsConstructor;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.framework.redis.core.enums;
|
||||
package cd.casic.framework.commons.util.redis.core.enums;
|
||||
|
||||
import cd.casic.framework.commons.core.IntArrayValuable;
|
||||
import lombok.AllArgsConstructor;
|
@ -1,7 +1,7 @@
|
||||
package cd.casic.framework.redis.core.utils;
|
||||
package cd.casic.framework.commons.util.redis.core.utils;
|
||||
|
||||
import cd.casic.framework.redis.core.Area;
|
||||
import cd.casic.framework.redis.core.enums.AreaTypeEnum;
|
||||
import cd.casic.framework.commons.util.redis.core.Area;
|
||||
import cd.casic.framework.commons.util.redis.core.enums.AreaTypeEnum;
|
||||
import cd.casic.framework.commons.util.object.ObjectUtils;
|
||||
import cn.hutool.core.io.resource.ResourceUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
@ -1,6 +1,6 @@
|
||||
package cd.casic.framework.redis.core.utils;
|
||||
package cd.casic.framework.commons.util.redis.core.utils;
|
||||
|
||||
import cd.casic.framework.redis.core.Area;
|
||||
import cd.casic.framework.commons.util.redis.core.Area;
|
||||
import cn.hutool.core.io.resource.ResourceUtil;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.extern.slf4j.Slf4j;
|
@ -1,12 +1,12 @@
|
||||
package cd.casic.framework.tenant.core.util;
|
||||
package cd.casic.framework.commons.util.tenant;
|
||||
|
||||
|
||||
import cd.casic.framework.tenant.core.context.TenantContextHolder;
|
||||
import cd.casic.framework.commons.context.TenantContextHolder;
|
||||
import cd.casic.framework.commons.util.util.WebFrameworkUtils;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
import static cd.casic.framework.web.core.util.WebFrameworkUtils.HEADER_TENANT_ID;
|
||||
|
||||
/**
|
||||
* 多租户 Util
|
||||
@ -87,7 +87,7 @@ public class TenantUtils {
|
||||
*/
|
||||
public static void addTenantHeader(Map<String, String> headers, Long tenantId) {
|
||||
if (tenantId != null) {
|
||||
headers.put(HEADER_TENANT_ID, tenantId.toString());
|
||||
headers.put(WebFrameworkUtils.HEADER_TENANT_ID, tenantId.toString());
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,10 @@
|
||||
package cd.casic.framework.web.core.util;
|
||||
package cd.casic.framework.commons.util.util;
|
||||
|
||||
import cd.casic.framework.commons.config.WebProperties;
|
||||
import cd.casic.framework.commons.enums.TerminalEnum;
|
||||
import cd.casic.framework.commons.enums.UserTypeEnum;
|
||||
import cd.casic.framework.commons.pojo.CommonResult;
|
||||
import cd.casic.framework.web.config.WebProperties;
|
||||
|
||||
import cn.hutool.core.util.NumberUtil;
|
||||
import jakarta.servlet.ServletRequest;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
@ -113,6 +114,13 @@ public class WebFrameworkUtils {
|
||||
HttpServletRequest request = getRequest();
|
||||
return getLoginUserId(request);
|
||||
}
|
||||
public static String getLoginUserIdStr(){
|
||||
Long loginUserId = getLoginUserId();
|
||||
if (loginUserId!=null) {
|
||||
return String.valueOf(loginUserId);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public static Integer getTerminal() {
|
||||
HttpServletRequest request = getRequest();
|
@ -1,10 +1,10 @@
|
||||
package cd.casic.framework.apilog.config;
|
||||
package cd.casic.framework.datapermission.config;
|
||||
|
||||
import cd.casic.framework.apilog.core.filter.ApiAccessLogFilter;
|
||||
import cd.casic.framework.apilog.core.interceptor.ApiAccessLogInterceptor;
|
||||
import cd.casic.framework.commons.config.WebProperties;
|
||||
import cd.casic.framework.commons.enums.WebFilterOrderEnum;
|
||||
import cd.casic.framework.web.config.OpsWebAutoConfiguration;
|
||||
import cd.casic.framework.web.config.WebProperties;
|
||||
|
||||
import cd.casic.module.infra.api.logger.ApiAccessLogApi;
|
||||
import jakarta.servlet.Filter;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
@ -2,8 +2,9 @@ package cd.casic.framework.datapermission.config;
|
||||
|
||||
import cd.casic.framework.datapermission.core.rule.dept.DeptDataPermissionRule;
|
||||
import cd.casic.framework.datapermission.core.rule.dept.DeptDataPermissionRuleCustomizer;
|
||||
import cd.casic.framework.datapermission.service.PermissionApi;
|
||||
import cd.casic.framework.security.core.LoginUser;
|
||||
import cd.casic.module.system.api.permission.PermissionApi;
|
||||
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
|
@ -1,15 +1,17 @@
|
||||
package cd.casic.framework.security.config;
|
||||
package cd.casic.framework.datapermission.config;
|
||||
|
||||
|
||||
import cd.casic.framework.datapermission.service.PermissionApi;
|
||||
import cd.casic.framework.datapermission.service.SecurityFrameworkService;
|
||||
import cd.casic.framework.datapermission.service.SecurityFrameworkServiceImpl;
|
||||
import cd.casic.framework.datapermission.service.user.OAuth2TokenApi;
|
||||
import cd.casic.framework.datapermission.service.user.OAuth2TokenApiImpl;
|
||||
import cd.casic.framework.security.config.SecurityProperties;
|
||||
import cd.casic.framework.security.core.context.TransmittableThreadLocalSecurityContextHolderStrategy;
|
||||
import cd.casic.framework.security.core.filter.TokenAuthenticationFilter;
|
||||
import cd.casic.framework.datapermission.core.filter.TokenAuthenticationFilter;
|
||||
import cd.casic.framework.security.core.handler.AccessDeniedHandlerImpl;
|
||||
import cd.casic.framework.security.core.handler.AuthenticationEntryPointImpl;
|
||||
import cd.casic.framework.security.core.service.SecurityFrameworkService;
|
||||
import cd.casic.framework.security.core.service.SecurityFrameworkServiceImpl;
|
||||
import cd.casic.framework.web.core.handler.GlobalExceptionHandler;
|
||||
import cd.casic.module.system.api.oauth2.OAuth2TokenApi;
|
||||
import cd.casic.module.system.api.permission.PermissionApi;
|
||||
import cd.casic.framework.datapermission.handler.GlobalExceptionHandler;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.beans.factory.config.MethodInvokingFactoryBean;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
@ -68,12 +70,12 @@ public class OpsSecurityAutoConfiguration {
|
||||
/**
|
||||
* Token 认证过滤器 Bean
|
||||
*/
|
||||
|
||||
@Bean
|
||||
public TokenAuthenticationFilter authenticationTokenFilter(GlobalExceptionHandler globalExceptionHandler,
|
||||
OAuth2TokenApi oauth2TokenApi) {
|
||||
return new TokenAuthenticationFilter(securityProperties, globalExceptionHandler, oauth2TokenApi);
|
||||
}
|
||||
|
||||
@Bean("ss") // 使用 Spring Security 的缩写,方便使用
|
||||
public SecurityFrameworkService securityFrameworkService(PermissionApi permissionApi) {
|
||||
return new SecurityFrameworkServiceImpl(permissionApi);
|
@ -1,11 +1,12 @@
|
||||
package cd.casic.framework.web.config;
|
||||
package cd.casic.framework.datapermission.config;
|
||||
|
||||
import cd.casic.framework.commons.config.WebProperties;
|
||||
import cd.casic.framework.commons.enums.WebFilterOrderEnum;
|
||||
import cd.casic.framework.datapermission.handler.GlobalExceptionHandler;
|
||||
import cd.casic.framework.datapermission.handler.GlobalResponseBodyHandler;
|
||||
import cd.casic.framework.web.core.filter.CacheRequestBodyFilter;
|
||||
import cd.casic.framework.web.core.filter.DemoFilter;
|
||||
import cd.casic.framework.web.core.handler.GlobalExceptionHandler;
|
||||
import cd.casic.framework.web.core.handler.GlobalResponseBodyHandler;
|
||||
import cd.casic.framework.web.core.util.WebFrameworkUtils;
|
||||
import cd.casic.framework.commons.util.util.WebFrameworkUtils;
|
||||
import cd.casic.module.infra.api.logger.ApiErrorLogApi;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.servlet.Filter;
|
@ -1,7 +1,9 @@
|
||||
package cd.casic.framework.security.config;
|
||||
package cd.casic.framework.datapermission.config;
|
||||
|
||||
import cd.casic.framework.security.core.filter.TokenAuthenticationFilter;
|
||||
import cd.casic.framework.web.config.WebProperties;
|
||||
import cd.casic.framework.commons.config.WebProperties;
|
||||
import cd.casic.framework.datapermission.core.filter.TokenAuthenticationFilter;
|
||||
import cd.casic.framework.security.config.AuthorizeRequestsCustomizer;
|
||||
import cd.casic.framework.security.config.SecurityProperties;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.google.common.collect.HashMultimap;
|
||||
import com.google.common.collect.Multimap;
|
||||
@ -146,6 +148,7 @@ public class OpsWebSecurityConfigurerAdapter {
|
||||
|
||||
// 添加 Token Filter
|
||||
httpSecurity.addFilterBefore(authenticationTokenFilter, UsernamePasswordAuthenticationFilter.class);
|
||||
|
||||
return httpSecurity.build();
|
||||
}
|
||||
|
@ -1,7 +1,8 @@
|
||||
package cd.casic.framework.xss.config;
|
||||
package cd.casic.framework.datapermission.config;
|
||||
|
||||
|
||||
import cd.casic.framework.commons.enums.WebFilterOrderEnum;
|
||||
import cd.casic.framework.xss.config.XssProperties;
|
||||
import cd.casic.framework.xss.core.clean.JsoupXssCleaner;
|
||||
import cd.casic.framework.xss.core.clean.XssCleaner;
|
||||
import cd.casic.framework.xss.core.filter.XssFilter;
|
||||
@ -18,7 +19,6 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.util.PathMatcher;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
|
||||
import static cd.casic.framework.web.config.OpsWebAutoConfiguration.createFilterBean;
|
||||
|
||||
@AutoConfiguration
|
||||
@EnableConfigurationProperties(XssProperties.class)
|
||||
@ -58,7 +58,7 @@ public class OpsXssAutoConfiguration implements WebMvcConfigurer {
|
||||
@Bean
|
||||
@ConditionalOnBean(XssCleaner.class)
|
||||
public FilterRegistrationBean<XssFilter> xssFilter(XssProperties properties, PathMatcher pathMatcher, XssCleaner xssCleaner) {
|
||||
return createFilterBean(new XssFilter(properties, pathMatcher, xssCleaner), WebFilterOrderEnum.XSS_FILTER);
|
||||
return OpsWebAutoConfiguration.createFilterBean(new XssFilter(properties, pathMatcher, xssCleaner), WebFilterOrderEnum.XSS_FILTER);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package cd.casic.framework.datapermission.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* 多租户配置
|
||||
*
|
||||
* @author mianbin modified from yudao
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "ops.tenant")
|
||||
@Data
|
||||
public class TenantProperties {
|
||||
|
||||
/**
|
||||
* 租户是否开启
|
||||
*/
|
||||
private static final Boolean ENABLE_DEFAULT = true;
|
||||
|
||||
/**
|
||||
* 是否开启
|
||||
*/
|
||||
private Boolean enable = ENABLE_DEFAULT;
|
||||
|
||||
/**
|
||||
* 需要忽略多租户的请求
|
||||
*
|
||||
* 默认情况下,每个请求需要带上 tenant-id 的请求头。但是,部分请求是无需带上的,例如说短信回调、支付回调等 Open API!
|
||||
*/
|
||||
private Set<String> ignoreUrls = Collections.emptySet();
|
||||
|
||||
/**
|
||||
* 需要忽略多租户的表
|
||||
*
|
||||
* 即默认所有表都开启多租户的功能,所以记得添加对应的 tenant_id 字段哟
|
||||
*/
|
||||
private Set<String> ignoreTables = Collections.emptySet();
|
||||
|
||||
/**
|
||||
* 需要忽略多租户的 Spring Cache 缓存
|
||||
*
|
||||
* 即默认所有缓存都开启多租户的功能,所以记得添加对应的 tenant_id 字段哟
|
||||
*/
|
||||
private Set<String> ignoreCaches = Collections.emptySet();
|
||||
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
package cd.casic.module.system.convert.tenant;
|
||||
package cd.casic.framework.datapermission.convert;
|
||||
|
||||
import cd.casic.module.system.controller.admin.tenant.vo.tenant.TenantSaveReqVO;
|
||||
import cd.casic.module.system.controller.admin.user.vo.user.UserSaveReqVO;
|
||||
import cd.casic.framework.security.vo.vo.tenant.TenantSaveReqVO;
|
||||
import cd.casic.framework.datapermission.core.vo.UserSaveReqVO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
@ -1,18 +1,18 @@
|
||||
package cd.casic.module.system.convert.user;
|
||||
package cd.casic.framework.datapermission.convert;
|
||||
|
||||
import cd.casic.framework.commons.util.collection.CollectionUtils;
|
||||
import cd.casic.framework.commons.util.collection.MapUtils;
|
||||
import cd.casic.framework.commons.util.object.BeanUtils;
|
||||
import cd.casic.module.system.controller.admin.dept.vo.dept.DeptSimpleRespVO;
|
||||
import cd.casic.module.system.controller.admin.dept.vo.post.PostSimpleRespVO;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.role.RoleSimpleRespVO;
|
||||
import cd.casic.module.system.controller.admin.user.vo.profile.UserProfileRespVO;
|
||||
import cd.casic.module.system.controller.admin.user.vo.user.UserRespVO;
|
||||
import cd.casic.module.system.controller.admin.user.vo.user.UserSimpleRespVO;
|
||||
import cd.casic.module.system.dal.dataobject.dept.DeptDO;
|
||||
import cd.casic.module.system.dal.dataobject.dept.PostDO;
|
||||
import cd.casic.module.system.dal.dataobject.permission.RoleDO;
|
||||
import cd.casic.module.system.dal.dataobject.user.AdminUserDO;
|
||||
import cd.casic.framework.security.vo.dept.DeptSimpleRespVO;
|
||||
import cd.casic.framework.security.vo.dept.post.PostSimpleRespVO;
|
||||
import cd.casic.framework.datapermission.core.vo.role.RoleSimpleRespVO;
|
||||
import cd.casic.framework.datapermission.service.auth.vo.profile.UserProfileRespVO;
|
||||
import cd.casic.framework.datapermission.core.vo.UserRespVO;
|
||||
import cd.casic.framework.datapermission.core.vo.UserSimpleRespVO;
|
||||
import cd.casic.framework.commons.dataobject.dept.DeptDO;
|
||||
import cd.casic.framework.commons.dataobject.dept.PostDO;
|
||||
import cd.casic.framework.security.dal.permission.RoleDO;
|
||||
import cd.casic.framework.security.dal.user.AdminUserDO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
@ -1,10 +1,10 @@
|
||||
package cd.casic.module.system.dal.mysql.user;
|
||||
package cd.casic.framework.datapermission.core.dal;
|
||||
|
||||
import cd.casic.framework.commons.pojo.PageResult;
|
||||
import cd.casic.framework.datapermission.core.vo.UserPageReqVO;
|
||||
import cd.casic.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cd.casic.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import cd.casic.module.system.controller.admin.user.vo.user.UserPageReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.user.AdminUserDO;
|
||||
import cd.casic.framework.security.dal.user.AdminUserDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.Collection;
|
@ -1,10 +1,10 @@
|
||||
package cd.casic.module.system.dal.mysql.logger;
|
||||
package cd.casic.framework.datapermission.core.dal;
|
||||
|
||||
import cd.casic.framework.commons.pojo.PageResult;
|
||||
import cd.casic.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cd.casic.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import cd.casic.module.system.controller.admin.logger.vo.loginlog.LoginLogPageReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.logger.LoginLogDO;
|
||||
import cd.casic.framework.security.vo.loginlog.LoginLogPageReqVO;
|
||||
import cd.casic.framework.security.vo.logger.LoginLogDO;
|
||||
import cd.casic.module.system.enums.logger.LoginResultEnum;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
@ -1,9 +1,10 @@
|
||||
package cd.casic.module.system.dal.mysql.permission;
|
||||
package cd.casic.framework.datapermission.core.dal;
|
||||
|
||||
import cd.casic.framework.datapermission.core.dal.dataobject.MenuDO;
|
||||
import cd.casic.framework.datapermission.service.permission.menu.MenuListReqVO;
|
||||
|
||||
import cd.casic.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cd.casic.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.menu.MenuListReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.permission.MenuDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
@ -1,11 +1,11 @@
|
||||
package cd.casic.module.system.dal.mysql.permission;
|
||||
package cd.casic.framework.datapermission.core.dal;
|
||||
|
||||
import cd.casic.framework.commons.pojo.PageResult;
|
||||
import cd.casic.framework.mybatis.core.dataobject.BaseDO;
|
||||
import cd.casic.framework.commons.dataobject.BaseDO;
|
||||
import cd.casic.framework.datapermission.core.vo.RolePageReqVO;
|
||||
import cd.casic.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cd.casic.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.role.RolePageReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.permission.RoleDO;
|
||||
import cd.casic.framework.security.dal.permission.RoleDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.lang.Nullable;
|
||||
|
@ -1,10 +1,10 @@
|
||||
package cd.casic.module.system.dal.mysql.tenant;
|
||||
package cd.casic.framework.datapermission.core.dal;
|
||||
|
||||
import cd.casic.framework.commons.pojo.PageResult;
|
||||
import cd.casic.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cd.casic.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import cd.casic.module.system.controller.admin.tenant.vo.tenant.TenantPageReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.tenant.TenantDO;
|
||||
import cd.casic.framework.security.vo.vo.tenant.TenantPageReqVO;
|
||||
import cd.casic.framework.security.dal.tenant.TenantDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
@ -1,10 +1,11 @@
|
||||
package cd.casic.module.system.dal.mysql.tenant;
|
||||
package cd.casic.framework.datapermission.core.dal;
|
||||
|
||||
import cd.casic.framework.commons.pojo.PageResult;
|
||||
import cd.casic.framework.datapermission.core.vo.packages.TenantPackagePageReqVO;
|
||||
import cd.casic.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cd.casic.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import cd.casic.module.system.controller.admin.tenant.vo.packages.TenantPackagePageReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.tenant.TenantPackageDO;
|
||||
|
||||
import cd.casic.framework.security.dal.tenant.TenantPackageDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
@ -1,7 +1,7 @@
|
||||
package cd.casic.module.system.dal.dataobject.permission;
|
||||
package cd.casic.framework.datapermission.core.dal.dataobject;
|
||||
|
||||
import cd.casic.framework.commons.enums.CommonStatusEnum;
|
||||
import cd.casic.framework.mybatis.core.dataobject.BaseDO;
|
||||
import cd.casic.framework.commons.dataobject.BaseDO;
|
||||
import cd.casic.module.system.enums.permission.MenuTypeEnum;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
@ -1,14 +1,14 @@
|
||||
package cd.casic.framework.security.core.filter;
|
||||
package cd.casic.framework.datapermission.core.filter;
|
||||
|
||||
import cd.casic.framework.commons.exception.ServiceException;
|
||||
import cd.casic.framework.commons.pojo.CommonResult;
|
||||
import cd.casic.framework.commons.util.servlet.ServletUtils;
|
||||
import cd.casic.framework.datapermission.service.user.OAuth2TokenApi;
|
||||
import cd.casic.framework.security.config.SecurityProperties;
|
||||
import cd.casic.framework.security.core.util.SecurityFrameworkUtils;
|
||||
import cd.casic.framework.security.core.LoginUser;
|
||||
import cd.casic.framework.web.core.handler.GlobalExceptionHandler;
|
||||
import cd.casic.framework.web.core.util.WebFrameworkUtils;
|
||||
import cd.casic.module.system.api.oauth2.OAuth2TokenApi;
|
||||
import cd.casic.framework.datapermission.handler.GlobalExceptionHandler;
|
||||
import cd.casic.framework.commons.util.util.WebFrameworkUtils;
|
||||
import cd.casic.module.system.api.oauth2.dto.OAuth2AccessTokenCheckRespDTO;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
@ -4,11 +4,11 @@ import cd.casic.framework.commons.enums.UserTypeEnum;
|
||||
import cd.casic.framework.commons.util.collection.CollectionUtils;
|
||||
import cd.casic.framework.commons.util.json.JsonUtils;
|
||||
import cd.casic.framework.datapermission.core.rule.DataPermissionRule;
|
||||
import cd.casic.framework.mybatis.core.dataobject.BaseDO;
|
||||
import cd.casic.framework.commons.dataobject.BaseDO;
|
||||
import cd.casic.framework.datapermission.service.PermissionApi;
|
||||
import cd.casic.framework.mybatis.core.util.MyBatisUtils;
|
||||
import cd.casic.framework.security.core.LoginUser;
|
||||
import cd.casic.framework.security.core.util.SecurityFrameworkUtils;
|
||||
import cd.casic.module.system.api.permission.PermissionApi;
|
||||
import cd.casic.module.system.api.permission.dto.DeptDataPermissionRespDTO;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.permission.vo.role;
|
||||
package cd.casic.framework.datapermission.core.vo;
|
||||
|
||||
import cd.casic.framework.commons.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
@ -1,8 +1,10 @@
|
||||
package cd.casic.module.system.controller.admin.user.vo.user;
|
||||
package cd.casic.framework.datapermission.core.vo;
|
||||
|
||||
|
||||
import cd.casic.framework.excel.excel.core.annotations.DictFormat;
|
||||
import cd.casic.framework.excel.excel.core.convert.DictConvert;
|
||||
import cd.casic.module.system.enums.DictTypeConstants;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.user.vo.user;
|
||||
package cd.casic.framework.datapermission.core.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Builder;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.user.vo.user;
|
||||
package cd.casic.framework.datapermission.core.vo;
|
||||
|
||||
import cd.casic.framework.commons.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.user.vo.user;
|
||||
package cd.casic.framework.datapermission.core.vo;
|
||||
|
||||
import cd.casic.framework.excel.excel.core.annotations.DictFormat;
|
||||
import cd.casic.framework.excel.excel.core.convert.DictConvert;
|
@ -1,10 +1,11 @@
|
||||
package cd.casic.module.system.controller.admin.user.vo.user;
|
||||
package cd.casic.framework.datapermission.core.vo;
|
||||
|
||||
import cd.casic.framework.datapermission.operatelog.core.DeptParseFunction;
|
||||
import cd.casic.framework.datapermission.operatelog.core.PostParseFunction;
|
||||
import cd.casic.framework.datapermission.operatelog.core.SexParseFunction;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cd.casic.framework.commons.validation.Mobile;
|
||||
import cd.casic.module.system.framework.operatelog.core.DeptParseFunction;
|
||||
import cd.casic.module.system.framework.operatelog.core.PostParseFunction;
|
||||
import cd.casic.module.system.framework.operatelog.core.SexParseFunction;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.mzt.logapi.starter.annotation.DiffLogField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.user.vo.user;
|
||||
package cd.casic.framework.datapermission.core.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.user.vo.user;
|
||||
package cd.casic.framework.datapermission.core.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.user.vo.user;
|
||||
package cd.casic.framework.datapermission.core.vo;
|
||||
|
||||
import cd.casic.framework.commons.enums.CommonStatusEnum;
|
||||
import cd.casic.framework.commons.validation.InEnum;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.tenant.vo.packages;
|
||||
package cd.casic.framework.datapermission.core.vo.packages;
|
||||
|
||||
import cd.casic.framework.commons.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.tenant.vo.packages;
|
||||
package cd.casic.framework.datapermission.core.vo.packages;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.tenant.vo.packages;
|
||||
package cd.casic.framework.datapermission.core.vo.packages;
|
||||
|
||||
import cd.casic.framework.commons.enums.CommonStatusEnum;
|
||||
import cd.casic.framework.commons.validation.InEnum;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.tenant.vo.packages;
|
||||
package cd.casic.framework.datapermission.core.vo.packages;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.permission.vo.role;
|
||||
package cd.casic.framework.datapermission.core.vo.role;
|
||||
|
||||
import cd.casic.framework.excel.excel.core.annotations.DictFormat;
|
||||
import cd.casic.framework.excel.excel.core.convert.DictConvert;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.permission.vo.role;
|
||||
package cd.casic.framework.datapermission.core.vo.role;
|
||||
|
||||
import cd.casic.framework.commons.enums.CommonStatusEnum;
|
||||
import cd.casic.framework.commons.validation.InEnum;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.permission.vo.role;
|
||||
package cd.casic.framework.datapermission.core.vo.role;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.framework.web.core.handler;
|
||||
package cd.casic.framework.datapermission.handler;
|
||||
|
||||
import cd.casic.module.infra.api.logger.ApiErrorLogApi;
|
||||
import cd.casic.module.infra.api.logger.dto.ApiErrorLogCreateReqDTO;
|
||||
@ -14,7 +14,7 @@ import cd.casic.framework.commons.util.collection.SetUtils;
|
||||
import cd.casic.framework.commons.util.json.JsonUtils;
|
||||
import cd.casic.framework.commons.util.monitor.TracerUtils;
|
||||
import cd.casic.framework.commons.util.servlet.ServletUtils;
|
||||
import cd.casic.framework.web.core.util.WebFrameworkUtils;
|
||||
import cd.casic.framework.commons.util.util.WebFrameworkUtils;
|
||||
|
||||
import com.fasterxml.jackson.databind.exc.InvalidFormatException;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
@ -25,6 +25,7 @@ import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.http.converter.HttpMessageNotReadableException;
|
||||
import org.springframework.security.access.AccessDeniedException;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.validation.BindException;
|
||||
import org.springframework.validation.FieldError;
|
||||
@ -51,6 +52,7 @@ import static cd.casic.framework.commons.exception.enums.GlobalErrorCodeConstant
|
||||
@RestControllerAdvice
|
||||
@AllArgsConstructor
|
||||
@Slf4j
|
||||
@Component
|
||||
public class GlobalExceptionHandler {
|
||||
|
||||
/**
|
@ -1,7 +1,7 @@
|
||||
package cd.casic.framework.web.core.handler;
|
||||
package cd.casic.framework.datapermission.handler;
|
||||
|
||||
import cd.casic.framework.commons.pojo.CommonResult;
|
||||
import cd.casic.framework.web.core.util.WebFrameworkUtils;
|
||||
import cd.casic.framework.commons.util.util.WebFrameworkUtils;
|
||||
import org.springframework.core.MethodParameter;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.server.ServerHttpRequest;
|
@ -1,9 +1,9 @@
|
||||
package cd.casic.module.system.framework.operatelog.core;
|
||||
package cd.casic.framework.datapermission.operatelog.core;
|
||||
|
||||
import cd.casic.framework.datapermission.service.user.AdminUserService;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cd.casic.module.system.dal.dataobject.user.AdminUserDO;
|
||||
import cd.casic.module.system.service.user.AdminUserService;
|
||||
import cd.casic.framework.security.dal.user.AdminUserDO;
|
||||
import com.mzt.logapi.service.IParseFunction;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
@ -1,6 +1,7 @@
|
||||
package cd.casic.module.system.framework.operatelog.core;
|
||||
package cd.casic.framework.datapermission.operatelog.core;
|
||||
|
||||
import cd.casic.framework.redis.core.utils.AreaUtils;
|
||||
|
||||
import cd.casic.framework.commons.util.redis.core.utils.AreaUtils;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.mzt.logapi.service.IParseFunction;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.framework.operatelog.core;
|
||||
package cd.casic.framework.datapermission.operatelog.core;
|
||||
|
||||
import cd.casic.framework.excel.dict.core.DictFrameworkUtils;
|
||||
import cn.hutool.core.util.StrUtil;
|
@ -1,9 +1,9 @@
|
||||
package cd.casic.module.system.framework.operatelog.core;
|
||||
package cd.casic.framework.datapermission.operatelog.core;
|
||||
|
||||
import cd.casic.framework.commons.dataobject.dept.DeptDO;
|
||||
import cd.casic.framework.datapermission.service.dept.DeptService;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cd.casic.module.system.dal.dataobject.dept.DeptDO;
|
||||
import cd.casic.module.system.service.dept.DeptService;
|
||||
import com.mzt.logapi.service.IParseFunction;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
@ -1,9 +1,10 @@
|
||||
package cd.casic.module.system.framework.operatelog.core;
|
||||
package cd.casic.framework.datapermission.operatelog.core;
|
||||
|
||||
import cd.casic.framework.commons.dataobject.dept.PostDO;
|
||||
import cd.casic.framework.datapermission.service.dept.PostService;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cd.casic.module.system.dal.dataobject.dept.PostDO;
|
||||
import cd.casic.module.system.service.dept.PostService;
|
||||
import com.mzt.logapi.service.IParseFunction;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.framework.operatelog.core;
|
||||
package cd.casic.framework.datapermission.operatelog.core;
|
||||
|
||||
import cd.casic.framework.excel.dict.core.DictFrameworkUtils;
|
||||
import cn.hutool.core.util.StrUtil;
|
@ -0,0 +1,4 @@
|
||||
/**
|
||||
* 占位文件,避免文件夹缩进
|
||||
*/
|
||||
package cd.casic.framework.datapermission.operatelog;
|
@ -1,10 +1,11 @@
|
||||
package cd.casic.module.system.service.permission;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
|
||||
import cd.casic.module.system.controller.admin.permission.vo.menu.MenuListReqVO;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.menu.MenuSaveVO;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.menu.MenuTreeVO;
|
||||
import cd.casic.module.system.dal.dataobject.permission.MenuDO;
|
||||
|
||||
import cd.casic.framework.datapermission.core.dal.dataobject.MenuDO;
|
||||
import cd.casic.framework.datapermission.service.permission.menu.MenuListReqVO;
|
||||
import cd.casic.framework.datapermission.service.permission.menu.MenuSaveVO;
|
||||
import cd.casic.framework.datapermission.service.permission.menu.MenuTreeVO;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
@ -1,17 +1,18 @@
|
||||
package cd.casic.module.system.service.permission;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
import cd.casic.framework.commons.util.collection.CollectionUtils;
|
||||
import cd.casic.framework.datapermission.core.dal.MenuMapper;
|
||||
import cd.casic.framework.datapermission.service.permission.menu.MenuListReqVO;
|
||||
import cd.casic.framework.datapermission.service.permission.menu.MenuSaveVO;
|
||||
import cd.casic.framework.datapermission.service.permission.menu.MenuTreeVO;
|
||||
|
||||
|
||||
import cd.casic.module.system.controller.admin.permission.vo.menu.MenuTreeVO;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cd.casic.framework.commons.enums.CommonStatusEnum;
|
||||
import cd.casic.framework.commons.util.object.BeanUtils;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.menu.MenuListReqVO;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.menu.MenuSaveVO;
|
||||
import cd.casic.module.system.dal.dataobject.permission.MenuDO;
|
||||
import cd.casic.module.system.dal.mysql.permission.MenuMapper;
|
||||
import cd.casic.module.system.dal.redis.RedisKeyConstants;
|
||||
import cd.casic.framework.security.redis.RedisKeyConstants;
|
||||
import cd.casic.module.system.enums.permission.MenuTypeEnum;
|
||||
import cd.casic.module.system.service.tenant.TenantService;
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import com.google.common.collect.Lists;
|
||||
import jakarta.annotation.Resource;
|
||||
@ -28,9 +29,8 @@ import java.util.stream.Collectors;
|
||||
import static cd.casic.framework.commons.exception.util.ServiceExceptionUtil.exception;
|
||||
import static cd.casic.framework.commons.util.collection.CollectionUtils.convertList;
|
||||
import static cd.casic.framework.commons.util.collection.CollectionUtils.convertMap;
|
||||
import static cd.casic.module.system.dal.dataobject.permission.MenuDO.ID_ROOT;
|
||||
import static cd.casic.module.system.enums.ErrorCodeConstants.*;
|
||||
|
||||
import cd.casic.framework.datapermission.core.dal.dataobject.MenuDO;
|
||||
/**
|
||||
* 菜单 Service 实现
|
||||
*
|
||||
@ -150,7 +150,7 @@ public class MenuServiceImpl implements MenuService {
|
||||
|
||||
// 2. 遍历到 parentId 为根节点,则无需判断
|
||||
Long parentId = node.getParentId();
|
||||
if (ObjUtil.equal(parentId, ID_ROOT)) {
|
||||
if (ObjUtil.equal(parentId, MenuDO.ID_ROOT)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -172,7 +172,7 @@ public class MenuServiceImpl implements MenuService {
|
||||
@Cacheable(value = RedisKeyConstants.PERMISSION_MENU_ID_LIST, key = "#permission")
|
||||
public List<Long> getMenuIdListByPermissionFromCache(String permission) {
|
||||
List<MenuDO> menus = menuMapper.selectListByPermission(permission);
|
||||
return convertList(menus, MenuDO::getId);
|
||||
return CollectionUtils.convertList(menus, MenuDO::getId);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -200,8 +200,8 @@ public class MenuServiceImpl implements MenuService {
|
||||
* @param childId 当前菜单编号
|
||||
*/
|
||||
@VisibleForTesting
|
||||
void validateParentMenu(Long parentId, Long childId) {
|
||||
if (parentId == null || ID_ROOT.equals(parentId)) {
|
||||
public void validateParentMenu(Long parentId, Long childId) {
|
||||
if (parentId == null || MenuDO.ID_ROOT.equals(parentId)) {
|
||||
return;
|
||||
}
|
||||
// 不能设置自己为父菜单
|
||||
@ -230,7 +230,7 @@ public class MenuServiceImpl implements MenuService {
|
||||
* @param id 菜单编号
|
||||
*/
|
||||
@VisibleForTesting
|
||||
void validateMenu(Long parentId, String name, Long id) {
|
||||
public void validateMenu(Long parentId, String name, Long id) {
|
||||
MenuDO menu = menuMapper.selectByParentIdAndName(parentId, name);
|
||||
if (menu == null) {
|
||||
return;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.api.permission;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
|
||||
import cd.casic.module.system.api.permission.dto.DeptDataPermissionRespDTO;
|
@ -1,8 +1,7 @@
|
||||
package cd.casic.module.system.api.permission;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
import cd.casic.module.system.api.permission.dto.DeptDataPermissionRespDTO;
|
||||
import cd.casic.module.system.service.permission.PermissionService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import jakarta.annotation.Resource;
|
||||
import java.util.Collection;
|
||||
@ -13,7 +12,7 @@ import java.util.Set;
|
||||
*
|
||||
* @author mianbin modified from yudao
|
||||
*/
|
||||
@Service
|
||||
@Component
|
||||
public class PermissionApiImpl implements PermissionApi {
|
||||
|
||||
@Resource
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.service.permission;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
|
||||
import cd.casic.module.system.api.permission.dto.DeptDataPermissionRespDTO;
|
@ -1,5 +1,10 @@
|
||||
package cd.casic.module.system.service.permission;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
import cd.casic.framework.datapermission.core.dal.dataobject.MenuDO;
|
||||
import cd.casic.framework.datapermission.service.dept.DeptService;
|
||||
|
||||
|
||||
import cd.casic.framework.security.dal.permission.*;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.util.ArrayUtil;
|
||||
@ -8,16 +13,9 @@ import cd.casic.framework.commons.enums.CommonStatusEnum;
|
||||
import cd.casic.framework.commons.util.collection.CollectionUtils;
|
||||
import cd.casic.framework.datapermission.core.annotation.DataPermission;
|
||||
import cd.casic.module.system.api.permission.dto.DeptDataPermissionRespDTO;
|
||||
import cd.casic.module.system.dal.dataobject.permission.MenuDO;
|
||||
import cd.casic.module.system.dal.dataobject.permission.RoleDO;
|
||||
import cd.casic.module.system.dal.dataobject.permission.RoleMenuDO;
|
||||
import cd.casic.module.system.dal.dataobject.permission.UserRoleDO;
|
||||
import cd.casic.module.system.dal.mysql.permission.RoleMenuMapper;
|
||||
import cd.casic.module.system.dal.mysql.permission.UserRoleMapper;
|
||||
import cd.casic.module.system.dal.redis.RedisKeyConstants;
|
||||
import cd.casic.framework.security.redis.RedisKeyConstants;
|
||||
import cd.casic.module.system.enums.permission.DataScopeEnum;
|
||||
import cd.casic.module.system.service.dept.DeptService;
|
||||
import cd.casic.module.system.service.user.AdminUserService;
|
||||
import cd.casic.framework.datapermission.service.user.AdminUserService;
|
||||
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import com.google.common.base.Suppliers;
|
||||
@ -201,7 +199,6 @@ public class PermissionServiceImpl implements PermissionService {
|
||||
}
|
||||
|
||||
// ========== 用户-角色的相关方法 ==========
|
||||
|
||||
@Override
|
||||
@DSTransactional // 多数据源,使用 @DSTransactional 保证本地事务,以及数据源的切换
|
||||
@CacheEvict(value = RedisKeyConstants.USER_ROLE_ID_LIST, key = "#userId")
|
||||
@ -256,7 +253,7 @@ public class PermissionServiceImpl implements PermissionService {
|
||||
* @return 用户拥有的角色
|
||||
*/
|
||||
@VisibleForTesting
|
||||
List<RoleDO> getEnableUserRoleListByUserIdFromCache(Long userId) {
|
||||
public List<RoleDO> getEnableUserRoleListByUserIdFromCache(Long userId) {
|
||||
// 获得用户拥有的角色编号
|
||||
Set<Long> roleIds = getSelf().getUserRoleIdListByUserIdFromCache(userId);
|
||||
// 获得角色数组,并移除被禁用的
|
@ -1,10 +1,10 @@
|
||||
package cd.casic.module.system.service.permission;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
|
||||
import cd.casic.framework.commons.pojo.PageResult;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.role.RolePageReqVO;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.role.RoleSaveReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.permission.RoleDO;
|
||||
import cd.casic.framework.datapermission.core.vo.RolePageReqVO;
|
||||
import cd.casic.framework.datapermission.core.vo.role.RoleSaveReqVO;
|
||||
import cd.casic.framework.security.dal.permission.RoleDO;
|
||||
import jakarta.validation.Valid;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
@ -1,5 +1,10 @@
|
||||
package cd.casic.module.system.service.permission;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
import cd.casic.framework.commons.exception.util.ServiceExceptionUtil;
|
||||
import cd.casic.framework.datapermission.core.vo.RolePageReqVO;
|
||||
import cd.casic.framework.datapermission.core.vo.role.RoleSaveReqVO;
|
||||
import cd.casic.framework.security.dal.permission.RoleDO;
|
||||
import cd.casic.framework.datapermission.core.dal.RoleMapper;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
@ -9,11 +14,7 @@ import cd.casic.framework.commons.enums.CommonStatusEnum;
|
||||
import cd.casic.framework.commons.pojo.PageResult;
|
||||
import cd.casic.framework.commons.util.collection.CollectionUtils;
|
||||
import cd.casic.framework.commons.util.object.BeanUtils;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.role.RolePageReqVO;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.role.RoleSaveReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.permission.RoleDO;
|
||||
import cd.casic.module.system.dal.mysql.permission.RoleMapper;
|
||||
import cd.casic.module.system.dal.redis.RedisKeyConstants;
|
||||
import cd.casic.framework.security.redis.RedisKeyConstants;
|
||||
import cd.casic.module.system.enums.permission.DataScopeEnum;
|
||||
import cd.casic.module.system.enums.permission.RoleCodeEnum;
|
||||
import cd.casic.module.system.enums.permission.RoleTypeEnum;
|
||||
@ -133,7 +134,7 @@ public class RoleServiceImpl implements RoleService {
|
||||
* @param id 角色编号
|
||||
*/
|
||||
@VisibleForTesting
|
||||
void validateRoleDuplicate(String name, String code, Long id) {
|
||||
public void validateRoleDuplicate(String name, String code, Long id) {
|
||||
// 0. 超级管理员,不允许创建
|
||||
if (RoleCodeEnum.isSuperAdmin(code)) {
|
||||
throw exception(ROLE_ADMIN_CODE_ERROR, code);
|
||||
@ -160,7 +161,7 @@ public class RoleServiceImpl implements RoleService {
|
||||
* @param id 角色编号
|
||||
*/
|
||||
@VisibleForTesting
|
||||
RoleDO validateRoleForUpdate(Long id) {
|
||||
public RoleDO validateRoleForUpdate(Long id) {
|
||||
RoleDO role = roleMapper.selectById(id);
|
||||
if (role == null) {
|
||||
throw exception(ROLE_NOT_EXISTS);
|
||||
@ -245,7 +246,7 @@ public class RoleServiceImpl implements RoleService {
|
||||
throw exception(ROLE_NOT_EXISTS);
|
||||
}
|
||||
if (!CommonStatusEnum.ENABLE.getStatus().equals(role.getStatus())) {
|
||||
throw exception(ROLE_IS_DISABLE, role.getName());
|
||||
throw ServiceExceptionUtil.exception(ROLE_IS_DISABLE, role.getName());
|
||||
}
|
||||
});
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
/**
|
||||
* Security 框架 Service 接口,定义权限相关的校验操作
|
||||
*
|
||||
* @author mianbin modified from yudao
|
||||
*/
|
||||
public interface SecurityFrameworkService {
|
||||
|
||||
/**
|
||||
* 判断是否有权限
|
||||
*
|
||||
* @param permission 权限
|
||||
* @return 是否
|
||||
*/
|
||||
boolean hasPermission(String permission);
|
||||
|
||||
/**
|
||||
* 判断是否有权限,任一一个即可
|
||||
*
|
||||
* @param permissions 权限
|
||||
* @return 是否
|
||||
*/
|
||||
boolean hasAnyPermissions(String... permissions);
|
||||
|
||||
/**
|
||||
* 判断是否有角色
|
||||
*
|
||||
* 注意,角色使用的是 SysRoleDO 的 code 标识
|
||||
*
|
||||
* @param role 角色
|
||||
* @return 是否
|
||||
*/
|
||||
boolean hasRole(String role);
|
||||
|
||||
/**
|
||||
* 判断是否有角色,任一一个即可
|
||||
*
|
||||
* @param roles 角色数组
|
||||
* @return 是否
|
||||
*/
|
||||
boolean hasAnyRoles(String... roles);
|
||||
|
||||
/**
|
||||
* 判断是否有授权
|
||||
*
|
||||
* @param scope 授权
|
||||
* @return 是否
|
||||
*/
|
||||
boolean hasScope(String scope);
|
||||
|
||||
/**
|
||||
* 判断是否有授权范围,任一一个即可
|
||||
*
|
||||
* @param scope 授权范围数组
|
||||
* @return 是否
|
||||
*/
|
||||
boolean hasAnyScopes(String... scope);
|
||||
}
|
@ -1,8 +1,7 @@
|
||||
package cd.casic.framework.security.core.service;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
import cd.casic.framework.security.core.LoginUser;
|
||||
import cd.casic.framework.security.core.util.SecurityFrameworkUtils;
|
||||
import cd.casic.module.system.api.permission.PermissionApi;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
|
@ -1,9 +1,9 @@
|
||||
package cd.casic.module.system.service.tenant;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
import cd.casic.framework.commons.pojo.PageResult;
|
||||
import cd.casic.module.system.controller.admin.tenant.vo.packages.TenantPackagePageReqVO;
|
||||
import cd.casic.module.system.controller.admin.tenant.vo.packages.TenantPackageSaveReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.tenant.TenantPackageDO;
|
||||
import cd.casic.framework.datapermission.core.vo.packages.TenantPackagePageReqVO;
|
||||
import cd.casic.framework.datapermission.core.vo.packages.TenantPackageSaveReqVO;
|
||||
import cd.casic.framework.security.dal.tenant.TenantPackageDO;
|
||||
|
||||
import jakarta.validation.Valid;
|
||||
import java.util.List;
|
@ -1,15 +1,16 @@
|
||||
package cd.casic.module.system.service.tenant;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
import cd.casic.framework.datapermission.core.dal.TenantPackageMapper;
|
||||
import cd.casic.framework.datapermission.core.vo.packages.TenantPackagePageReqVO;
|
||||
import cd.casic.framework.datapermission.core.vo.packages.TenantPackageSaveReqVO;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cd.casic.framework.commons.enums.CommonStatusEnum;
|
||||
import cd.casic.framework.commons.pojo.PageResult;
|
||||
import cd.casic.framework.commons.util.object.BeanUtils;
|
||||
import cd.casic.module.system.controller.admin.tenant.vo.packages.TenantPackagePageReqVO;
|
||||
import cd.casic.module.system.controller.admin.tenant.vo.packages.TenantPackageSaveReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.tenant.TenantDO;
|
||||
import cd.casic.module.system.dal.dataobject.tenant.TenantPackageDO;
|
||||
import cd.casic.module.system.dal.mysql.tenant.TenantPackageMapper;
|
||||
|
||||
import cd.casic.framework.security.dal.tenant.TenantDO;
|
||||
import cd.casic.framework.security.dal.tenant.TenantPackageDO;
|
||||
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import org.springframework.context.annotation.Lazy;
|
@ -1,12 +1,13 @@
|
||||
package cd.casic.module.system.service.tenant;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
import cd.casic.framework.commons.pojo.PageResult;
|
||||
import cd.casic.framework.tenant.core.context.TenantContextHolder;
|
||||
import cd.casic.module.system.controller.admin.tenant.vo.tenant.TenantPageReqVO;
|
||||
import cd.casic.module.system.controller.admin.tenant.vo.tenant.TenantSaveReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.tenant.TenantDO;
|
||||
import cd.casic.module.system.service.tenant.handler.TenantInfoHandler;
|
||||
import cd.casic.module.system.service.tenant.handler.TenantMenuHandler;
|
||||
import cd.casic.framework.commons.context.TenantContextHolder;
|
||||
|
||||
import cd.casic.framework.datapermission.service.handler.TenantInfoHandler;
|
||||
import cd.casic.framework.datapermission.service.handler.TenantMenuHandler;
|
||||
import cd.casic.framework.security.dal.tenant.TenantDO;
|
||||
import cd.casic.framework.security.vo.vo.tenant.TenantPageReqVO;
|
||||
import cd.casic.framework.security.vo.vo.tenant.TenantSaveReqVO;
|
||||
|
||||
import jakarta.validation.Valid;
|
||||
import java.util.List;
|
@ -1,4 +1,20 @@
|
||||
package cd.casic.module.system.service.tenant;
|
||||
package cd.casic.framework.datapermission.service;
|
||||
|
||||
import cd.casic.framework.commons.exception.util.ServiceExceptionUtil;
|
||||
|
||||
import cd.casic.framework.datapermission.config.TenantProperties;
|
||||
import cd.casic.framework.datapermission.convert.TenantConvert;
|
||||
import cd.casic.framework.datapermission.core.dal.TenantMapper;
|
||||
import cd.casic.framework.datapermission.core.dal.dataobject.MenuDO;
|
||||
import cd.casic.framework.datapermission.service.handler.TenantInfoHandler;
|
||||
import cd.casic.framework.datapermission.service.handler.TenantMenuHandler;
|
||||
import cd.casic.framework.datapermission.service.user.AdminUserService;
|
||||
import cd.casic.framework.datapermission.core.vo.role.RoleSaveReqVO;
|
||||
import cd.casic.framework.security.dal.permission.RoleDO;
|
||||
import cd.casic.framework.security.dal.tenant.TenantDO;
|
||||
import cd.casic.framework.security.dal.tenant.TenantPackageDO;
|
||||
import cd.casic.framework.security.vo.vo.tenant.TenantPageReqVO;
|
||||
import cd.casic.framework.security.vo.vo.tenant.TenantSaveReqVO;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
@ -9,33 +25,16 @@ import cd.casic.framework.commons.pojo.PageResult;
|
||||
import cd.casic.framework.commons.util.collection.CollectionUtils;
|
||||
import cd.casic.framework.commons.util.date.DateUtils;
|
||||
import cd.casic.framework.commons.util.object.BeanUtils;
|
||||
import cd.casic.framework.tenant.config.TenantProperties;
|
||||
import cd.casic.framework.tenant.core.context.TenantContextHolder;
|
||||
import cd.casic.framework.tenant.core.util.TenantUtils;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.role.RoleSaveReqVO;
|
||||
import cd.casic.module.system.controller.admin.tenant.vo.tenant.TenantPageReqVO;
|
||||
import cd.casic.module.system.controller.admin.tenant.vo.tenant.TenantSaveReqVO;
|
||||
import cd.casic.module.system.convert.tenant.TenantConvert;
|
||||
import cd.casic.module.system.dal.dataobject.permission.MenuDO;
|
||||
import cd.casic.module.system.dal.dataobject.permission.RoleDO;
|
||||
import cd.casic.module.system.dal.dataobject.tenant.TenantDO;
|
||||
import cd.casic.module.system.dal.dataobject.tenant.TenantPackageDO;
|
||||
import cd.casic.module.system.dal.mysql.tenant.TenantMapper;
|
||||
import cd.casic.framework.commons.context.TenantContextHolder;
|
||||
import cd.casic.framework.commons.util.tenant.TenantUtils;
|
||||
import cd.casic.module.system.enums.permission.RoleCodeEnum;
|
||||
import cd.casic.module.system.enums.permission.RoleTypeEnum;
|
||||
import cd.casic.module.system.service.permission.MenuService;
|
||||
import cd.casic.module.system.service.permission.PermissionService;
|
||||
import cd.casic.module.system.service.permission.RoleService;
|
||||
import cd.casic.module.system.service.tenant.handler.TenantInfoHandler;
|
||||
import cd.casic.module.system.service.tenant.handler.TenantMenuHandler;
|
||||
import cd.casic.module.system.service.user.AdminUserService;
|
||||
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import jakarta.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
@ -87,10 +86,10 @@ public class TenantServiceImpl implements TenantService {
|
||||
throw exception(TENANT_NOT_EXISTS);
|
||||
}
|
||||
if (tenant.getStatus().equals(CommonStatusEnum.DISABLE.getStatus())) {
|
||||
throw exception(TENANT_DISABLE, tenant.getName());
|
||||
throw ServiceExceptionUtil.exception(TENANT_DISABLE, tenant.getName());
|
||||
}
|
||||
if (DateUtils.isExpired(tenant.getExpireTime())) {
|
||||
throw exception(TENANT_EXPIRE, tenant.getName());
|
||||
throw ServiceExceptionUtil.exception(TENANT_EXPIRE, tenant.getName());
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.auth.vo;
|
||||
package cd.casic.framework.datapermission.service.auth.vo;
|
||||
|
||||
import cd.casic.framework.commons.validation.InEnum;
|
||||
import cn.hutool.core.util.StrUtil;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.auth.vo;
|
||||
package cd.casic.framework.datapermission.service.auth.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.auth.vo;
|
||||
package cd.casic.framework.datapermission.service.auth.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.auth.vo;
|
||||
package cd.casic.framework.datapermission.service.auth.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
@ -1,8 +1,9 @@
|
||||
package cd.casic.module.system.controller.admin.user.vo.profile;
|
||||
package cd.casic.framework.datapermission.service.auth.vo.profile;
|
||||
|
||||
import cd.casic.module.system.controller.admin.dept.vo.dept.DeptSimpleRespVO;
|
||||
import cd.casic.module.system.controller.admin.dept.vo.post.PostSimpleRespVO;
|
||||
import cd.casic.module.system.controller.admin.permission.vo.role.RoleSimpleRespVO;
|
||||
import cd.casic.framework.datapermission.core.vo.role.RoleSimpleRespVO;
|
||||
import cd.casic.framework.security.vo.dept.DeptSimpleRespVO;
|
||||
|
||||
import cd.casic.framework.security.vo.dept.post.PostSimpleRespVO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.user.vo.profile;
|
||||
package cd.casic.framework.datapermission.service.auth.vo.profile;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
@ -1,4 +1,4 @@
|
||||
package cd.casic.module.system.controller.admin.user.vo.profile;
|
||||
package cd.casic.framework.datapermission.service.auth.vo.profile;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.Email;
|
@ -1,10 +1,10 @@
|
||||
package cd.casic.module.system.service.dept;
|
||||
package cd.casic.framework.datapermission.service.dept;
|
||||
|
||||
|
||||
import cd.casic.framework.commons.util.collection.CollectionUtils;
|
||||
import cd.casic.module.system.controller.admin.dept.vo.dept.DeptListReqVO;
|
||||
import cd.casic.module.system.controller.admin.dept.vo.dept.DeptSaveReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.dept.DeptDO;
|
||||
import cd.casic.framework.commons.dataobject.dept.DeptDO;
|
||||
import cd.casic.framework.security.vo.dept.DeptListReqVO;
|
||||
import cd.casic.framework.security.vo.dept.DeptSaveReqVO;
|
||||
|
||||
import java.util.*;
|
||||
|
@ -1,15 +1,16 @@
|
||||
package cd.casic.module.system.service.dept;
|
||||
package cd.casic.framework.datapermission.service.dept;
|
||||
|
||||
import cd.casic.framework.datapermission.core.annotation.DataPermission;
|
||||
import cd.casic.framework.security.dal.dept.DeptMapper;
|
||||
import cd.casic.framework.security.vo.dept.DeptListReqVO;
|
||||
import cd.casic.framework.security.vo.dept.DeptSaveReqVO;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cd.casic.framework.commons.enums.CommonStatusEnum;
|
||||
import cd.casic.framework.commons.util.object.BeanUtils;
|
||||
import cd.casic.framework.datapermission.core.annotation.DataPermission;
|
||||
import cd.casic.module.system.controller.admin.dept.vo.dept.DeptListReqVO;
|
||||
import cd.casic.module.system.controller.admin.dept.vo.dept.DeptSaveReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.dept.DeptDO;
|
||||
import cd.casic.module.system.dal.mysql.dept.DeptMapper;
|
||||
import cd.casic.module.system.dal.redis.RedisKeyConstants;
|
||||
|
||||
import cd.casic.framework.commons.dataobject.dept.DeptDO;
|
||||
import cd.casic.framework.security.redis.RedisKeyConstants;
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.cache.annotation.CacheEvict;
|
||||
@ -89,7 +90,7 @@ public class DeptServiceImpl implements DeptService {
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
void validateDeptExists(Long id) {
|
||||
public void validateDeptExists(Long id) {
|
||||
if (id == null) {
|
||||
return;
|
||||
}
|
||||
@ -100,7 +101,7 @@ public class DeptServiceImpl implements DeptService {
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
void validateParentDept(Long id, Long parentId) {
|
||||
public void validateParentDept(Long id, Long parentId) {
|
||||
if (parentId == null || DeptDO.PARENT_ID_ROOT.equals(parentId)) {
|
||||
return;
|
||||
}
|
||||
@ -135,7 +136,7 @@ public class DeptServiceImpl implements DeptService {
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
void validateDeptNameUnique(Long id, Long parentId, String name) {
|
||||
public void validateDeptNameUnique(Long id, Long parentId, String name) {
|
||||
DeptDO dept = deptMapper.selectByParentIdAndName(parentId, name);
|
||||
if (dept == null) {
|
||||
return;
|
@ -1,9 +1,9 @@
|
||||
package cd.casic.module.system.service.dept;
|
||||
package cd.casic.framework.datapermission.service.dept;
|
||||
|
||||
import cd.casic.framework.commons.pojo.PageResult;
|
||||
import cd.casic.module.system.controller.admin.dept.vo.post.PostPageReqVO;
|
||||
import cd.casic.module.system.controller.admin.dept.vo.post.PostSaveReqVO;
|
||||
import cd.casic.module.system.dal.dataobject.dept.PostDO;
|
||||
import cd.casic.framework.security.vo.dept.post.PostPageReqVO;
|
||||
import cd.casic.framework.security.vo.dept.post.PostSaveReqVO;
|
||||
import cd.casic.framework.commons.dataobject.dept.PostDO;
|
||||
import org.springframework.lang.Nullable;
|
||||
|
||||
import java.util.Collection;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user