From c7f29276c746d7bb19c2d0da0b04f84badfc3881 Mon Sep 17 00:00:00 2001 From: To-om Date: Tue, 1 Sep 2020 09:30:18 +0200 Subject: [PATCH] #1501 Traversal operations refactoring --- .idea/runConfigurations/Cortex_tests.xml | 50 -- .idea/runConfigurations/Misp_tests.xml | 34 -- .idea/runConfigurations/Scalligraph_tests.xml | 60 --- .idea/runConfigurations/TheHive.xml | 30 -- .idea/runConfigurations/TheHive_tests.xml | 116 ----- .idea/runConfigurations/cortex_ActionSrv.xml | 22 - .../runConfigurations/cortex_AnalyzerSrv.xml | 22 - .idea/runConfigurations/cortex_Client.xml | 22 - .../runConfigurations/cortex_EntityHelper.xml | 22 - .idea/runConfigurations/cortex_JobSrv.xml | 22 - .../runConfigurations/cortex_ResponderSrv.xml | 22 - .../cortex_ServiceHelper.xml | 22 - .../cortex_v0_AnalyzerCtrl.xml | 22 - .idea/runConfigurations/cortex_v0_JobCtrl.xml | 22 - .../cortex_v0_ReportCtrl.xml | 22 - .idea/runConfigurations/misp_Import.xml | 22 - .../scalligraph_Application.xml | 22 - .../scalligraph_Callback.xml | 22 - .../scalligraph_Cardinality.xml | 22 - .../scalligraph_Controller.xml | 22 - .idea/runConfigurations/scalligraph_FPath.xml | 22 - .../runConfigurations/scalligraph_Fields.xml | 22 - .../scalligraph_FieldsParserMacro.xml | 22 - .idea/runConfigurations/scalligraph_Index.xml | 22 - .../runConfigurations/scalligraph_Modern.xml | 22 - .idea/runConfigurations/scalligraph_Query.xml | 22 - .idea/runConfigurations/scalligraph_Retry.xml | 22 - .../scalligraph_SimpleEntity.xml | 22 - .../scalligraph_StorageSrv.xml | 22 - .../scalligraph_UpdateFieldsParserMacro.xml | 22 - .idea/runConfigurations/thehive_AlertSrv.xml | 22 - .idea/runConfigurations/thehive_CaseSrv.xml | 22 - .../thehive_DashboardSrv.xml | 22 - .../runConfigurations/thehive_Functional.xml | 22 - .../thehive_OrganisationSrv.xml | 22 - .idea/runConfigurations/thehive_UserSrv.xml | 22 - .../thehive_notification_template.xml | 22 - .../thehive_v0_AlertCtrl.xml | 22 - .../thehive_v0_AttachmentCtrl.xml | 22 - .../thehive_v0_AttachmentCtrl2.xml | 22 - .../runConfigurations/thehive_v0_CaseCtrl.xml | 22 - .../thehive_v0_CaseTemplateCtrl.xml | 22 - .../thehive_v0_CaseTemplateCtrl2.xml | 22 - .../thehive_v0_CustomFieldCtrl.xml | 22 - .../thehive_v0_DashboardCtrl.xml | 22 - .../runConfigurations/thehive_v0_LogCtrl.xml | 22 - .../runConfigurations/thehive_v0_LogCtrl2.xml | 22 - .../thehive_v0_ObservableCtrl.xml | 22 - .../thehive_v0_ObservableCtrl2.xml | 22 - .../thehive_v0_OrganisationCtrl.xml | 22 - .../thehive_v0_ProfileCtrl.xml | 22 - .idea/runConfigurations/thehive_v0_Query.xml | 22 - .../thehive_v0_ShareCtrl.xml | 22 - .../thehive_v0_StatusCtrl.xml | 22 - .../thehive_v0_StatusCtrl2.xml | 22 - .../runConfigurations/thehive_v0_TagCtrl.xml | 22 - .../runConfigurations/thehive_v0_TaskCtrl.xml | 22 - .../runConfigurations/thehive_v0_UserCtrl.xml | 22 - .../thehive_v0_UserCtrl2.xml | 22 - .../thehive_v1_AlertCtrl.xml | 22 - .../runConfigurations/thehive_v1_CaseCtrl.xml | 22 - .../thehive_v1_OrganisationCtrl.xml | 22 - .../runConfigurations/thehive_v1_UserCtrl.xml | 22 - .scalafmt.conf | 2 +- ScalliGraph | 2 +- conf/logback.xml | 2 +- .../cortex/controllers/v0/ActionCtrl.scala | 45 +- .../controllers/v0/AnalyzerTemplateCtrl.scala | 29 +- .../cortex/controllers/v0/Conversion.scala | 14 +- .../controllers/v0/CortexQueryExecutor.scala | 77 +-- .../cortex/controllers/v0/JobCtrl.scala | 34 +- .../cortex/controllers/v0/JobRenderer.scala | 19 +- .../cortex/controllers/v0/Properties.scala | 46 +- .../connector/cortex/models/Action.scala | 49 +- .../cortex/models/AnalyzerTemplate.scala | 4 +- .../cortex/models/CortexSchema.scala | 4 +- .../thehive/connector/cortex/models/Job.scala | 8 +- .../cortex/services/ActionOperationSrv.scala | 23 +- .../connector/cortex/services/ActionSrv.scala | 143 +++--- .../cortex/services/AnalyzerTemplateSrv.scala | 60 ++- .../cortex/services/CortexAuditSrv.scala | 2 +- .../cortex/services/EntityHelper.scala | 57 ++- .../connector/cortex/services/JobSrv.scala | 214 ++++---- .../cortex/services/ServiceHelper.scala | 12 +- .../connector/cortex/services/package.scala | 13 - .../controllers/v0/AnalyzerCtrlTest.scala | 2 +- .../v0/AnalyzerTemplateCtrlTest.scala | 2 +- .../cortex/controllers/v0/JobCtrlTest.scala | 6 +- .../cortex/services/ActionSrvTest.scala | 18 +- .../cortex/services/AnalyzerSrvTest.scala | 2 +- .../cortex/services/EntityHelperTest.scala | 9 +- .../cortex/services/JobSrvTest.scala | 17 +- .../cortex/services/ResponderSrvTest.scala | 6 +- .../cortex/services/ServiceHelperTest.scala | 8 +- .../scala/org/thp/cortex/dto/v0/Job.scala | 2 +- .../scala/org/thp/thehive/dto/v0/Audit.scala | 2 +- .../scala/org/thp/thehive/dto/v1/Audit.scala | 2 +- .../scala/org/thp/thehive/dto/v1/Case.scala | 2 +- .../thp/thehive/migration/MigrationOps.scala | 2 +- .../org/thp/thehive/migration/Terminal.scala | 4 +- .../thehive/migration/th4/NoAuditSrv.scala | 7 +- .../thp/thehive/migration/th4/Output.scala | 279 +++++------ .../thehive/connector/misp/MispModule.scala | 1 + .../misp/controllers/v0/MispCtrl.scala | 6 +- .../misp/services/MispExportSrv.scala | 10 +- .../misp/services/MispImportSrv.scala | 125 ++--- .../misp/services/TheHiveMispClient.scala | 10 +- .../misp/services/MispImportSrvTest.scala | 11 +- project/Dependencies.scala | 3 +- .../app/org/thp/thehive/ClusterSetup.scala | 4 - .../app/org/thp/thehive/TheHiveModule.scala | 18 +- .../thp/thehive/controllers/dav/Router.scala | 2 +- .../org/thp/thehive/controllers/dav/VFS.scala | 36 +- .../thehive/controllers/v0/AlertCtrl.scala | 117 +++-- .../controllers/v0/AttachmentCtrl.scala | 3 +- .../thehive/controllers/v0/AuditCtrl.scala | 17 +- .../controllers/v0/AuditRenderer.scala | 175 +++---- .../controllers/v0/AuthenticationCtrl.scala | 6 +- .../thp/thehive/controllers/v0/CaseCtrl.scala | 47 +- .../thehive/controllers/v0/CaseRenderer.scala | 108 ++-- .../controllers/v0/CaseTemplateCtrl.scala | 31 +- .../thehive/controllers/v0/Conversion.scala | 81 +-- .../controllers/v0/CustomFieldCtrl.scala | 6 +- .../controllers/v0/DashboardCtrl.scala | 41 +- .../thehive/controllers/v0/DescribeCtrl.scala | 6 +- .../thp/thehive/controllers/v0/ListCtrl.scala | 9 +- .../thp/thehive/controllers/v0/LogCtrl.scala | 26 +- .../controllers/v0/ObservableCtrl.scala | 32 +- .../controllers/v0/ObservableRenderer.scala | 35 +- .../controllers/v0/ObservableTypeCtrl.scala | 22 +- .../controllers/v0/OrganisationCtrl.scala | 34 +- .../thp/thehive/controllers/v0/PageCtrl.scala | 22 +- .../controllers/v0/PermissionCtrl.scala | 1 - .../thehive/controllers/v0/ProfileCtrl.scala | 23 +- .../thehive/controllers/v0/Properties.scala | 443 +++++++++-------- .../thehive/controllers/v0/QueryCtrl.scala | 71 ++- .../thehive/controllers/v0/ShareCtrl.scala | 31 +- .../thehive/controllers/v0/StatsCtrl.scala | 26 +- .../thehive/controllers/v0/StreamCtrl.scala | 3 +- .../thp/thehive/controllers/v0/TagCtrl.scala | 28 +- .../thp/thehive/controllers/v0/TaskCtrl.scala | 33 +- .../controllers/v0/TheHiveQueryExecutor.scala | 133 +++-- .../thp/thehive/controllers/v0/UserCtrl.scala | 78 +-- .../thehive/controllers/v1/AlertCtrl.scala | 48 +- .../controllers/v1/AlertRenderer.scala | 56 ++- .../thehive/controllers/v1/AuditCtrl.scala | 23 +- .../controllers/v1/AuthenticationCtrl.scala | 13 +- .../thp/thehive/controllers/v1/CaseCtrl.scala | 46 +- .../thehive/controllers/v1/CaseRenderer.scala | 126 ++--- .../controllers/v1/CaseTemplateCtrl.scala | 29 +- .../thehive/controllers/v1/Conversion.scala | 70 +-- .../controllers/v1/CustomFieldCtrl.scala | 7 +- .../thehive/controllers/v1/DescribeCtrl.scala | 10 +- .../thp/thehive/controllers/v1/LogCtrl.scala | 30 +- .../thehive/controllers/v1/LogRenderer.scala | 79 +-- .../controllers/v1/ObservableCtrl.scala | 40 +- .../controllers/v1/ObservableRenderer.scala | 113 +++-- .../controllers/v1/OrganisationCtrl.scala | 32 +- .../thehive/controllers/v1/ProfileCtrl.scala | 23 +- .../thehive/controllers/v1/Properties.scala | 245 +++++----- .../thehive/controllers/v1/QueryCtrl.scala | 14 +- .../thp/thehive/controllers/v1/TaskCtrl.scala | 40 +- .../thehive/controllers/v1/TaskRenderer.scala | 92 ++-- .../controllers/v1/TheHiveQueryExecutor.scala | 12 +- .../thp/thehive/controllers/v1/UserCtrl.scala | 82 ++-- .../app/org/thp/thehive/models/Alert.scala | 14 +- .../org/thp/thehive/models/Attachment.scala | 4 +- .../app/org/thp/thehive/models/Audit.scala | 68 +-- thehive/app/org/thp/thehive/models/Case.scala | 24 +- .../org/thp/thehive/models/CaseTemplate.scala | 12 +- .../app/org/thp/thehive/models/Config.scala | 8 +- .../org/thp/thehive/models/CustomField.scala | 45 +- .../org/thp/thehive/models/Dashboard.scala | 8 +- .../app/org/thp/thehive/models/KeyValue.scala | 4 +- thehive/app/org/thp/thehive/models/Log.scala | 6 +- .../org/thp/thehive/models/Observable.scala | 14 +- .../thp/thehive/models/ObservableType.scala | 6 +- .../org/thp/thehive/models/Organisation.scala | 8 +- thehive/app/org/thp/thehive/models/Page.scala | 6 +- .../org/thp/thehive/models/ReportTag.scala | 6 +- thehive/app/org/thp/thehive/models/Role.scala | 10 +- .../thehive/models/SchemaUpdaterActor.scala | 2 +- .../app/org/thp/thehive/models/Share.scala | 12 +- thehive/app/org/thp/thehive/models/Tag.scala | 4 +- thehive/app/org/thp/thehive/models/Task.scala | 6 +- .../models/TheHiveSchemaDefinition.scala | 10 +- thehive/app/org/thp/thehive/models/User.scala | 8 +- .../org/thp/thehive/services/AlertSrv.scala | 397 ++++++++------- .../thp/thehive/services/AttachmentSrv.scala | 28 +- .../org/thp/thehive/services/AuditSrv.scala | 183 ++++--- .../org/thp/thehive/services/CaseSrv.scala | 462 +++++++++--------- .../thehive/services/CaseTemplateSrv.scala | 173 ++++--- .../org/thp/thehive/services/ConfigSrv.scala | 149 +++--- .../thp/thehive/services/CustomFieldSrv.scala | 217 ++++---- .../thp/thehive/services/DashboardSrv.scala | 93 ++-- .../org/thp/thehive/services/DataSrv.scala | 54 +- .../thehive/services/DatabaseWrapper.scala | 214 ++++---- .../org/thp/thehive/services/FlowActor.scala | 29 +- .../thehive/services/ImpactStatusSrv.scala | 38 +- .../thp/thehive/services/KeyValueSrv.scala | 11 +- .../thehive/services/LocalKeyAuthSrv.scala | 17 +- .../services/LocalPasswordAuthSrv.scala | 5 +- .../thp/thehive/services/LocalUserSrv.scala | 13 +- .../app/org/thp/thehive/services/LogSrv.scala | 156 +++--- .../thp/thehive/services/ObservableSrv.scala | 313 ++++++------ .../thehive/services/ObservableTypeSrv.scala | 40 +- .../thehive/services/OrganisationSrv.scala | 153 +++--- .../org/thp/thehive/services/PageSrv.scala | 42 +- .../org/thp/thehive/services/ProfileSrv.scala | 56 +-- .../thp/thehive/services/ReportTagSrv.scala | 26 +- .../services/ResolutionStatusSrv.scala | 40 +- .../org/thp/thehive/services/RoleSrv.scala | 33 +- .../org/thp/thehive/services/ShareSrv.scala | 132 ++--- .../org/thp/thehive/services/StreamSrv.scala | 7 +- .../thp/thehive/services/TOTPAuthSrv.scala | 13 +- .../app/org/thp/thehive/services/TagSrv.scala | 49 +- .../org/thp/thehive/services/TaskSrv.scala | 166 +++---- .../org/thp/thehive/services/UserSrv.scala | 359 +++++++------- .../notification/NotificationActor.scala | 31 +- .../notification/notifiers/AppendToFile.scala | 10 +- .../notification/notifiers/Emailer.scala | 20 +- .../notification/notifiers/Mattermost.scala | 16 +- .../notification/notifiers/Notifier.scala | 2 +- .../notification/notifiers/Template.scala | 36 +- .../notification/notifiers/Webhook.scala | 136 ++++-- .../notification/triggers/CaseCreated.scala | 2 +- .../notification/triggers/FilteredEvent.scala | 2 +- .../notification/triggers/GlobalTrigger.scala | 2 +- .../notification/triggers/LogInMyTask.scala | 8 +- .../notification/triggers/TaskAssigned.scala | 7 +- .../notification/triggers/Trigger.scala | 2 +- .../org/thp/thehive/services/package.scala | 58 +-- .../thehive/services/th3/Aggregation.scala | 398 +++++++++++++++ .../org/thp/thehive/DatabaseBuilder.scala | 8 +- .../test/org/thp/thehive/TestAppBuilder.scala | 20 +- .../controllers/v0/AlertCtrlTest.scala | 4 +- .../controllers/v0/AuditCtrlTest.scala | 8 +- .../thehive/controllers/v0/CaseCtrlTest.scala | 91 ++-- .../controllers/v0/CaseTemplateCtrlTest.scala | 5 +- .../controllers/v0/CustomFieldCtrlTest.scala | 10 +- .../controllers/v0/DashboardCtrlTest.scala | 10 +- .../thehive/controllers/v0/LogCtrlTest.scala | 11 +- .../controllers/v0/ObservableCtrlTest.scala | 5 +- .../controllers/v0/OrganisationCtrlTest.scala | 4 +- .../thehive/controllers/v0/PageCtrlTest.scala | 4 +- .../controllers/v0/ProfileCtrlTest.scala | 4 +- .../thehive/controllers/v0/QueryTest.scala | 16 +- .../controllers/v0/ShareCtrlTest.scala | 7 +- .../thehive/controllers/v0/TagCtrlTest.scala | 4 +- .../thehive/controllers/v0/TaskCtrlTest.scala | 17 +- .../thehive/controllers/v0/UserCtrlTest.scala | 4 +- .../controllers/v1/AlertCtrlTest.scala | 4 +- .../controllers/v1/OrganisationCtrlTest.scala | 4 +- .../thp/thehive/services/AlertSrvTest.scala | 30 +- .../thehive/services/AttachmentSrvTest.scala | 6 +- .../thp/thehive/services/AuditSrvTest.scala | 10 +- .../thp/thehive/services/CaseSrvTest.scala | 65 +-- .../services/CaseTemplateSrvTest.scala | 16 +- .../thehive/services/DashboardSrvTest.scala | 13 +- .../thp/thehive/services/DataSrvTest.scala | 9 +- .../services/ImpactStatusSrvTest.scala | 7 +- .../thp/thehive/services/UserSrvTest.scala | 12 +- .../notifiers/NotificationTemplateTest.scala | 20 +- .../triggers/AlertCreatedTest.scala | 8 +- .../triggers/TaskAssignedTest.scala | 13 +- 265 files changed, 5072 insertions(+), 5999 deletions(-) delete mode 100644 .idea/runConfigurations/Cortex_tests.xml delete mode 100644 .idea/runConfigurations/Misp_tests.xml delete mode 100644 .idea/runConfigurations/Scalligraph_tests.xml delete mode 100644 .idea/runConfigurations/TheHive.xml delete mode 100644 .idea/runConfigurations/TheHive_tests.xml delete mode 100644 .idea/runConfigurations/cortex_ActionSrv.xml delete mode 100644 .idea/runConfigurations/cortex_AnalyzerSrv.xml delete mode 100644 .idea/runConfigurations/cortex_Client.xml delete mode 100644 .idea/runConfigurations/cortex_EntityHelper.xml delete mode 100644 .idea/runConfigurations/cortex_JobSrv.xml delete mode 100644 .idea/runConfigurations/cortex_ResponderSrv.xml delete mode 100644 .idea/runConfigurations/cortex_ServiceHelper.xml delete mode 100644 .idea/runConfigurations/cortex_v0_AnalyzerCtrl.xml delete mode 100644 .idea/runConfigurations/cortex_v0_JobCtrl.xml delete mode 100644 .idea/runConfigurations/cortex_v0_ReportCtrl.xml delete mode 100644 .idea/runConfigurations/misp_Import.xml delete mode 100644 .idea/runConfigurations/scalligraph_Application.xml delete mode 100644 .idea/runConfigurations/scalligraph_Callback.xml delete mode 100644 .idea/runConfigurations/scalligraph_Cardinality.xml delete mode 100644 .idea/runConfigurations/scalligraph_Controller.xml delete mode 100644 .idea/runConfigurations/scalligraph_FPath.xml delete mode 100644 .idea/runConfigurations/scalligraph_Fields.xml delete mode 100644 .idea/runConfigurations/scalligraph_FieldsParserMacro.xml delete mode 100644 .idea/runConfigurations/scalligraph_Index.xml delete mode 100644 .idea/runConfigurations/scalligraph_Modern.xml delete mode 100644 .idea/runConfigurations/scalligraph_Query.xml delete mode 100644 .idea/runConfigurations/scalligraph_Retry.xml delete mode 100644 .idea/runConfigurations/scalligraph_SimpleEntity.xml delete mode 100644 .idea/runConfigurations/scalligraph_StorageSrv.xml delete mode 100644 .idea/runConfigurations/scalligraph_UpdateFieldsParserMacro.xml delete mode 100644 .idea/runConfigurations/thehive_AlertSrv.xml delete mode 100644 .idea/runConfigurations/thehive_CaseSrv.xml delete mode 100644 .idea/runConfigurations/thehive_DashboardSrv.xml delete mode 100644 .idea/runConfigurations/thehive_Functional.xml delete mode 100644 .idea/runConfigurations/thehive_OrganisationSrv.xml delete mode 100644 .idea/runConfigurations/thehive_UserSrv.xml delete mode 100644 .idea/runConfigurations/thehive_notification_template.xml delete mode 100644 .idea/runConfigurations/thehive_v0_AlertCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_AttachmentCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_AttachmentCtrl2.xml delete mode 100644 .idea/runConfigurations/thehive_v0_CaseCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_CaseTemplateCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_CaseTemplateCtrl2.xml delete mode 100644 .idea/runConfigurations/thehive_v0_CustomFieldCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_DashboardCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_LogCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_LogCtrl2.xml delete mode 100644 .idea/runConfigurations/thehive_v0_ObservableCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_ObservableCtrl2.xml delete mode 100644 .idea/runConfigurations/thehive_v0_OrganisationCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_ProfileCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_Query.xml delete mode 100644 .idea/runConfigurations/thehive_v0_ShareCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_StatusCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_StatusCtrl2.xml delete mode 100644 .idea/runConfigurations/thehive_v0_TagCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_TaskCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_UserCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v0_UserCtrl2.xml delete mode 100644 .idea/runConfigurations/thehive_v1_AlertCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v1_CaseCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v1_OrganisationCtrl.xml delete mode 100644 .idea/runConfigurations/thehive_v1_UserCtrl.xml delete mode 100644 cortex/connector/src/main/scala/org/thp/thehive/connector/cortex/services/package.scala create mode 100644 thehive/app/org/thp/thehive/services/th3/Aggregation.scala diff --git a/.idea/runConfigurations/Cortex_tests.xml b/.idea/runConfigurations/Cortex_tests.xml deleted file mode 100644 index 806a16db24..0000000000 --- a/.idea/runConfigurations/Cortex_tests.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/Misp_tests.xml b/.idea/runConfigurations/Misp_tests.xml deleted file mode 100644 index d068ce0111..0000000000 --- a/.idea/runConfigurations/Misp_tests.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/Scalligraph_tests.xml b/.idea/runConfigurations/Scalligraph_tests.xml deleted file mode 100644 index 30ca06a8da..0000000000 --- a/.idea/runConfigurations/Scalligraph_tests.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/TheHive.xml b/.idea/runConfigurations/TheHive.xml deleted file mode 100644 index d9b3e83524..0000000000 --- a/.idea/runConfigurations/TheHive.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/TheHive_tests.xml b/.idea/runConfigurations/TheHive_tests.xml deleted file mode 100644 index c5796cdc2b..0000000000 --- a/.idea/runConfigurations/TheHive_tests.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/cortex_ActionSrv.xml b/.idea/runConfigurations/cortex_ActionSrv.xml deleted file mode 100644 index 6c6c97726e..0000000000 --- a/.idea/runConfigurations/cortex_ActionSrv.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/cortex_AnalyzerSrv.xml b/.idea/runConfigurations/cortex_AnalyzerSrv.xml deleted file mode 100644 index 07f9b8036c..0000000000 --- a/.idea/runConfigurations/cortex_AnalyzerSrv.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/cortex_Client.xml b/.idea/runConfigurations/cortex_Client.xml deleted file mode 100644 index b4034f8316..0000000000 --- a/.idea/runConfigurations/cortex_Client.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/cortex_EntityHelper.xml b/.idea/runConfigurations/cortex_EntityHelper.xml deleted file mode 100644 index e38521624e..0000000000 --- a/.idea/runConfigurations/cortex_EntityHelper.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/cortex_JobSrv.xml b/.idea/runConfigurations/cortex_JobSrv.xml deleted file mode 100644 index 43ba5d8ffb..0000000000 --- a/.idea/runConfigurations/cortex_JobSrv.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/cortex_ResponderSrv.xml b/.idea/runConfigurations/cortex_ResponderSrv.xml deleted file mode 100644 index 2c0a3f1760..0000000000 --- a/.idea/runConfigurations/cortex_ResponderSrv.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/cortex_ServiceHelper.xml b/.idea/runConfigurations/cortex_ServiceHelper.xml deleted file mode 100644 index 0ce6cc7d84..0000000000 --- a/.idea/runConfigurations/cortex_ServiceHelper.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/cortex_v0_AnalyzerCtrl.xml b/.idea/runConfigurations/cortex_v0_AnalyzerCtrl.xml deleted file mode 100644 index 62052f98ab..0000000000 --- a/.idea/runConfigurations/cortex_v0_AnalyzerCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/cortex_v0_JobCtrl.xml b/.idea/runConfigurations/cortex_v0_JobCtrl.xml deleted file mode 100644 index 8a4cf4076d..0000000000 --- a/.idea/runConfigurations/cortex_v0_JobCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/cortex_v0_ReportCtrl.xml b/.idea/runConfigurations/cortex_v0_ReportCtrl.xml deleted file mode 100644 index 1dccd1353c..0000000000 --- a/.idea/runConfigurations/cortex_v0_ReportCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/misp_Import.xml b/.idea/runConfigurations/misp_Import.xml deleted file mode 100644 index 84518e23d8..0000000000 --- a/.idea/runConfigurations/misp_Import.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_Application.xml b/.idea/runConfigurations/scalligraph_Application.xml deleted file mode 100644 index 6d2cc18120..0000000000 --- a/.idea/runConfigurations/scalligraph_Application.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_Callback.xml b/.idea/runConfigurations/scalligraph_Callback.xml deleted file mode 100644 index ea3579a3c6..0000000000 --- a/.idea/runConfigurations/scalligraph_Callback.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_Cardinality.xml b/.idea/runConfigurations/scalligraph_Cardinality.xml deleted file mode 100644 index cdc076327f..0000000000 --- a/.idea/runConfigurations/scalligraph_Cardinality.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_Controller.xml b/.idea/runConfigurations/scalligraph_Controller.xml deleted file mode 100644 index 98f53366da..0000000000 --- a/.idea/runConfigurations/scalligraph_Controller.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_FPath.xml b/.idea/runConfigurations/scalligraph_FPath.xml deleted file mode 100644 index da23a95012..0000000000 --- a/.idea/runConfigurations/scalligraph_FPath.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_Fields.xml b/.idea/runConfigurations/scalligraph_Fields.xml deleted file mode 100644 index 4fd0933557..0000000000 --- a/.idea/runConfigurations/scalligraph_Fields.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_FieldsParserMacro.xml b/.idea/runConfigurations/scalligraph_FieldsParserMacro.xml deleted file mode 100644 index 8ca5bb5846..0000000000 --- a/.idea/runConfigurations/scalligraph_FieldsParserMacro.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_Index.xml b/.idea/runConfigurations/scalligraph_Index.xml deleted file mode 100644 index ba49456ac1..0000000000 --- a/.idea/runConfigurations/scalligraph_Index.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_Modern.xml b/.idea/runConfigurations/scalligraph_Modern.xml deleted file mode 100644 index 0c983e8481..0000000000 --- a/.idea/runConfigurations/scalligraph_Modern.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_Query.xml b/.idea/runConfigurations/scalligraph_Query.xml deleted file mode 100644 index 94954378dc..0000000000 --- a/.idea/runConfigurations/scalligraph_Query.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_Retry.xml b/.idea/runConfigurations/scalligraph_Retry.xml deleted file mode 100644 index 24fb112a83..0000000000 --- a/.idea/runConfigurations/scalligraph_Retry.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_SimpleEntity.xml b/.idea/runConfigurations/scalligraph_SimpleEntity.xml deleted file mode 100644 index 484b111da9..0000000000 --- a/.idea/runConfigurations/scalligraph_SimpleEntity.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_StorageSrv.xml b/.idea/runConfigurations/scalligraph_StorageSrv.xml deleted file mode 100644 index cee02ae686..0000000000 --- a/.idea/runConfigurations/scalligraph_StorageSrv.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/scalligraph_UpdateFieldsParserMacro.xml b/.idea/runConfigurations/scalligraph_UpdateFieldsParserMacro.xml deleted file mode 100644 index 460ba8cc45..0000000000 --- a/.idea/runConfigurations/scalligraph_UpdateFieldsParserMacro.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_AlertSrv.xml b/.idea/runConfigurations/thehive_AlertSrv.xml deleted file mode 100644 index f9ce3e0601..0000000000 --- a/.idea/runConfigurations/thehive_AlertSrv.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_CaseSrv.xml b/.idea/runConfigurations/thehive_CaseSrv.xml deleted file mode 100644 index 9a368c5986..0000000000 --- a/.idea/runConfigurations/thehive_CaseSrv.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_DashboardSrv.xml b/.idea/runConfigurations/thehive_DashboardSrv.xml deleted file mode 100644 index d9c5acf444..0000000000 --- a/.idea/runConfigurations/thehive_DashboardSrv.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_Functional.xml b/.idea/runConfigurations/thehive_Functional.xml deleted file mode 100644 index f641683454..0000000000 --- a/.idea/runConfigurations/thehive_Functional.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_OrganisationSrv.xml b/.idea/runConfigurations/thehive_OrganisationSrv.xml deleted file mode 100644 index 523c373a1b..0000000000 --- a/.idea/runConfigurations/thehive_OrganisationSrv.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_UserSrv.xml b/.idea/runConfigurations/thehive_UserSrv.xml deleted file mode 100644 index 6cf8cfa4ef..0000000000 --- a/.idea/runConfigurations/thehive_UserSrv.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_notification_template.xml b/.idea/runConfigurations/thehive_notification_template.xml deleted file mode 100644 index cb4798d853..0000000000 --- a/.idea/runConfigurations/thehive_notification_template.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_AlertCtrl.xml b/.idea/runConfigurations/thehive_v0_AlertCtrl.xml deleted file mode 100644 index 05b84b8bb3..0000000000 --- a/.idea/runConfigurations/thehive_v0_AlertCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_AttachmentCtrl.xml b/.idea/runConfigurations/thehive_v0_AttachmentCtrl.xml deleted file mode 100644 index 9f399f4a57..0000000000 --- a/.idea/runConfigurations/thehive_v0_AttachmentCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_AttachmentCtrl2.xml b/.idea/runConfigurations/thehive_v0_AttachmentCtrl2.xml deleted file mode 100644 index 9f399f4a57..0000000000 --- a/.idea/runConfigurations/thehive_v0_AttachmentCtrl2.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_CaseCtrl.xml b/.idea/runConfigurations/thehive_v0_CaseCtrl.xml deleted file mode 100644 index 39b18c0567..0000000000 --- a/.idea/runConfigurations/thehive_v0_CaseCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_CaseTemplateCtrl.xml b/.idea/runConfigurations/thehive_v0_CaseTemplateCtrl.xml deleted file mode 100644 index 0939f2b322..0000000000 --- a/.idea/runConfigurations/thehive_v0_CaseTemplateCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_CaseTemplateCtrl2.xml b/.idea/runConfigurations/thehive_v0_CaseTemplateCtrl2.xml deleted file mode 100644 index 0939f2b322..0000000000 --- a/.idea/runConfigurations/thehive_v0_CaseTemplateCtrl2.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_CustomFieldCtrl.xml b/.idea/runConfigurations/thehive_v0_CustomFieldCtrl.xml deleted file mode 100644 index d72ff5659f..0000000000 --- a/.idea/runConfigurations/thehive_v0_CustomFieldCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_DashboardCtrl.xml b/.idea/runConfigurations/thehive_v0_DashboardCtrl.xml deleted file mode 100644 index 2bc75a1d0d..0000000000 --- a/.idea/runConfigurations/thehive_v0_DashboardCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_LogCtrl.xml b/.idea/runConfigurations/thehive_v0_LogCtrl.xml deleted file mode 100644 index 3f09c665bf..0000000000 --- a/.idea/runConfigurations/thehive_v0_LogCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_LogCtrl2.xml b/.idea/runConfigurations/thehive_v0_LogCtrl2.xml deleted file mode 100644 index 3f09c665bf..0000000000 --- a/.idea/runConfigurations/thehive_v0_LogCtrl2.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_ObservableCtrl.xml b/.idea/runConfigurations/thehive_v0_ObservableCtrl.xml deleted file mode 100644 index af9b51346f..0000000000 --- a/.idea/runConfigurations/thehive_v0_ObservableCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_ObservableCtrl2.xml b/.idea/runConfigurations/thehive_v0_ObservableCtrl2.xml deleted file mode 100644 index af9b51346f..0000000000 --- a/.idea/runConfigurations/thehive_v0_ObservableCtrl2.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_OrganisationCtrl.xml b/.idea/runConfigurations/thehive_v0_OrganisationCtrl.xml deleted file mode 100644 index c083f0190f..0000000000 --- a/.idea/runConfigurations/thehive_v0_OrganisationCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_ProfileCtrl.xml b/.idea/runConfigurations/thehive_v0_ProfileCtrl.xml deleted file mode 100644 index f9fa89e9c9..0000000000 --- a/.idea/runConfigurations/thehive_v0_ProfileCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_Query.xml b/.idea/runConfigurations/thehive_v0_Query.xml deleted file mode 100644 index 6dd28e31a5..0000000000 --- a/.idea/runConfigurations/thehive_v0_Query.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_ShareCtrl.xml b/.idea/runConfigurations/thehive_v0_ShareCtrl.xml deleted file mode 100644 index 897700d845..0000000000 --- a/.idea/runConfigurations/thehive_v0_ShareCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_StatusCtrl.xml b/.idea/runConfigurations/thehive_v0_StatusCtrl.xml deleted file mode 100644 index 18a2d43738..0000000000 --- a/.idea/runConfigurations/thehive_v0_StatusCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_StatusCtrl2.xml b/.idea/runConfigurations/thehive_v0_StatusCtrl2.xml deleted file mode 100644 index 18a2d43738..0000000000 --- a/.idea/runConfigurations/thehive_v0_StatusCtrl2.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_TagCtrl.xml b/.idea/runConfigurations/thehive_v0_TagCtrl.xml deleted file mode 100644 index 38138bd877..0000000000 --- a/.idea/runConfigurations/thehive_v0_TagCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_TaskCtrl.xml b/.idea/runConfigurations/thehive_v0_TaskCtrl.xml deleted file mode 100644 index c608f7613c..0000000000 --- a/.idea/runConfigurations/thehive_v0_TaskCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_UserCtrl.xml b/.idea/runConfigurations/thehive_v0_UserCtrl.xml deleted file mode 100644 index a5089e7665..0000000000 --- a/.idea/runConfigurations/thehive_v0_UserCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v0_UserCtrl2.xml b/.idea/runConfigurations/thehive_v0_UserCtrl2.xml deleted file mode 100644 index a5089e7665..0000000000 --- a/.idea/runConfigurations/thehive_v0_UserCtrl2.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v1_AlertCtrl.xml b/.idea/runConfigurations/thehive_v1_AlertCtrl.xml deleted file mode 100644 index 60cae05e76..0000000000 --- a/.idea/runConfigurations/thehive_v1_AlertCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v1_CaseCtrl.xml b/.idea/runConfigurations/thehive_v1_CaseCtrl.xml deleted file mode 100644 index 56bbac7ba4..0000000000 --- a/.idea/runConfigurations/thehive_v1_CaseCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v1_OrganisationCtrl.xml b/.idea/runConfigurations/thehive_v1_OrganisationCtrl.xml deleted file mode 100644 index f6aab95437..0000000000 --- a/.idea/runConfigurations/thehive_v1_OrganisationCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/thehive_v1_UserCtrl.xml b/.idea/runConfigurations/thehive_v1_UserCtrl.xml deleted file mode 100644 index bab9c7c972..0000000000 --- a/.idea/runConfigurations/thehive_v1_UserCtrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.scalafmt.conf b/.scalafmt.conf index 3843d59dbf..97286da352 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = 2.3.2 +version = 2.6.4 project.git = true align = more # For pretty alignment. assumeStandardLibraryStripMargin = true diff --git a/ScalliGraph b/ScalliGraph index 36b47d6920..7eafad1cee 160000 --- a/ScalliGraph +++ b/ScalliGraph @@ -1 +1 @@ -Subproject commit 36b47d6920d09ceeb721b36e3c6e907b3a293578 +Subproject commit 7eafad1cee2f24fd9ad8402a307ccbaff8f36d11 diff --git a/conf/logback.xml b/conf/logback.xml index 6a19ad03ed..52ba1c47b9 100644 --- a/conf/logback.xml +++ b/conf/logback.xml @@ -35,7 +35,7 @@ - +