You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2025/05/07 07:37:59 UTC
(syncope) branch 4_0_X updated: [SYNCOPE-1876] Remove Virtual Attributes (#1070)
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 4_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/4_0_X by this push:
new a47f7fb970 [SYNCOPE-1876] Remove Virtual Attributes (#1070)
a47f7fb970 is described below
commit a47f7fb97097e8ff914e3a8fc794e2c604100379
Author: Francesco Chicchiriccò <il...@users.noreply.github.com>
AuthorDate: Wed May 7 09:37:54 2025 +0200
[SYNCOPE-1876] Remove Virtual Attributes (#1070)
---
.../AttrRepoWizardBuilder$Configuration.properties | 1 -
...epoWizardBuilder$Configuration_fr_CA.properties | 5 +-
...trRepoWizardBuilder$Configuration_it.properties | 1 -
...trRepoWizardBuilder$Configuration_ja.properties | 1 -
...epoWizardBuilder$Configuration_pt_BR.properties | 1 -
...trRepoWizardBuilder$Configuration_ru.properties | 1 -
...uthModuleWizardBuilder$Configuration.properties | 1 -
...uleWizardBuilder$Configuration_fr_CA.properties | 5 +-
...ModuleWizardBuilder$Configuration_it.properties | 1 -
...ModuleWizardBuilder$Configuration_ja.properties | 1 -
...uleWizardBuilder$Configuration_pt_BR.properties | 1 -
...ModuleWizardBuilder$Configuration_ru.properties | 1 -
.../syncope/client/console/IdMConsoleContext.java | 7 -
.../commons/IdMVirSchemaDetailsPanelProvider.java | 33 -
.../console/panels/ResourceDirectoryPanel.java | 2 -
.../client/console/panels/VirSchemaDetails.java | 164 -----
.../console/topology/TopologyTogglePanel.java | 7 -
.../wizards/resources/ResourceMappingPanel.java | 9 +-
.../client/console/panels/VirSchemaDetails.html | 39 --
.../console/panels/VirSchemaDetails.properties | 24 -
.../console/panels/VirSchemaDetails_it.properties | 24 -
.../console/panels/VirSchemaDetails_ja.properties | 24 -
.../panels/VirSchemaDetails_pt_BR.properties | 24 -
.../console/panels/VirSchemaDetails_ru.properties | 24 -
.../commons/layout/AbstractAnyFormBaseLayout.java | 10 -
.../ui/commons/layout/AbstractAnyFormLayout.java | 6 -
.../wizards/any/AbstractAnyWizardBuilder.java | 37 +-
.../client/console/IdRepoConsoleContext.java | 8 -
.../client/console/SyncopeConsoleApplication.java | 3 -
.../client/console/SyncopeWebApplication.java | 9 -
.../client/console/commons/IdRepoConstants.java | 6 -
.../IdRepoVirSchemaDetailsPanelProvider.java | 33 -
.../commons/SortableAnyProviderComparator.java | 4 -
.../commons/VirSchemaDetailsPanelProvider.java | 29 -
.../notifications/NotificationWizardBuilder.java | 3 -
.../console/panels/AnyTypeClassDetailsPanel.java | 14 -
.../syncope/client/console/panels/BeanPanel.java | 16 +-
.../client/console/panels/SchemaTypePanel.java | 4 +-
.../console/panels/SchemaTypeWizardBuilder.java | 7 -
.../html/repeater/data/table/AttrColumn.java | 3 -
.../client/console/widgets/CompletenessWidget.java | 8 +-
.../client/console/wizards/any/AbstractAttrs.java | 2 -
.../wizards/any/AnyObjectWizardBuilder.java | 2 +-
.../console/wizards/any/AnyWizardBuilder.java | 42 +-
.../console/wizards/any/GroupWizardBuilder.java | 2 +-
.../console/wizards/any/UserWizardBuilder.java | 2 +-
.../client/console/wizards/any/VirAttrs.java | 213 -------
.../console/panels/AnyTypeClassDetailsPanel.html | 10 -
.../panels/AnyTypeClassDetailsPanel.properties | 1 -
.../AnyTypeClassDetailsPanel_fr_CA.properties | 5 +-
.../panels/AnyTypeClassDetailsPanel_it.properties | 1 -
.../panels/AnyTypeClassDetailsPanel_ja.properties | 1 -
.../AnyTypeClassDetailsPanel_pt_BR.properties | 1 -
.../panels/AnyTypeClassDetailsPanel_ru.properties | 6 +-
.../console/panels/AnyTypeClassesPanel.properties | 1 -
.../panels/AnyTypeClassesPanel_fr_CA.properties | 5 +-
.../panels/AnyTypeClassesPanel_it.properties | 1 -
.../panels/AnyTypeClassesPanel_ja.properties | 1 -
.../panels/AnyTypeClassesPanel_pt_BR.properties | 1 -
.../panels/AnyTypeClassesPanel_ru.properties | 14 +-
.../panels/VirSchemaDetails_fr_CA.properties | 24 -
.../client/console/widgets/CompletenessWidget.html | 2 +-
.../console/widgets/CompletenessWidget.properties | 2 +-
.../widgets/CompletenessWidget_fr_CA.properties | 14 +-
.../widgets/CompletenessWidget_it.properties | 2 +-
.../widgets/CompletenessWidget_ja.properties | 2 +-
.../widgets/CompletenessWidget_pt_BR.properties | 2 +-
.../widgets/CompletenessWidget_ru.properties | 19 +-
.../client/console/wizards/any/VirAttrs.html | 26 -
.../client/console/wizards/any/VirAttrs.properties | 18 -
.../console/wizards/any/VirAttrs_fr_CA.properties | 18 -
.../console/wizards/any/VirAttrs_it.properties | 18 -
.../console/wizards/any/VirAttrs_ja.properties | 18 -
.../console/wizards/any/VirAttrs_pt_BR.properties | 18 -
.../console/wizards/any/VirAttrs_ru.properties | 19 -
.../syncope/client/console/AbstractTest.java | 8 +-
.../client/enduser/layout/UserFormLayoutInfo.java | 6 -
.../client/enduser/panels/AnyFormPanel.java | 55 +-
.../client/enduser/panels/UserFormPanel.java | 2 +-
.../client/enduser/panels/any/AbstractAttrs.java | 2 -
.../client/enduser/panels/any/VirAttrs.java | 194 ------
.../client/enduser/rest/SchemaRestClient.java | 4 -
.../src/main/resources/customFormLayout.json | 2 -
.../enduser/SyncopeEnduserApplication.properties | 1 -
.../SyncopeEnduserApplication_fr_CA.properties | 1 -
.../SyncopeEnduserApplication_it.properties | 1 -
.../SyncopeEnduserApplication_ja.properties | 117 ++--
.../SyncopeEnduserApplication_pt_BR.properties | 1 -
.../SyncopeEnduserApplication_ru.properties | 101 ++-
.../client/enduser/panels/UserFormPanel.html | 1 -
.../client/enduser/panels/any/VirAttrs.html | 27 -
.../client/enduser/panels/any/VirAttrs.properties | 18 -
.../enduser/panels/any/VirAttrs_it.properties | 18 -
.../enduser/panels/any/VirAttrs_ja.properties | 18 -
.../enduser/panels/any/VirAttrs_pt_BR.properties | 18 -
.../enduser/panels/any/VirAttrs_ru.properties | 18 -
.../syncope/client/enduser/AbstractTest.java | 2 -
.../org/apache/syncope/common/lib/to/Mapping.java | 14 -
.../apache/syncope/common/lib/to/Provision.java | 10 -
.../syncope/common/rest/api/beans/CSVPushSpec.java | 21 -
.../apache/syncope/common/lib/AnyOperations.java | 32 +-
.../apache/syncope/common/lib/EntityTOUtils.java | 2 -
.../syncope/common/lib/info/NumbersInfo.java | 1 -
.../common/lib/policy/DefaultAccountRuleConf.java | 2 +-
.../common/lib/policy/DefaultPasswordRuleConf.java | 2 +-
.../apache/syncope/common/lib/request/AnyCR.java | 35 --
.../apache/syncope/common/lib/request/AnyUR.java | 31 +-
.../syncope/common/lib/request/MembershipUR.java | 25 -
.../org/apache/syncope/common/lib/to/AnyTO.java | 17 -
.../syncope/common/lib/to/AnyTypeClassTO.java | 8 -
.../syncope/common/lib/to/AttributableTO.java | 4 -
.../apache/syncope/common/lib/to/MembershipTO.java | 32 -
.../org/apache/syncope/common/lib/to/RealmTO.java | 15 -
.../org/apache/syncope/common/lib/to/SchemaTO.java | 2 +-
.../apache/syncope/common/lib/to/VirSchemaTO.java | 112 ----
.../common/lib/types/ClientExceptionType.java | 1 -
.../syncope/common/lib/types/SchemaType.java | 9 +-
.../syncope/common/lib/SerializationTest.java | 15 +-
.../syncope/common/rest/api/beans/AnyQuery.java | 3 +-
.../apache/syncope/core/logic/IdMLogicContext.java | 10 -
.../syncope/core/logic/ReconciliationLogic.java | 34 +-
.../apache/syncope/core/logic/ResourceLogic.java | 22 +-
.../syncope/core/logic/ResourceLogicTest.java | 38 +-
.../syncope/core/logic/IdRepoLogicContext.java | 4 +-
.../org/apache/syncope/core/logic/SchemaLogic.java | 43 +-
.../core/rest/cxf/service/AbstractAnyService.java | 12 -
.../core/persistence/api/dao/VirSchemaDAO.java | 30 -
.../core/persistence/api/entity/AnyTypeClass.java | 4 -
.../core/persistence/api/entity/VirSchema.java | 50 --
.../jpa/upgrade/GenerateUpgradeSQL.java | 33 +-
.../src/main/resources/schema.xml | 39 +-
.../core/persistence/jpa/PersistenceContext.java | 26 -
.../jpa/dao/repo/AbstractAnyRepoExt.java | 6 -
.../jpa/dao/repo/AnyTypeClassRepoExtImpl.java | 12 -
.../jpa/dao/repo/ExternalResourceRepoExtImpl.java | 7 -
.../persistence/jpa/dao/repo/VirSchemaRepo.java | 28 -
.../persistence/jpa/dao/repo/VirSchemaRepoExt.java | 37 --
.../jpa/dao/repo/VirSchemaRepoExtImpl.java | 85 ---
.../jpa/entity/AbstractEntityFactory.java | 3 -
.../persistence/jpa/entity/JPAAnyTypeClass.java | 15 -
.../core/persistence/jpa/entity/JPAVirSchema.java | 131 ----
.../syncope/core/persistence/jpa/AbstractTest.java | 5 +-
.../persistence/jpa/inner/AnyTypeClassTest.java | 2 -
.../persistence/jpa/inner/RemediationTest.java | 6 +-
.../core/persistence/jpa/inner/ResourceTest.java | 32 -
.../core/persistence/jpa/inner/TaskTest.java | 2 +-
.../core/persistence/jpa/inner/VirSchemaTest.java | 113 ----
.../core/persistence/jpa/outer/VirSchemaTest.java | 82 ---
.../src/test/resources/domains/MasterContent.xml | 74 +--
.../core/persistence/neo4j/PersistenceContext.java | 64 +-
.../neo4j/content/ContentLoaderHandler.java | 8 +-
.../persistence/neo4j/dao/Neo4jEntityCacheDAO.java | 5 +-
.../neo4j/dao/repo/AbstractAnyRepoExt.java | 16 -
.../neo4j/dao/repo/AbstractSchemaRepoExt.java | 4 -
.../neo4j/dao/repo/AnyObjectRepoExtImpl.java | 3 -
.../neo4j/dao/repo/AnyTypeClassRepoExtImpl.java | 22 -
.../dao/repo/ExternalResourceRepoExtImpl.java | 7 -
.../neo4j/dao/repo/GroupRepoExtImpl.java | 5 +-
.../neo4j/dao/repo/UserRepoExtImpl.java | 3 -
.../persistence/neo4j/dao/repo/VirSchemaRepo.java | 28 -
.../neo4j/dao/repo/VirSchemaRepoExt.java | 47 --
.../neo4j/dao/repo/VirSchemaRepoExtImpl.java | 133 ----
.../neo4j/entity/Neo4jAnyTypeClass.java | 17 -
.../neo4j/entity/Neo4jEntityFactory.java | 3 -
.../persistence/neo4j/entity/Neo4jVirSchema.java | 129 ----
.../CacheCleaningTransactionExecutionListener.java | 8 +-
.../src/main/resources/META-INF/indexes.xml | 1 -
.../persistence/neo4j/inner/AnyTypeClassTest.java | 2 -
.../persistence/neo4j/inner/RemediationTest.java | 6 +-
.../core/persistence/neo4j/inner/ResourceTest.java | 32 -
.../core/persistence/neo4j/inner/TaskTest.java | 2 +-
.../persistence/neo4j/inner/VirSchemaTest.java | 113 ----
.../persistence/neo4j/outer/VirSchemaTest.java | 81 ---
.../src/test/resources/domains/MasterContent.xml | 78 +--
.../core/provisioning/api/IntAttrNameParser.java | 11 +-
.../core/provisioning/api/VirAttrHandler.java | 84 ---
.../provisioning/api/data/ItemTransformer.java | 2 -
.../provisioning/api/data/SchemaDataBinder.java | 8 -
.../api/propagation/PropagationManager.java | 9 +-
.../provisioning/api/IntAttrNameParserTest.java | 36 +-
.../java/DefaultAnyObjectProvisioningManager.java | 10 +-
.../java/DefaultGroupProvisioningManager.java | 11 +-
.../provisioning/java/DefaultMappingManager.java | 155 ++---
.../java/DefaultUserProvisioningManager.java | 13 +-
.../provisioning/java/DefaultVirAttrHandler.java | 191 ------
.../provisioning/java/ProvisioningContext.java | 88 +--
.../provisioning/java/cache/VirAttrCacheKey.java | 28 -
.../provisioning/java/cache/VirAttrCacheValue.java | 32 -
.../core/provisioning/java/data/AnyDataBinder.java | 14 -
.../java/data/AnyObjectDataBinderImpl.java | 5 -
.../java/data/AnyTypeClassDataBinderImpl.java | 25 -
.../java/data/GroupDataBinderImpl.java | 4 -
.../java/data/JEXLItemTransformerImpl.java | 1 -
.../java/data/ResourceDataBinderImpl.java | 59 +-
.../java/data/SchemaDataBinderImpl.java | 92 ---
.../provisioning/java/data/UserDataBinderImpl.java | 5 -
.../notification/DefaultNotificationManager.java | 43 +-
.../propagation/DefaultPropagationManager.java | 65 +-
.../java/pushpull/AbstractPullExecutor.java | 4 -
.../java/pushpull/AbstractPullResultHandler.java | 30 +-
.../java/pushpull/AbstractPushResultHandler.java | 4 +-
.../pushpull/DefaultUserPushResultHandler.java | 4 -
.../provisioning/java/pushpull/InboundMatcher.java | 24 +-
.../java/pushpull/LiveSyncJobDelegate.java | 11 +-
.../java/pushpull/OutboundMatcher.java | 64 +-
.../java/pushpull/PullJobDelegate.java | 11 +-
.../java/pushpull/SinglePullJobDelegate.java | 12 +-
.../pushpull/stream/StreamPullJobDelegate.java | 14 +-
.../provisioning/java/utils/TemplateUtils.java | 35 +-
.../java/cache/VirAttrCacheKeyTest.java | 48 --
.../java/cache/VirAttrCacheValueTest.java | 44 --
.../core/starter/SyncopeCoreApplication.java | 3 -
.../actuate/DefaultSyncopeCoreInfoContributor.java | 7 -
.../wizards/mapping/OIDCProviderMappingPanel.java | 1 -
.../java/data/OIDCC4UIProviderDataBinderImpl.java | 5 -
.../wizards/mapping/SAML2IdPMappingPanel.java | 1 -
.../java/data/SAML2SP4UIIdPDataBinderImpl.java | 5 -
.../panels/mapping/SCIMExtensionMappingPanel.java | 1 -
.../apache/syncope/core/logic/SCIMDataBinder.java | 92 +--
.../syncope/core/logic/scim/SCIMConfManager.java | 14 +-
.../org/apache/syncope/fit/AbstractITCase.java | 2 -
.../syncope/fit/console/AbstractTypesITCase.java | 12 -
.../apache/syncope/fit/console/GroupsITCase.java | 4 -
.../apache/syncope/fit/console/SchemasITCase.java | 53 --
.../apache/syncope/fit/console/UsersITCase.java | 4 -
.../syncope/fit/core/AnyTypeClassITCase.java | 3 -
.../org/apache/syncope/fit/core/GroupITCase.java | 11 -
.../syncope/fit/core/PropagationTaskITCase.java | 7 +-
.../apache/syncope/fit/core/PullTaskITCase.java | 55 --
.../apache/syncope/fit/core/ResourceITCase.java | 52 +-
.../org/apache/syncope/fit/core/UserITCase.java | 9 -
.../apache/syncope/fit/core/UserIssuesITCase.java | 53 +-
.../apache/syncope/fit/core/UserSelfITCase.java | 1 -
.../org/apache/syncope/fit/core/VirAttrITCase.java | 697 ---------------------
.../apache/syncope/fit/core/VirSchemaITCase.java | 151 -----
.../src/test/resources/customTemplate.json | 3 -
.../reference-guide/concepts/typemanagement.adoc | 36 +-
.../concepts/usersgroupsandanyobjects.adoc | 2 +-
238 files changed, 566 insertions(+), 5938 deletions(-)
diff --git a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration.properties b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration.properties
index 8d2c500e11..cbd6b3af51 100644
--- a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration.properties
+++ b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration.properties
@@ -16,7 +16,6 @@
# under the License.
plainAttrs=Plain Attributes
derAttrs=Derived Attributes
-virAttrs=Virtual Attributes
features=Features
matchingCond=Matching Condition
userMatchingCond=User Matching Condition
diff --git a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_fr_CA.properties b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_fr_CA.properties
index e791574a14..68f0f52287 100644
--- a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_fr_CA.properties
+++ b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_fr_CA.properties
@@ -15,9 +15,8 @@
# specific language governing permissions and limitations
# under the License.
plainAttrs=Attributs simples
-derAttrs=Attributs d�riv�s
-virAttrs=Attributs virtuels
-features=Caract�ristiques
+derAttrs=Attributs d\u00e9riv\u00e9s
+features=Caract\u00e9ristiques
matchingCond=Condition d'appariement
userMatchingCond=Condition d'appariement des utilisateurs
groupMatchingCond=Condition d'appariement de groupe
diff --git a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_it.properties b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_it.properties
index 6688f852c2..f518653883 100644
--- a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_it.properties
+++ b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_it.properties
@@ -16,7 +16,6 @@
# under the License.
plainAttrs=Attributi
derAttrs=Attributi Derivati
-virAttrs=Attributi Virtuali
features=Features
matchingCond=Condizione di matching
userMatchingCond=Condizione di matching utente
diff --git a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_ja.properties b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_ja.properties
index ba85e50448..83a1dacdd5 100644
--- a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_ja.properties
+++ b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_ja.properties
@@ -16,7 +16,6 @@
# under the License.
plainAttrs=\u30d7\u30ec\u30fc\u30f3\u5c5e\u6027
derAttrs=\u6d3e\u751f\u5c5e\u6027
-virAttrs=\u4eee\u60f3\u5c5e\u6027
features=\u6a5f\u80fd
matchingCond=\u4e00\u81f4\u6761\u4ef6
userMatchingCond=\u30e6\u30fc\u30b6\u2015\u4e00\u81f4\u6761\u4ef6
diff --git a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_pt_BR.properties b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_pt_BR.properties
index 8d2c500e11..cbd6b3af51 100644
--- a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_pt_BR.properties
+++ b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_pt_BR.properties
@@ -16,7 +16,6 @@
# under the License.
plainAttrs=Plain Attributes
derAttrs=Derived Attributes
-virAttrs=Virtual Attributes
features=Features
matchingCond=Matching Condition
userMatchingCond=User Matching Condition
diff --git a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_ru.properties b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_ru.properties
index 721b3e531a..3abdee7686 100644
--- a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_ru.properties
+++ b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AttrRepoWizardBuilder$Configuration_ru.properties
@@ -17,7 +17,6 @@
#
plainAttrs=\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
derAttrs=\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
-virAttrs=\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
features=\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430
matchingCond=\u041a\u0440\u0438\u0442\u0435\u0440\u0438\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f
userMatchingCond=\u041a\u0440\u0438\u0442\u0435\u0440\u0438\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439
diff --git a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration.properties b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration.properties
index 8d2c500e11..cbd6b3af51 100644
--- a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration.properties
+++ b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration.properties
@@ -16,7 +16,6 @@
# under the License.
plainAttrs=Plain Attributes
derAttrs=Derived Attributes
-virAttrs=Virtual Attributes
features=Features
matchingCond=Matching Condition
userMatchingCond=User Matching Condition
diff --git a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_fr_CA.properties b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_fr_CA.properties
index e791574a14..68f0f52287 100644
--- a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_fr_CA.properties
+++ b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_fr_CA.properties
@@ -15,9 +15,8 @@
# specific language governing permissions and limitations
# under the License.
plainAttrs=Attributs simples
-derAttrs=Attributs d�riv�s
-virAttrs=Attributs virtuels
-features=Caract�ristiques
+derAttrs=Attributs d\u00e9riv\u00e9s
+features=Caract\u00e9ristiques
matchingCond=Condition d'appariement
userMatchingCond=Condition d'appariement des utilisateurs
groupMatchingCond=Condition d'appariement de groupe
diff --git a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_it.properties b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_it.properties
index 6688f852c2..f518653883 100644
--- a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_it.properties
+++ b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_it.properties
@@ -16,7 +16,6 @@
# under the License.
plainAttrs=Attributi
derAttrs=Attributi Derivati
-virAttrs=Attributi Virtuali
features=Features
matchingCond=Condizione di matching
userMatchingCond=Condizione di matching utente
diff --git a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_ja.properties b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_ja.properties
index ba85e50448..83a1dacdd5 100644
--- a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_ja.properties
+++ b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_ja.properties
@@ -16,7 +16,6 @@
# under the License.
plainAttrs=\u30d7\u30ec\u30fc\u30f3\u5c5e\u6027
derAttrs=\u6d3e\u751f\u5c5e\u6027
-virAttrs=\u4eee\u60f3\u5c5e\u6027
features=\u6a5f\u80fd
matchingCond=\u4e00\u81f4\u6761\u4ef6
userMatchingCond=\u30e6\u30fc\u30b6\u2015\u4e00\u81f4\u6761\u4ef6
diff --git a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_pt_BR.properties b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_pt_BR.properties
index 8d2c500e11..cbd6b3af51 100644
--- a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_pt_BR.properties
+++ b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_pt_BR.properties
@@ -16,7 +16,6 @@
# under the License.
plainAttrs=Plain Attributes
derAttrs=Derived Attributes
-virAttrs=Virtual Attributes
features=Features
matchingCond=Matching Condition
userMatchingCond=User Matching Condition
diff --git a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_ru.properties b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_ru.properties
index 721b3e531a..3abdee7686 100644
--- a/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_ru.properties
+++ b/client/am/console/src/main/resources/org/apache/syncope/client/console/wizards/AuthModuleWizardBuilder$Configuration_ru.properties
@@ -17,7 +17,6 @@
#
plainAttrs=\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
derAttrs=\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
-virAttrs=\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
features=\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430
matchingCond=\u041a\u0440\u0438\u0442\u0435\u0440\u0438\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f
userMatchingCond=\u041a\u0440\u0438\u0442\u0435\u0440\u0438\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439
diff --git a/client/idm/console/src/main/java/org/apache/syncope/client/console/IdMConsoleContext.java b/client/idm/console/src/main/java/org/apache/syncope/client/console/IdMConsoleContext.java
index ae5666f6d2..57d46b8f0f 100644
--- a/client/idm/console/src/main/java/org/apache/syncope/client/console/IdMConsoleContext.java
+++ b/client/idm/console/src/main/java/org/apache/syncope/client/console/IdMConsoleContext.java
@@ -29,11 +29,9 @@ import org.apache.syncope.client.console.commons.IdMExternalResourceProvider;
import org.apache.syncope.client.console.commons.IdMImplementationInfoProvider;
import org.apache.syncope.client.console.commons.IdMPolicyTabProvider;
import org.apache.syncope.client.console.commons.IdMStatusProvider;
-import org.apache.syncope.client.console.commons.IdMVirSchemaDetailsPanelProvider;
import org.apache.syncope.client.console.commons.ImplementationInfoProvider;
import org.apache.syncope.client.console.commons.PolicyTabProvider;
import org.apache.syncope.client.console.commons.StatusProvider;
-import org.apache.syncope.client.console.commons.VirSchemaDetailsPanelProvider;
import org.apache.syncope.client.console.init.ClassPathScanImplementationContributor;
import org.apache.syncope.client.console.init.ClassPathScanImplementationLookup;
import org.apache.syncope.client.console.init.IdMClassPathScanImplementationContributor;
@@ -88,11 +86,6 @@ public class IdMConsoleContext {
return new IdMStatusProvider(reconStatusUtils);
}
- @Bean
- public VirSchemaDetailsPanelProvider virSchemaDetailsPanelProvider() {
- return new IdMVirSchemaDetailsPanelProvider();
- }
-
@Bean
public ImplementationInfoProvider implementationInfoProvider(
final ClassPathScanImplementationLookup lookup,
diff --git a/client/idm/console/src/main/java/org/apache/syncope/client/console/commons/IdMVirSchemaDetailsPanelProvider.java b/client/idm/console/src/main/java/org/apache/syncope/client/console/commons/IdMVirSchemaDetailsPanelProvider.java
deleted file mode 100644
index ecc06051c7..0000000000
--- a/client/idm/console/src/main/java/org/apache/syncope/client/console/commons/IdMVirSchemaDetailsPanelProvider.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.commons;
-
-import org.apache.syncope.client.console.panels.VirSchemaDetails;
-import org.apache.syncope.common.lib.to.VirSchemaTO;
-import org.apache.wicket.markup.html.panel.Panel;
-
-public class IdMVirSchemaDetailsPanelProvider implements VirSchemaDetailsPanelProvider {
-
- private static final long serialVersionUID = -173141337550903982L;
-
- @Override
- public Panel get(final String id, final VirSchemaTO schemaTO) {
- return new VirSchemaDetails("details", schemaTO);
- }
-}
diff --git a/client/idm/console/src/main/java/org/apache/syncope/client/console/panels/ResourceDirectoryPanel.java b/client/idm/console/src/main/java/org/apache/syncope/client/console/panels/ResourceDirectoryPanel.java
index b9ede15c03..081481d0ca 100644
--- a/client/idm/console/src/main/java/org/apache/syncope/client/console/panels/ResourceDirectoryPanel.java
+++ b/client/idm/console/src/main/java/org/apache/syncope/client/console/panels/ResourceDirectoryPanel.java
@@ -359,8 +359,6 @@ public class ResourceDirectoryPanel extends
ResourceTO resource = restClient.read(key);
resource.setKey("Copy of " + resource.getKey());
// reset some resource objects keys
- resource.getProvisions().stream().filter(p -> p.getMapping() != null).
- forEach(p -> p.getVirSchemas().clear());
target.add(modal.setContent(new ResourceWizardBuilder(
resource, restClient, connectorRestClient, pageRef).
build(BaseModal.CONTENT_ID, AjaxWizard.Mode.CREATE)));
diff --git a/client/idm/console/src/main/java/org/apache/syncope/client/console/panels/VirSchemaDetails.java b/client/idm/console/src/main/java/org/apache/syncope/client/console/panels/VirSchemaDetails.java
deleted file mode 100644
index a2c59d7ea0..0000000000
--- a/client/idm/console/src/main/java/org/apache/syncope/client/console/panels/VirSchemaDetails.java
+++ /dev/null
@@ -1,164 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.panels;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Collectors;
-import org.apache.syncope.client.console.SyncopeConsoleSession;
-import org.apache.syncope.client.console.rest.ConnectorRestClient;
-import org.apache.syncope.client.console.rest.ResourceRestClient;
-import org.apache.syncope.client.ui.commons.Constants;
-import org.apache.syncope.client.ui.commons.ajax.form.IndicatorAjaxFormComponentUpdatingBehavior;
-import org.apache.syncope.client.ui.commons.markup.html.form.AjaxCheckBoxPanel;
-import org.apache.syncope.client.ui.commons.markup.html.form.AjaxDropDownChoicePanel;
-import org.apache.syncope.client.ui.commons.markup.html.form.AjaxTextFieldPanel;
-import org.apache.syncope.common.lib.SyncopeConstants;
-import org.apache.syncope.common.lib.to.ResourceTO;
-import org.apache.syncope.common.lib.to.VirSchemaTO;
-import org.apache.syncope.common.lib.types.IdMEntitlement;
-import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.model.PropertyModel;
-import org.apache.wicket.spring.injection.annot.SpringBean;
-
-public class VirSchemaDetails extends AbstractSchemaDetailsPanel {
-
- private static final long serialVersionUID = 5979623248182851337L;
-
- @SpringBean
- protected ResourceRestClient resourceRestClient;
-
- @SpringBean
- protected ConnectorRestClient connectorRestClient;
-
- protected final Map<String, String> anyTypes = new HashMap<>();
-
- protected final AjaxDropDownChoicePanel<String> anyType;
-
- protected ResourceTO selectedResource;
-
- public VirSchemaDetails(final String id, final VirSchemaTO schemaTO) {
- super(id, schemaTO);
-
- AjaxCheckBoxPanel readonly = new AjaxCheckBoxPanel("readonly", getString("readonly"),
- new PropertyModel<>(schemaTO, "readonly"));
- add(readonly);
-
- AjaxDropDownChoicePanel<String> resource = new AjaxDropDownChoicePanel<>(
- "resource", getString("resource"), new PropertyModel<String>(schemaTO, "resource"), false).
- setNullValid(false);
- resource.setChoices(resourceRestClient.list().stream().map(ResourceTO::getKey).collect(Collectors.toList()));
- resource.setOutputMarkupId(true);
- resource.addRequiredLabel();
- if (resource.getModelObject() != null) {
- populateAnyTypes(resource.getModelObject());
- }
- add(resource);
-
- anyType = new AjaxDropDownChoicePanel<>(
- "anyType", getString("anyType"), new PropertyModel<String>(schemaTO, "anyType"), false).
- setNullValid(false);
- anyType.setChoices(new ArrayList<>(anyTypes.keySet()));
- anyType.setOutputMarkupId(true);
- anyType.setOutputMarkupPlaceholderTag(true);
- anyType.addRequiredLabel();
- if (resource.getModelObject() == null) {
- anyType.setEnabled(false);
- }
- add(anyType);
-
- AjaxTextFieldPanel extAttrName = new AjaxTextFieldPanel(
- "extAttrName", getString("extAttrName"), new PropertyModel<>(schemaTO, "extAttrName"));
- extAttrName.setOutputMarkupId(true);
- extAttrName.addRequiredLabel();
- if (selectedResource != null) {
- extAttrName.setChoices(getExtAttrNames());
- }
- add(extAttrName);
-
- resource.getField().add(new IndicatorAjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
-
- private static final long serialVersionUID = -1107858522700306810L;
-
- @Override
- protected void onUpdate(final AjaxRequestTarget target) {
- anyTypes.clear();
- if (resource.getModelObject() != null) {
- populateAnyTypes(resource.getModelObject());
- anyType.setEnabled(true);
- }
- anyType.setChoices(new ArrayList<>(anyTypes.keySet()));
- anyType.setModelObject(null);
- target.add(anyType);
- }
- });
-
- anyType.getField().add(new IndicatorAjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
-
- private static final long serialVersionUID = -1107858522700306810L;
-
- @Override
- protected void onUpdate(final AjaxRequestTarget target) {
- if (selectedResource != null) {
- String adminRealm = getAdminRealm(selectedResource.getConnector());
-
- if (SyncopeConsoleSession.get().owns(IdMEntitlement.CONNECTOR_READ, adminRealm)) {
- extAttrName.setChoices(getExtAttrNames());
- target.add(extAttrName);
- }
- }
- }
- });
- }
-
- protected String getAdminRealm(final String connectorKey) {
- String adminRealm = null;
- try {
- adminRealm = connectorRestClient.read(connectorKey).getAdminRealm();
- } catch (Exception e) {
- LOG.error("Could not read Admin Realm for External Resource {}", selectedResource.getKey());
- }
-
- return adminRealm;
- }
-
- protected void populateAnyTypes(final String resourceKey) {
- anyTypes.clear();
- if (resourceKey != null) {
- ResourceTO resource = resourceRestClient.read(resourceKey);
- String adminRealm = getAdminRealm(resource.getConnector());
-
- if (SyncopeConsoleSession.get().owns(IdMEntitlement.RESOURCE_READ, adminRealm)) {
- selectedResource = resource;
- selectedResource.getProvisions().forEach(
- provisionTO -> anyTypes.put(provisionTO.getAnyType(), provisionTO.getObjectClass()));
- }
- }
- }
-
- protected List<String> getExtAttrNames() {
- return connectorRestClient.getExtAttrNames(
- SyncopeConstants.ROOT_REALM,
- anyTypes.get(anyType.getModelObject()),
- selectedResource.getConnector(),
- selectedResource.getConfOverride());
- }
-}
diff --git a/client/idm/console/src/main/java/org/apache/syncope/client/console/topology/TopologyTogglePanel.java b/client/idm/console/src/main/java/org/apache/syncope/client/console/topology/TopologyTogglePanel.java
index 2ff8db5378..ab8db42b80 100644
--- a/client/idm/console/src/main/java/org/apache/syncope/client/console/topology/TopologyTogglePanel.java
+++ b/client/idm/console/src/main/java/org/apache/syncope/client/console/topology/TopologyTogglePanel.java
@@ -45,7 +45,6 @@ import org.apache.syncope.client.ui.commons.pages.BaseWebPage;
import org.apache.syncope.client.ui.commons.wizards.AjaxWizard;
import org.apache.syncope.common.lib.SyncopeClientException;
import org.apache.syncope.common.lib.to.ConnInstanceTO;
-import org.apache.syncope.common.lib.to.Provision;
import org.apache.syncope.common.lib.to.ResourceTO;
import org.apache.syncope.common.lib.types.IdMEntitlement;
import org.apache.syncope.common.lib.types.IdRepoEntitlement;
@@ -636,12 +635,6 @@ public class TopologyTogglePanel extends TogglePanel<Serializable> {
ResourceTO resource = resourceRestClient.read(node.getKey());
resource.setKey("Copy of " + node.getKey());
- for (Provision provision : resource.getProvisions()) {
- if (provision.getMapping() != null) {
- provision.getMapping().getLinkingItems().clear();
- }
- provision.getVirSchemas().clear();
- }
target.add(modal.setContent(new ResourceWizardBuilder(
resource, resourceRestClient, connectorRestClient, pageRef).
build(BaseModal.CONTENT_ID, AjaxWizard.Mode.CREATE)));
diff --git a/client/idm/console/src/main/java/org/apache/syncope/client/console/wizards/resources/ResourceMappingPanel.java b/client/idm/console/src/main/java/org/apache/syncope/client/console/wizards/resources/ResourceMappingPanel.java
index 1441795726..6b4994e94d 100644
--- a/client/idm/console/src/main/java/org/apache/syncope/client/console/wizards/resources/ResourceMappingPanel.java
+++ b/client/idm/console/src/main/java/org/apache/syncope/client/console/wizards/resources/ResourceMappingPanel.java
@@ -165,22 +165,19 @@ public class ResourceMappingPanel extends AbstractMappingPanel {
});
switch (provision.getAnyType()) {
- case "USER":
+ case "USER" ->
choices.addAll(ClassPathScanImplementationLookup.USER_FIELD_NAMES);
- break;
- case "GROUP":
+ case "GROUP" ->
choices.addAll(ClassPathScanImplementationLookup.GROUP_FIELD_NAMES);
- break;
- default:
+ default ->
choices.addAll(ClassPathScanImplementationLookup.ANY_OBJECT_FIELD_NAMES);
}
anyTypeClassTOs.forEach(anyTypeClassTO -> {
choices.addAll(anyTypeClassTO.getPlainSchemas());
choices.addAll(anyTypeClassTO.getDerSchemas());
- choices.addAll(anyTypeClassTO.getVirSchemas());
});
}
diff --git a/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails.html b/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails.html
deleted file mode 100644
index b5d83e86fe..0000000000
--- a/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org">
- <wicket:panel>
- <div class="form-group">
- <div class="form-group">
- <span wicket:id="key">[name]</span>
- </div>
- <div class="form-group">
- <span wicket:id="readonly">[readonly]</span>
- </div>
- <div class="form-group">
- <span wicket:id="resource">[resource]</span>
- </div>
- <div class="form-group">
- <span wicket:id="anyType">[anyType]</span>
- </div>
- <div class="form-group">
- <span wicket:id="extAttrName">[extAttrName]</span>
- </div>
- </div>
- </wicket:panel>
-</html>
diff --git a/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails.properties b/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails.properties
deleted file mode 100644
index a93c17a1f9..0000000000
--- a/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-required_alert=All form fields are required.
-edit_attribute=Edit attribute
-attributes=Virtual attributes
-title=Virtual Schema
-readonly=Read-only
-resource=Resource
-anyType=Type
-extAttrName=External attribute
diff --git a/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_it.properties b/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_it.properties
deleted file mode 100644
index 24de32579c..0000000000
--- a/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_it.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-required_alert=Tutti i campi sono richiesti.
-edit_attribute=Modifica attributo
-attributes=Attributi virtuali
-title=Schema Virtuale
-readonly=Read-only
-resource=Risorsa
-anyType=Tipo
-extAttrName=Attributo esterno
diff --git a/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_ja.properties b/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_ja.properties
deleted file mode 100644
index 8475c1a704..0000000000
--- a/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_ja.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-required_alert=\u3059\u3079\u3066\u306e\u30d5\u30a9\u30fc\u30e0\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u5fc5\u9808\u3067\u3059\u3002
-edit_attribute=\u5c5e\u6027\u3092\u7de8\u96c6
-attributes=\u4eee\u60f3\u5c5e\u6027
-title=\u4eee\u60f3\u30b9\u30ad\u30fc\u30de
-readonly=\u8aad\u307f\u53d6\u308a\u5c02\u7528
-resource=\u30ea\u30bd\u30fc\u30b9
-anyType=\u30bf\u30a4\u30d7
-extAttrName=\u5916\u90e8\u5c5e\u6027
diff --git a/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_pt_BR.properties b/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_pt_BR.properties
deleted file mode 100644
index c757d89a73..0000000000
--- a/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_pt_BR.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-required_alert=Todos os campos do formul\u00e1rio s\u00e3o obrigat\u00f3rios
-edit_attribute=Editar Atributo
-attributes=Atributos Virtuais
-title=Esquema Virtual
-readonly=Apenas Leitura
-resource=Recurso
-anyType=Type
-extAttrName=Atributo Externo
diff --git a/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_ru.properties b/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_ru.properties
deleted file mode 100644
index 132ad5aa0f..0000000000
--- a/client/idm/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_ru.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-required_alert=\u0412\u0441\u0435 \u043f\u043e\u043b\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u0434\u043b\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.
-edit_attribute=\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442
-attributes=\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
-title=\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430
-readonly=\u0422\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u0435\u043d\u0438\u0435
-resource=\u0420\u0435\u0441\u0443\u0440\u0441
-anyType=\u0422\u0438\u043f
-extAttrName=\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442
diff --git a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/layout/AbstractAnyFormBaseLayout.java b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/layout/AbstractAnyFormBaseLayout.java
index 8cba2481f2..60173c13d7 100644
--- a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/layout/AbstractAnyFormBaseLayout.java
+++ b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/layout/AbstractAnyFormBaseLayout.java
@@ -36,8 +36,6 @@ public abstract class AbstractAnyFormBaseLayout<A extends AnyTO, F extends AnyFo
private boolean derAttrs = true;
- private boolean virAttrs = true;
-
private boolean resources = true;
protected abstract Class<? extends F> getDefaultFormClass();
@@ -82,14 +80,6 @@ public abstract class AbstractAnyFormBaseLayout<A extends AnyTO, F extends AnyFo
this.derAttrs = derAttrs;
}
- public boolean isVirAttrs() {
- return virAttrs;
- }
-
- public void setVirAttrs(final boolean virAttrs) {
- this.virAttrs = virAttrs;
- }
-
public boolean isResources() {
return resources;
}
diff --git a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/layout/AbstractAnyFormLayout.java b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/layout/AbstractAnyFormLayout.java
index 3e2ba89820..f998039384 100644
--- a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/layout/AbstractAnyFormLayout.java
+++ b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/layout/AbstractAnyFormLayout.java
@@ -32,8 +32,6 @@ public abstract class AbstractAnyFormLayout<A extends AnyTO, F extends AnyForm<A
private final List<String> whichDerAttrs = new ArrayList<>();
- private final List<String> whichVirAttrs = new ArrayList<>();
-
public List<String> getWhichPlainAttrs() {
return whichPlainAttrs;
}
@@ -41,8 +39,4 @@ public abstract class AbstractAnyFormLayout<A extends AnyTO, F extends AnyForm<A
public List<String> getWhichDerAttrs() {
return whichDerAttrs;
}
-
- public List<String> getWhichVirAttrs() {
- return whichVirAttrs;
- }
}
diff --git a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/wizards/any/AbstractAnyWizardBuilder.java b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/wizards/any/AbstractAnyWizardBuilder.java
index 0c59a3b635..01d5dd70ef 100644
--- a/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/wizards/any/AbstractAnyWizardBuilder.java
+++ b/client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/wizards/any/AbstractAnyWizardBuilder.java
@@ -31,37 +31,26 @@ public abstract class AbstractAnyWizardBuilder<A extends AnyTO> extends AjaxWiza
super(defaultItem, pageRef);
}
- protected void fixPlainAndVirAttrs(final AnyTO updated, final AnyTO original) {
- // re-add to the updated object any missing plain or virtual attribute (compared to original): this to cope with
- // form layout, which might have not included some plain or virtual attributes
+ protected void fixPlainAttrs(final AnyTO updated, final AnyTO original) {
+ // re-add to the updated object any missing plain attribute (compared to original): this to cope with
+ // form layout, which might have not included some plain attributes
original.getPlainAttrs().stream().
filter(attr -> updated.getPlainAttr(attr.getSchema()).isPresent()).
forEach(attr -> updated.getPlainAttrs().add(attr));
- original.getVirAttrs().stream().
- filter(attr -> updated.getVirAttr(attr.getSchema()).isPresent()).
- forEach(attr -> updated.getVirAttrs().add(attr));
- if (updated instanceof GroupableRelatableTO && original instanceof GroupableRelatableTO) {
- GroupableRelatableTO.class.cast(original).getMemberships()
- .forEach(oMemb -> GroupableRelatableTO.class.cast(updated).getMembership(oMemb.getGroupKey())
- .ifPresent(uMemb -> {
- oMemb.getPlainAttrs().stream().
- filter(attr -> uMemb.getPlainAttr(attr.getSchema()).isPresent()).
- forEach(attr -> uMemb.getPlainAttrs().add(attr));
- oMemb.getVirAttrs().stream().
- filter(attr -> uMemb.getVirAttr(attr.getSchema()).isPresent()).
- forEach(attr -> uMemb.getVirAttrs().add(attr));
- }));
+ if (updated instanceof GroupableRelatableTO updatedTO && original instanceof GroupableRelatableTO originalTO) {
+ originalTO.getMemberships().
+ forEach(oMemb -> updatedTO.getMembership(oMemb.getGroupKey()).
+ ifPresent(uMemb -> oMemb.getPlainAttrs().stream().
+ filter(attr -> uMemb.getPlainAttr(attr.getSchema()).isPresent()).
+ forEach(attr -> uMemb.getPlainAttrs().add(attr))));
}
- // remove from the updated object any plain or virtual attribute without values, thus triggering for removal in
+ // remove from the updated object any plain attribute without values, thus triggering for removal in
// the generated patch
updated.getPlainAttrs().removeIf(attr -> attr.getValues().isEmpty());
- updated.getVirAttrs().removeIf(attr -> attr.getValues().isEmpty());
- if (updated instanceof GroupableRelatableTO) {
- GroupableRelatableTO.class.cast(updated).getMemberships().forEach(memb -> {
- memb.getPlainAttrs().removeIf(attr -> attr.getValues().isEmpty());
- memb.getVirAttrs().removeIf(attr -> attr.getValues().isEmpty());
- });
+ if (updated instanceof GroupableRelatableTO updatedTO) {
+ updatedTO.getMemberships().
+ forEach(memb -> memb.getPlainAttrs().removeIf(attr -> attr.getValues().isEmpty()));
}
}
}
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/IdRepoConsoleContext.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/IdRepoConsoleContext.java
index 4e3c64c561..a18e81a251 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/IdRepoConsoleContext.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/IdRepoConsoleContext.java
@@ -33,13 +33,11 @@ import org.apache.syncope.client.console.commons.IdRepoImplementationInfoProvide
import org.apache.syncope.client.console.commons.IdRepoPolicyTabProvider;
import org.apache.syncope.client.console.commons.IdRepoRealmPolicyProvider;
import org.apache.syncope.client.console.commons.IdRepoStatusProvider;
-import org.apache.syncope.client.console.commons.IdRepoVirSchemaDetailsPanelProvider;
import org.apache.syncope.client.console.commons.ImplementationInfoProvider;
import org.apache.syncope.client.console.commons.PolicyTabProvider;
import org.apache.syncope.client.console.commons.PreviewUtils;
import org.apache.syncope.client.console.commons.RealmPolicyProvider;
import org.apache.syncope.client.console.commons.StatusProvider;
-import org.apache.syncope.client.console.commons.VirSchemaDetailsPanelProvider;
import org.apache.syncope.client.console.init.ClassPathScanImplementationContributor;
import org.apache.syncope.client.console.init.ClassPathScanImplementationLookup;
import org.apache.syncope.client.console.rest.AccessTokenRestClient;
@@ -130,12 +128,6 @@ public class IdRepoConsoleContext {
return new IdRepoStatusProvider();
}
- @ConditionalOnMissingBean
- @Bean
- public VirSchemaDetailsPanelProvider virSchemaDetailsPanelProvider() {
- return new IdRepoVirSchemaDetailsPanelProvider();
- }
-
@ConditionalOnMissingBean
@Bean
public ImplementationInfoProvider implementationInfoProvider(
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
index ff65011667..a79d100fc9 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/SyncopeConsoleApplication.java
@@ -29,7 +29,6 @@ import org.apache.syncope.client.console.commons.ExternalResourceProvider;
import org.apache.syncope.client.console.commons.ImplementationInfoProvider;
import org.apache.syncope.client.console.commons.PolicyTabProvider;
import org.apache.syncope.client.console.commons.StatusProvider;
-import org.apache.syncope.client.console.commons.VirSchemaDetailsPanelProvider;
import org.apache.syncope.client.console.init.ClassPathScanImplementationLookup;
import org.apache.syncope.client.console.wizards.any.UserFormFinalizer;
import org.apache.syncope.client.ui.commons.actuate.SyncopeCoreHealthIndicator;
@@ -75,7 +74,6 @@ public class SyncopeConsoleApplication extends SpringBootServletInitializer {
final AnyDirectoryPanelAdditionalActionLinksProvider anyDirectoryPanelAdditionalActionLinksProvider,
final AnyWizardBuilderAdditionalSteps anyWizardBuilderAdditionalSteps,
final StatusProvider statusProvider,
- final VirSchemaDetailsPanelProvider virSchemaDetailsPanelProvider,
final ImplementationInfoProvider implementationInfoProvider,
final AccessPolicyConfProvider accessPolicyConfProvider,
final List<PolicyTabProvider> policyTabProviders,
@@ -90,7 +88,6 @@ public class SyncopeConsoleApplication extends SpringBootServletInitializer {
anyDirectoryPanelAdditionalActionsProvider,
anyDirectoryPanelAdditionalActionLinksProvider,
anyWizardBuilderAdditionalSteps, statusProvider,
- virSchemaDetailsPanelProvider,
implementationInfoProvider,
accessPolicyConfProvider,
policyTabProviders,
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/SyncopeWebApplication.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/SyncopeWebApplication.java
index b4003dd6d1..0f48e51b26 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/SyncopeWebApplication.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/SyncopeWebApplication.java
@@ -36,7 +36,6 @@ import org.apache.syncope.client.console.commons.ImplementationInfoProvider;
import org.apache.syncope.client.console.commons.PolicyTabProvider;
import org.apache.syncope.client.console.commons.RealmsUtils;
import org.apache.syncope.client.console.commons.StatusProvider;
-import org.apache.syncope.client.console.commons.VirSchemaDetailsPanelProvider;
import org.apache.syncope.client.console.init.ClassPathScanImplementationLookup;
import org.apache.syncope.client.console.pages.BasePage;
import org.apache.syncope.client.console.pages.Dashboard;
@@ -98,8 +97,6 @@ public class SyncopeWebApplication extends WicketBootSecuredWebApplication {
protected final StatusProvider statusProvider;
- protected final VirSchemaDetailsPanelProvider virSchemaDetailsPanelProvider;
-
protected final ImplementationInfoProvider implementationInfoProvider;
protected final AccessPolicyConfProvider accessPolicyConfProvider;
@@ -119,7 +116,6 @@ public class SyncopeWebApplication extends WicketBootSecuredWebApplication {
final AnyDirectoryPanelAdditionalActionLinksProvider anyDirectoryPanelAdditionalActionLinksProvider,
final AnyWizardBuilderAdditionalSteps anyWizardBuilderAdditionalSteps,
final StatusProvider statusProvider,
- final VirSchemaDetailsPanelProvider virSchemaDetailsPanelProvider,
final ImplementationInfoProvider implementationInfoProvider,
final AccessPolicyConfProvider accessPolicyConfProvider,
final List<PolicyTabProvider> policyTabProviders,
@@ -134,7 +130,6 @@ public class SyncopeWebApplication extends WicketBootSecuredWebApplication {
this.anyDirectoryPanelAdditionalActionLinksProvider = anyDirectoryPanelAdditionalActionLinksProvider;
this.anyWizardBuilderAdditionalSteps = anyWizardBuilderAdditionalSteps;
this.statusProvider = statusProvider;
- this.virSchemaDetailsPanelProvider = virSchemaDetailsPanelProvider;
this.implementationInfoProvider = implementationInfoProvider;
this.accessPolicyConfProvider = accessPolicyConfProvider;
this.policyTabProviders = policyTabProviders;
@@ -342,10 +337,6 @@ public class SyncopeWebApplication extends WicketBootSecuredWebApplication {
return statusProvider;
}
- public VirSchemaDetailsPanelProvider getVirSchemaDetailsPanelProvider() {
- return virSchemaDetailsPanelProvider;
- }
-
public ImplementationInfoProvider getImplementationInfoProvider() {
return implementationInfoProvider;
}
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/IdRepoConstants.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/IdRepoConstants.java
index 49888da718..2514be26fb 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/IdRepoConstants.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/IdRepoConstants.java
@@ -26,8 +26,6 @@ public final class IdRepoConstants {
public static final String PREF_USER_DER_SCHEMA_PAGINATOR_ROWS = "user.derived.schema.paginator.rows";
- public static final String PREF_USER_VIR_SCHEMA_PAGINATOR_ROWS = "user.virtual.schema.paginator.rows";
-
public static final String PREF_ANYTYPE_PAGINATOR_ROWS = "anytype.paginator.rows";
public static final String PREF_SECURITY_QUESTIONS_PAGINATOR_ROWS = "security.questions.paginator.rows";
@@ -40,14 +38,10 @@ public final class IdRepoConstants {
public static final String PREF_GROUP_DER_SCHEMA_PAGINATOR_ROWS = "group.derived.schema.paginator.rows";
- public static final String PREF_GROUP_VIR_SCHEMA_PAGINATOR_ROWS = "group.virtual.schema.paginator.rows";
-
public static final String PREF_MEMBERSHIP_PLAIN_SCHEMA_PAGINATOR_ROWS = "membership.schema.paginator.rows";
public static final String PREF_MEMBERSHIP_DER_SCHEMA_PAGINATOR_ROWS = "membership.derived.aschema.paginator.rows";
- public static final String PREF_MEMBERSHIP_VIR_SCHEMA_PAGINATOR_ROWS = "membership.virtual.aschema.paginator.rows";
-
public static final String PREF_USERS_PAGINATOR_ROWS = "users.paginator.rows";
public static final String PREF_ANYOBJECT_PAGINATOR_ROWS = "anyobject.paginator.rows";
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/IdRepoVirSchemaDetailsPanelProvider.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/IdRepoVirSchemaDetailsPanelProvider.java
deleted file mode 100644
index fcecfab393..0000000000
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/IdRepoVirSchemaDetailsPanelProvider.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.commons;
-
-import org.apache.syncope.common.lib.to.VirSchemaTO;
-import org.apache.wicket.markup.html.panel.EmptyPanel;
-import org.apache.wicket.markup.html.panel.Panel;
-
-public class IdRepoVirSchemaDetailsPanelProvider implements VirSchemaDetailsPanelProvider {
-
- private static final long serialVersionUID = 1972241879030801082L;
-
- @Override
- public Panel get(final String id, final VirSchemaTO schemaTO) {
- return new EmptyPanel(id);
- }
-}
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/SortableAnyProviderComparator.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/SortableAnyProviderComparator.java
index 5411e8e4b4..78b359bc75 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/SortableAnyProviderComparator.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/SortableAnyProviderComparator.java
@@ -91,10 +91,6 @@ public class SortableAnyProviderComparator<T extends AnyTO> extends SortableData
case DERIVED:
attr = this.anyTO.getDerAttr(schema).orElse(null);
break;
-
- case VIRTUAL:
- attr = this.anyTO.getVirAttr(schema).orElse(null);
- break;
}
}
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/VirSchemaDetailsPanelProvider.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/VirSchemaDetailsPanelProvider.java
deleted file mode 100644
index d635e7d9a5..0000000000
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/commons/VirSchemaDetailsPanelProvider.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.commons;
-
-import java.io.Serializable;
-import org.apache.syncope.common.lib.to.VirSchemaTO;
-import org.apache.wicket.markup.html.panel.Panel;
-
-@FunctionalInterface
-public interface VirSchemaDetailsPanelProvider extends Serializable {
-
- Panel get(String id, VirSchemaTO schemaTO);
-}
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/notifications/NotificationWizardBuilder.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/notifications/NotificationWizardBuilder.java
index ac4d7ae827..50bb34560d 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/notifications/NotificationWizardBuilder.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/notifications/NotificationWizardBuilder.java
@@ -51,7 +51,6 @@ import org.apache.syncope.common.lib.to.ImplementationTO;
import org.apache.syncope.common.lib.to.MailTemplateTO;
import org.apache.syncope.common.lib.to.NotificationTO;
import org.apache.syncope.common.lib.to.PlainSchemaTO;
-import org.apache.syncope.common.lib.to.VirSchemaTO;
import org.apache.syncope.common.lib.types.AnyTypeKind;
import org.apache.syncope.common.lib.types.IdRepoImplementationType;
import org.apache.syncope.common.lib.types.SchemaType;
@@ -415,8 +414,6 @@ public class NotificationWizardBuilder extends BaseAjaxWizardBuilder<Notificatio
stream().map(PlainSchemaTO::getKey).toList());
result.addAll(schemaRestClient.<DerSchemaTO>getSchemas(SchemaType.DERIVED, null, anyTypeClasses).
stream().map(DerSchemaTO::getKey).toList());
- result.addAll(schemaRestClient.<VirSchemaTO>getSchemas(SchemaType.VIRTUAL, null, anyTypeClasses).
- stream().map(VirSchemaTO::getKey).toList());
Collections.sort(result);
return result;
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel.java
index 49f8c0dfc9..20933f7880 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel.java
@@ -45,8 +45,6 @@ public class AnyTypeClassDetailsPanel extends Panel {
protected final List<String> availableDerSchemas;
- protected final List<String> availableVirSchemas;
-
protected final AnyTypeClassRestClient anyTypeClassRestClient;
public AnyTypeClassDetailsPanel(
@@ -61,7 +59,6 @@ public class AnyTypeClassDetailsPanel extends Panel {
availablePlainSchemas = schemaRestClient.getSchemaNames(SchemaType.PLAIN);
availableDerSchemas = schemaRestClient.getSchemaNames(SchemaType.DERIVED);
- availableVirSchemas = schemaRestClient.getSchemaNames(SchemaType.VIRTUAL);
this.anyTypeClassRestClient = anyTypeClassRestClient;
@@ -103,16 +100,6 @@ public class AnyTypeClassDetailsPanel extends Panel {
derSchema.hideLabel();
derSchema.setOutputMarkupId(true);
container.add(derSchema);
-
- AjaxPalettePanel<String> virSchema = new AjaxPalettePanel.Builder<String>().
- setAllowOrder(true).
- setAllowMoveAll(true).
- build("virSchemas",
- new PropertyModel<>(this.anyTypeClassTO, "virSchemas"),
- new ListModel<>(availableVirSchemas));
- virSchema.hideLabel();
- virSchema.setOutputMarkupId(true);
- container.add(virSchema);
}
protected void buildAvailableSchemas(final String key) {
@@ -121,7 +108,6 @@ public class AnyTypeClassDetailsPanel extends Panel {
forEach(item -> {
availablePlainSchemas.removeAll(item.getPlainSchemas());
availableDerSchemas.removeAll(item.getDerSchemas());
- availableVirSchemas.removeAll(item.getVirSchemas());
});
availablePlainSchemas.removeAll(LAYOUT_PARAMETERS);
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/BeanPanel.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/BeanPanel.java
index 319971734a..34473862d3 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/BeanPanel.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/BeanPanel.java
@@ -184,7 +184,7 @@ public class BeanPanel<T extends Serializable> extends Panel {
List<SearchClause> clauses = Optional.ofNullable(fiql).
map(f -> SearchUtils.getSearchClauses(f.replaceAll(
SearchUtils.getTypeConditionPattern(scondAnnot.type()).pattern(), ""))).
- orElseGet(ArrayList::new);
+ orElseGet(ArrayList::new);
AbstractFiqlSearchConditionBuilder<?, ?, ?> builder;
switch (scondAnnot.type()) {
@@ -221,22 +221,16 @@ public class BeanPanel<T extends Serializable> extends Panel {
for (SchemaType type : schema.type()) {
switch (type) {
- case PLAIN:
+ case PLAIN ->
choices.addAll(
schemaRestClient.getSchemas(SchemaType.PLAIN, schema.anyTypeKind()));
- break;
- case DERIVED:
+ case DERIVED ->
choices.addAll(
schemaRestClient.getSchemas(SchemaType.DERIVED, schema.anyTypeKind()));
- break;
- case VIRTUAL:
- choices.addAll(
- schemaRestClient.getSchemas(SchemaType.VIRTUAL, schema.anyTypeKind()));
- break;
-
- default:
+ default -> {
+ }
}
}
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
index 336694843f..08e9810f64 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypePanel.java
@@ -63,9 +63,7 @@ public class SchemaTypePanel extends TypesDirectoryPanel<SchemaTO, SchemaProvide
List.of(Constants.KEY_FIELD_NAME,
"type", "mandatoryCondition", "uniqueConstraint", "multivalue", "readonly"),
SchemaType.DERIVED,
- List.of(Constants.KEY_FIELD_NAME, "expression"),
- SchemaType.VIRTUAL,
- List.of(Constants.KEY_FIELD_NAME, "resource", "anyType", "extAttrName", "readonly"));
+ List.of(Constants.KEY_FIELD_NAME, "expression"));
protected final SchemaType schemaType;
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypeWizardBuilder.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypeWizardBuilder.java
index 9570a917d6..61bc48147b 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypeWizardBuilder.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/panels/SchemaTypeWizardBuilder.java
@@ -28,7 +28,6 @@ import org.apache.commons.lang3.LocaleUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.MutablePair;
import org.apache.syncope.client.console.SyncopeConsoleSession;
-import org.apache.syncope.client.console.SyncopeWebApplication;
import org.apache.syncope.client.console.rest.SchemaRestClient;
import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink;
import org.apache.syncope.client.console.wicket.markup.html.form.ActionsPanel;
@@ -38,7 +37,6 @@ import org.apache.syncope.client.ui.commons.markup.html.form.AjaxTextFieldPanel;
import org.apache.syncope.common.lib.to.DerSchemaTO;
import org.apache.syncope.common.lib.to.PlainSchemaTO;
import org.apache.syncope.common.lib.to.SchemaTO;
-import org.apache.syncope.common.lib.to.VirSchemaTO;
import org.apache.syncope.common.lib.types.IdRepoEntitlement;
import org.apache.syncope.common.lib.types.SchemaType;
import org.apache.wicket.PageReference;
@@ -121,11 +119,6 @@ public class SchemaTypeWizardBuilder extends BaseAjaxWizardBuilder<SchemaTO> {
detailsPanel = new DerSchemaDetails("details", (DerSchemaTO) modelObject);
break;
- case VIRTUAL:
- detailsPanel = SyncopeWebApplication.get().getVirSchemaDetailsPanelProvider().
- get("details", (VirSchemaTO) modelObject);
- break;
-
case PLAIN:
default:
detailsPanel = new PlainSchemaDetails("details", (PlainSchemaTO) modelObject);
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/extensions/markup/html/repeater/data/table/AttrColumn.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/extensions/markup/html/repeater/data/table/AttrColumn.java
index 17cfcde775..3bcfa57049 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/extensions/markup/html/repeater/data/table/AttrColumn.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wicket/extensions/markup/html/repeater/data/table/AttrColumn.java
@@ -58,9 +58,6 @@ public class AttrColumn<T extends AttributableTO> extends AbstractColumn<T, Stri
case DERIVED ->
rowModel.getObject().getDerAttr(name).ifPresent(attr -> values.addAll(attr.getValues()));
- case VIRTUAL ->
- rowModel.getObject().getVirAttr(name).ifPresent(attr -> values.addAll(attr.getValues()));
-
default -> {
}
}
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/widgets/CompletenessWidget.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/widgets/CompletenessWidget.java
index 9b2a511de9..655a275bd2 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/widgets/CompletenessWidget.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/widgets/CompletenessWidget.java
@@ -92,9 +92,7 @@ public class CompletenessWidget extends BaseWidget {
types.setOutputMarkupPlaceholderTag(true);
MetaDataRoleAuthorizationStrategy.authorize(types, WebPage.ENABLE, IdRepoEntitlement.ANYTYPECLASS_LIST);
actions.add(types);
- types.setVisible(
- !confCompleteness.get(NumbersInfo.ConfItem.VIR_SCHEMA.name())
- || !confCompleteness.get(NumbersInfo.ConfItem.ANY_TYPE.name()));
+ types.setVisible(!confCompleteness.get(NumbersInfo.ConfItem.ANY_TYPE.name()));
securityquestions = BookmarkablePageLinkBuilder.build("securityquestions", Security.class);
securityquestions.setOutputMarkupPlaceholderTag(true);
@@ -158,9 +156,7 @@ public class CompletenessWidget extends BaseWidget {
notifications.setVisible(!confCompleteness.get(NumbersInfo.ConfItem.NOTIFICATION.name()));
- types.setVisible(
- !confCompleteness.get(NumbersInfo.ConfItem.VIR_SCHEMA.name())
- || !confCompleteness.get(NumbersInfo.ConfItem.ANY_TYPE.name()));
+ types.setVisible(!confCompleteness.get(NumbersInfo.ConfItem.ANY_TYPE.name()));
securityquestions.setVisible(!confCompleteness.get(NumbersInfo.ConfItem.SECURITY_QUESTION.name()));
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AbstractAttrs.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AbstractAttrs.java
index ada7c05b6e..698514d48e 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AbstractAttrs.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AbstractAttrs.java
@@ -84,8 +84,6 @@ public abstract class AbstractAttrs<S extends SchemaTO> extends AbstractAttrsWiz
membs.add(memb);
} else if (this instanceof DerAttrs && !memb.getDerAttrs().isEmpty()) {
membs.add(memb);
- } else if (this instanceof VirAttrs && !memb.getVirAttrs().isEmpty()) {
- membs.add(memb);
}
});
} catch (WicketRuntimeException | IllegalArgumentException | IllegalAccessException ex) {
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyObjectWizardBuilder.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyObjectWizardBuilder.java
index 89f3624cab..5771d4af9c 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyObjectWizardBuilder.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyObjectWizardBuilder.java
@@ -82,7 +82,7 @@ public class AnyObjectWizardBuilder extends AnyWizardBuilder<AnyObjectTO> implem
result = anyObjectRestClient.create(req);
} else {
- fixPlainAndVirAttrs(inner, getOriginalItem().getInnerObject());
+ fixPlainAttrs(inner, getOriginalItem().getInnerObject());
AnyObjectUR req = AnyOperations.diff(inner, getOriginalItem().getInnerObject(), false);
// update just if it is changed
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyWizardBuilder.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyWizardBuilder.java
index c979ea091b..cedd20287e 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyWizardBuilder.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyWizardBuilder.java
@@ -141,9 +141,6 @@ public abstract class AnyWizardBuilder<A extends AnyTO> extends AbstractAnyWizar
if (formLayoutInfo.isDerAttrs() && mode != AjaxWizard.Mode.TEMPLATE) {
wizardModel.add(new DerAttrs(modelObject, anyTypeClasses, formLayoutInfo.getWhichDerAttrs()));
}
- if (formLayoutInfo.isVirAttrs()) {
- wizardModel.add(new VirAttrs(modelObject, mode, anyTypeClasses, formLayoutInfo.getWhichVirAttrs()));
- }
// role panel step (just available for users)
if ((this instanceof UserWizardBuilder)
@@ -178,42 +175,29 @@ public abstract class AnyWizardBuilder<A extends AnyTO> extends AbstractAnyWizar
}
@Override
- protected void fixPlainAndVirAttrs(final AnyTO updated, final AnyTO original) {
- // re-add to the updated object any missing plain or virtual attribute (compared to original): this to cope with
- // form layout, which might have not included some plain or virtual attributes
+ protected void fixPlainAttrs(final AnyTO updated, final AnyTO original) {
+ // re-add to the updated object any missing plain attribute (compared to original): this to cope with
+ // form layout, which might have not included some plain attributes
for (Attr plainAttr : original.getPlainAttrs()) {
if (updated.getPlainAttr(plainAttr.getSchema()).isEmpty()) {
updated.getPlainAttrs().add(plainAttr);
}
}
- for (Attr virAttr : original.getVirAttrs()) {
- if (updated.getVirAttr(virAttr.getSchema()).isEmpty()) {
- updated.getVirAttrs().add(virAttr);
- }
- }
- if (updated instanceof GroupableRelatableTO && original instanceof GroupableRelatableTO) {
- GroupableRelatableTO.class.cast(original).getMemberships().
- forEach(oMemb -> GroupableRelatableTO.class.cast(updated).getMembership(oMemb.getGroupKey()).
- ifPresent(uMemb -> {
- oMemb.getPlainAttrs().stream().
- filter(attr -> uMemb.getPlainAttr(attr.getSchema()).isEmpty()).
- forEach(attr -> uMemb.getPlainAttrs().add(attr));
- oMemb.getVirAttrs().stream().
- filter(attr -> uMemb.getVirAttr(attr.getSchema()).isEmpty()).
- forEach(attr -> uMemb.getVirAttrs().add(attr));
- }));
+ if (updated instanceof GroupableRelatableTO updatedTO && original instanceof GroupableRelatableTO originalTO) {
+ originalTO.getMemberships().
+ forEach(oMemb -> updatedTO.getMembership(oMemb.getGroupKey()).
+ ifPresent(uMemb -> oMemb.getPlainAttrs().stream().
+ filter(attr -> uMemb.getPlainAttr(attr.getSchema()).isEmpty()).
+ forEach(attr -> uMemb.getPlainAttrs().add(attr))));
}
- // remove from the updated object any plain or virtual attribute without values, thus triggering for removal in
+ // remove from the updated object any plain attribute without values, thus triggering for removal in
// the generated patch
updated.getPlainAttrs().removeIf(attr -> attr.getValues().isEmpty());
- updated.getVirAttrs().removeIf(attr -> attr.getValues().isEmpty());
- if (updated instanceof GroupableRelatableTO) {
- GroupableRelatableTO.class.cast(updated).getMemberships().forEach(memb -> {
- memb.getPlainAttrs().removeIf(attr -> attr.getValues().isEmpty());
- memb.getVirAttrs().removeIf(attr -> attr.getValues().isEmpty());
- });
+ if (updated instanceof GroupableRelatableTO updatedTO) {
+ updatedTO.getMemberships().
+ forEach(memb -> memb.getPlainAttrs().removeIf(attr -> attr.getValues().isEmpty()));
}
}
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/GroupWizardBuilder.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/GroupWizardBuilder.java
index ba44a5477c..936adcc25c 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/GroupWizardBuilder.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/GroupWizardBuilder.java
@@ -101,7 +101,7 @@ public class GroupWizardBuilder extends AnyWizardBuilder<GroupTO> implements Gro
result = groupRestClient.create(req);
} else {
GroupTO original = getOriginalItem().getInnerObject();
- fixPlainAndVirAttrs(updated, original);
+ fixPlainAttrs(updated, original);
// SYNCOPE-1170
boolean othersNotEqualsOrBlanks =
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/UserWizardBuilder.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/UserWizardBuilder.java
index f2985e6de0..b91a95f60a 100644
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/UserWizardBuilder.java
+++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/UserWizardBuilder.java
@@ -80,7 +80,7 @@ public class UserWizardBuilder extends AnyWizardBuilder<UserTO> implements UserF
result = userRestClient.create(req);
} else {
- fixPlainAndVirAttrs(inner, getOriginalItem().getInnerObject());
+ fixPlainAttrs(inner, getOriginalItem().getInnerObject());
UserUR userUR = AnyOperations.diff(inner, getOriginalItem().getInnerObject(), false);
if (StringUtils.isNotBlank(inner.getPassword())) {
diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/VirAttrs.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/VirAttrs.java
deleted file mode 100644
index 44c65e5a4a..0000000000
--- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/VirAttrs.java
+++ /dev/null
@@ -1,213 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.console.wizards.any;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Collectors;
-import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.client.console.SyncopeConsoleSession;
-import org.apache.syncope.client.console.wicket.markup.html.form.MultiFieldPanel;
-import org.apache.syncope.client.ui.commons.ajax.markup.html.LabelInfo;
-import org.apache.syncope.client.ui.commons.markup.html.form.AbstractFieldPanel;
-import org.apache.syncope.client.ui.commons.markup.html.form.AjaxTextFieldPanel;
-import org.apache.syncope.client.ui.commons.wicket.markup.html.bootstrap.tabs.Accordion;
-import org.apache.syncope.client.ui.commons.wizards.AjaxWizard;
-import org.apache.syncope.client.ui.commons.wizards.any.AnyWrapper;
-import org.apache.syncope.client.ui.commons.wizards.any.UserWrapper;
-import org.apache.syncope.common.lib.Attr;
-import org.apache.syncope.common.lib.EntityTOUtils;
-import org.apache.syncope.common.lib.to.AnyTO;
-import org.apache.syncope.common.lib.to.GroupableRelatableTO;
-import org.apache.syncope.common.lib.to.MembershipTO;
-import org.apache.syncope.common.lib.to.VirSchemaTO;
-import org.apache.syncope.common.lib.types.SchemaType;
-import org.apache.wicket.extensions.markup.html.tabs.AbstractTab;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.list.ListItem;
-import org.apache.wicket.markup.html.list.ListView;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.Model;
-import org.apache.wicket.model.PropertyModel;
-import org.apache.wicket.model.ResourceModel;
-import org.apache.wicket.model.StringResourceModel;
-import org.apache.wicket.model.util.ListModel;
-
-public class VirAttrs extends AbstractAttrs<VirSchemaTO> {
-
- private static final long serialVersionUID = -7982691107029848579L;
-
- private final AnyWrapper<?> modelObject;
-
- public <T extends AnyTO> VirAttrs(
- final AnyWrapper<T> modelObject,
- final AjaxWizard.Mode mode,
- final List<String> anyTypeClasses,
- final List<String> whichVirAttrs) {
-
- super(modelObject, mode, anyTypeClasses, whichVirAttrs);
- this.modelObject = modelObject;
-
- setTitleModel(new ResourceModel("attributes.virtual"));
-
- add(new Accordion("virSchemas", List.of(new AbstractTab(
- new ResourceModel("attributes.accordion", "Virtual Attributes")) {
-
- private static final long serialVersionUID = 1037272333056449378L;
-
- @Override
- public WebMarkupContainer getPanel(final String panelId) {
- return new VirAttrs.VirSchemas(panelId, schemas, attrs);
- }
- }), Model.of(0)).setOutputMarkupId(true));
-
- add(new ListView<>("membershipsVirSchemas", memberships) {
-
- private static final long serialVersionUID = 9101744072914090143L;
-
- @Override
- protected void populateItem(final ListItem<MembershipTO> item) {
- MembershipTO membTO = item.getModelObject();
- item.add(new Accordion("membershipVirSchemas", List.of(new AbstractTab(
- new StringResourceModel("attributes.membership.accordion", VirAttrs.this, Model.of(membTO))) {
-
- private static final long serialVersionUID = 1037272333056449378L;
-
- @Override
- public WebMarkupContainer getPanel(final String panelId) {
- return new VirAttrs.VirSchemas(
- panelId,
- membershipSchemas.get(membTO.getGroupKey()),
- new ListModel<>(getAttrsFromTO(membTO)));
- }
- }), Model.of(-1)).setOutputMarkupId(true));
- }
- });
- }
-
- @Override
- protected SchemaType getSchemaType() {
- return SchemaType.VIRTUAL;
- }
-
- @Override
- protected List<Attr> getAttrsFromTO() {
- return attributable.getVirAttrs().stream().sorted(attrComparator).collect(Collectors.toList());
- }
-
- @Override
- protected List<Attr> getAttrsFromTO(final MembershipTO membershipTO) {
- return membershipTO.getVirAttrs().stream().sorted(attrComparator).collect(Collectors.toList());
- }
-
- @Override
- protected void setAttrs() {
- List<Attr> virAttrs = new ArrayList<>();
-
- Map<String, Attr> attrMap = EntityTOUtils.buildAttrMap(attributable.getVirAttrs());
-
- virAttrs.addAll(schemas.values().stream().map(schema -> {
- Attr attrTO = new Attr();
- attrTO.setSchema(schema.getKey());
- if (attrMap.containsKey(schema.getKey())) {
- attrTO.getValues().addAll(attrMap.get(schema.getKey()).getValues());
- } else {
- attrTO.getValues().add(StringUtils.EMPTY);
- }
- return attrTO;
- }).toList());
-
- attributable.getVirAttrs().clear();
- attributable.getVirAttrs().addAll(virAttrs);
- }
-
- @Override
- protected void setAttrs(final MembershipTO membershipTO) {
- Map<String, Attr> attrMap = GroupableRelatableTO.class.cast(attributable).
- getMembership(membershipTO.getGroupKey()).
- map(gr -> EntityTOUtils.buildAttrMap(gr.getVirAttrs())).
- orElseGet(HashMap::new);
-
- List<Attr> virAttrs = membershipSchemas.get(membershipTO.getGroupKey()).values().stream().map(schema -> {
- Attr attr = new Attr();
- attr.setSchema(schema.getKey());
- if (attrMap.get(schema.getKey()) == null || attrMap.get(schema.getKey()).getValues().isEmpty()) {
- attr.getValues().add(StringUtils.EMPTY);
- } else {
- attr.getValues().addAll(attrMap.get(schema.getKey()).getValues());
- }
- return attr;
- }).toList();
-
- membershipTO.getVirAttrs().clear();
- membershipTO.getVirAttrs().addAll(virAttrs);
- }
-
- public class VirSchemas extends Schemas {
-
- private static final long serialVersionUID = -4730563859116024676L;
-
- public VirSchemas(
- final String id,
- final Map<String, VirSchemaTO> schemas,
- final IModel<List<Attr>> attrTOs) {
- super(id);
-
- add(new ListView<>("schemas", attrTOs) {
-
- private static final long serialVersionUID = 9101744072914090143L;
-
- @Override
- @SuppressWarnings("unchecked")
- protected void populateItem(final ListItem<Attr> item) {
- Attr attrTO = item.getModelObject();
- VirSchemaTO virSchemaTO = schemas.get(attrTO.getSchema());
-
- AbstractFieldPanel<?> panel = new AjaxTextFieldPanel(
- "panel",
- virSchemaTO.getLabel(SyncopeConsoleSession.get().getLocale()),
- new Model<>(),
- false);
-
- if (mode == AjaxWizard.Mode.TEMPLATE) {
- AjaxTextFieldPanel.class.cast(panel).enableJexlHelp().setEnabled(!virSchemaTO.isReadonly());
- } else {
- panel = new MultiFieldPanel.Builder<>(
- new PropertyModel<List<String>>(attrTO, "values")).build(
- "panel",
- virSchemaTO.getLabel(SyncopeConsoleSession.get().getLocale()),
- AjaxTextFieldPanel.class.cast(panel));
- panel.setEnabled(!virSchemaTO.isReadonly());
- }
-
- item.add(panel);
-
- if (!attrTO.getValues().isEmpty()
- && VirAttrs.this.modelObject instanceof UserWrapper
- && UserWrapper.class.cast(VirAttrs.this.modelObject).getPreviousUserTO() != null) {
-
- panel.showExternAction(new LabelInfo("externalAction", StringUtils.EMPTY));
- }
- }
- });
- }
- }
-}
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel.html b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel.html
index e6b1a79f11..b377eaf501 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel.html
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel.html
@@ -45,16 +45,6 @@ under the License.
</div>
</div>
</div>
- <div class="card">
- <div class="card-header with-border">
- <h3 class="card-title"><wicket:message key="virSchemas"/></h3>
- </div>
- <div class="card-body">
- <div id="group-forum">
- <span wicket:id="virSchemas">[virSchemas]</span>
- </div>
- </div>
- </div>
</span>
</div>
</form>
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel.properties
index e5b9884798..051020324e 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel.properties
@@ -16,4 +16,3 @@
# under the License.
plainSchemas=Plain Schemas
derSchemas=Derived Schemas
-virSchemas=Virtual Schemas
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_fr_CA.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_fr_CA.properties
index 6519550353..e8e311a46c 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_fr_CA.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_fr_CA.properties
@@ -14,6 +14,5 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-plainSchemas=Sch�mas simples
-derSchemas=Sch�mas d�riv�s
-virSchemas=Sch�mas virtuels
+plainSchemas=Sch\u00e9mas simples
+derSchemas=Sch\u00e9mas d\u00e9riv\u00e9s
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_it.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_it.properties
index e5b9884798..051020324e 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_it.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_it.properties
@@ -16,4 +16,3 @@
# under the License.
plainSchemas=Plain Schemas
derSchemas=Derived Schemas
-virSchemas=Virtual Schemas
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_ja.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_ja.properties
index d91e2d7287..f037a57811 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_ja.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_ja.properties
@@ -16,4 +16,3 @@
# under the License.
plainSchemas=\u30d7\u30ec\u30fc\u30f3\u30b9\u30ad\u30fc\u30de
derSchemas=\u6d3e\u751f\u30b9\u30ad\u30fc\u30de
-virSchemas=\u4eee\u60f3\u30b9\u30ad\u30fc\u30de
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_pt_BR.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_pt_BR.properties
index e5b9884798..051020324e 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_pt_BR.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_pt_BR.properties
@@ -16,4 +16,3 @@
# under the License.
plainSchemas=Plain Schemas
derSchemas=Derived Schemas
-virSchemas=Virtual Schemas
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_ru.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_ru.properties
index 7f0a1c2a76..217a7b84da 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_ru.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassDetailsPanel_ru.properties
@@ -15,9 +15,7 @@
# specific language governing permissions and limitations
# under the License.
#
-# plainSchemas=Простые атрибуты
+# plainSchemas=\u00d0\u009f\u00d1\u0080\u00d0\u00be\u00d1\u0081\u00d1\u0082\u00d1\u008b\u00d0\u00b5 \u00d0\u00b0\u00d1\u0082\u00d1\u0080\u00d0\u00b8\u00d0\u00b1\u00d1\u0083\u00d1\u0082\u00d1\u008b
plainSchemas=\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
-# derSchemas=Производные атрибуты
+# derSchemas=\u00d0\u009f\u00d1\u0080\u00d0\u00be\u00d0\u00b8\u00d0\u00b7\u00d0\u00b2\u00d0\u00be\u00d0\u00b4\u00d0\u00bd\u00d1\u008b\u00d0\u00b5 \u00d0\u00b0\u00d1\u0082\u00d1\u0080\u00d0\u00b8\u00d0\u00b1\u00d1\u0083\u00d1\u0082\u00d1\u008b
derSchemas=\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
-# virSchemas=Виртуальные атрибуты
-virSchemas=\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel.properties
index 5614a54eca..8f92ac22a5 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel.properties
@@ -19,5 +19,4 @@ any.new=New AnyTypeClass
anyTypeClasses=AnyTypeClasses
plainSchemas=Plain Schemas
derSchemas=Derived Schemas
-virSchemas=Virtual Schemas
inUseByTypes=AnyTypes
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_fr_CA.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_fr_CA.properties
index 6fa5309102..cddacebeec 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_fr_CA.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_fr_CA.properties
@@ -17,7 +17,6 @@
any.edit=Modifier classe tout type ${key}
any.new=Nouvelle classe tout type
anyTypeClasses=Classes tous types
-plainSchemas=Sch�mas simples
-derSchemas=Sch�mas d�riv�s
-virSchemas=Sch�mas virtuels
+plainSchemas=Sch\u00e9mas simples
+derSchemas=Sch\u00e9mas d\u00e9riv\u00e9s
inUseByTypes=Tous types
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_it.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_it.properties
index cc1c289a59..6b85715cf1 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_it.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_it.properties
@@ -19,5 +19,4 @@ any.new=Nuovo AnyTypeClass
anyTypeClasses=AnyTypeClasses
plainSchemas=Plain Schemas
derSchemas=Derived Schemas
-virSchemas=Virtual Schemas
inUseByTypes=AnyTypes
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_ja.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_ja.properties
index 55ba991602..e014c291c5 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_ja.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_ja.properties
@@ -19,5 +19,4 @@ any.new=\u65b0\u3057\u3044\u4efb\u610f\u30bf\u30a4\u30d7\u30af\u30e9\u30b9
anyTypeClasses=\u4efb\u610f\u30bf\u30a4\u30d7\u30af\u30e9\u30b9
plainSchemas=\u30d7\u30ec\u30fc\u30f3\u30b9\u30ad\u30fc\u30de
derSchemas=\u6d3e\u751f\u30b9\u30ad\u30fc\u30de
-virSchemas=\u4eee\u60f3\u30b9\u30ad\u30fc\u30de
inUseByTypes=\u4efb\u610f\u30bf\u30a4\u30d7
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_pt_BR.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_pt_BR.properties
index fbe36fd634..0fe3266bc9 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_pt_BR.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_pt_BR.properties
@@ -19,5 +19,4 @@ any.new=Novo AnyTypeClass
anyTypeClasses=AnyTypeClasses
plainSchemas=Plain Schemas
derSchemas=Derived Schemas
-virSchemas=Virtual Schemas
inUseByTypes=AnyTypes
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_ru.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_ru.properties
index c6f2f84068..2cdceab8ed 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_ru.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/AnyTypeClassesPanel_ru.properties
@@ -15,17 +15,15 @@
# specific language governing permissions and limitations
# under the License.
#
-# any.edit=Изменить класс для типа объектов ${key}
+# any.edit=\u00d0\u0098\u00d0\u00b7\u00d0\u00bc\u00d0\u00b5\u00d0\u00bd\u00d0\u00b8\u00d1\u0082\u00d1\u008c \u00d0\u00ba\u00d0\u00bb\u00d0\u00b0\u00d1\u0081\u00d1\u0081 \u00d0\u00b4\u00d0\u00bb\u00d1\u008f \u00d1\u0082\u00d0\u00b8\u00d0\u00bf\u00d0\u00b0 \u00d0\u00be\u00d0\u00b1\u00d1\u008a\u00d0\u00b5\u00d0\u00ba\u00d1\u0082\u00d0\u00be\u00d0\u00b2 ${key}
any.edit=\u0418\u0445\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0442\u0438\u043f\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 ${key}
-# any.new=Создать класс для типа объектов
+# any.new=\u00d0\u00a1\u00d0\u00be\u00d0\u00b7\u00d0\u00b4\u00d0\u00b0\u00d1\u0082\u00d1\u008c \u00d0\u00ba\u00d0\u00bb\u00d0\u00b0\u00d1\u0081\u00d1\u0081 \u00d0\u00b4\u00d0\u00bb\u00d1\u008f \u00d1\u0082\u00d0\u00b8\u00d0\u00bf\u00d0\u00b0 \u00d0\u00be\u00d0\u00b1\u00d1\u008a\u00d0\u00b5\u00d0\u00ba\u00d1\u0082\u00d0\u00be\u00d0\u00b2
any.new=\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0442\u0438\u043f\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432
-# anyTypeClasses=Класс для типа объектов
+# anyTypeClasses=\u00d0\u009a\u00d0\u00bb\u00d0\u00b0\u00d1\u0081\u00d1\u0081 \u00d0\u00b4\u00d0\u00bb\u00d1\u008f \u00d1\u0082\u00d0\u00b8\u00d0\u00bf\u00d0\u00b0 \u00d0\u00be\u00d0\u00b1\u00d1\u008a\u00d0\u00b5\u00d0\u00ba\u00d1\u0082\u00d0\u00be\u00d0\u00b2
anyTypeClasses=\u041a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0442\u0438\u043f\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432
-# plainSchemas=Простые атрибуты
+# plainSchemas=\u00d0\u009f\u00d1\u0080\u00d0\u00be\u00d1\u0081\u00d1\u0082\u00d1\u008b\u00d0\u00b5 \u00d0\u00b0\u00d1\u0082\u00d1\u0080\u00d0\u00b8\u00d0\u00b1\u00d1\u0083\u00d1\u0082\u00d1\u008b
plainSchemas=\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
-# derSchemas=Производные атрибуты
+# derSchemas=\u00d0\u009f\u00d1\u0080\u00d0\u00be\u00d0\u00b8\u00d0\u00b7\u00d0\u00b2\u00d0\u00be\u00d0\u00b4\u00d0\u00bd\u00d1\u008b\u00d0\u00b5 \u00d0\u00b0\u00d1\u0082\u00d1\u0080\u00d0\u00b8\u00d0\u00b1\u00d1\u0083\u00d1\u0082\u00d1\u008b
derSchemas=\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
-# virSchemas=Виртуальные атрибуты
-virSchemas=\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
-# inUseByTypes=Тип объектов
+# inUseByTypes=\u00d0\u00a2\u00d0\u00b8\u00d0\u00bf \u00d0\u00be\u00d0\u00b1\u00d1\u008a\u00d0\u00b5\u00d0\u00ba\u00d1\u0082\u00d0\u00be\u00d0\u00b2
inUseByTypes=\u0422\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_fr_CA.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_fr_CA.properties
deleted file mode 100644
index 2fbe9d07d8..0000000000
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/panels/VirSchemaDetails_fr_CA.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-required_alert=Tous les champs du formulaire sont obligatoires
-edit_attribute=Modifier attribut
-attributes=Attributs virtuels
-title=Sch�ma virtuel
-readonly=Lecture seulement
-resource=Ressource
-anyType=Type
-extAttrName=Attribut externe
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget.html b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget.html
index 92bf09bb9c..8bb6131b19 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget.html
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget.html
@@ -30,7 +30,7 @@ under the License.
<div class="dropdown-menu" role="group">
<a href="#" class="dropdown-item text-dark" wicket:id="policies"><wicket:message key="createPolicy"/></a>
<a href="#" class="dropdown-item text-dark" wicket:id="notifications"><wicket:message key="createNotification"/></a>
- <a href="#" class="dropdown-item text-dark" wicket:id="types"><wicket:message key="createVirSchemaOrAnyType"/></a>
+ <a href="#" class="dropdown-item text-dark" wicket:id="types"><wicket:message key="createAnyType"/></a>
<a href="#" class="dropdown-item text-dark" wicket:id="securityquestions"><wicket:message key="createSecurityQuestion"/></a>
<a href="#" class="dropdown-item text-dark" wicket:id="roles"><wicket:message key="createRole"/></a>
</div>
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget.properties
index 1693f61407..bf01272724 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget.properties
@@ -17,7 +17,7 @@
configurationStatus=Configuration Status
createResourceOrPullTask=Create Resource or PullTask
createPolicy=Create Policy
-createVirSchemaOrAnyType=Create Virtual Schema or AnyType
+createAnyType=Create AnyType
createSecurityQuestion=Create Security Question
createRole=Create Role
createNotification=Create Notification
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_fr_CA.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_fr_CA.properties
index 1670c8a8c5..28a7ae20b1 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_fr_CA.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_fr_CA.properties
@@ -14,12 +14,12 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-configurationStatus=�tat de la configuration
-createResourceOrPullTask=Cr�ation d'une ressource ou t�che pull
-createPolicy=Cr�er une strat�gie
-createVirSchemaOrAnyType=Cr�er un sch�ma virtuel ou un type quelconque
-createSecurityQuestion=Cr�er une question de s�curit�
-createRole=Cr�er un r�le
-createNotification=Cr�er un avis
+configurationStatus=\u00c9tat de la configuration
+createResourceOrPullTask=Cr\u00e9ation d'une ressource ou t\u00e2che pull
+createPolicy=Cr\u00e9er une strat\u00e9gie
+createAnyType=Cr\u00e9er un type quelconque
+createSecurityQuestion=Cr\u00e9er une question de s\u00e9curit\u00e9
+createRole=Cr\u00e9er un r\u00f4le
+createNotification=Cr\u00e9er un avis
done=Fait
todo=A faire
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_it.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_it.properties
index 37252bfc74..7c010700ad 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_it.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_it.properties
@@ -17,7 +17,7 @@
configurationStatus=Stato Configurazione
createResourceOrPullTask=Crea Risorsa o PullTask
createPolicy=Crea Politica
-createVirSchemaOrAnyType=Crea Virtual Schema o AnyType
+createAnyType=Crea AnyType
createSecurityQuestion=Crea Domanda di Sicurezza
createRole=Crea Ruolo
createNotification=Crea Notifica
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_ja.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_ja.properties
index ad183bed22..97ca5091db 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_ja.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_ja.properties
@@ -17,7 +17,7 @@
configurationStatus=\u8a2d\u5b9a\u30b9\u30c6\u30fc\u30bf\u30b9
createResourceOrPullTask=\u30ea\u30bd\u30fc\u30b9\u307e\u305f\u306f\u30d7\u30eb\u30bf\u30b9\u30af\u3092\u4f5c\u6210
createPolicy=\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u6210
-createVirSchemaOrAnyType=\u4eee\u60f3\u30b9\u30ad\u30fc\u30de\u307e\u305f\u306f\u4efb\u610f\u30bf\u30a4\u30d7\u3092\u4f5c\u6210
+createAnyType=\u4eee\u60f3\u30b9\u30ad\u30fc\u30de\u307e\u305f\u306f\u4efb\u610f\u30bf\u30a4\u30d7\u3092\u4f5c\u6210
createSecurityQuestion=\u79d8\u5bc6\u306e\u8cea\u554f\u3092\u4f5c\u6210
createRole=\u30ed\u30fc\u30eb\u3092\u4f5c\u6210
createNotification=\u901a\u77e5\u3092\u4f5c\u6210
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_pt_BR.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_pt_BR.properties
index 774a9d9548..ba4206f134 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_pt_BR.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_pt_BR.properties
@@ -17,7 +17,7 @@
configurationStatus=Estado de configura\u00e7\u00e3o
createResourceOrPullTask=Criar recursos ou PullTask
createPolicy=Criar Politica
-createVirSchemaOrAnyType=Criar Virtual Schema ou AnyType
+createAnyType=Criar AnyType
createSecurityQuestion=Criar Perguntas de Seguran\u00e7a
createRole=Criar Fun\u00e7\u00e3o
createNotification=Criar Notifica\u00e7\u00e3o
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_ru.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_ru.properties
index 3b09c47333..fdc962e583 100644
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_ru.properties
+++ b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/widgets/CompletenessWidget_ru.properties
@@ -14,21 +14,20 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-# configurationStatus=Статус конфигурации
+# configurationStatus=\u00d0\u00a1\u00d1\u0082\u00d0\u00b0\u00d1\u0082\u00d1\u0083\u00d1\u0081 \u00d0\u00ba\u00d0\u00be\u00d0\u00bd\u00d1\u0084\u00d0\u00b8\u00d0\u00b3\u00d1\u0083\u00d1\u0080\u00d0\u00b0\u00d1\u0086\u00d0\u00b8\u00d0\u00b8
configurationStatus=\u0421\u0442\u0430\u0442\u0443\u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438
-# createResourceOrPullTask=Создать ресурс или задачу
+# createResourceOrPullTask=\u00d0\u00a1\u00d0\u00be\u00d0\u00b7\u00d0\u00b4\u00d0\u00b0\u00d1\u0082\u00d1\u008c \u00d1\u0080\u00d0\u00b5\u00d1\u0081\u00d1\u0083\u00d1\u0080\u00d1\u0081 \u00d0\u00b8\u00d0\u00bb\u00d0\u00b8 \u00d0\u00b7\u00d0\u00b0\u00d0\u00b4\u00d0\u00b0\u00d1\u0087\u00d1\u0083
createResourceOrPullTask=\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441 \u0438\u043b\u0438 \u0437\u0430\u0434\u0430\u0447\u0443
-# createPolicy=Создать политику
+# createPolicy=\u00d0\u00a1\u00d0\u00be\u00d0\u00b7\u00d0\u00b4\u00d0\u00b0\u00d1\u0082\u00d1\u008c \u00d0\u00bf\u00d0\u00be\u00d0\u00bb\u00d0\u00b8\u00d1\u0082\u00d0\u00b8\u00d0\u00ba\u00d1\u0083
createPolicy=\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443
-# createVirSchemaOrAnyType=Создать схему или тип объекта
-createVirSchemaOrAnyType=\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0445\u0435\u043c\u0443 \u0438\u043b\u0438 \u0442\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430
-# createSecurityQuestion=Создать вопрос
+createAnyType=\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0445\u0435\u043c\u0443 \u0438\u043b\u0438 \u0442\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430
+# createSecurityQuestion=\u00d0\u00a1\u00d0\u00be\u00d0\u00b7\u00d0\u00b4\u00d0\u00b0\u00d1\u0082\u00d1\u008c \u00d0\u00b2\u00d0\u00be\u00d0\u00bf\u00d1\u0080\u00d0\u00be\u00d1\u0081
createSecurityQuestion=\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441
-# createRole=Создать роль
+# createRole=\u00d0\u00a1\u00d0\u00be\u00d0\u00b7\u00d0\u00b4\u00d0\u00b0\u00d1\u0082\u00d1\u008c \u00d1\u0080\u00d0\u00be\u00d0\u00bb\u00d1\u008c
createRole=\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0440\u043e\u043b\u044c
-# createNotification=Создать уведомление
+# createNotification=\u00d0\u00a1\u00d0\u00be\u00d0\u00b7\u00d0\u00b4\u00d0\u00b0\u00d1\u0082\u00d1\u008c \u00d1\u0083\u00d0\u00b2\u00d0\u00b5\u00d0\u00b4\u00d0\u00be\u00d0\u00bc\u00d0\u00bb\u00d0\u00b5\u00d0\u00bd\u00d0\u00b8\u00d0\u00b5
createNotification=\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435
-# done=Выполнено
+# done=\u00d0\u0092\u00d1\u008b\u00d0\u00bf\u00d0\u00be\u00d0\u00bb\u00d0\u00bd\u00d0\u00b5\u00d0\u00bd\u00d0\u00be
done=\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e
-# К выполнению
+# \u00d0\u009a \u00d0\u00b2\u00d1\u008b\u00d0\u00bf\u00d0\u00be\u00d0\u00bb\u00d0\u00bd\u00d0\u00b5\u00d0\u00bd\u00d0\u00b8\u00d1\u008e
todo=\u041a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs.html b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs.html
deleted file mode 100644
index abff807cc0..0000000000
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org">
- <wicket:extend>
- <div wicket:id="virSchemas"/>
- <span wicket:id="membershipsVirSchemas">
- <div wicket:id="membershipVirSchemas"/>
- </span>
- </wicket:extend>
-</html>
\ No newline at end of file
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs.properties
deleted file mode 100644
index 812b050fe4..0000000000
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-attribute.empty.list=No virtual attributes available
-attributes.virtual=Virtual Attributes
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_fr_CA.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_fr_CA.properties
deleted file mode 100644
index c99fd0ed6e..0000000000
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_fr_CA.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-attribute.empty.list=Aucun attribut virtuel disponible
-attributes.virtual=Attributs virtuels
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_it.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_it.properties
deleted file mode 100644
index 711f97015f..0000000000
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_it.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-attribute.empty.list=Non ci sono attributi virtuali disponibili
-attributes.virtual=Attributi Virtuali
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_ja.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_ja.properties
deleted file mode 100644
index f274ab8001..0000000000
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_ja.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-attribute.empty.list=\u4eee\u60f3\u5c5e\u6027\u306f\u3042\u308a\u307e\u305b\u3093
-attributes.virtual=\u4eee\u60f3\u5c5e\u6027
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_pt_BR.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_pt_BR.properties
deleted file mode 100644
index eb977484fd..0000000000
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_pt_BR.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-attribute.empty.list=Sem atributos virtuais dispon\u00edveis
-attributes.virtual=Virtual Attributes
diff --git a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_ru.properties b/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_ru.properties
deleted file mode 100644
index 750989648a..0000000000
--- a/client/idrepo/console/src/main/resources/org/apache/syncope/client/console/wizards/any/VirAttrs_ru.properties
+++ /dev/null
@@ -1,19 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-attribute.empty.list=\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442
-attributes.virtual=\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
diff --git a/client/idrepo/console/src/test/java/org/apache/syncope/client/console/AbstractTest.java b/client/idrepo/console/src/test/java/org/apache/syncope/client/console/AbstractTest.java
index 4584a7b291..6a2065f74f 100644
--- a/client/idrepo/console/src/test/java/org/apache/syncope/client/console/AbstractTest.java
+++ b/client/idrepo/console/src/test/java/org/apache/syncope/client/console/AbstractTest.java
@@ -44,7 +44,6 @@ import org.apache.syncope.client.console.commons.ExternalResourceProvider;
import org.apache.syncope.client.console.commons.ImplementationInfoProvider;
import org.apache.syncope.client.console.commons.PolicyTabProvider;
import org.apache.syncope.client.console.commons.StatusProvider;
-import org.apache.syncope.client.console.commons.VirSchemaDetailsPanelProvider;
import org.apache.syncope.client.console.init.ClassPathScanImplementationLookup;
import org.apache.syncope.client.console.wizards.any.UserFormFinalizer;
import org.apache.syncope.client.lib.AuthenticationHandler;
@@ -150,7 +149,6 @@ public abstract class AbstractTest {
final AnyDirectoryPanelAdditionalActionLinksProvider anyDirectoryPanelAdditionalActionLinksProvider,
final AnyWizardBuilderAdditionalSteps anyWizardBuilderAdditionalSteps,
final StatusProvider statusProvider,
- final VirSchemaDetailsPanelProvider virSchemaDetailsPanelProvider,
final ImplementationInfoProvider implementationInfoProvider,
final AccessPolicyConfProvider accessPolicyConfProvider,
final List<PolicyTabProvider> policyTabProviders,
@@ -159,8 +157,8 @@ public abstract class AbstractTest {
super(props, lookup, serviceOps, resourceProvider, anyDirectoryPanelAdditionalActionsProvider,
anyDirectoryPanelAdditionalActionLinksProvider, anyWizardBuilderAdditionalSteps, statusProvider,
- virSchemaDetailsPanelProvider, implementationInfoProvider, accessPolicyConfProvider,
- policyTabProviders, userFormFinalizers, resources);
+ implementationInfoProvider, accessPolicyConfProvider, policyTabProviders, userFormFinalizers,
+ resources);
}
public interface SyncopeServiceClient extends SyncopeService, Client {
@@ -250,8 +248,6 @@ public abstract class AbstractTest {
NumbersInfo.ConfItem.NOTIFICATION.name(), false);
numbersInfo.getConfCompleteness().put(
NumbersInfo.ConfItem.PULL_TASK.name(), false);
- numbersInfo.getConfCompleteness().put(
- NumbersInfo.ConfItem.VIR_SCHEMA.name(), false);
numbersInfo.getConfCompleteness().put(
NumbersInfo.ConfItem.ANY_TYPE.name(), false);
numbersInfo.getConfCompleteness().put(
diff --git a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/layout/UserFormLayoutInfo.java b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/layout/UserFormLayoutInfo.java
index 0ec64c42bd..a876b192db 100644
--- a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/layout/UserFormLayoutInfo.java
+++ b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/layout/UserFormLayoutInfo.java
@@ -33,8 +33,6 @@ public class UserFormLayoutInfo extends AbstractAnyFormBaseLayout<UserTO, UserFo
private final Map<String, CustomizationOption> whichDerAttrs = new HashMap<>();
- private final Map<String, CustomizationOption> whichVirAttrs = new HashMap<>();
-
private boolean passwordManagement = true;
private boolean detailsManagement = true;
@@ -53,10 +51,6 @@ public class UserFormLayoutInfo extends AbstractAnyFormBaseLayout<UserTO, UserFo
return whichDerAttrs;
}
- public Map<String, CustomizationOption> getWhichVirAttrs() {
- return whichVirAttrs;
- }
-
@Override
protected Class<? extends UserForm> getDefaultFormClass() {
return UserFormPanel.class;
diff --git a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/AnyFormPanel.java b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/AnyFormPanel.java
index c29ff5ec5e..ac40a2439d 100644
--- a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/AnyFormPanel.java
+++ b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/AnyFormPanel.java
@@ -27,7 +27,6 @@ import org.apache.syncope.client.enduser.panels.any.Details;
import org.apache.syncope.client.enduser.panels.any.Groups;
import org.apache.syncope.client.enduser.panels.any.PlainAttrs;
import org.apache.syncope.client.enduser.panels.any.Resources;
-import org.apache.syncope.client.enduser.panels.any.VirAttrs;
import org.apache.syncope.client.enduser.panels.captcha.CaptchaPanel;
import org.apache.syncope.client.ui.commons.panels.CardPanel;
import org.apache.syncope.client.ui.commons.wizards.any.UserWrapper;
@@ -109,16 +108,7 @@ public abstract class AnyFormPanel extends AbstractAnyFormPanel<UserWrapper> {
form.add(new CardPanel.Builder<DerAttrs>()
.setName("attributes.derived")
.setComponent(derAttrs)
- .isVisible(formLayoutInfo.isVirAttrs() && derAttrs.isPanelVisible()).build("derAttrsPanelCard"));
-
- VirAttrs virAttrs = new VirAttrs(EnduserConstants.CONTENT_PANEL,
- modelObject, anyTypeClasses, formLayoutInfo.getWhichVirAttrs());
- virAttrs.setOutputMarkupId(true);
-
- form.add(new CardPanel.Builder<VirAttrs>()
- .setName("attributes.virtual")
- .setComponent(virAttrs)
- .isVisible(formLayoutInfo.isVirAttrs() && virAttrs.isPanelVisible()).build("virAttrsPanelCard"));
+ .isVisible(formLayoutInfo.isDerAttrs() && derAttrs.isPanelVisible()).build("derAttrsPanelCard"));
Resources resources = new Resources(EnduserConstants.CONTENT_PANEL, modelObject);
resources.setOutputMarkupId(true);
@@ -138,47 +128,28 @@ public abstract class AnyFormPanel extends AbstractAnyFormPanel<UserWrapper> {
.isVisible(SyncopeWebApplication.get().isCaptchaEnabled()).build("captchaPanelCard"));
}
- protected void fixPlainAndVirAttrs(final AnyTO updated, final AnyTO original) {
- // re-add to the updated object any missing plain or virtual attribute (compared to original): this to cope with
- // form layout, which might have not included some plain or virtual attributes
+ protected void fixPlainAttrs(final AnyTO updated, final AnyTO original) {
+ // re-add to the updated object any missing plain attribute (compared to original): this to cope with
+ // form layout, which might have not included some plain attributes
for (Attr plainAttr : original.getPlainAttrs()) {
if (updated.getPlainAttr(plainAttr.getSchema()).isEmpty()) {
updated.getPlainAttrs().add(plainAttr);
}
}
- for (Attr virAttr : original.getVirAttrs()) {
- if (updated.getVirAttr(virAttr.getSchema()).isEmpty()) {
- updated.getVirAttrs().add(virAttr);
- }
- }
- if (updated instanceof GroupableRelatableTO && original instanceof GroupableRelatableTO) {
- GroupableRelatableTO.class
- .cast(original).getMemberships().forEach(oMemb -> {
- GroupableRelatableTO.class
- .cast(updated).getMembership(oMemb.getGroupKey()).ifPresent(uMemb -> {
- oMemb.getPlainAttrs()
- .stream().
- filter(attr -> uMemb.getPlainAttr(attr.getSchema()).isEmpty()).
- forEach(attr -> uMemb.getPlainAttrs().add(attr));
- oMemb.getVirAttrs()
- .stream().
- filter(attr -> uMemb.getVirAttr(attr.getSchema()).isEmpty()).
- forEach(attr -> uMemb.getVirAttrs().add(attr));
- }
- );
- });
+ if (updated instanceof GroupableRelatableTO updatedTO && original instanceof GroupableRelatableTO originalTO) {
+ originalTO.getMemberships().forEach(oMemb -> updatedTO.getMembership(oMemb.getGroupKey()).
+ ifPresent(uMemb -> oMemb.getPlainAttrs().stream().
+ filter(attr -> uMemb.getPlainAttr(attr.getSchema()).isEmpty()).
+ forEach(attr -> uMemb.getPlainAttrs().add(attr))));
}
- // remove from the updated object any plain or virtual attribute without values, thus triggering for removal in
+ // remove from the updated object any plain attribute without values, thus triggering for removal in
// the generated patch
updated.getPlainAttrs().removeIf(attr -> attr.getValues().isEmpty());
- updated.getVirAttrs().removeIf(attr -> attr.getValues().isEmpty());
- if (updated instanceof GroupableRelatableTO) {
- GroupableRelatableTO.class.cast(updated).getMemberships().forEach(memb -> {
- memb.getPlainAttrs().removeIf(attr -> attr.getValues().isEmpty());
- memb.getVirAttrs().removeIf(attr -> attr.getValues().isEmpty());
- });
+ if (updated instanceof GroupableRelatableTO updatedTO) {
+ updatedTO.getMemberships().
+ forEach(memb -> memb.getPlainAttrs().removeIf(attr -> attr.getValues().isEmpty()));
}
}
}
diff --git a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/UserFormPanel.java b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/UserFormPanel.java
index ad5a1adfc1..46d589638b 100644
--- a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/UserFormPanel.java
+++ b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/UserFormPanel.java
@@ -105,7 +105,7 @@ public class UserFormPanel extends AnyFormPanel implements UserForm {
AnyWrapper<UserTO> updatedWrapper = form.getModelObject();
UserTO userTO = updatedWrapper.getInnerObject();
- fixPlainAndVirAttrs(userTO, getOriginalItem().getInnerObject());
+ fixPlainAttrs(userTO, getOriginalItem().getInnerObject());
// update and set page parameters according to provisioning result
UserUR updateReq = AnyOperations.diff(userTO, getOriginalItem().getInnerObject(), false);
ProvisioningResult<UserTO> provisioningResult = updateReq.isEmpty()
diff --git a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/any/AbstractAttrs.java b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/any/AbstractAttrs.java
index 0c19683f3e..b092ac3bd8 100644
--- a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/any/AbstractAttrs.java
+++ b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/any/AbstractAttrs.java
@@ -115,8 +115,6 @@ public abstract class AbstractAttrs<S extends SchemaTO> extends Panel {
memberships.add(membership);
} else if (AbstractAttrs.this instanceof DerAttrs && !membership.getDerAttrs().isEmpty()) {
memberships.add(membership);
- } else if (AbstractAttrs.this instanceof VirAttrs && !membership.getVirAttrs().isEmpty()) {
- memberships.add(membership);
}
}
diff --git a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/any/VirAttrs.java b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/any/VirAttrs.java
deleted file mode 100644
index 2563d1fcbf..0000000000
--- a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/panels/any/VirAttrs.java
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.client.enduser.panels.any;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.stream.Collectors;
-import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.client.enduser.SyncopeEnduserSession;
-import org.apache.syncope.client.enduser.layout.CustomizationOption;
-import org.apache.syncope.client.enduser.markup.html.form.MultiFieldPanel;
-import org.apache.syncope.client.ui.commons.markup.html.form.AbstractFieldPanel;
-import org.apache.syncope.client.ui.commons.markup.html.form.AjaxTextFieldPanel;
-import org.apache.syncope.client.ui.commons.wicket.markup.html.bootstrap.tabs.Accordion;
-import org.apache.syncope.client.ui.commons.wizards.any.AnyWrapper;
-import org.apache.syncope.common.lib.Attr;
-import org.apache.syncope.common.lib.EntityTOUtils;
-import org.apache.syncope.common.lib.to.GroupableRelatableTO;
-import org.apache.syncope.common.lib.to.MembershipTO;
-import org.apache.syncope.common.lib.to.UserTO;
-import org.apache.syncope.common.lib.to.VirSchemaTO;
-import org.apache.syncope.common.lib.types.SchemaType;
-import org.apache.wicket.extensions.markup.html.tabs.AbstractTab;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.list.ListItem;
-import org.apache.wicket.markup.html.list.ListView;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.Model;
-import org.apache.wicket.model.PropertyModel;
-import org.apache.wicket.model.StringResourceModel;
-import org.apache.wicket.model.util.ListModel;
-
-public class VirAttrs extends AbstractAttrs<VirSchemaTO> {
-
- private static final long serialVersionUID = -7982691107029848579L;
-
- public VirAttrs(
- final String id,
- final AnyWrapper<UserTO> modelObject,
- final List<String> anyTypeClasses,
- final Map<String, CustomizationOption> whichVirAttrs) {
-
- super(id, modelObject, anyTypeClasses, whichVirAttrs);
-
- add(new VirAttrs.VirSchemas("virSchemas", null, schemas, attrs).setOutputMarkupId(true));
- add(new ListView<>("membershipsVirSchemas", membershipTOs) {
-
- private static final long serialVersionUID = 9101744072914090143L;
-
- @Override
- protected void populateItem(final ListItem<MembershipTO> item) {
- MembershipTO membershipTO = item.getModelObject();
- item.add(new Accordion("membershipVirSchemas", List.of(
- new AbstractTab(new StringResourceModel(
- "attributes.membership.accordion", VirAttrs.this, Model.of(membershipTO))) {
-
- private static final long serialVersionUID = 1037272333056449378L;
-
- @Override
- public WebMarkupContainer getPanel(final String panelId) {
- return new VirAttrs.VirSchemas(
- panelId,
- membershipTO.getGroupName(),
- membershipSchemas.get(membershipTO.getGroupKey()),
- new ListModel<>(getAttrsFromTO(membershipTO)));
- }
- }), Model.of(-1)).setOutputMarkupId(true));
- }
- }).setOutputMarkupId(true);
- }
-
- @Override
- protected SchemaType getSchemaType() {
- return SchemaType.VIRTUAL;
- }
-
- @Override
- protected List<Attr> getAttrsFromTO() {
- return userTO.getVirAttrs().stream().sorted(attrComparator).collect(Collectors.toList());
- }
-
- @Override
- protected List<Attr> getAttrsFromTO(final MembershipTO membershipTO) {
- return membershipTO.getVirAttrs().stream().sorted(attrComparator).collect(Collectors.toList());
- }
-
- @Override
- protected void setAttrs() {
- List<Attr> virAttrs = new ArrayList<>();
-
- Map<String, Attr> attrMap = EntityTOUtils.buildAttrMap(userTO.getVirAttrs());
-
- virAttrs.addAll(schemas.values().stream().map(schema -> {
- Attr attrTO = new Attr();
- attrTO.setSchema(schema.getKey());
- if (attrMap.containsKey(schema.getKey())) {
- attrTO.getValues().addAll(attrMap.get(schema.getKey()).getValues());
- } else {
- attrTO.getValues().add(StringUtils.EMPTY);
- }
- return attrTO;
- }).toList());
-
- userTO.getVirAttrs().clear();
- userTO.getVirAttrs().addAll(virAttrs);
- }
-
- @Override
- protected void setAttrs(final MembershipTO membershipTO) {
- Map<String, Attr> attrMap = GroupableRelatableTO.class.cast(userTO).getMembership(membershipTO.getGroupKey()).
- map(gr -> EntityTOUtils.buildAttrMap(gr.getVirAttrs())).
- orElseGet(HashMap::new);
-
- List<Attr> virAttrs = membershipSchemas.get(membershipTO.getGroupKey()).values().stream().map(schema -> {
- Attr attr = new Attr();
- attr.setSchema(schema.getKey());
- if (attrMap.get(schema.getKey()) == null || attrMap.get(schema.getKey()).getValues().isEmpty()) {
- attr.getValues().add(StringUtils.EMPTY);
- } else {
- attr.getValues().addAll(attrMap.get(schema.getKey()).getValues());
- }
- return attr;
- }).toList();
-
- membershipTO.getVirAttrs().clear();
- membershipTO.getVirAttrs().addAll(virAttrs);
- }
-
- public class VirSchemas extends Schemas {
-
- private static final long serialVersionUID = -4730563859116024676L;
-
- public VirSchemas(
- final String id,
- final String groupName,
- final Map<String, VirSchemaTO> schemas,
- final IModel<List<Attr>> attrTOs) {
-
- super(id);
-
- add(new ListView<>("schemas", attrTOs) {
-
- private static final long serialVersionUID = 9101744072914090143L;
-
- @Override
- @SuppressWarnings("unchecked")
- protected void populateItem(final ListItem<Attr> item) {
- Attr attrTO = item.getModelObject();
-
- // set default values, if any
- if (attrTO.getValues().stream().filter(StringUtils::isNotBlank).count() == 0) {
- attrTO.getValues().clear();
- attrTO.getValues().addAll(getDefaultValues(attrTO.getSchema(), groupName));
- }
-
- VirSchemaTO virSchemaTO = schemas.get(attrTO.getSchema());
-
- AbstractFieldPanel<?> panel = new AjaxTextFieldPanel(
- "panel",
- virSchemaTO.getLabel(SyncopeEnduserSession.get().getLocale()),
- new Model<>(),
- false);
-
- panel = new MultiFieldPanel.Builder<>(
- new PropertyModel<List<String>>(attrTO, "values")).build(
- "panel",
- virSchemaTO.getLabel(SyncopeEnduserSession.get().getLocale()),
- AjaxTextFieldPanel.class.cast(panel));
- panel.setEnabled(!virSchemaTO.isReadonly() && !renderAsReadonly(attrTO.getSchema(), groupName));
-
- item.add(panel);
- }
- });
- }
- }
-}
diff --git a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/SchemaRestClient.java b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/SchemaRestClient.java
index a878ef0899..58a391c3b9 100644
--- a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/SchemaRestClient.java
+++ b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/SchemaRestClient.java
@@ -103,10 +103,6 @@ public class SchemaRestClient extends BaseRestClient {
return getSchemaNames(SchemaType.DERIVED);
}
- public List<String> getVirSchemaNames() {
- return getSchemaNames(SchemaType.VIRTUAL);
- }
-
public <T extends SchemaTO> T read(final SchemaType schemaType, final String key) {
return getService(SchemaService.class).read(schemaType, key);
}
diff --git a/client/idrepo/enduser/src/main/resources/customFormLayout.json b/client/idrepo/enduser/src/main/resources/customFormLayout.json
index c6bdc1ee5a..4a11228aeb 100644
--- a/client/idrepo/enduser/src/main/resources/customFormLayout.json
+++ b/client/idrepo/enduser/src/main/resources/customFormLayout.json
@@ -4,11 +4,9 @@
"groups": true,
"plainAttrs": true,
"derAttrs": true,
- "virAttrs": true,
"resources": true,
"whichPlainAttrs": {},
"whichDerAttrs": {},
- "whichVirAttrs": {},
"passwordManagement": true,
"detailsManagement": true,
"sidebarLayout": {
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication.properties b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication.properties
index b5cfbfd2a9..73f7b76e6b 100644
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication.properties
+++ b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication.properties
@@ -91,7 +91,6 @@ cancel=Cancel
editchangepassword=Change password
attributes.derived=Derived Attributes
attributes.plain=Plain Attributes
-attributes.virtual=Virtual Attributes
captcha=Captcha
details=Details
user_request_error=Error during user request. Please contact your administrator
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_fr_CA.properties b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_fr_CA.properties
index 4cb035495c..56d614e715 100644
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_fr_CA.properties
+++ b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_fr_CA.properties
@@ -90,7 +90,6 @@ cancel=Annuler
editchangepassword=Changer mot de passe
attributes.derived=Derived Attributes
attributes.plain=Editer le profil
-attributes.virtual=Virtual Attributes
captcha=Captcha
details=Des d\u00e9tails
user_request_error=Erreur lors de la demande de l'utilisateur. Veuillez contacter votre administrateur
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_it.properties b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_it.properties
index ffa23aa2d7..dd04807630 100644
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_it.properties
+++ b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_it.properties
@@ -88,7 +88,6 @@ cancel=Cancel
editchangepassword=Gestione password
attributes.derived=Derived Attributes
attributes.plain=Plain Attributes
-attributes.virtual=Virtual Attributes
captcha=Captcha
details=Details
user-requests-link=User Requests
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_ja.properties b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_ja.properties
index dd6cb62415..4b9640769e 100644
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_ja.properties
+++ b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_ja.properties
@@ -14,85 +14,84 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-users=\u30E6\u30FC\u30B6\u30FC
-groups=\u30B0\u30EB\u30FC\u30D7
-configuration=\u8A2D\u5B9A
-resources=\u30EA\u30BD\u30FC\u30B9
-connectors=\u30B3\u30CD\u30AF\u30BF\u30FC
-reports=\u30EC\u30DD\u30FC\u30C8
-tasks=\u30BF\u30B9\u30AF
-logout=\u30ED\u30B0\u30A2\u30A6\u30C8
-schema=\u30B9\u30AD\u30FC\u30DE
-operation_succeeded=\u64CD\u4F5C\u3092\u6B63\u5E38\u306B\u5B9F\u884C\u3057\u307E\u3057\u305F
-operation_error=\u8981\u6C42\u3057\u305F\u64CD\u4F5C\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F
-alert=\u30A2\u30E9\u30FC\u30C8\:
-confirmDelete=\u9078\u629E\u3057\u305F\u30A2\u30A4\u30C6\u30E0\u3092\u524A\u9664\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B?
-confirmUnlink=\u9078\u629E\u3057\u305F\u30A2\u30A4\u30C6\u30E0\u3068\u30EA\u30BD\u30FC\u30B9\u306E\u9593\u306E\u30EA\u30F3\u30AF\u3092\u524A\u9664\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B?
-confirmUnassign=\u9078\u629E\u3057\u305F\u30A2\u30A4\u30C6\u30E0\u3068\u30EA\u30BD\u30FC\u30B9\u306E\u9593\u306E\u5272\u308A\u5F53\u3066\u3092\u524A\u9664\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B?
-confirmDeprovision=\u9078\u629E\u3057\u305F\u30A2\u30A4\u30C6\u30E0\u3092\u30C7\u30D7\u30ED\u30D3\u30B8\u30E7\u30F3\uFF08\u524A\u9664\uFF09\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B?
-confirmProvision=\u9078\u629E\u3057\u305F\u30A2\u30A4\u30C6\u30E0\u3092\u30D7\u30ED\u30D3\u30B8\u30E7\u30F3\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B?
-confirmClone=\u9078\u629E\u3057\u305F\u30A2\u30A4\u30C6\u30E0\u3092\u8907\u88FD\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B?
-dropDownChoiceField.nullValid=\uFF11\u3064\u9078\u629E
-DateTimeField$HoursValidator=\u6642\u9593\u306E\u5024\u306F 1\uFF5E12 \u306E\u7BC4\u56F2
-error=\u30A8\u30E9\u30FC
-generic_error=\u64CD\u4F5C\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F
-id=\u30AD\u30FC
-name=\u540D\u524D
-palette.available=\u5229\u7528\u53EF\u80FD
-palette.selected=\u9078\u629E\u6E08
-jexl_info=\u3053\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u306F JEXL \u8868\u73FE\u3092\u671F\u5F85\u3057\u3066\u3044\u307E\u3059\u3002\u4F8B\:
-jexl_ex1=\u59D3 + ',' + \u540D
-jexl_ex2='\u65B0\u3057\u3044.' + \u59D3
-jexl_syntax_url=\u5B8C\u5168 JEXL \u53C2\u7167
-create=\u4F5C\u6210
-key=\u30AD\u30FC
-types=\u30BF\u30A4\u30D7
-realms=\u30EC\u30EB\u30E0
-roles=\u30ED\u30FC\u30EB
-policies=\u30DD\u30EA\u30B7\u30FC
-workflow=\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC
-logs=\u30ED\u30B0
-layouts=\u30EC\u30A4\u30A2\u30A6\u30C8
-notifications=\u901A\u77E5
-parameters=\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC
-extensions=\u62E1\u5F35
-NavigatorLabel=${from} \uFF5E ${to} \uFF0F ${of} \u884C\u3092\u8868\u793A\u4E2D
-displayRows=\u8868\u793A\u3059\u308B\u884C\u6570\:
+users=\u30e6\u30fc\u30b6\u30fc
+groups=\u30b0\u30eb\u30fc\u30d7
+configuration=\u8a2d\u5b9a
+resources=\u30ea\u30bd\u30fc\u30b9
+connectors=\u30b3\u30cd\u30af\u30bf\u30fc
+reports=\u30ec\u30dd\u30fc\u30c8
+tasks=\u30bf\u30b9\u30af
+logout=\u30ed\u30b0\u30a2\u30a6\u30c8
+schema=\u30b9\u30ad\u30fc\u30de
+operation_succeeded=\u64cd\u4f5c\u3092\u6b63\u5e38\u306b\u5b9f\u884c\u3057\u307e\u3057\u305f
+operation_error=\u8981\u6c42\u3057\u305f\u64cd\u4f5c\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f
+alert=\u30a2\u30e9\u30fc\u30c8\:
+confirmDelete=\u9078\u629e\u3057\u305f\u30a2\u30a4\u30c6\u30e0\u3092\u524a\u9664\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b?
+confirmUnlink=\u9078\u629e\u3057\u305f\u30a2\u30a4\u30c6\u30e0\u3068\u30ea\u30bd\u30fc\u30b9\u306e\u9593\u306e\u30ea\u30f3\u30af\u3092\u524a\u9664\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b?
+confirmUnassign=\u9078\u629e\u3057\u305f\u30a2\u30a4\u30c6\u30e0\u3068\u30ea\u30bd\u30fc\u30b9\u306e\u9593\u306e\u5272\u308a\u5f53\u3066\u3092\u524a\u9664\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b?
+confirmDeprovision=\u9078\u629e\u3057\u305f\u30a2\u30a4\u30c6\u30e0\u3092\u30c7\u30d7\u30ed\u30d3\u30b8\u30e7\u30f3\uff08\u524a\u9664\uff09\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b?
+confirmProvision=\u9078\u629e\u3057\u305f\u30a2\u30a4\u30c6\u30e0\u3092\u30d7\u30ed\u30d3\u30b8\u30e7\u30f3\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b?
+confirmClone=\u9078\u629e\u3057\u305f\u30a2\u30a4\u30c6\u30e0\u3092\u8907\u88fd\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b?
+dropDownChoiceField.nullValid=\uff11\u3064\u9078\u629e
+DateTimeField$HoursValidator=\u6642\u9593\u306e\u5024\u306f 1\uff5e12 \u306e\u7bc4\u56f2
+error=\u30a8\u30e9\u30fc
+generic_error=\u64cd\u4f5c\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f
+id=\u30ad\u30fc
+name=\u540d\u524d
+palette.available=\u5229\u7528\u53ef\u80fd
+palette.selected=\u9078\u629e\u6e08
+jexl_info=\u3053\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306f JEXL \u8868\u73fe\u3092\u671f\u5f85\u3057\u3066\u3044\u307e\u3059\u3002\u4f8b\:
+jexl_ex1=\u59d3 + ',' + \u540d
+jexl_ex2='\u65b0\u3057\u3044.' + \u59d3
+jexl_syntax_url=\u5b8c\u5168 JEXL \u53c2\u7167
+create=\u4f5c\u6210
+key=\u30ad\u30fc
+types=\u30bf\u30a4\u30d7
+realms=\u30ec\u30eb\u30e0
+roles=\u30ed\u30fc\u30eb
+policies=\u30dd\u30ea\u30b7\u30fc
+workflow=\u30ef\u30fc\u30af\u30d5\u30ed\u30fc
+logs=\u30ed\u30b0
+layouts=\u30ec\u30a4\u30a2\u30a6\u30c8
+notifications=\u901a\u77e5
+parameters=\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc
+extensions=\u62e1\u5f35
+NavigatorLabel=${from} \uff5e ${to} \uff0f ${of} \u884c\u3092\u8868\u793a\u4e2d
+displayRows=\u8868\u793a\u3059\u308b\u884c\u6570\:
OrderByLink.CSS.ascending=sorting_asc
OrderByLink.CSS.descending=sorting_desc
OrderByLink.CSS.none=sorting
-entitlements=\u4ED8\u4E0E
-audit=\u76E3\u67FB
-connectors.confirm.reload=\u3053\u306E\u8981\u6C42\u306F\u3001\u5B9F\u884C\u4E2D\u306E\u64CD\u4F5C\u306B\u5BFE\u3057\u3066\u5371\u967A\u306A\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B?
-intAttrNameInfo.help=\u30AA\u30FC\u30C8\u30B3\u30F3\u30D7\u30EA\u30FC\u30C8\u306E\u5C5E\u6027\u4EE5\u5916\u306B\u3001\u30B0\u30EB\u30FC\u30D7\u3001\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u3001\u30E1\u30F3\u30D0\u30FC\u30B7\u30C3\u30D7\u3082\u53C2\u7167\u53EF\u80FD\u3067\u3059 (\u8A72\u5F53\u3059\u308B\u5834\u5408)\u3002\u4F8B\:
-confirmGlobalLogout=\u30B0\u30ED\u30FC\u30D0\u30EB\u30ED\u30B0\u30A2\u30A6\u30C8\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B?
-implementations=\u5C0E\u5165
-timeout=\u64CD\u4F5C\u306B\u9577\u6642\u9593\u304B\u304B\u3063\u3066\u3044\u307E\u3059\: \u30D0\u30C3\u30AF\u30B0\u30E9\u30A6\u30F3\u30C9\u3067\u5B9F\u884C\u3055\u308C\u307E\u3059\u3002 \u7D50\u679C\u3092\u5F8C\u3067\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044 (\u30A8\u30E9\u30FC\u306F\u5F15\u304D\u8D77\u3053\u3057\u307E\u305B\u3093)\u3002
-editsecurityquestion=\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3
-before=\u524D
-after=\u5F8C
+entitlements=\u4ed8\u4e0e
+audit=\u76e3\u67fb
+connectors.confirm.reload=\u3053\u306e\u8981\u6c42\u306f\u3001\u5b9f\u884c\u4e2d\u306e\u64cd\u4f5c\u306b\u5bfe\u3057\u3066\u5371\u967a\u306a\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u7d9a\u884c\u3057\u307e\u3059\u304b?
+intAttrNameInfo.help=\u30aa\u30fc\u30c8\u30b3\u30f3\u30d7\u30ea\u30fc\u30c8\u306e\u5c5e\u6027\u4ee5\u5916\u306b\u3001\u30b0\u30eb\u30fc\u30d7\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001\u30e1\u30f3\u30d0\u30fc\u30b7\u30c3\u30d7\u3082\u53c2\u7167\u53ef\u80fd\u3067\u3059 (\u8a72\u5f53\u3059\u308b\u5834\u5408)\u3002\u4f8b\:
+confirmGlobalLogout=\u30b0\u30ed\u30fc\u30d0\u30eb\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b?
+implementations=\u5c0e\u5165
+timeout=\u64cd\u4f5c\u306b\u9577\u6642\u9593\u304b\u304b\u3063\u3066\u3044\u307e\u3059\: \u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002 \u7d50\u679c\u3092\u5f8c\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044 (\u30a8\u30e9\u30fc\u306f\u5f15\u304d\u8d77\u3053\u3057\u307e\u305b\u3093)\u3002
+editsecurityquestion=\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3
+before=\u524d
+after=\u5f8c
-captcha_error=\u5165\u529B\u3055\u308C\u305F\u30AD\u30E3\u30D7\u30C1\u30E3\u304C\u4E00\u81F4\u3057\u307E\u305B\u3093
-blank_security_info=\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u306E\u8CEA\u554F\u304A\u3088\u3073/\u307E\u305F\u306F\u56DE\u7B54\u304C\u7A7A\u767D\u3067\u3042\u308B
+captcha_error=\u5165\u529b\u3055\u308c\u305f\u30ad\u30e3\u30d7\u30c1\u30e3\u304c\u4e00\u81f4\u3057\u307e\u305b\u3093
+blank_security_info=\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u8cea\u554f\u304a\u3088\u3073/\u307e\u305f\u306f\u56de\u7b54\u304c\u7a7a\u767d\u3067\u3042\u308b
invalid.security.answer=Invalid security answer
tooLargeFile=File is too large, max upload file size is ${maxUploadSizeB} bytes (${maxUploadSizeMB} MB).
home=Home
profile=Personal Information
requests=User Requests
-edituser=\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u7DE8\u96C6
+edituser=\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6
submit=Submit
cancel=Cancel
editchangepassword=Change password
attributes.derived=Derived Attributes
attributes.plain=Plain Attributes
-attributes.virtual=Virtual Attributes
captcha=Captcha
details=Details
user-requests-link=User Requests
self-pwd-reset-link=Self Password Reset
self-registration-link=Self Registration
-user_request_error=\u30E6\u30FC\u30B6\u30FC\u30EA\u30AF\u30A8\u30B9\u30C8\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002 \u7BA1\u7406\u8005\u306B\u9023\u7D61\u3057\u3066\u304F\u3060\u3055\u3044
+user_request_error=\u30e6\u30fc\u30b6\u30fc\u30ea\u30af\u30a8\u30b9\u30c8\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002 \u7ba1\u7406\u8005\u306b\u9023\u7d61\u3057\u3066\u304f\u3060\u3055\u3044
page.home=Home
page.changePassword=Change Password
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_pt_BR.properties b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_pt_BR.properties
index 4ccad26602..45fc6c0abe 100644
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_pt_BR.properties
+++ b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_pt_BR.properties
@@ -88,7 +88,6 @@ cancel=Cancel
editchangepassword=Change password
attributes.derived=Derived Attributes
attributes.plain=Plain Attributes
-attributes.virtual=Virtual Attributes
captcha=Captcha
details=Details
user-requests-link=User Requests
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_ru.properties b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_ru.properties
index 2ecc5877c9..4e79d544b0 100644
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_ru.properties
+++ b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/SyncopeEnduserApplication_ru.properties
@@ -14,59 +14,59 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-users=\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0438
-groups=\u0413\u0440\u0443\u043F\u043F\u044B
-configuration=\u041A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044F
-resources=\u0420\u0435\u0441\u0443\u0440\u0441\u044B
-connectors=\u041A\u043E\u043D\u043D\u0435\u043A\u0442\u043E\u0440\u044B
-reports=\u041E\u0442\u0447\u0435\u0442\u044B
+users=\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438
+groups=\u0413\u0440\u0443\u043f\u043f\u044b
+configuration=\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f
+resources=\u0420\u0435\u0441\u0443\u0440\u0441\u044b
+connectors=\u041a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u044b
+reports=\u041e\u0442\u0447\u0435\u0442\u044b
tasks=\u0417\u0430\u0434\u0430\u0447\u0438
-logout=\u0412\u044B\u0439\u0442\u0438
+logout=\u0412\u044b\u0439\u0442\u0438
schema=\u0410\u0442\u0440\u0438\u0431\u0443\u0442
-operation_succeeded=\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E
-operation_error=\u0412\u043E \u0432\u0440\u0435\u043C\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u043F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430
-alert=\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435:
-confirmDelete=\u0412\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043E\u0431\u044A\u0435\u043A\u0442\u044B?
-confirmUnlink=\u0412\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0432\u044F\u0437\u044C \u043C\u0435\u0436\u0434\u0443 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u043C\u0438 \u043E\u0431\u044A\u0435\u043A\u0442\u0430\u043C\u0438 \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043E\u043C?
-confirmUnassign=\u0412\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u0434\u043B\u044F \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432?
-confirmDeprovision=\u0412\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u043E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043E\u0431\u044A\u0435\u043A\u0442\u044B?
-confirmProvision=\u0412\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043E\u0431\u044A\u0435\u043A\u0442\u044B?
-confirmClone=\u0412\u044B \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043E\u0431\u044A\u0435\u043A\u0442\u044B?
-dropDownChoiceField.nullValid=\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435
-DateTimeField$HoursValidator=\u0427\u0430\u0441\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u0443\u043A\u0430\u0437\u0430\u043D\u044B \u0432 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D\u0435 (1, 12)
-error=\u041E\u0448\u0438\u0431\u043A\u0430
-generic_error=\u0412\u043E \u0432\u0440\u0435\u043C\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430
-id=\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440
-name=\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435
-palette.available=\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E
-palette.selected=\u0412\u044B\u0431\u0440\u0430\u043D\u043E
-jexl_info=\u042D\u0442\u043E \u043F\u043E\u043B\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C JEXL \u0432\u044B\u0440\u0430\u0436\u0435\u043D\u0438\u0435, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440:
+operation_succeeded=\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e
+operation_error=\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430
+alert=\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435:
+confirmDelete=\u0412\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b?
+confirmUnlink=\u0412\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u043c?
+confirmUnassign=\u0412\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u0434\u043b\u044f \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432?
+confirmDeprovision=\u0412\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0442\u043e\u0437\u0432\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b?
+confirmProvision=\u0412\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b?
+confirmClone=\u0412\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b?
+dropDownChoiceField.nullValid=\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435
+DateTimeField$HoursValidator=\u0427\u0430\u0441\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 (1, 12)
+error=\u041e\u0448\u0438\u0431\u043a\u0430
+generic_error=\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430
+id=\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440
+name=\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435
+palette.available=\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e
+palette.selected=\u0412\u044b\u0431\u0440\u0430\u043d\u043e
+jexl_info=\u042d\u0442\u043e \u043f\u043e\u043b\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c JEXL \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:
jexl_ex1=surname + ',' + firstname
jexl_ex2='new.' + surname
-jexl_syntax_url=\u0421\u043F\u0440\u0430\u0432\u043A\u0430 \u043F\u043E JEXL
-create=\u0421\u043E\u0437\u0434\u0430\u0442\u044C
-key=\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440
-types=\u0422\u0438\u043F\u044B \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432
-realms=\u041E\u0431\u043B\u0430\u0441\u0442\u0438
-roles=\u0420\u043E\u043B\u0438
-policies=\u041F\u043E\u043B\u0438\u0442\u0438\u043A\u0438
-workflow=\u041F\u0440\u043E\u0446\u0435\u0441\u0441 \u0441\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u0438\u044F
-logs=\u041B\u043E\u0433\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435
-layouts=\u0420\u0430\u0437\u043C\u0435\u0442\u043A\u0430
-notifications=\u0423\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F
-parameters=\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B
-extensions=\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F
-NavigatorLabel=\u0421\u0442\u0440\u043E\u043A\u0438 ${from}-${to} \u0438\u0437 ${of}
-displayRows=\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u043E:
-OrderByLink.CSS.ascending=\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0430_\u043F\u043E_\u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u044E
-OrderByLink.CSS.descending=\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0430_\u043F\u043E_\u0443\u0431\u044B\u0432\u0430\u043D\u0438\u044E
-OrderByLink.CSS.none=\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0430
-entitlements=\u041F\u043E\u043B\u043D\u043E\u043C\u043E\u0447\u0438\u044F
+jexl_syntax_url=\u0421\u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u043e JEXL
+create=\u0421\u043e\u0437\u0434\u0430\u0442\u044c
+key=\u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440
+types=\u0422\u0438\u043f\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432
+realms=\u041e\u0431\u043b\u0430\u0441\u0442\u0438
+roles=\u0420\u043e\u043b\u0438
+policies=\u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0438
+workflow=\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u0438\u044f
+logs=\u041b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435
+layouts=\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430
+notifications=\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f
+parameters=\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b
+extensions=\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f
+NavigatorLabel=\u0421\u0442\u0440\u043e\u043a\u0438 ${from}-${to} \u0438\u0437 ${of}
+displayRows=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e:
+OrderByLink.CSS.ascending=\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430_\u043f\u043e_\u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e
+OrderByLink.CSS.descending=\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430_\u043f\u043e_\u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044e
+OrderByLink.CSS.none=\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430
+entitlements=\u041f\u043e\u043b\u043d\u043e\u043c\u043e\u0447\u0438\u044f
audit=\u0410\u0443\u0434\u0438\u0442
-connectors.confirm.reload=\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u044D\u0442\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u043F\u043E\u0442\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u043E\u043F\u0430\u0441\u043D\u043E \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u043C\u044B\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439. \u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C?
-intAttrNameInfo.help=\u041F\u043E\u043C\u0438\u043C\u043E \u0430\u0432\u0442\u043E\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043E\u0432, \u0432\u044B \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0433\u0440\u0443\u043F\u043F\u044B, \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0435 \u043E\u0431\u044A\u0435\u043A\u0442\u044B \u0 [...]
+connectors.confirm.reload=\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043e\u043f\u0430\u0441\u043d\u043e \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c?
+intAttrNameInfo.help=\u041f\u043e\u043c\u0438\u043c\u043e \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432, \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u044b, \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0 [...]
confirmGlobalLogout=Do you really want to perform global logout?
-implementations=\u0420\u0435\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438
+implementations=\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438
timeout=Operation is taking too long: it will be executed in background. Please check later for the result (errors won't be triggered).
editsecurityquestion=Security question
@@ -74,26 +74,25 @@ before=Before
after=After
captcha_error=Captcha entered does not match
-blank_security_info=\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u044B\u0439 \u0432\u043E\u043F\u0440\u043E\u0441 \u0438/\u0438\u043B\u0438 \u043E\u0442\u0432\u0435\u0442 \u043F\u0443\u0441\u0442\u044B
+blank_security_info=\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u0438/\u0438\u043b\u0438 \u043e\u0442\u0432\u0435\u0442 \u043f\u0443\u0441\u0442\u044b
invalid.security.answer=Invalid security answer
tooLargeFile=File is too large, max upload file size is ${maxUploadSizeB} bytes (${maxUploadSizeMB} MB).
home=Home
profile=Personal Information
requests=User Requests
-edituser=\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0444\u0438\u043B\u044C
+edituser=\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0444\u0438\u043b\u044c
submit=Submit
cancel=Cancel
editchangepassword=Change password
attributes.derived=Derived Attributes
attributes.plain=Plain Attributes
-attributes.virtual=Virtual Attributes
captcha=Captcha
details=Details
user-requests-link=User Requests
self-pwd-reset-link=Self Password Reset
self-registration-link=Self Registration
-user_request_error=\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0437\u0430\u043F\u0440\u043E\u0441\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u043A \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u0443
+user_request_error=\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044c \u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443
page.home=Home
page.changePassword=Change Password
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/UserFormPanel.html b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/UserFormPanel.html
index 969fcd5c58..16628b213a 100644
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/UserFormPanel.html
+++ b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/UserFormPanel.html
@@ -28,7 +28,6 @@ under the License.
<span wicket:id="groupsPanelCard">[groupsPanelCard]</span>
<span wicket:id="plainAttrsPanelCard">[plainAttrsPanelCard]</span>
<span wicket:id="derAttrsPanelCard">[derAttrsPanelCard]</span>
- <span wicket:id="virAttrsPanelCard">[virAttrsPanelCard]</span>
<span wicket:id="resourcesPanelCard">[resourcesPanelCard]</span>
<span wicket:id="captchaPanelCard">[captchaPanelCard]</span>
</div>
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs.html b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs.html
deleted file mode 100644
index 5968a336a1..0000000000
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied. See the License for the
-specific language governing permissions and limitations
-under the License.
--->
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org">
- <wicket:extend>
- <div wicket:id="virSchemas"/>
- <span wicket:id="membershipsVirSchemas">
- <div wicket:id="membershipVirSchemas"/>
- </span>
- </wicket:extend>
-</html>
\ No newline at end of file
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs.properties b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs.properties
deleted file mode 100644
index 812b050fe4..0000000000
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-attribute.empty.list=No virtual attributes available
-attributes.virtual=Virtual Attributes
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs_it.properties b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs_it.properties
deleted file mode 100644
index 711f97015f..0000000000
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs_it.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-attribute.empty.list=Non ci sono attributi virtuali disponibili
-attributes.virtual=Attributi Virtuali
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs_ja.properties b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs_ja.properties
deleted file mode 100644
index f274ab8001..0000000000
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs_ja.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-attribute.empty.list=\u4eee\u60f3\u5c5e\u6027\u306f\u3042\u308a\u307e\u305b\u3093
-attributes.virtual=\u4eee\u60f3\u5c5e\u6027
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs_pt_BR.properties b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs_pt_BR.properties
deleted file mode 100644
index eb977484fd..0000000000
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs_pt_BR.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-attribute.empty.list=Sem atributos virtuais dispon\u00edveis
-attributes.virtual=Virtual Attributes
diff --git a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs_ru.properties b/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs_ru.properties
deleted file mode 100644
index a162426a09..0000000000
--- a/client/idrepo/enduser/src/main/resources/org/apache/syncope/client/enduser/panels/any/VirAttrs_ru.properties
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-attribute.empty.list=\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442
-attributes.virtual=\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b
diff --git a/client/idrepo/enduser/src/test/java/org/apache/syncope/client/enduser/AbstractTest.java b/client/idrepo/enduser/src/test/java/org/apache/syncope/client/enduser/AbstractTest.java
index e522834cfe..7e5fe1716a 100644
--- a/client/idrepo/enduser/src/test/java/org/apache/syncope/client/enduser/AbstractTest.java
+++ b/client/idrepo/enduser/src/test/java/org/apache/syncope/client/enduser/AbstractTest.java
@@ -215,8 +215,6 @@ public abstract class AbstractTest {
NumbersInfo.ConfItem.NOTIFICATION.name(), false);
numbersInfo.getConfCompleteness().put(
NumbersInfo.ConfItem.PULL_TASK.name(), false);
- numbersInfo.getConfCompleteness().put(
- NumbersInfo.ConfItem.VIR_SCHEMA.name(), false);
numbersInfo.getConfCompleteness().put(
NumbersInfo.ConfItem.ANY_TYPE.name(), false);
numbersInfo.getConfCompleteness().put(
diff --git a/common/idm/lib/src/main/java/org/apache/syncope/common/lib/to/Mapping.java b/common/idm/lib/src/main/java/org/apache/syncope/common/lib/to/Mapping.java
index 81bb31f7cb..57fa966994 100644
--- a/common/idm/lib/src/main/java/org/apache/syncope/common/lib/to/Mapping.java
+++ b/common/idm/lib/src/main/java/org/apache/syncope/common/lib/to/Mapping.java
@@ -18,10 +18,6 @@
*/
package org.apache.syncope.common.lib.to;
-import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
-import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
-import java.util.ArrayList;
-import java.util.List;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
@@ -31,8 +27,6 @@ public class Mapping extends ItemContainer {
private String connObjectLink;
- private final List<Item> linkingItems = new ArrayList<>();
-
public String getConnObjectLink() {
return connObjectLink;
}
@@ -41,12 +35,6 @@ public class Mapping extends ItemContainer {
this.connObjectLink = connObjectLink;
}
- @JacksonXmlElementWrapper(localName = "linkingItems")
- @JacksonXmlProperty(localName = "linkingItem")
- public List<Item> getLinkingItems() {
- return linkingItems;
- }
-
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -62,7 +50,6 @@ public class Mapping extends ItemContainer {
return new EqualsBuilder().
appendSuper(super.equals(obj)).
append(connObjectLink, other.connObjectLink).
- append(linkingItems, other.linkingItems).
build();
}
@@ -71,7 +58,6 @@ public class Mapping extends ItemContainer {
return new HashCodeBuilder().
appendSuper(super.hashCode()).
append(connObjectLink).
- append(linkingItems).
build();
}
}
diff --git a/common/idm/lib/src/main/java/org/apache/syncope/common/lib/to/Provision.java b/common/idm/lib/src/main/java/org/apache/syncope/common/lib/to/Provision.java
index 9e82deaf77..702bba65bc 100644
--- a/common/idm/lib/src/main/java/org/apache/syncope/common/lib/to/Provision.java
+++ b/common/idm/lib/src/main/java/org/apache/syncope/common/lib/to/Provision.java
@@ -44,8 +44,6 @@ public class Provision implements Serializable {
private Mapping mapping;
- private final List<String> virSchemas = new ArrayList<>();
-
public String getAnyType() {
return anyType;
}
@@ -100,12 +98,6 @@ public class Provision implements Serializable {
this.mapping = mapping;
}
- @JacksonXmlElementWrapper(localName = "virSchemas")
- @JacksonXmlProperty(localName = "virSchema")
- public List<String> getVirSchemas() {
- return virSchemas;
- }
-
@Override
public boolean equals(final Object obj) {
if (this == obj) {
@@ -126,7 +118,6 @@ public class Provision implements Serializable {
append(syncToken, other.syncToken).
append(uidOnCreate, other.uidOnCreate).
append(mapping, other.mapping).
- append(virSchemas, other.virSchemas).
build();
}
@@ -140,7 +131,6 @@ public class Provision implements Serializable {
append(ignoreCaseMatch).
append(uidOnCreate).
append(mapping).
- append(virSchemas).
build();
}
}
diff --git a/common/idm/rest-api/src/main/java/org/apache/syncope/common/rest/api/beans/CSVPushSpec.java b/common/idm/rest-api/src/main/java/org/apache/syncope/common/rest/api/beans/CSVPushSpec.java
index 539c49f28d..33b4e36f69 100644
--- a/common/idm/rest-api/src/main/java/org/apache/syncope/common/rest/api/beans/CSVPushSpec.java
+++ b/common/idm/rest-api/src/main/java/org/apache/syncope/common/rest/api/beans/CSVPushSpec.java
@@ -69,16 +69,6 @@ public class CSVPushSpec extends AbstractCSVSpec {
return this;
}
- public Builder virAttr(final String virAttr) {
- getInstance().getVirAttrs().add(virAttr);
- return this;
- }
-
- public Builder virAttrs(final Collection<String> virAttrs) {
- getInstance().getVirAttrs().addAll(virAttrs);
- return this;
- }
-
public Builder ignorePaging(final boolean ignorePaging) {
getInstance().setIgnorePaging(ignorePaging);
return this;
@@ -96,8 +86,6 @@ public class CSVPushSpec extends AbstractCSVSpec {
private List<String> derAttrs = new ArrayList<>();
- private List<String> virAttrs = new ArrayList<>();
-
private Boolean ignorePaging;
protected List<String> propagationActions = new ArrayList<>();
@@ -129,15 +117,6 @@ public class CSVPushSpec extends AbstractCSVSpec {
this.derAttrs = derAttrs;
}
- public List<String> getVirAttrs() {
- return virAttrs;
- }
-
- @QueryParam("virAttrs")
- public void setVirAttrs(final List<String> virAttrs) {
- this.virAttrs = virAttrs;
- }
-
public Boolean getIgnorePaging() {
return ignorePaging == null ? Boolean.FALSE : ignorePaging;
}
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/AnyOperations.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/AnyOperations.java
index 33fbb9339f..7fd3ed1227 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/AnyOperations.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/AnyOperations.java
@@ -136,11 +136,7 @@ public final class AnyOperations {
}
});
- // 4. virtual attributes
- result.getVirAttrs().clear();
- result.getVirAttrs().addAll(updated.getVirAttrs());
-
- // 5. resources
+ // 4. resources
result.getResources().clear();
if (!incremental) {
@@ -215,14 +211,10 @@ public final class AnyOperations {
final MembershipTO updated,
final MembershipUR result) {
- // 1. plain attributes
+ // plain attributes
result.getPlainAttrs().addAll(updated.getPlainAttrs().stream().
filter(attr -> !isEmpty(attr)).
collect(Collectors.toSet()));
-
- // 2. virtual attributes
- result.getVirAttrs().clear();
- result.getVirAttrs().addAll(updated.getVirAttrs());
}
/**
@@ -320,10 +312,10 @@ public final class AnyOperations {
Map<Pair<String, String>, LinkedAccountTO> originalAccounts =
EntityTOUtils.buildLinkedAccountMap(original.getLinkedAccounts());
- updatedAccounts.forEach((key, value) ->
- result.getLinkedAccounts().add(new LinkedAccountUR.Builder().
- operation(PatchOperation.ADD_REPLACE).
- linkedAccountTO(value).build()));
+ updatedAccounts.forEach((key, value)
+ -> result.getLinkedAccounts().add(new LinkedAccountUR.Builder().
+ operation(PatchOperation.ADD_REPLACE).
+ linkedAccountTO(value).build()));
if (!incremental) {
originalAccounts.keySet().stream().filter(account -> !updatedAccounts.containsKey(account)).
@@ -378,7 +370,7 @@ public final class AnyOperations {
} else if (updated instanceof GroupTO updatedGroupTO && original instanceof GroupTO originalGroupTO) {
return (P) diff(updatedGroupTO, originalGroupTO, incremental);
} else if (updated instanceof AnyObjectTO updatedAnyObjectTO
- && original instanceof AnyObjectTO originalObjectTO) {
+ && original instanceof AnyObjectTO originalObjectTO) {
return (P) diff(updatedAnyObjectTO, originalObjectTO, incremental);
}
@@ -431,11 +423,7 @@ public final class AnyOperations {
result.getPlainAttrs().clear();
result.getPlainAttrs().addAll(patch(EntityTOUtils.buildAttrMap(to.getPlainAttrs()), req.getPlainAttrs()));
- // 3. virtual attributes
- result.getVirAttrs().clear();
- result.getVirAttrs().addAll(req.getVirAttrs());
-
- // 4. resources
+ // 3. resources
for (StringPatchItem resourcePatch : req.getResources()) {
switch (resourcePatch.getOperation()) {
case ADD_REPLACE:
@@ -518,8 +506,6 @@ public final class AnyOperations {
MembershipTO newMembershipTO = new MembershipTO.Builder(membPatch.getGroup()).
// 3. plain attributes
plainAttrs(membPatch.getPlainAttrs()).
- // 4. virtual attributes
- virAttrs(membPatch.getVirAttrs()).
build();
result.getMemberships().add(newMembershipTO);
@@ -569,8 +555,6 @@ public final class AnyOperations {
MembershipTO newMembershipTO = new MembershipTO.Builder(membPatch.getGroup()).
// 3. plain attributes
plainAttrs(membPatch.getPlainAttrs()).
- // 4. virtual attributes
- virAttrs(membPatch.getVirAttrs()).
build();
result.getMemberships().add(newMembershipTO);
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/EntityTOUtils.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/EntityTOUtils.java
index cbe65dc17d..9b7d37259d 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/EntityTOUtils.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/EntityTOUtils.java
@@ -67,7 +67,6 @@ public final class EntityTOUtils {
anyCR.setRealm(anyTO.getRealm());
anyCR.getAuxClasses().addAll(anyTO.getAuxClasses());
anyCR.getPlainAttrs().addAll(anyTO.getPlainAttrs());
- anyCR.getVirAttrs().addAll(anyTO.getVirAttrs());
anyCR.getResources().addAll(anyTO.getResources());
if (anyCR instanceof final UserCR userCR && anyTO instanceof final UserTO userTO) {
@@ -101,7 +100,6 @@ public final class EntityTOUtils {
anyTO.setRealm(anyCR.getRealm());
anyTO.getAuxClasses().addAll(anyCR.getAuxClasses());
anyTO.getPlainAttrs().addAll(anyCR.getPlainAttrs());
- anyTO.getVirAttrs().addAll(anyCR.getVirAttrs());
anyTO.getResources().addAll(anyCR.getResources());
if (anyTO instanceof final UserTO userTO && anyCR instanceof final UserCR userCR) {
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/info/NumbersInfo.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/info/NumbersInfo.java
index f9295f353a..2f6dcc2a9c 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/info/NumbersInfo.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/info/NumbersInfo.java
@@ -35,7 +35,6 @@ public class NumbersInfo implements BaseBean {
PASSWORD_POLICY(10),
NOTIFICATION(8),
PULL_TASK(10),
- VIR_SCHEMA(10),
ANY_TYPE(5),
SECURITY_QUESTION(12),
ROLE(15);
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/policy/DefaultAccountRuleConf.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/policy/DefaultAccountRuleConf.java
index 7d0dfa5eeb..75f84b0986 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/policy/DefaultAccountRuleConf.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/policy/DefaultAccountRuleConf.java
@@ -64,7 +64,7 @@ public class DefaultAccountRuleConf extends AbstractAccountRuleConf implements A
* User attribute values not permitted.
*/
@Schema(anyTypeKind = AnyTypeKind.USER,
- type = { SchemaType.PLAIN, SchemaType.DERIVED, SchemaType.VIRTUAL })
+ type = { SchemaType.PLAIN, SchemaType.DERIVED })
private final List<String> schemasNotPermitted = new ArrayList<>();
/**
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/policy/DefaultPasswordRuleConf.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/policy/DefaultPasswordRuleConf.java
index 16b501f24c..68ace87d11 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/policy/DefaultPasswordRuleConf.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/policy/DefaultPasswordRuleConf.java
@@ -64,7 +64,7 @@ public class DefaultPasswordRuleConf extends AbstractPasswordRuleConf {
* User attribute values not permitted.
*/
@Schema(anyTypeKind = AnyTypeKind.USER,
- type = { SchemaType.PLAIN, SchemaType.DERIVED, SchemaType.VIRTUAL })
+ type = { SchemaType.PLAIN, SchemaType.DERIVED })
private final List<String> schemasNotPermitted = new ArrayList<>();
public int getMaxLength() {
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/request/AnyCR.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/request/AnyCR.java
index e577607e2e..f7d67b90ec 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/request/AnyCR.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/request/AnyCR.java
@@ -96,24 +96,6 @@ public abstract class AnyCR implements BaseBean, RealmMember {
return (B) this;
}
- @SuppressWarnings("unchecked")
- public B virAttr(final Attr virAttr) {
- getInstance().getVirAttrs().add(virAttr);
- return (B) this;
- }
-
- @SuppressWarnings("unchecked")
- public B virAttrs(final Collection<Attr> virAttrs) {
- getInstance().getVirAttrs().addAll(virAttrs);
- return (B) this;
- }
-
- @SuppressWarnings("unchecked")
- public B virAttrs(final Attr... virAttrs) {
- getInstance().getVirAttrs().addAll(List.of(virAttrs));
- return (B) this;
- }
-
@SuppressWarnings("unchecked")
public B resource(final String resource) {
getInstance().getResources().add(resource);
@@ -147,8 +129,6 @@ public abstract class AnyCR implements BaseBean, RealmMember {
private final Set<Attr> plainAttrs = new HashSet<>();
- private final Set<Attr> virAttrs = new HashSet<>();
-
private final Set<String> resources = new HashSet<>();
@Schema(name = "_class", requiredMode = Schema.RequiredMode.REQUIRED)
@@ -199,19 +179,6 @@ public abstract class AnyCR implements BaseBean, RealmMember {
return Set.of();
}
- @JsonIgnore
- @Override
- public Optional<Attr> getVirAttr(final String schema) {
- return virAttrs.stream().filter(attr -> attr.getSchema().equals(schema)).findFirst();
- }
-
- @JacksonXmlElementWrapper(localName = "virAttrs")
- @JacksonXmlProperty(localName = "virAttr")
- @Override
- public Set<Attr> getVirAttrs() {
- return virAttrs;
- }
-
@JacksonXmlElementWrapper(localName = "resources")
@JacksonXmlProperty(localName = "resource")
@Override
@@ -226,7 +193,6 @@ public abstract class AnyCR implements BaseBean, RealmMember {
append(realm).
append(auxClasses).
append(plainAttrs).
- append(virAttrs).
append(resources).
build();
}
@@ -248,7 +214,6 @@ public abstract class AnyCR implements BaseBean, RealmMember {
append(realm, other.realm).
append(auxClasses, other.auxClasses).
append(plainAttrs, other.plainAttrs).
- append(virAttrs, other.virAttrs).
append(resources, other.resources).
build();
}
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/request/AnyUR.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/request/AnyUR.java
index d2d2a8dc81..7e2f8cbb54 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/request/AnyUR.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/request/AnyUR.java
@@ -32,7 +32,6 @@ import java.util.List;
import java.util.Set;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
-import org.apache.syncope.common.lib.Attr;
import org.apache.syncope.common.lib.BaseBean;
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "_class")
@@ -101,24 +100,6 @@ public abstract class AnyUR implements BaseBean {
return (B) this;
}
- @SuppressWarnings("unchecked")
- public B virAttr(final Attr virAttr) {
- getInstance().getVirAttrs().add(virAttr);
- return (B) this;
- }
-
- @SuppressWarnings("unchecked")
- public B virAttrs(final Collection<Attr> virAttrs) {
- getInstance().getVirAttrs().addAll(virAttrs);
- return (B) this;
- }
-
- @SuppressWarnings("unchecked")
- public B virAttrs(final Attr... virAttrs) {
- getInstance().getVirAttrs().addAll(List.of(virAttrs));
- return (B) this;
- }
-
@SuppressWarnings("unchecked")
public B resource(final StringPatchItem resource) {
getInstance().getResources().add(resource);
@@ -154,8 +135,6 @@ public abstract class AnyUR implements BaseBean {
private final Set<AttrPatch> plainAttrs = new HashSet<>();
- private final Set<Attr> virAttrs = new HashSet<>();
-
private final Set<StringPatchItem> resources = new HashSet<>();
@Schema(name = "_class", requiredMode = Schema.RequiredMode.REQUIRED)
@@ -195,12 +174,6 @@ public abstract class AnyUR implements BaseBean {
return plainAttrs;
}
- @JacksonXmlElementWrapper(localName = "virAttrs")
- @JacksonXmlProperty(localName = "virAttr")
- public Set<Attr> getVirAttrs() {
- return virAttrs;
- }
-
@JacksonXmlElementWrapper(localName = "resources")
@JacksonXmlProperty(localName = "resource")
public Set<StringPatchItem> getResources() {
@@ -214,7 +187,7 @@ public abstract class AnyUR implements BaseBean {
public boolean isEmpty() {
return realm == null
&& auxClasses.isEmpty()
- && plainAttrs.isEmpty() && virAttrs.isEmpty()
+ && plainAttrs.isEmpty()
&& resources.isEmpty();
}
@@ -226,7 +199,6 @@ public abstract class AnyUR implements BaseBean {
append(realm).
append(auxClasses).
append(plainAttrs).
- append(virAttrs).
append(resources).
build();
}
@@ -249,7 +221,6 @@ public abstract class AnyUR implements BaseBean {
append(realm, other.realm).
append(auxClasses, other.auxClasses).
append(plainAttrs, other.plainAttrs).
- append(virAttrs, other.virAttrs).
append(resources, other.resources).
build();
}
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/request/MembershipUR.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/request/MembershipUR.java
index 2ec0c7fc23..44d6ea1670 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/request/MembershipUR.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/request/MembershipUR.java
@@ -58,29 +58,12 @@ public class MembershipUR extends AbstractPatch {
getInstance().getPlainAttrs().addAll(plainAttrs);
return this;
}
-
- public Builder virAttr(final Attr virAttr) {
- getInstance().getVirAttrs().add(virAttr);
- return this;
- }
-
- public Builder virAttrs(final Attr... virAttrs) {
- getInstance().getVirAttrs().addAll(List.of(virAttrs));
- return this;
- }
-
- public Builder virAttrs(final Collection<Attr> virAttrs) {
- getInstance().getVirAttrs().addAll(virAttrs);
- return this;
- }
}
private String group;
private final Set<Attr> plainAttrs = new HashSet<>();
- private final Set<Attr> virAttrs = new HashSet<>();
-
public String getGroup() {
return group;
}
@@ -95,19 +78,12 @@ public class MembershipUR extends AbstractPatch {
return plainAttrs;
}
- @JacksonXmlElementWrapper(localName = "virAttrs")
- @JacksonXmlProperty(localName = "virAttr")
- public Set<Attr> getVirAttrs() {
- return virAttrs;
- }
-
@Override
public int hashCode() {
return new HashCodeBuilder().
appendSuper(super.hashCode()).
append(group).
append(plainAttrs).
- append(virAttrs).
build();
}
@@ -127,7 +103,6 @@ public class MembershipUR extends AbstractPatch {
appendSuper(super.equals(obj)).
append(group, other.group).
append(plainAttrs, other.plainAttrs).
- append(virAttrs, other.virAttrs).
build();
}
}
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTO.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTO.java
index 859766ecb3..09665bc5ef 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTO.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTO.java
@@ -88,8 +88,6 @@ public abstract class AnyTO implements EntityTO, RealmMember {
private final Set<Attr> derAttrs = new TreeSet<>();
- private final Set<Attr> virAttrs = new TreeSet<>();
-
private final Set<String> resources = new TreeSet<>();
@Schema(name = "_class", requiredMode = Schema.RequiredMode.REQUIRED)
@@ -231,19 +229,6 @@ public abstract class AnyTO implements EntityTO, RealmMember {
return derAttrs.stream().filter(attr -> attr.getSchema().equals(schema)).findFirst();
}
- @JacksonXmlElementWrapper(localName = "virAttrs")
- @JacksonXmlProperty(localName = "virAttr")
- @Override
- public Set<Attr> getVirAttrs() {
- return virAttrs;
- }
-
- @JsonIgnore
- @Override
- public Optional<Attr> getVirAttr(final String schema) {
- return virAttrs.stream().filter(attr -> attr.getSchema().equals(schema)).findFirst();
- }
-
@Override
public Set<String> getResources() {
return resources;
@@ -266,7 +251,6 @@ public abstract class AnyTO implements EntityTO, RealmMember {
append(auxClasses).
append(plainAttrs).
append(derAttrs).
- append(virAttrs).
append(resources).
build();
}
@@ -298,7 +282,6 @@ public abstract class AnyTO implements EntityTO, RealmMember {
append(auxClasses, other.auxClasses).
append(plainAttrs, other.plainAttrs).
append(derAttrs, other.derAttrs).
- append(virAttrs, other.virAttrs).
append(resources, other.resources).
build();
}
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTypeClassTO.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTypeClassTO.java
index 86a5c0f45d..fb99fcefdc 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTypeClassTO.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AnyTypeClassTO.java
@@ -34,8 +34,6 @@ public class AnyTypeClassTO implements EntityTO {
private final List<String> derSchemas = new ArrayList<>();
- private final List<String> virSchemas = new ArrayList<>();
-
private final List<String> inUseByTypes = new ArrayList<>();
@Override
@@ -61,12 +59,6 @@ public class AnyTypeClassTO implements EntityTO {
return derSchemas;
}
- @JacksonXmlElementWrapper(localName = "virSchemas")
- @JacksonXmlProperty(localName = "virSchema")
- public List<String> getVirSchemas() {
- return virSchemas;
- }
-
@JacksonXmlElementWrapper(localName = "inUseByTypes")
@JacksonXmlProperty(localName = "inUseByType")
public List<String> getInUseByTypes() {
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AttributableTO.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AttributableTO.java
index 1e029f9eef..816112d8f4 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AttributableTO.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/AttributableTO.java
@@ -31,8 +31,4 @@ public interface AttributableTO {
Set<Attr> getDerAttrs();
Optional<Attr> getDerAttr(String schema);
-
- Set<Attr> getVirAttrs();
-
- Optional<Attr> getVirAttr(String schema);
}
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/MembershipTO.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/MembershipTO.java
index 79c8305c74..7f3045ce0b 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/MembershipTO.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/MembershipTO.java
@@ -65,21 +65,6 @@ public class MembershipTO implements BaseBean, AttributableTO {
return this;
}
- public Builder virAttr(final Attr virAttr) {
- instance.getVirAttrs().add(virAttr);
- return this;
- }
-
- public Builder virAttrs(final Collection<Attr> virAttrs) {
- instance.getVirAttrs().addAll(virAttrs);
- return this;
- }
-
- public Builder virAttrs(final Attr... virAttrs) {
- instance.getVirAttrs().addAll(List.of(virAttrs));
- return this;
- }
-
public MembershipTO build() {
return instance;
}
@@ -93,8 +78,6 @@ public class MembershipTO implements BaseBean, AttributableTO {
private final Set<Attr> derAttrs = new TreeSet<>();
- private final Set<Attr> virAttrs = new TreeSet<>();
-
public String getGroupKey() {
return groupKey;
}
@@ -137,19 +120,6 @@ public class MembershipTO implements BaseBean, AttributableTO {
return derAttrs.stream().filter(attr -> attr.getSchema().equals(schema)).findFirst();
}
- @JacksonXmlElementWrapper(localName = "virAttrs")
- @JacksonXmlProperty(localName = "virAttr")
- @Override
- public Set<Attr> getVirAttrs() {
- return virAttrs;
- }
-
- @JsonIgnore
- @Override
- public Optional<Attr> getVirAttr(final String schema) {
- return virAttrs.stream().filter(attr -> attr.getSchema().equals(schema)).findFirst();
- }
-
@Override
public int hashCode() {
return new HashCodeBuilder().
@@ -157,7 +127,6 @@ public class MembershipTO implements BaseBean, AttributableTO {
append(groupName).
append(plainAttrs).
append(derAttrs).
- append(virAttrs).
build();
}
@@ -178,7 +147,6 @@ public class MembershipTO implements BaseBean, AttributableTO {
append(groupName, other.groupName).
append(plainAttrs, other.plainAttrs).
append(derAttrs, other.derAttrs).
- append(virAttrs, other.virAttrs).
build();
}
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/RealmTO.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/RealmTO.java
index fa8951d13e..242d368dec 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/RealmTO.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/RealmTO.java
@@ -63,8 +63,6 @@ public class RealmTO implements NamedEntityTO, TemplatableTO, AttributableTO {
private final Set<Attr> derAttrs = new TreeSet<>();
- private final Set<Attr> virAttrs = Set.of();
-
private final List<String> actions = new ArrayList<>();
private final Map<String, AnyTO> templates = new HashMap<>();
@@ -190,19 +188,6 @@ public class RealmTO implements NamedEntityTO, TemplatableTO, AttributableTO {
return derAttrs.stream().filter(attr -> attr.getSchema().equals(schema)).findFirst();
}
- @JacksonXmlElementWrapper(localName = "virAttrs")
- @JacksonXmlProperty(localName = "virAttr")
- @Override
- public Set<Attr> getVirAttrs() {
- return virAttrs;
- }
-
- @JsonIgnore
- @Override
- public Optional<Attr> getVirAttr(final String schema) {
- return Optional.empty();
- }
-
@JacksonXmlElementWrapper(localName = "actions")
@JacksonXmlProperty(localName = "action")
public List<String> getActions() {
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/SchemaTO.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/SchemaTO.java
index 6f46c9e3e8..f577fea61f 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/SchemaTO.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/SchemaTO.java
@@ -33,7 +33,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "_class")
@JsonPropertyOrder(value = { "_class", "key" })
-@Schema(subTypes = { PlainSchemaTO.class, DerSchemaTO.class, VirSchemaTO.class }, discriminatorProperty = "_class")
+@Schema(subTypes = { PlainSchemaTO.class, DerSchemaTO.class }, discriminatorProperty = "_class")
public abstract class SchemaTO implements EntityTO {
private static final long serialVersionUID = 4088388951694301759L;
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/VirSchemaTO.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/VirSchemaTO.java
deleted file mode 100644
index 79723119b4..0000000000
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/to/VirSchemaTO.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.common.lib.to;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
-import io.swagger.v3.oas.annotations.media.Schema;
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-
-@Schema(allOf = { SchemaTO.class })
-public class VirSchemaTO extends SchemaTO {
-
- private static final long serialVersionUID = -8198557479659701343L;
-
- private boolean readonly;
-
- private String resource;
-
- private String anyType;
-
- private String extAttrName;
-
- @JacksonXmlProperty(localName = "_class", isAttribute = true)
- @JsonProperty("_class")
- @Schema(name = "_class", requiredMode = Schema.RequiredMode.REQUIRED,
- example = "org.apache.syncope.common.lib.to.VirSchemaTO")
- @Override
- public String getDiscriminator() {
- return getClass().getName();
- }
-
- public boolean isReadonly() {
- return readonly;
- }
-
- public void setReadonly(final boolean readonly) {
- this.readonly = readonly;
- }
-
- public String getResource() {
- return resource;
- }
-
- public void setResource(final String resource) {
- this.resource = resource;
- }
-
- public String getAnyType() {
- return anyType;
- }
-
- public void setAnyType(final String anyType) {
- this.anyType = anyType;
- }
-
- public String getExtAttrName() {
- return extAttrName;
- }
-
- public void setExtAttrName(final String extAttrName) {
- this.extAttrName = extAttrName;
- }
-
- @Override
- public int hashCode() {
- return new HashCodeBuilder().
- appendSuper(super.hashCode()).
- append(readonly).
- append(resource).
- append(anyType).
- append(extAttrName).
- build();
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final VirSchemaTO other = (VirSchemaTO) obj;
- return new EqualsBuilder().
- appendSuper(super.equals(obj)).
- append(readonly, other.readonly).
- append(resource, other.resource).
- append(anyType, other.anyType).
- append(extAttrName, other.extAttrName).
- build();
- }
-}
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/types/ClientExceptionType.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/types/ClientExceptionType.java
index fecae97a6d..9ff64d1c31 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/types/ClientExceptionType.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/types/ClientExceptionType.java
@@ -55,7 +55,6 @@ public enum ClientExceptionType {
InvalidPropagationTaskExecReport(Response.Status.BAD_REQUEST),
InvalidPlainSchema(Response.Status.BAD_REQUEST),
InvalidDerSchema(Response.Status.BAD_REQUEST),
- InvalidVirSchema(Response.Status.BAD_REQUEST),
InvalidMapping(Response.Status.BAD_REQUEST),
InvalidMembership(Response.Status.BAD_REQUEST),
InvalidRealm(Response.Status.BAD_REQUEST),
diff --git a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/types/SchemaType.java b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/types/SchemaType.java
index f972600cca..7f3f0031e8 100644
--- a/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/types/SchemaType.java
+++ b/common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/types/SchemaType.java
@@ -21,7 +21,6 @@ package org.apache.syncope.common.lib.types;
import org.apache.syncope.common.lib.to.DerSchemaTO;
import org.apache.syncope.common.lib.to.PlainSchemaTO;
import org.apache.syncope.common.lib.to.SchemaTO;
-import org.apache.syncope.common.lib.to.VirSchemaTO;
public enum SchemaType {
@@ -32,11 +31,7 @@ public enum SchemaType {
/**
* Derived schema calculated based on other attributes.
*/
- DERIVED(DerSchemaTO.class),
- /**
- * Virtual schema for attributes fetched from remote resources only.
- */
- VIRTUAL(VirSchemaTO.class);
+ DERIVED(DerSchemaTO.class);
private final Class<? extends SchemaTO> toClass;
@@ -55,8 +50,6 @@ public enum SchemaType {
schemaType = SchemaType.PLAIN;
} else if (DerSchemaTO.class.equals(toClass)) {
schemaType = SchemaType.DERIVED;
- } else if (VirSchemaTO.class.equals(toClass)) {
- schemaType = SchemaType.VIRTUAL;
} else {
throw new IllegalArgumentException("Unexpected class: " + toClass.getName());
}
diff --git a/common/idrepo/lib/src/test/java/org/apache/syncope/common/lib/SerializationTest.java b/common/idrepo/lib/src/test/java/org/apache/syncope/common/lib/SerializationTest.java
index e804951bf2..8ca429696e 100644
--- a/common/idrepo/lib/src/test/java/org/apache/syncope/common/lib/SerializationTest.java
+++ b/common/idrepo/lib/src/test/java/org/apache/syncope/common/lib/SerializationTest.java
@@ -55,8 +55,8 @@ public abstract class SerializationTest {
objectMapper().writeValue(writer, original);
List<ReportTO> actual = objectMapper().readValue(writer.toString(),
- new TypeReference<>() {
- });
+ new TypeReference<>() {
+ });
assertEquals(original, actual);
}
@@ -125,9 +125,8 @@ public abstract class SerializationTest {
StringWriter writer = new StringWriter();
objectMapper().writeValue(writer, original);
- PagedResult<GroupTO> actual = objectMapper().readValue(writer.toString(),
- new TypeReference<>() {
- });
+ PagedResult<GroupTO> actual = objectMapper().readValue(writer.toString(), new TypeReference<>() {
+ });
assertEquals(original, actual);
}
@@ -136,7 +135,6 @@ public abstract class SerializationTest {
GroupTO group = new GroupTO();
group.setName(UUID.randomUUID().toString());
group.setRealm(SyncopeConstants.ROOT_REALM);
- group.getVirAttrs().add(new Attr.Builder("rvirtualdata").value("rvirtualvalue").build());
group.getADynMembershipConds().put("USER", "username==a*");
ProvisioningResult<GroupTO> original = new ProvisioningResult<>();
@@ -150,9 +148,8 @@ public abstract class SerializationTest {
StringWriter writer = new StringWriter();
objectMapper().writeValue(writer, original);
- ProvisioningResult<GroupTO> actual = objectMapper().readValue(writer.toString(),
- new TypeReference<>() {
- });
+ ProvisioningResult<GroupTO> actual = objectMapper().readValue(writer.toString(), new TypeReference<>() {
+ });
assertEquals(original, actual);
}
}
diff --git a/common/idrepo/rest-api/src/main/java/org/apache/syncope/common/rest/api/beans/AnyQuery.java b/common/idrepo/rest-api/src/main/java/org/apache/syncope/common/rest/api/beans/AnyQuery.java
index 630861a3b7..5d13ea2b8b 100644
--- a/common/idrepo/rest-api/src/main/java/org/apache/syncope/common/rest/api/beans/AnyQuery.java
+++ b/common/idrepo/rest-api/src/main/java/org/apache/syncope/common/rest/api/beans/AnyQuery.java
@@ -99,8 +99,7 @@ public class AnyQuery extends AbstractQuery {
}
@Parameter(name = JAXRSService.PARAM_DETAILS, description = "whether detailed information is to be included, "
- + "if applicable, about virtual attributes, (dynamic) roles, relationships, "
- + "(dynamic) memberships or linked accounts", schema =
+ + "if applicable, about (dynamic) roles, relationships, (dynamic) memberships or linked accounts", schema =
@Schema(implementation = Boolean.class))
public Boolean getDetails() {
return Optional.ofNullable(details).orElse(Boolean.TRUE);
diff --git a/core/idm/logic/src/main/java/org/apache/syncope/core/logic/IdMLogicContext.java b/core/idm/logic/src/main/java/org/apache/syncope/core/logic/IdMLogicContext.java
index 2d07bcf632..944577369d 100644
--- a/core/idm/logic/src/main/java/org/apache/syncope/core/logic/IdMLogicContext.java
+++ b/core/idm/logic/src/main/java/org/apache/syncope/core/logic/IdMLogicContext.java
@@ -28,12 +28,10 @@ import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.RealmSearchDAO;
import org.apache.syncope.core.persistence.api.dao.RemediationDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory;
import org.apache.syncope.core.provisioning.api.ConnIdBundleManager;
import org.apache.syncope.core.provisioning.api.ConnectorManager;
import org.apache.syncope.core.provisioning.api.MappingManager;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.data.ConnInstanceDataBinder;
import org.apache.syncope.core.provisioning.api.data.RemediationDataBinder;
import org.apache.syncope.core.provisioning.api.data.ResourceDataBinder;
@@ -83,9 +81,7 @@ public class IdMLogicContext {
final RealmSearchDAO realmSearchDAO,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final AnySearchDAO anySearchDAO,
- final VirAttrHandler virAttrHandler,
final ConnectorManager connectorManager,
final InboundMatcher inboundMatcher,
final OutboundMatcher outboundMatcher,
@@ -98,9 +94,7 @@ public class IdMLogicContext {
realmSearchDAO,
plainSchemaDAO,
derSchemaDAO,
- virSchemaDAO,
anySearchDAO,
- virAttrHandler,
mappingManager,
inboundMatcher,
outboundMatcher,
@@ -127,8 +121,6 @@ public class IdMLogicContext {
final AnyTypeDAO anyTypeDAO,
final ExternalResourceDAO resourceDAO,
final ConnInstanceDAO connInstanceDAO,
- final VirSchemaDAO virSchemaDAO,
- final VirAttrHandler virAttrHandler,
final ConnInstanceDataBinder connInstanceDataBinder,
final ConnectorManager connectorManager,
final OutboundMatcher outboundMatcher,
@@ -138,8 +130,6 @@ public class IdMLogicContext {
resourceDAO,
anyTypeDAO,
connInstanceDAO,
- virSchemaDAO,
- virAttrHandler,
resourceDataBinder,
connInstanceDataBinder,
outboundMatcher,
diff --git a/core/idm/logic/src/main/java/org/apache/syncope/core/logic/ReconciliationLogic.java b/core/idm/logic/src/main/java/org/apache/syncope/core/logic/ReconciliationLogic.java
index 0961da6c04..40fd1f311e 100644
--- a/core/idm/logic/src/main/java/org/apache/syncope/core/logic/ReconciliationLogic.java
+++ b/core/idm/logic/src/main/java/org/apache/syncope/core/logic/ReconciliationLogic.java
@@ -26,9 +26,7 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.Set;
-import java.util.stream.Stream;
import org.apache.commons.lang3.BooleanUtils;
-import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.commons.lang3.tuple.Triple;
import org.apache.syncope.common.lib.Attr;
@@ -63,7 +61,6 @@ import org.apache.syncope.core.persistence.api.dao.NotFoundException;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.RealmSearchDAO;
import org.apache.syncope.core.persistence.api.dao.UserDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.search.SearchCond;
import org.apache.syncope.core.persistence.api.entity.Any;
import org.apache.syncope.core.persistence.api.entity.AnyType;
@@ -71,13 +68,11 @@ import org.apache.syncope.core.persistence.api.entity.AnyUtils;
import org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory;
import org.apache.syncope.core.persistence.api.entity.ExternalResource;
import org.apache.syncope.core.persistence.api.entity.Realm;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.entity.user.LinkedAccount;
import org.apache.syncope.core.persistence.api.entity.user.User;
import org.apache.syncope.core.persistence.api.utils.RealmUtils;
import org.apache.syncope.core.provisioning.api.ConnectorManager;
import org.apache.syncope.core.provisioning.api.MappingManager;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.job.JobExecutionException;
import org.apache.syncope.core.provisioning.api.pushpull.ConstantReconFilterBuilder;
import org.apache.syncope.core.provisioning.api.pushpull.KeyValueReconFilterBuilder;
@@ -127,12 +122,8 @@ public class ReconciliationLogic extends AbstractTransactionalLogic<EntityTO> {
protected final DerSchemaDAO derSchemaDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
protected final AnySearchDAO anySearchDAO;
- protected final VirAttrHandler virAttrHandler;
-
protected final MappingManager mappingManager;
protected final InboundMatcher inboundMatcher;
@@ -148,9 +139,7 @@ public class ReconciliationLogic extends AbstractTransactionalLogic<EntityTO> {
final RealmSearchDAO realmSearchDAO,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final AnySearchDAO anySearchDAO,
- final VirAttrHandler virAttrHandler,
final MappingManager mappingManager,
final InboundMatcher inboundMatcher,
final OutboundMatcher outboundMatcher,
@@ -162,9 +151,7 @@ public class ReconciliationLogic extends AbstractTransactionalLogic<EntityTO> {
this.realmSearchDAO = realmSearchDAO;
this.plainSchemaDAO = plainSchemaDAO;
this.derSchemaDAO = derSchemaDAO;
- this.virSchemaDAO = virSchemaDAO;
this.anySearchDAO = anySearchDAO;
- this.virAttrHandler = virAttrHandler;
this.mappingManager = mappingManager;
this.inboundMatcher = inboundMatcher;
this.outboundMatcher = outboundMatcher;
@@ -292,8 +279,6 @@ public class ReconciliationLogic extends AbstractTransactionalLogic<EntityTO> {
if (connObjs.size() > 1) {
LOG.warn("Expected single match, found {}", connObjs);
- } else {
- virAttrHandler.setValues(any, connObjs.getFirst());
}
}
@@ -307,11 +292,9 @@ public class ReconciliationLogic extends AbstractTransactionalLogic<EntityTO> {
final Filter filter,
final Set<String> moreAttrsToGet) {
- Stream<Item> mapItems = Stream.concat(
+ OperationOptions options = MappingUtils.buildOperationOptions(
provision.getMapping().getItems().stream(),
- virSchemaDAO.findByResourceAndAnyType(resource.getKey(), anyType.getKey()).stream().
- map(VirSchema::asLinkingMappingItem));
- OperationOptions options = MappingUtils.buildOperationOptions(mapItems, moreAttrsToGet.toArray(String[]::new));
+ moreAttrsToGet.toArray(String[]::new));
SyncDeltaBuilder syncDeltaBuilder = new SyncDeltaBuilder().
setToken(new SyncToken("")).
@@ -378,12 +361,6 @@ public class ReconciliationLogic extends AbstractTransactionalLogic<EntityTO> {
status.setOnResource(ConnObjectUtils.getConnObjectTO(
outboundMatcher.getFIQL(syncDeltaBuilder.getObject(), triple.getMiddle(), triple.getRight()),
syncDeltaBuilder.getObject().getAttributes()));
-
- if (status.getMatchType() == MatchType.ANY && StringUtils.isNotBlank(status.getAnyKey())) {
- virAttrHandler.setValues(
- getAny(triple.getRight(), triple.getLeft().getKind(), status.getAnyKey()),
- syncDeltaBuilder.getObject());
- }
}
return status;
@@ -663,13 +640,6 @@ public class ReconciliationLogic extends AbstractTransactionalLogic<EntityTO> {
LOG.warn("Ignoring invalid derived schema {}", item);
}
});
- spec.getDerAttrs().forEach(item -> {
- if (virSchemaDAO.existsById(item)) {
- columns.add(item);
- } else {
- LOG.warn("Ignoring invalid virtual schema {}", item);
- }
- });
PushTaskTO pushTask = new PushTaskTO();
pushTask.setMatchingRule(spec.getMatchingRule());
diff --git a/core/idm/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java b/core/idm/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java
index 04a730921e..d4a88b91ff 100644
--- a/core/idm/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java
+++ b/core/idm/logic/src/main/java/org/apache/syncope/core/logic/ResourceLogic.java
@@ -23,7 +23,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.Set;
-import java.util.stream.Stream;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.Pair;
@@ -41,18 +40,15 @@ import org.apache.syncope.core.persistence.api.dao.ConnInstanceDAO;
import org.apache.syncope.core.persistence.api.dao.DuplicateException;
import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
import org.apache.syncope.core.persistence.api.dao.NotFoundException;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.Any;
import org.apache.syncope.core.persistence.api.entity.AnyType;
import org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory;
import org.apache.syncope.core.persistence.api.entity.ConnInstance;
import org.apache.syncope.core.persistence.api.entity.ExternalResource;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.utils.RealmUtils;
import org.apache.syncope.core.provisioning.api.Connector;
import org.apache.syncope.core.provisioning.api.ConnectorManager;
import org.apache.syncope.core.provisioning.api.MappingManager;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.data.ConnInstanceDataBinder;
import org.apache.syncope.core.provisioning.api.data.ResourceDataBinder;
import org.apache.syncope.core.provisioning.java.pushpull.OutboundMatcher;
@@ -78,10 +74,6 @@ public class ResourceLogic extends AbstractTransactionalLogic<ResourceTO> {
protected final ConnInstanceDAO connInstanceDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
- protected final VirAttrHandler virAttrHandler;
-
protected final ResourceDataBinder binder;
protected final ConnInstanceDataBinder connInstanceDataBinder;
@@ -98,8 +90,6 @@ public class ResourceLogic extends AbstractTransactionalLogic<ResourceTO> {
final ExternalResourceDAO resourceDAO,
final AnyTypeDAO anyTypeDAO,
final ConnInstanceDAO connInstanceDAO,
- final VirSchemaDAO virSchemaDAO,
- final VirAttrHandler virAttrHandler,
final ResourceDataBinder binder,
final ConnInstanceDataBinder connInstanceDataBinder,
final OutboundMatcher outboundMatcher,
@@ -110,8 +100,6 @@ public class ResourceLogic extends AbstractTransactionalLogic<ResourceTO> {
this.resourceDAO = resourceDAO;
this.anyTypeDAO = anyTypeDAO;
this.connInstanceDAO = connInstanceDAO;
- this.virSchemaDAO = virSchemaDAO;
- this.virAttrHandler = virAttrHandler;
this.binder = binder;
this.connInstanceDataBinder = connInstanceDataBinder;
this.outboundMatcher = outboundMatcher;
@@ -344,8 +332,6 @@ public class ResourceLogic extends AbstractTransactionalLogic<ResourceTO> {
if (connObjs.size() > 1) {
LOG.warn("Expected single match, found {}", connObjs);
- } else {
- virAttrHandler.setValues(any, connObjs.getFirst());
}
return ConnObjectUtils.getConnObjectTO(
@@ -373,7 +359,6 @@ public class ResourceLogic extends AbstractTransactionalLogic<ResourceTO> {
connObjectKeyValue,
triple.getMiddle(),
triple.getRight(),
- Optional.empty(),
Optional.empty()).
map(connectorObject -> ConnObjectUtils.getConnObjectTO(
outboundMatcher.getFIQL(connectorObject, triple.getMiddle(), triple.getRight()),
@@ -416,11 +401,8 @@ public class ResourceLogic extends AbstractTransactionalLogic<ResourceTO> {
resource = triple.getMiddle();
objectClass = new ObjectClass(provision.getObjectClass());
- Stream<Item> mapItems = Stream.concat(
- provision.getMapping().getItems().stream(),
- virSchemaDAO.findByResourceAndAnyType(resource.getKey(), triple.getLeft().getKey()).
- stream().map(VirSchema::asLinkingMappingItem));
- options = MappingUtils.buildOperationOptions(mapItems, moreAttrsToGet.toArray(String[]::new));
+ options = MappingUtils.buildOperationOptions(
+ provision.getMapping().getItems().stream(), moreAttrsToGet.toArray(String[]::new));
}
List<ConnObject> connObjects = new ArrayList<>();
diff --git a/core/idm/logic/src/test/java/org/apache/syncope/core/logic/ResourceLogicTest.java b/core/idm/logic/src/test/java/org/apache/syncope/core/logic/ResourceLogicTest.java
index 7ce347b708..2b691415d7 100644
--- a/core/idm/logic/src/test/java/org/apache/syncope/core/logic/ResourceLogicTest.java
+++ b/core/idm/logic/src/test/java/org/apache/syncope/core/logic/ResourceLogicTest.java
@@ -80,18 +80,18 @@ public class ResourceLogicTest extends AbstractTest {
}
private static ResourceTO buildResourceTO(final String resourceKey) {
- ResourceTO resourceTO = new ResourceTO();
+ ResourceTO resource = new ResourceTO();
- resourceTO.setKey(resourceKey);
- resourceTO.setConnector("5ffbb4ac-a8c3-4b44-b699-11b398a1ba08");
+ resource.setKey(resourceKey);
+ resource.setConnector("5ffbb4ac-a8c3-4b44-b699-11b398a1ba08");
- Provision provisionTO = new Provision();
- provisionTO.setAnyType(AnyTypeKind.USER.name());
- provisionTO.setObjectClass(ObjectClass.ACCOUNT_NAME);
- resourceTO.getProvisions().add(provisionTO);
+ Provision provision = new Provision();
+ provision.setAnyType(AnyTypeKind.USER.name());
+ provision.setObjectClass(ObjectClass.ACCOUNT_NAME);
+ resource.getProvisions().add(provision);
Mapping mapping = new Mapping();
- provisionTO.setMapping(mapping);
+ provision.setMapping(mapping);
Item item = new Item();
item.setExtAttrName("userId");
@@ -112,7 +112,7 @@ public class ResourceLogicTest extends AbstractTest {
item.setPurpose(MappingPurpose.PROPAGATION);
mapping.add(item);
- return resourceTO;
+ return resource;
}
@Autowired
@@ -129,12 +129,12 @@ public class ResourceLogicTest extends AbstractTest {
ResourceTO ws1 = logic.read("ws-target-resource-1");
assertNotNull(ws1);
- Mapping ws1NewUMapping = ws1.getProvision(AnyTypeKind.USER.name()).get().getMapping();
+ Mapping ws1NewUMapping = ws1.getProvision(AnyTypeKind.USER.name()).orElseThrow().getMapping();
// change purpose from NONE to BOTH
ws1NewUMapping.getItems().stream().
filter(itemTO -> "firstname".equals(itemTO.getIntAttrName())).
forEach(itemTO -> itemTO.setPurpose(MappingPurpose.BOTH));
- ws1.getProvision(AnyTypeKind.USER.name()).get().setMapping(ws1NewUMapping);
+ ws1.getProvision(AnyTypeKind.USER.name()).orElseThrow().setMapping(ws1NewUMapping);
ws1 = logic.update(ws1);
assertNotNull(ws1);
@@ -204,17 +204,19 @@ public class ResourceLogicTest extends AbstractTest {
return connector;
});
- ResourceTO resourceTO = logic.create(buildResourceTO("lss"));
- assertNotNull(resourceTO);
- assertNull(resourceTO.getProvision(AnyTypeKind.USER.name()).get().getSyncToken());
+ logic.create(buildResourceTO("lss"));
+ entityManager.flush();
+
+ ResourceTO resource = logic.read("lss");
+ assertNull(resource.getProvision(AnyTypeKind.USER.name()).orElseThrow().getSyncToken());
ResourceLogic resourceLogic = new ResourceLogic(
- resourceDAO, anyTypeDAO, null, null, null, null, null, null, null, connectorManager, null);
+ resourceDAO, anyTypeDAO, null, null, null, null, null, connectorManager, null);
- resourceLogic.setLatestSyncToken(resourceTO.getKey(), AnyTypeKind.USER.name());
+ resourceLogic.setLatestSyncToken(resource.getKey(), AnyTypeKind.USER.name());
entityManager.flush();
- resourceTO = logic.read(resourceTO.getKey());
- assertNotNull(resourceTO.getProvision(AnyTypeKind.USER.name()).get().getSyncToken());
+ resource = logic.read(resource.getKey());
+ assertNotNull(resource.getProvision(AnyTypeKind.USER.name()).orElseThrow().getSyncToken());
}
}
diff --git a/core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/IdRepoLogicContext.java b/core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/IdRepoLogicContext.java
index 7e2893e1bf..685174bbe6 100644
--- a/core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/IdRepoLogicContext.java
+++ b/core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/IdRepoLogicContext.java
@@ -58,7 +58,6 @@ import org.apache.syncope.core.persistence.api.dao.SecurityQuestionDAO;
import org.apache.syncope.core.persistence.api.dao.TaskDAO;
import org.apache.syncope.core.persistence.api.dao.TaskExecDAO;
import org.apache.syncope.core.persistence.api.dao.UserDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.EntityFactory;
import org.apache.syncope.core.persistence.api.entity.policy.PolicyUtilsFactory;
import org.apache.syncope.core.persistence.api.entity.task.TaskUtilsFactory;
@@ -418,12 +417,11 @@ public class IdRepoLogicContext {
public SchemaLogic schemaLogic(
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final AnyTypeClassDAO anyTypeClassDAO,
final ImplementationDAO implementationDAO,
final SchemaDataBinder binder) {
- return new SchemaLogic(plainSchemaDAO, derSchemaDAO, virSchemaDAO, anyTypeClassDAO, implementationDAO, binder);
+ return new SchemaLogic(plainSchemaDAO, derSchemaDAO, anyTypeClassDAO, implementationDAO, binder);
}
@ConditionalOnMissingBean
diff --git a/core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/SchemaLogic.java b/core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/SchemaLogic.java
index 569cdcab67..db052c13e5 100644
--- a/core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/SchemaLogic.java
+++ b/core/idrepo/logic/src/main/java/org/apache/syncope/core/logic/SchemaLogic.java
@@ -32,7 +32,6 @@ import org.apache.syncope.common.lib.to.AttributableTO;
import org.apache.syncope.common.lib.to.DerSchemaTO;
import org.apache.syncope.common.lib.to.PlainSchemaTO;
import org.apache.syncope.common.lib.to.SchemaTO;
-import org.apache.syncope.common.lib.to.VirSchemaTO;
import org.apache.syncope.common.lib.types.AnyTypeKind;
import org.apache.syncope.common.lib.types.AttrSchemaType;
import org.apache.syncope.common.lib.types.ClientExceptionType;
@@ -45,12 +44,10 @@ import org.apache.syncope.core.persistence.api.dao.DuplicateException;
import org.apache.syncope.core.persistence.api.dao.ImplementationDAO;
import org.apache.syncope.core.persistence.api.dao.NotFoundException;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
import org.apache.syncope.core.persistence.api.entity.DerSchema;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
import org.apache.syncope.core.persistence.api.entity.Schema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.provisioning.api.data.SchemaDataBinder;
import org.apache.syncope.core.spring.implementation.ImplementationManager;
import org.springframework.security.access.prepost.PreAuthorize;
@@ -62,8 +59,6 @@ public class SchemaLogic extends AbstractTransactionalLogic<SchemaTO> {
protected final DerSchemaDAO derSchemaDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
protected final AnyTypeClassDAO anyTypeClassDAO;
protected final ImplementationDAO implementationDAO;
@@ -75,14 +70,12 @@ public class SchemaLogic extends AbstractTransactionalLogic<SchemaTO> {
public SchemaLogic(
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final AnyTypeClassDAO anyTypeClassDAO,
final ImplementationDAO implementationDAO,
final SchemaDataBinder binder) {
this.plainSchemaDAO = plainSchemaDAO;
this.derSchemaDAO = derSchemaDAO;
- this.virSchemaDAO = virSchemaDAO;
this.anyTypeClassDAO = anyTypeClassDAO;
this.implementationDAO = implementationDAO;
this.binder = binder;
@@ -93,10 +86,6 @@ public class SchemaLogic extends AbstractTransactionalLogic<SchemaTO> {
Optional<S> result = Optional.empty();
switch (schemaType) {
- case VIRTUAL:
- result = (Optional<S>) virSchemaDAO.findById(name);
- break;
-
case DERIVED:
result = (Optional<S>) derSchemaDAO.findById(name);
break;
@@ -126,10 +115,6 @@ public class SchemaLogic extends AbstractTransactionalLogic<SchemaTO> {
T created;
switch (schemaType) {
- case VIRTUAL:
- created = (T) binder.getVirSchemaTO(binder.create((VirSchemaTO) schemaTO).getKey());
- break;
-
case DERIVED:
created = (T) binder.getDerSchemaTO(binder.create((DerSchemaTO) schemaTO).getKey());
break;
@@ -147,10 +132,6 @@ public class SchemaLogic extends AbstractTransactionalLogic<SchemaTO> {
orElseThrow(() -> new NotFoundException(schemaType + ": " + schemaKey));
switch (schemaType) {
- case VIRTUAL:
- virSchemaDAO.deleteById(schemaKey);
- break;
-
case DERIVED:
derSchemaDAO.deleteById(schemaKey);
break;
@@ -178,16 +159,6 @@ public class SchemaLogic extends AbstractTransactionalLogic<SchemaTO> {
List<T> result;
switch (schemaType) {
- case VIRTUAL:
- List<? extends VirSchema> virSchemas = classes.isEmpty()
- ? keyword == null
- ? virSchemaDAO.findAll()
- : virSchemaDAO.findByIdLike(keyword)
- : virSchemaDAO.findByAnyTypeClasses(classes);
- result = virSchemas.stream().map(schema -> (T) binder.getVirSchemaTO(schema.getKey())).
- toList();
- break;
-
case DERIVED:
List<? extends DerSchema> derSchemas = classes.isEmpty()
? keyword == null
@@ -217,10 +188,6 @@ public class SchemaLogic extends AbstractTransactionalLogic<SchemaTO> {
public <T extends SchemaTO> T read(final SchemaType schemaType, final String schemaKey) {
T read;
switch (schemaType) {
- case VIRTUAL:
- read = (T) binder.getVirSchemaTO(schemaKey);
- break;
-
case DERIVED:
read = (T) binder.getDerSchemaTO(schemaKey);
break;
@@ -239,9 +206,6 @@ public class SchemaLogic extends AbstractTransactionalLogic<SchemaTO> {
orElseThrow(() -> new NotFoundException(schemaType + ": " + schemaTO.getKey()));
switch (schemaType) {
- case VIRTUAL ->
- binder.update((VirSchemaTO) schemaTO, (VirSchema) schema);
-
case DERIVED ->
binder.update((DerSchemaTO) schemaTO, (DerSchema) schema);
@@ -297,12 +261,7 @@ public class SchemaLogic extends AbstractTransactionalLogic<SchemaTO> {
Optional<? extends Schema> schema = plainSchemaDAO.findById(key);
if (schema.isEmpty()) {
schema = derSchemaDAO.findById(key);
- if (schema.isEmpty()) {
- schema = virSchemaDAO.findById(key);
- if (schema.isPresent()) {
- result = binder.getVirSchemaTO(key);
- }
- } else {
+ if (schema.isPresent()) {
result = binder.getDerSchemaTO(key);
}
} else {
diff --git a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractAnyService.java b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractAnyService.java
index 44f38f43f6..2c29346672 100644
--- a/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractAnyService.java
+++ b/core/idrepo/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractAnyService.java
@@ -80,10 +80,6 @@ public abstract class AbstractAnyService<TO extends AnyTO, CR extends AnyCR, UR
result = any.getDerAttrs();
break;
- case VIRTUAL:
- result = any.getVirAttrs();
- break;
-
case PLAIN:
default:
result = any.getPlainAttrs();
@@ -101,10 +97,6 @@ public abstract class AbstractAnyService<TO extends AnyTO, CR extends AnyCR, UR
result = any.getDerAttr(schema);
break;
- case VIRTUAL:
- result = any.getVirAttr(schema);
- break;
-
case PLAIN:
default:
result = any.getPlainAttr(schema);
@@ -165,10 +157,6 @@ public abstract class AbstractAnyService<TO extends AnyTO, CR extends AnyCR, UR
UR updateReq = newUpdateReq(key);
switch (schemaType) {
- case VIRTUAL:
- updateReq.getVirAttrs().add(attrTO);
- break;
-
case PLAIN:
updateReq.getPlainAttrs().add(new AttrPatch.Builder(attrTO).operation(operation).build());
break;
diff --git a/core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/dao/VirSchemaDAO.java b/core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/dao/VirSchemaDAO.java
deleted file mode 100644
index 0923a8e575..0000000000
--- a/core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/dao/VirSchemaDAO.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.api.dao;
-
-import java.util.List;
-import org.apache.syncope.core.persistence.api.entity.ExternalResource;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-
-public interface VirSchemaDAO extends SchemaDAO<VirSchema> {
-
- List<? extends VirSchema> findByResource(ExternalResource resource);
-
- List<? extends VirSchema> findByResourceAndAnyType(String resource, String anyType);
-}
diff --git a/core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/AnyTypeClass.java b/core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/AnyTypeClass.java
index c7906df050..4ae65a363e 100644
--- a/core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/AnyTypeClass.java
+++ b/core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/AnyTypeClass.java
@@ -29,8 +29,4 @@ public interface AnyTypeClass extends ProvidedKeyEntity {
boolean add(DerSchema schema);
List<? extends DerSchema> getDerSchemas();
-
- boolean add(VirSchema schema);
-
- List<? extends VirSchema> getVirSchemas();
}
diff --git a/core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/VirSchema.java b/core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/VirSchema.java
deleted file mode 100644
index a16c994778..0000000000
--- a/core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/VirSchema.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.api.entity;
-
-import org.apache.syncope.common.lib.to.Item;
-import org.apache.syncope.common.lib.types.MappingPurpose;
-
-public interface VirSchema extends Schema {
-
- void setReadonly(boolean readonly);
-
- ExternalResource getResource();
-
- void setResource(ExternalResource resource);
-
- AnyType getAnyType();
-
- void setAnyType(AnyType anyType);
-
- String getExtAttrName();
-
- void setExtAttrName(String extAttrName);
-
- default Item asLinkingMappingItem() {
- Item item = new Item();
- item.setExtAttrName(getExtAttrName());
- item.setIntAttrName(getKey());
- item.setMandatoryCondition(getMandatoryCondition());
- item.setPurpose(isReadonly() ? MappingPurpose.PULL : MappingPurpose.BOTH);
- item.setConnObjectKey(false);
- item.setPassword(false);
- return item;
- }
-}
diff --git a/core/persistence-jpa-upgrader/src/main/java/org/apache/syncope/core/persistence/jpa/upgrade/GenerateUpgradeSQL.java b/core/persistence-jpa-upgrader/src/main/java/org/apache/syncope/core/persistence/jpa/upgrade/GenerateUpgradeSQL.java
index 7e6bc24e60..0f9f7a7a64 100644
--- a/core/persistence-jpa-upgrader/src/main/java/org/apache/syncope/core/persistence/jpa/upgrade/GenerateUpgradeSQL.java
+++ b/core/persistence-jpa-upgrader/src/main/java/org/apache/syncope/core/persistence/jpa/upgrade/GenerateUpgradeSQL.java
@@ -19,6 +19,7 @@
package org.apache.syncope.core.persistence.jpa.upgrade;
import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.json.JsonMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import java.io.IOException;
@@ -98,20 +99,36 @@ public class GenerateUpgradeSQL {
return result.toString();
}
- private String resources() {
+ private String resources() throws JsonProcessingException {
StringBuilder result = new StringBuilder();
result.append("ALTER TABLE ExternalResource DROP COLUMN overridecapabilities;\n");
- List<Map<String, Object>> accountPolicyResources = jdbcTemplate.queryForList(
- "SELECT accountpolicy_id, resource_id FROM AccountPolicy_ExternalResource");
+ List<Map<String, Object>> resources = jdbcTemplate.queryForList(
+ "SELECT id, provisions FROM ExternalResource WHERE provisions IS NOT NULL");
+ for (Map<String, Object> resource : resources) {
+ JsonNode provisions = MAPPER.readTree(resource.get("provisions").toString());
+ for (JsonNode provision : provisions) {
+ if (provision.has("virSchemas")) {
+ ((ObjectNode) provision).remove("virSchemas");
+ }
+ if (provision.has("mapping") && provision.get("mapping").has("linkingItems")) {
+ ((ObjectNode) provision.get("mapping")).remove("linkingItems");
+ }
+ }
- accountPolicyResources.forEach(acp -> {
result.append(String.format(
- "UPDATE ExternalResource SET accountPolicy_id='%s' WHERE id='%s';\n",
- acp.get("accountpolicy_id").toString(),
- acp.get("resource_id").toString()));
- });
+ "UPDATE ExternalResource SET provisions='%s' WHERE id='%s';\n",
+ MAPPER.writeValueAsString(provisions).replace("'", "'"),
+ resource.get("id").toString()));
+ }
+
+ List<Map<String, Object>> accountPolicyResources = jdbcTemplate.queryForList(
+ "SELECT accountpolicy_id, resource_id FROM AccountPolicy_ExternalResource");
+ accountPolicyResources.forEach(acp -> result.append(String.format(
+ "UPDATE ExternalResource SET accountPolicy_id='%s' WHERE id='%s';\n",
+ acp.get("accountpolicy_id").toString(),
+ acp.get("resource_id").toString())));
result.append("DROP TABLE AccountPolicy_ExternalResource;\n");
diff --git a/core/persistence-jpa-upgrader/src/main/resources/schema.xml b/core/persistence-jpa-upgrader/src/main/resources/schema.xml
index c980541282..6c16bbee01 100644
--- a/core/persistence-jpa-upgrader/src/main/resources/schema.xml
+++ b/core/persistence-jpa-upgrader/src/main/resources/schema.xml
@@ -96,10 +96,10 @@ under the License.
<pk column="id"/>
<column name="id" type="varchar" not-null="true" size="36"/>
<column name="anyType_filter" type="clob" size="-1"/>
- <column name="ANYTYPE_ID" type="varchar" size="255"/>
<column name="NOTIFICATION_ID" type="varchar" size="36"/>
- <fk to-table="AnyType" column="ANYTYPE_ID"/>
+ <column name="ANYTYPE_ID" type="varchar" size="255"/>
<fk to-table="Notification" column="NOTIFICATION_ID"/>
+ <fk to-table="AnyType" column="ANYTYPE_ID"/>
<index name="I_NYABOUT_ANYTYPE" column="ANYTYPE_ID"/>
<index name="I_NYABOUT_NOTIFICATION" column="NOTIFICATION_ID"/>
<unique name="U_NYABOUT_NOTIFICATION_ID">
@@ -280,6 +280,7 @@ under the License.
<column name="id" type="varchar" not-null="true" size="36"/>
<column name="clientAppId" type="bigint" not-null="true"/>
<column name="description" type="varchar" size="255"/>
+ <column name="evaluationOrder" type="integer"/>
<column name="informationUrl" type="varchar" size="255"/>
<column name="logo" type="varchar" size="255"/>
<column name="logoutType" type="varchar" size="20"/>
@@ -547,6 +548,7 @@ under the License.
<column name="syncStatus" type="bit"/>
<column name="unmatchingRule" type="varchar" size="20"/>
<column name="remediation" type="bit"/>
+ <column name="delaySecondsAcrossInvocations" type="integer"/>
<column name="JOBDELEGATE_ID" type="varchar" size="255"/>
<column name="RESOURCE_ID" type="varchar" size="255"/>
<column name="DESTINATIONREALM_ID" type="varchar" size="36"/>
@@ -704,6 +706,7 @@ under the License.
<column name="id" type="varchar" not-null="true" size="36"/>
<column name="clientAppId" type="bigint" not-null="true"/>
<column name="description" type="varchar" size="255"/>
+ <column name="evaluationOrder" type="integer"/>
<column name="informationUrl" type="varchar" size="255"/>
<column name="logo" type="varchar" size="255"/>
<column name="logoutType" type="varchar" size="20"/>
@@ -712,10 +715,16 @@ under the License.
<column name="properties" type="clob" size="-1"/>
<column name="theme" type="varchar" size="255"/>
<column name="usernameAttributeProviderConf" type="clob" size="-1"/>
+ <column name="applicationType" type="varchar" size="20"/>
<column name="bypassApprovalPrompt" type="bit"/>
<column name="clientId" type="varchar" not-null="true" size="255"/>
<column name="clientSecret" type="varchar" size="255"/>
+ <column name="encryptIdToken" type="bit"/>
<column name="generateRefreshToken" type="bit"/>
+ <column name="idTokenEncryptionAlg" type="varchar" size="20"/>
+ <column name="idTokenEncryptionEncoding" type="varchar" size="20"/>
+ <column name="idTokenIssuer" type="varchar" size="255"/>
+ <column name="idTokenSigningAlg" type="varchar" size="20"/>
<column name="jwks" type="clob" size="-1"/>
<column name="jwksUri" type="varchar" size="255"/>
<column name="jwtAccessToken" type="bit"/>
@@ -727,6 +736,9 @@ under the License.
<column name="supportedGrantTypes" type="clob" size="-1"/>
<column name="supportedResponseTypes" type="clob" size="-1"/>
<column name="tokenEndpointAuthenticationMethod" type="varchar" size="20"/>
+ <column name="userInfoEncryptedResponseAlg" type="varchar" size="20"/>
+ <column name="userInfoEncryptedResponseEncoding" type="varchar" size="20"/>
+ <column name="userInfoSigningAlg" type="varchar" size="20"/>
<column name="ACCESSPOLICY_ID" type="varchar" size="36"/>
<column name="ATTRRELEASEPOLICY_ID" type="varchar" size="36"/>
<column name="AUTHPOLICY_ID" type="varchar" size="36"/>
@@ -960,8 +972,10 @@ under the License.
<column name="id" type="varchar" not-null="true" size="36"/>
<column name="fullPath" type="varchar" not-null="true" size="255"/>
<column name="name" type="varchar" size="255"/>
+ <column name="plainAttrs" type="varchar" size="255"/>
<column name="ACCESSPOLICY_ID" type="varchar" size="36"/>
<column name="ACCOUNTPOLICY_ID" type="varchar" size="36"/>
+ <column name="ANYTYPECLASS_ID" type="varchar" size="255"/>
<column name="ATTRRELEASEPOLICY_ID" type="varchar" size="36"/>
<column name="AUTHPOLICY_ID" type="varchar" size="36"/>
<column name="PARENT_ID" type="varchar" size="36"/>
@@ -969,6 +983,7 @@ under the License.
<column name="TICKETEXPIRATIONPOLICY_ID" type="varchar" size="36"/>
<fk to-table="AccessPolicy" column="ACCESSPOLICY_ID"/>
<fk to-table="AccountPolicy" column="ACCOUNTPOLICY_ID"/>
+ <fk to-table="AnyTypeClass" column="ANYTYPECLASS_ID"/>
<fk to-table="AttrReleasePolicy" column="ATTRRELEASEPOLICY_ID"/>
<fk to-table="AuthPolicy" column="AUTHPOLICY_ID"/>
<fk to-table="Realm" column="PARENT_ID"/>
@@ -976,6 +991,7 @@ under the License.
<fk to-table="TicketExpirationPolicy" column="TICKETEXPIRATIONPOLICY_ID"/>
<index name="I_REALM_ACCESSPOLICY" column="ACCESSPOLICY_ID"/>
<index name="I_REALM_ACCOUNTPOLICY" column="ACCOUNTPOLICY_ID"/>
+ <index name="I_REALM_ANYTYPECLASS" column="ANYTYPECLASS_ID"/>
<index name="I_REALM_ATTRRELEASEPOLICY" column="ATTRRELEASEPOLICY_ID"/>
<index name="I_REALM_AUTHPOLICY" column="AUTHPOLICY_ID"/>
<index name="I_REALM_PARENT" column="PARENT_ID"/>
@@ -1077,6 +1093,7 @@ under the License.
<column name="id" type="varchar" not-null="true" size="36"/>
<column name="clientAppId" type="bigint" not-null="true"/>
<column name="description" type="varchar" size="255"/>
+ <column name="evaluationOrder" type="integer"/>
<column name="informationUrl" type="varchar" size="255"/>
<column name="logo" type="varchar" size="255"/>
<column name="logoutType" type="varchar" size="20"/>
@@ -1168,9 +1185,9 @@ under the License.
<column name="TASK_ID" type="varchar" size="36"/>
<fk to-table="SchedTask" column="TASK_ID"/>
<fk to-table="PullTask" column="TASK_ID"/>
- <fk to-table="PushTask" column="TASK_ID"/>
<fk to-table="MacroTask" column="TASK_ID"/>
<fk to-table="LiveSyncTask" column="TASK_ID"/>
+ <fk to-table="PushTask" column="TASK_ID"/>
<index name="I_SCHDKXC_TASK" column="TASK_ID"/>
</table>
<table name="SecurityQuestion">
@@ -1408,22 +1425,6 @@ under the License.
<on column="anyObject_id"/>
</unique>
</table>
- <table name="VirSchema">
- <pk column="id"/>
- <column name="id" type="varchar" not-null="true" size="255"/>
- <column name="extAttrName" type="varchar" size="255"/>
- <column name="readonly" type="bit"/>
- <column name="ANYTYPECLASS_ID" type="varchar" size="255"/>
- <column name="ANYTYPE_ID" type="varchar" size="255"/>
- <column name="RESOURCE_ID" type="varchar" size="255"/>
- <fk to-table="SyncopeSchema" column="id"/>
- <fk to-table="AnyTypeClass" column="ANYTYPECLASS_ID"/>
- <fk to-table="AnyType" column="ANYTYPE_ID"/>
- <fk to-table="ExternalResource" column="RESOURCE_ID"/>
- <index name="I_VIRSCHM_ANYTYPE" column="ANYTYPE_ID"/>
- <index name="I_VIRSCHM_ANYTYPECLASS" column="ANYTYPECLASS_ID"/>
- <index name="I_VIRSCHM_RESOURCE" column="RESOURCE_ID"/>
- </table>
<table name="WAConfigEntry">
<pk column="id"/>
<column name="id" type="varchar" not-null="true" size="255"/>
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/PersistenceContext.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/PersistenceContext.java
index be7dce4965..b44799e0de 100644
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/PersistenceContext.java
+++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/PersistenceContext.java
@@ -75,7 +75,6 @@ import org.apache.syncope.core.persistence.api.dao.SecurityQuestionDAO;
import org.apache.syncope.core.persistence.api.dao.TaskDAO;
import org.apache.syncope.core.persistence.api.dao.TaskExecDAO;
import org.apache.syncope.core.persistence.api.dao.UserDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.WAConfigDAO;
import org.apache.syncope.core.persistence.api.dao.keymaster.ConfParamDAO;
import org.apache.syncope.core.persistence.api.dao.keymaster.DomainDAO;
@@ -183,9 +182,6 @@ import org.apache.syncope.core.persistence.jpa.dao.repo.SecurityQuestionRepoExtI
import org.apache.syncope.core.persistence.jpa.dao.repo.UserRepo;
import org.apache.syncope.core.persistence.jpa.dao.repo.UserRepoExt;
import org.apache.syncope.core.persistence.jpa.dao.repo.UserRepoExtImpl;
-import org.apache.syncope.core.persistence.jpa.dao.repo.VirSchemaRepo;
-import org.apache.syncope.core.persistence.jpa.dao.repo.VirSchemaRepoExt;
-import org.apache.syncope.core.persistence.jpa.dao.repo.VirSchemaRepoExtImpl;
import org.apache.syncope.core.persistence.jpa.dao.repo.WAConfigRepo;
import org.apache.syncope.core.persistence.jpa.entity.task.JPATaskUtilsFactory;
import org.apache.syncope.core.persistence.jpa.spring.CommonEntityManagerFactoryConf;
@@ -436,7 +432,6 @@ public class PersistenceContext {
final AnyTypeDAO anyTypeDAO,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final @Lazy GroupDAO groupDAO,
final ExternalResourceDAO resourceDAO,
final EntityManager entityManager) {
@@ -445,7 +440,6 @@ public class PersistenceContext {
anyTypeDAO,
plainSchemaDAO,
derSchemaDAO,
- virSchemaDAO,
groupDAO,
resourceDAO,
entityManager);
@@ -863,7 +857,6 @@ public class PersistenceContext {
final AnyObjectDAO anyObjectDAO,
final UserDAO userDAO,
final GroupDAO groupDAO,
- final VirSchemaDAO virSchemaDAO,
final RealmDAO realmDAO,
final EntityManager entityManager) {
@@ -872,7 +865,6 @@ public class PersistenceContext {
anyObjectDAO,
userDAO,
groupDAO,
- virSchemaDAO,
realmDAO,
entityManager);
}
@@ -1025,24 +1017,6 @@ public class PersistenceContext {
return jpaRepositoryFactory.getRepository(UserRepo.class, userRepoExt);
}
- @ConditionalOnMissingBean
- @Bean
- public VirSchemaRepoExt virSchemaRepoExt(
- final @Lazy ExternalResourceDAO resourceDAO,
- final EntityManager entityManager) {
-
- return new VirSchemaRepoExtImpl(resourceDAO, entityManager);
- }
-
- @ConditionalOnMissingBean
- @Bean
- public VirSchemaDAO virSchemaDAO(
- final JpaRepositoryFactory jpaRepositoryFactory,
- final VirSchemaRepoExt virSchemaRepoExt) {
-
- return jpaRepositoryFactory.getRepository(VirSchemaRepo.class, virSchemaRepoExt);
- }
-
@ConditionalOnMissingBean
@Bean
public WAConfigDAO waConfigDAO(final JpaRepositoryFactory jpaRepositoryFactory) {
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/AbstractAnyRepoExt.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/AbstractAnyRepoExt.java
index b39c076079..bd2e29ff3a 100644
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/AbstractAnyRepoExt.java
+++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/AbstractAnyRepoExt.java
@@ -43,7 +43,6 @@ import org.apache.syncope.core.persistence.api.entity.DerSchema;
import org.apache.syncope.core.persistence.api.entity.DynRealm;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
import org.apache.syncope.core.persistence.api.entity.Schema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject;
import org.apache.syncope.core.persistence.api.entity.group.Group;
import org.apache.syncope.core.persistence.api.entity.user.User;
@@ -163,8 +162,6 @@ public abstract class AbstractAnyRepoExt<A extends Any> implements AnyRepoExt<A>
result.getForSelf().addAll((Collection<? extends S>) typeClass.getPlainSchemas());
} else if (reference.equals(DerSchema.class)) {
result.getForSelf().addAll((Collection<? extends S>) typeClass.getDerSchemas());
- } else if (reference.equals(VirSchema.class)) {
- result.getForSelf().addAll((Collection<? extends S>) typeClass.getVirSchemas());
}
});
@@ -191,9 +188,6 @@ public abstract class AbstractAnyRepoExt<A extends Any> implements AnyRepoExt<A>
} else if (reference.equals(DerSchema.class)) {
result.getForMemberships().get(entry.getKey()).
addAll((Collection<? extends S>) typeClass.getDerSchemas());
- } else if (reference.equals(VirSchema.class)) {
- result.getForMemberships().get(entry.getKey()).
- addAll((Collection<? extends S>) typeClass.getVirSchemas());
}
}));
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/AnyTypeClassRepoExtImpl.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/AnyTypeClassRepoExtImpl.java
index 60910fda2a..08550b2b63 100644
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/AnyTypeClassRepoExtImpl.java
+++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/AnyTypeClassRepoExtImpl.java
@@ -25,12 +25,10 @@ import org.apache.syncope.core.persistence.api.dao.DerSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
import org.apache.syncope.core.persistence.api.dao.GroupDAO;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.AnyType;
import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
import org.apache.syncope.core.persistence.api.entity.DerSchema;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.entity.group.TypeExtension;
import org.apache.syncope.core.persistence.jpa.entity.JPAAnyTypeClass;
@@ -42,8 +40,6 @@ public class AnyTypeClassRepoExtImpl implements AnyTypeClassRepoExt {
protected final DerSchemaDAO derSchemaDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
protected final GroupDAO groupDAO;
protected final ExternalResourceDAO resourceDAO;
@@ -54,7 +50,6 @@ public class AnyTypeClassRepoExtImpl implements AnyTypeClassRepoExt {
final AnyTypeDAO anyTypeDAO,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final GroupDAO groupDAO,
final ExternalResourceDAO resourceDAO,
final EntityManager entityManager) {
@@ -62,7 +57,6 @@ public class AnyTypeClassRepoExtImpl implements AnyTypeClassRepoExt {
this.anyTypeDAO = anyTypeDAO;
this.plainSchemaDAO = plainSchemaDAO;
this.derSchemaDAO = derSchemaDAO;
- this.virSchemaDAO = virSchemaDAO;
this.groupDAO = groupDAO;
this.resourceDAO = resourceDAO;
this.entityManager = entityManager;
@@ -78,9 +72,6 @@ public class AnyTypeClassRepoExtImpl implements AnyTypeClassRepoExt {
for (DerSchema schema : merge.getDerSchemas()) {
schema.setAnyTypeClass(merge);
}
- for (VirSchema schema : merge.getVirSchemas()) {
- schema.setAnyTypeClass(merge);
- }
return merge;
}
@@ -98,9 +89,6 @@ public class AnyTypeClassRepoExtImpl implements AnyTypeClassRepoExt {
for (DerSchema schema : derSchemaDAO.findByAnyTypeClasses(List.of(anyTypeClass))) {
schema.setAnyTypeClass(null);
}
- for (VirSchema schema : virSchemaDAO.findByAnyTypeClasses(List.of(anyTypeClass))) {
- schema.setAnyTypeClass(null);
- }
for (AnyType type : anyTypeDAO.findByClassesContaining(anyTypeClass)) {
type.getClasses().remove(anyTypeClass);
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/ExternalResourceRepoExtImpl.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/ExternalResourceRepoExtImpl.java
index 184087be01..419f1311ec 100644
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/ExternalResourceRepoExtImpl.java
+++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/ExternalResourceRepoExtImpl.java
@@ -31,7 +31,6 @@ import org.apache.syncope.core.persistence.api.dao.GroupDAO;
import org.apache.syncope.core.persistence.api.dao.RealmDAO;
import org.apache.syncope.core.persistence.api.dao.TaskDAO;
import org.apache.syncope.core.persistence.api.dao.UserDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.ExternalResource;
import org.apache.syncope.core.persistence.api.entity.policy.AccountPolicy;
import org.apache.syncope.core.persistence.api.entity.policy.InboundPolicy;
@@ -55,8 +54,6 @@ public class ExternalResourceRepoExtImpl implements ExternalResourceRepoExt {
protected final GroupDAO groupDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
protected final RealmDAO realmDAO;
protected final EntityManager entityManager;
@@ -66,7 +63,6 @@ public class ExternalResourceRepoExtImpl implements ExternalResourceRepoExt {
final AnyObjectDAO anyObjectDAO,
final UserDAO userDAO,
final GroupDAO groupDAO,
- final VirSchemaDAO virSchemaDAO,
final RealmDAO realmDAO,
final EntityManager entityManager) {
@@ -74,7 +70,6 @@ public class ExternalResourceRepoExtImpl implements ExternalResourceRepoExt {
this.anyObjectDAO = anyObjectDAO;
this.userDAO = userDAO;
this.groupDAO = groupDAO;
- this.virSchemaDAO = virSchemaDAO;
this.realmDAO = realmDAO;
this.entityManager = entityManager;
}
@@ -189,8 +184,6 @@ public class ExternalResourceRepoExtImpl implements ExternalResourceRepoExt {
groupDAO.findByResourcesContaining(resource).
forEach(group -> group.getResources().remove(resource));
- virSchemaDAO.findByResource(resource).forEach(virSchemaDAO::delete);
-
if (resource.getConnector() != null
&& resource.getConnector().getResources() != null
&& !resource.getConnector().getResources().isEmpty()) {
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/VirSchemaRepo.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/VirSchemaRepo.java
deleted file mode 100644
index 0e7705b642..0000000000
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/VirSchemaRepo.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.jpa.dao.repo;
-
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
-import org.apache.syncope.core.persistence.jpa.entity.JPAVirSchema;
-import org.springframework.data.repository.ListCrudRepository;
-
-public interface VirSchemaRepo
- extends ListCrudRepository<JPAVirSchema, String>, VirSchemaRepoExt, VirSchemaDAO {
-
-}
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/VirSchemaRepoExt.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/VirSchemaRepoExt.java
deleted file mode 100644
index 067adff77d..0000000000
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/VirSchemaRepoExt.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.jpa.dao.repo;
-
-import java.util.Collection;
-import java.util.List;
-import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-
-public interface VirSchemaRepoExt {
-
- List<? extends VirSchema> findByAnyTypeClasses(Collection<AnyTypeClass> anyTypeClasses);
-
- List<VirSchema> findByResourceAndAnyType(String resource, String anyType);
-
- VirSchema save(VirSchema schema);
-
- void deleteById(String key);
-
- void delete(VirSchema schema);
-}
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/VirSchemaRepoExtImpl.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/VirSchemaRepoExtImpl.java
deleted file mode 100644
index a4e20890e2..0000000000
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/VirSchemaRepoExtImpl.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.jpa.dao.repo;
-
-import jakarta.persistence.EntityManager;
-import jakarta.persistence.Query;
-import java.util.Collection;
-import java.util.List;
-import java.util.Objects;
-import java.util.Optional;
-import java.util.stream.Collectors;
-import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
-import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-import org.apache.syncope.core.persistence.jpa.entity.JPAVirSchema;
-
-public class VirSchemaRepoExtImpl extends AbstractSchemaRepoExt implements VirSchemaRepoExt {
-
- protected final ExternalResourceDAO resourceDAO;
-
- public VirSchemaRepoExtImpl(final ExternalResourceDAO resourceDAO, final EntityManager entityManager) {
- super(entityManager);
- this.resourceDAO = resourceDAO;
- }
-
- @Override
- public List<? extends VirSchema> findByAnyTypeClasses(final Collection<AnyTypeClass> anyTypeClasses) {
- return findByAnyTypeClasses(anyTypeClasses, JPAVirSchema.class.getSimpleName(), VirSchema.class);
- }
-
- @Override
- public List<VirSchema> findByResourceAndAnyType(final String resource, final String anyType) {
- Query query = entityManager.createNativeQuery(
- "SELECT id FROM " + JPAVirSchema.TABLE + " e WHERE e.resource_id=? AND e.anyType_id=?");
- query.setParameter(1, resource);
- query.setParameter(2, anyType);
-
- @SuppressWarnings("unchecked")
- List<Object> results = query.getResultList();
- return results.stream().
- map(row -> entityManager.find(JPAVirSchema.class, row.toString())).
- filter(Objects::nonNull).
- collect(Collectors.toList());
- }
-
- @Override
- public VirSchema save(final VirSchema schema) {
- ((JPAVirSchema) schema).map2json();
- VirSchema merged = entityManager.merge(schema);
- ((JPAVirSchema) merged).postSave();
- return merged;
-
- }
-
- @Override
- public void deleteById(final String key) {
- Optional.ofNullable(entityManager.find(JPAVirSchema.class, key)).ifPresent(this::delete);
- }
-
- @Override
- public void delete(final VirSchema schema) {
- resourceDAO.deleteMapping(schema.getKey());
-
- Optional.ofNullable(schema.getAnyTypeClass()).
- ifPresent(anyTypeClass -> anyTypeClass.getVirSchemas().remove(schema));
-
- entityManager.remove(schema);
- }
-}
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractEntityFactory.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractEntityFactory.java
index 2a293bd46a..a91b28266a 100644
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractEntityFactory.java
+++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/AbstractEntityFactory.java
@@ -47,7 +47,6 @@ import org.apache.syncope.core.persistence.api.entity.Report;
import org.apache.syncope.core.persistence.api.entity.ReportExec;
import org.apache.syncope.core.persistence.api.entity.Role;
import org.apache.syncope.core.persistence.api.entity.SRARoute;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.entity.am.AttrRepo;
import org.apache.syncope.core.persistence.api.entity.am.AuthModule;
import org.apache.syncope.core.persistence.api.entity.am.AuthProfile;
@@ -215,8 +214,6 @@ abstract class AbstractEntityFactory implements EntityFactory {
result = (E) new JPAPlainSchema();
} else if (reference.equals(DerSchema.class)) {
result = (E) new JPADerSchema();
- } else if (reference.equals(VirSchema.class)) {
- result = (E) new JPAVirSchema();
} else if (reference.equals(Report.class)) {
result = (E) new JPAReport();
} else if (reference.equals(ReportExec.class)) {
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/JPAAnyTypeClass.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/JPAAnyTypeClass.java
index 4e20bb2536..b718da1049 100644
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/JPAAnyTypeClass.java
+++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/JPAAnyTypeClass.java
@@ -28,7 +28,6 @@ import java.util.List;
import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
import org.apache.syncope.core.persistence.api.entity.DerSchema;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
@Entity
@Table(name = JPAAnyTypeClass.TABLE)
@@ -45,9 +44,6 @@ public class JPAAnyTypeClass extends AbstractProvidedKeyEntity implements AnyTyp
@OneToMany(fetch = FetchType.EAGER, mappedBy = "anyTypeClass")
private List<JPADerSchema> derSchemas = new ArrayList<>();
- @OneToMany(fetch = FetchType.EAGER, mappedBy = "anyTypeClass")
- private List<JPAVirSchema> virSchemas = new ArrayList<>();
-
@Override
public boolean add(final PlainSchema schema) {
checkType(schema, JPAPlainSchema.class);
@@ -69,15 +65,4 @@ public class JPAAnyTypeClass extends AbstractProvidedKeyEntity implements AnyTyp
public List<? extends DerSchema> getDerSchemas() {
return derSchemas;
}
-
- @Override
- public boolean add(final VirSchema schema) {
- checkType(schema, JPAVirSchema.class);
- return this.virSchemas.add((JPAVirSchema) schema);
- }
-
- @Override
- public List<? extends VirSchema> getVirSchemas() {
- return virSchemas;
- }
}
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/JPAVirSchema.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/JPAVirSchema.java
deleted file mode 100644
index e1ef936c51..0000000000
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/JPAVirSchema.java
+++ /dev/null
@@ -1,131 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.jpa.entity;
-
-import jakarta.persistence.Entity;
-import jakarta.persistence.FetchType;
-import jakarta.persistence.ManyToOne;
-import jakarta.persistence.OneToOne;
-import jakarta.persistence.PrimaryKeyJoinColumn;
-import jakarta.persistence.Table;
-import jakarta.validation.constraints.NotNull;
-import org.apache.syncope.common.lib.types.AttrSchemaType;
-import org.apache.syncope.core.persistence.api.entity.AnyType;
-import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
-import org.apache.syncope.core.persistence.api.entity.ExternalResource;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-
-@Entity
-@Table(name = JPAVirSchema.TABLE)
-@PrimaryKeyJoinColumn(name = "id", referencedColumnName = "id")
-public class JPAVirSchema extends AbstractSchema implements VirSchema {
-
- private static final long serialVersionUID = 3274006935328590141L;
-
- public static final String TABLE = "VirSchema";
-
- @OneToOne(fetch = FetchType.EAGER)
- private JPAAnyTypeClass anyTypeClass;
-
- private Boolean readonly = false;
-
- @NotNull
- @ManyToOne
- private JPAExternalResource resource;
-
- @NotNull
- @ManyToOne
- private JPAAnyType anyType;
-
- @NotNull
- private String extAttrName;
-
- @Override
- public AnyTypeClass getAnyTypeClass() {
- return anyTypeClass;
- }
-
- @Override
- public void setAnyTypeClass(final AnyTypeClass anyTypeClass) {
- checkType(anyTypeClass, JPAAnyTypeClass.class);
- this.anyTypeClass = (JPAAnyTypeClass) anyTypeClass;
- }
-
- @Override
- public AttrSchemaType getType() {
- return AttrSchemaType.String;
- }
-
- @Override
- public String getMandatoryCondition() {
- return Boolean.FALSE.toString().toLowerCase();
- }
-
- @Override
- public boolean isMultivalue() {
- return true;
- }
-
- @Override
- public boolean isUniqueConstraint() {
- return false;
- }
-
- @Override
- public boolean isReadonly() {
- return readonly;
- }
-
- @Override
- public void setReadonly(final boolean readonly) {
- this.readonly = readonly;
- }
-
- @Override
- public ExternalResource getResource() {
- return resource;
- }
-
- @Override
- public void setResource(final ExternalResource resource) {
- checkType(resource, JPAExternalResource.class);
- this.resource = (JPAExternalResource) resource;
- }
-
- @Override
- public AnyType getAnyType() {
- return anyType;
- }
-
- @Override
- public void setAnyType(final AnyType anyType) {
- checkType(anyType, JPAAnyType.class);
- this.anyType = (JPAAnyType) anyType;
- }
-
- @Override
- public String getExtAttrName() {
- return extAttrName;
- }
-
- @Override
- public void setExtAttrName(final String extAttrName) {
- this.extAttrName = extAttrName;
- }
-}
diff --git a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/AbstractTest.java b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/AbstractTest.java
index 47057eede6..73428bb16d 100644
--- a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/AbstractTest.java
+++ b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/AbstractTest.java
@@ -24,7 +24,6 @@ import static org.junit.jupiter.api.Assertions.fail;
import io.zonky.test.db.postgres.embedded.EmbeddedPostgres;
import jakarta.persistence.EntityManager;
import java.io.InputStream;
-import java.time.Duration;
import java.util.Map;
import java.util.Properties;
import java.util.function.Supplier;
@@ -180,13 +179,13 @@ public abstract class AbstractTest {
OracleContainer masterDomain = new OracleContainer("gvenzl/oracle-free:" + dockerOracleVersion).
withDatabaseName("syncope").withPassword("syncope").withUsername("syncope").
- withReuse(true).withStartupTimeout(Duration.ofMinutes(4));
+ withReuse(true);
masterDomain.start();
JDBC_URL_SUPPLIER = masterDomain::getJdbcUrl;
OracleContainer twoDomain = new OracleContainer("gvenzl/oracle-free:" + dockerOracleVersion).
withDatabaseName("syncope").withPassword("syncope").withUsername("syncope").
- withReuse(true).withStartupTimeout(Duration.ofMinutes(4));
+ withReuse(true);
twoDomain.start();
JDBC2_URL_SUPPLIER = twoDomain::getJdbcUrl;
}
diff --git a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/AnyTypeClassTest.java b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/AnyTypeClassTest.java
index 50824c00ba..9c671ff804 100644
--- a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/AnyTypeClassTest.java
+++ b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/AnyTypeClassTest.java
@@ -46,7 +46,6 @@ public class AnyTypeClassTest extends AbstractTest {
assertFalse(minimalGroup.getPlainSchemas().isEmpty());
assertFalse(minimalGroup.getDerSchemas().isEmpty());
- assertFalse(minimalGroup.getVirSchemas().isEmpty());
}
@Test
@@ -65,7 +64,6 @@ public class AnyTypeClassTest extends AbstractTest {
assertNotNull(newClass);
assertFalse(newClass.getPlainSchemas().isEmpty());
assertTrue(newClass.getDerSchemas().isEmpty());
- assertTrue(newClass.getVirSchemas().isEmpty());
}
@Test
diff --git a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/RemediationTest.java b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/RemediationTest.java
index d59971c79a..8a97f58304 100644
--- a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/RemediationTest.java
+++ b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/RemediationTest.java
@@ -70,7 +70,7 @@ public class RemediationTest extends AbstractTest {
remediation.setInstant(OffsetDateTime.now());
remediation.setRemoteName("remote");
remediation.setPullTask((PullTask) taskDAO.findById(
- TaskType.PULL, "38abbf9e-a1a3-40a1-a15f-7d0ac02f47f1").orElseThrow());
+ TaskType.PULL, "81d88f73-d474-4450-9031-605daa4e313f").orElseThrow());
// missing payload
try {
@@ -92,7 +92,7 @@ public class RemediationTest extends AbstractTest {
remediation.setInstant(OffsetDateTime.now());
remediation.setRemoteName("remote");
remediation.setPullTask((PullTask) taskDAO.findById(
- TaskType.PULL, "38abbf9e-a1a3-40a1-a15f-7d0ac02f47f1").orElseThrow());
+ TaskType.PULL, "81d88f73-d474-4450-9031-605daa4e313f").orElseThrow());
remediation.setPayload(UUID.randomUUID().toString());
// wrong payload for operation
@@ -115,7 +115,7 @@ public class RemediationTest extends AbstractTest {
remediation.setInstant(OffsetDateTime.now());
remediation.setRemoteName("remote");
remediation.setPullTask((PullTask) taskDAO.findById(
- TaskType.PULL, "38abbf9e-a1a3-40a1-a15f-7d0ac02f47f1").orElseThrow());
+ TaskType.PULL, "81d88f73-d474-4450-9031-605daa4e313f").orElseThrow());
remediation.setPayload(UUID.randomUUID().toString());
remediation.setOperation(ResourceOperation.DELETE);
diff --git a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/ResourceTest.java b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/ResourceTest.java
index ad7a22ce31..948fd6b911 100644
--- a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/ResourceTest.java
+++ b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/ResourceTest.java
@@ -238,38 +238,6 @@ public class ResourceTest extends AbstractTest {
});
}
- @Test
- public void saveVirtualMapping() {
- ExternalResource resource = entityFactory.newEntity(ExternalResource.class);
- resource.setKey("ws-target-resource-virtual-mapping");
- resource.setPropagationPriority(2);
-
- Provision provision = new Provision();
- provision.setAnyType(AnyTypeKind.USER.name());
- provision.setObjectClass(ObjectClass.ACCOUNT_NAME);
- resource.getProvisions().add(provision);
-
- Mapping mapping = new Mapping();
- provision.setMapping(mapping);
-
- Item connObjectKey = new Item();
- connObjectKey.setExtAttrName("username");
- connObjectKey.setIntAttrName("fullname");
- connObjectKey.setPurpose(MappingPurpose.BOTH);
- mapping.setConnObjectKeyItem(connObjectKey);
-
- Item virtualMapItem = new Item();
- virtualMapItem.setIntAttrName("virtualReadOnly");
- virtualMapItem.setExtAttrName("TEST");
- virtualMapItem.setPurpose(MappingPurpose.PROPAGATION);
- mapping.add(virtualMapItem);
-
- ConnInstance connector = resourceDAO.findById("ws-target-resource-1").orElseThrow().getConnector();
- resource.setConnector(connector);
-
- resourceDAO.save(resource);
- }
-
@Test
public void saveWithGroupMappingType() {
ExternalResource resource = entityFactory.newEntity(ExternalResource.class);
diff --git a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/TaskTest.java b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/TaskTest.java
index 5b1aa00c85..2da9bbbf96 100644
--- a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/TaskTest.java
+++ b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/TaskTest.java
@@ -126,7 +126,7 @@ public class TaskTest extends AbstractTest {
assertEquals(6, taskDAO.findAll(TaskType.PROPAGATION).size());
assertEquals(1, taskDAO.findAll(TaskType.NOTIFICATION).size());
assertEquals(3, taskDAO.findAll(TaskType.SCHEDULED).size());
- assertEquals(10, taskDAO.findAll(TaskType.PULL).size());
+ assertEquals(9, taskDAO.findAll(TaskType.PULL).size());
assertEquals(11, taskDAO.findAll(TaskType.PUSH).size());
List<GrantedAuthority> authorities = IdRepoEntitlement.values().stream().
diff --git a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/VirSchemaTest.java b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/VirSchemaTest.java
deleted file mode 100644
index 7a07d93c9a..0000000000
--- a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/VirSchemaTest.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.jpa.inner;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-import static org.junit.jupiter.api.Assertions.fail;
-
-import java.util.List;
-import org.apache.syncope.common.lib.types.EntityViolationType;
-import org.apache.syncope.core.persistence.api.attrvalue.InvalidEntityException;
-import org.apache.syncope.core.persistence.api.dao.AnyTypeDAO;
-import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-import org.apache.syncope.core.persistence.jpa.AbstractTest;
-import org.junit.jupiter.api.Test;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.transaction.annotation.Transactional;
-
-@Transactional
-public class VirSchemaTest extends AbstractTest {
-
- @Autowired
- private VirSchemaDAO virSchemaDAO;
-
- @Autowired
- private ExternalResourceDAO resourceDAO;
-
- @Autowired
- private AnyTypeDAO anyTypeDAO;
-
- @Test
- public void findAll() {
- List<? extends VirSchema> list = virSchemaDAO.findAll();
- assertEquals(3, list.size());
- }
-
- @Test
- public void findByIdLike() {
- List<? extends VirSchema> schemas = virSchemaDAO.findByIdLike("rvirtuald%");
- assertEquals(1, schemas.size());
- }
-
- @Test
- public void findByName() {
- VirSchema attributeSchema = virSchemaDAO.findById("virtualdata").orElseThrow();
- assertNotNull(attributeSchema);
- }
-
- @Test
- public void save() {
- VirSchema virSchema = entityFactory.newEntity(VirSchema.class);
- virSchema.setKey("virtual");
- virSchema.setResource(resourceDAO.findById("resource-csv").orElseThrow());
- virSchema.setAnyType(anyTypeDAO.getUser());
- virSchema.setReadonly(true);
- virSchema.setExtAttrName("EXT_ATTR");
-
- virSchemaDAO.save(virSchema);
-
- VirSchema actual = virSchemaDAO.findById("virtual").orElseThrow();
- assertNotNull(actual);
- assertTrue(actual.isReadonly());
- assertEquals("EXT_ATTR", actual.getExtAttrName());
- }
-
- @Test
- public void delete() {
- VirSchema virtualdata = virSchemaDAO.findById("virtualdata").orElseThrow();
-
- virSchemaDAO.deleteById(virtualdata.getKey());
-
- assertTrue(virSchemaDAO.findById("virtualdata").isEmpty());
-
- // ------------- //
- VirSchema rvirtualdata = virSchemaDAO.findById("rvirtualdata").orElseThrow();
-
- virSchemaDAO.deleteById(rvirtualdata.getKey());
-
- assertTrue(virSchemaDAO.findById("rvirtualdata").isEmpty());
- }
-
- @Test
- public void issueSYNCOPE418() {
- VirSchema schema = entityFactory.newEntity(VirSchema.class);
- schema.setKey("http://schemas.examples.org/security/authorization/organizationUnit");
-
- try {
- virSchemaDAO.save(schema);
- fail("This should not happen");
- } catch (InvalidEntityException e) {
- assertTrue(e.hasViolation(EntityViolationType.InvalidKey));
- }
- }
-}
diff --git a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/outer/VirSchemaTest.java b/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/outer/VirSchemaTest.java
deleted file mode 100644
index 3a977aa322..0000000000
--- a/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/outer/VirSchemaTest.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.jpa.outer;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-import org.apache.syncope.common.lib.to.Item;
-import org.apache.syncope.common.lib.types.AnyTypeKind;
-import org.apache.syncope.core.persistence.api.dao.AnyTypeDAO;
-import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
-import org.apache.syncope.core.persistence.api.entity.ExternalResource;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-import org.apache.syncope.core.persistence.jpa.AbstractTest;
-import org.junit.jupiter.api.Test;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.transaction.annotation.Transactional;
-
-@Transactional
-public class VirSchemaTest extends AbstractTest {
-
- @Autowired
- private VirSchemaDAO virSchemaDAO;
-
- @Autowired
- private ExternalResourceDAO resourceDAO;
-
- @Autowired
- private AnyTypeDAO anyTypeDAO;
-
- @Test
- public void deal() {
- ExternalResource resource = resourceDAO.findById("ws-target-resource-1").orElseThrow();
- assertTrue(virSchemaDAO.findByResource(resource).isEmpty());
- assertTrue(virSchemaDAO.findByResourceAndAnyType(resource.getKey(), AnyTypeKind.USER.name()).isEmpty());
-
- VirSchema virSchema = entityFactory.newEntity(VirSchema.class);
- virSchema.setKey("vSchema");
- virSchema.setReadonly(true);
- virSchema.setExtAttrName("EXT_ATTR");
- virSchema.setResource(resource);
- virSchema.setAnyType(anyTypeDAO.getUser());
-
- virSchemaDAO.save(virSchema);
- entityManager.flush();
-
- virSchema = virSchemaDAO.findById("vSchema").orElseThrow();
- assertTrue(virSchema.isReadonly());
- assertEquals("EXT_ATTR", virSchema.getExtAttrName());
-
- assertFalse(virSchemaDAO.findByResource(resource).isEmpty());
- assertTrue(virSchemaDAO.findByResource(resource).contains(virSchema));
-
- assertFalse(virSchemaDAO.findByResourceAndAnyType(
- resource.getKey(), AnyTypeKind.USER.name()).isEmpty());
- assertTrue(virSchemaDAO.findByResourceAndAnyType(
- resource.getKey(), AnyTypeKind.USER.name()).contains(virSchema));
-
- Item item = virSchema.asLinkingMappingItem();
- assertNotNull(item);
- assertEquals(virSchema.getKey(), item.getIntAttrName());
- }
-}
diff --git a/core/persistence-jpa/src/test/resources/domains/MasterContent.xml b/core/persistence-jpa/src/test/resources/domains/MasterContent.xml
index 9dcd769b17..9009ca3c27 100644
--- a/core/persistence-jpa/src/test/resources/domains/MasterContent.xml
+++ b/core/persistence-jpa/src/test/resources/domains/MasterContent.xml
@@ -567,41 +567,41 @@ under the License.
<ExternalResource id="ws-target-resource-1" connector_id="88a7a819-dab5-46b4-9b90-0b9769eabdb8"
enforceMandatoryCondition="0"
propagationPriority="1" createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"userId","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"email","extAttrName":"email","connObjectKey":false,"password [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"userId","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"email","extAttrName":"email","connObjectKey":false,"password [...]
<ExternalResource id="ws-target-resource-2" connector_id="88a7a819-dab5-46b4-9b90-0b9769eabdb8"
enforceMandatoryCondition="1"
createTraceLevel="FAILURES" deleteTraceLevel="NONE" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
inboundPolicy_id="9454b0d7-2610-400a-be82-fc23cf553dd6"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"pas [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"pas [...]
<ExternalResource id="ws-target-resource-timeout" connector_id="5ffbb4ac-a8c3-4b44-b699-11b398a1ba08"
enforceMandatoryCondition="1"
propagationPriority="1" createTraceLevel="FAILURES" deleteTraceLevel="NONE" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
jsonConf='[{"schema":{"name":"endpoint","displayName":null,"helpMessage":null,"type":"java.lang.String","required":true,"order":0,"confidential":false,"defaultValues":null},"overridable":true,"values":["http://localhost:${cargo.servlet.port}/syncope-fit-build-tools/services/provisioning"]}]'
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[],"connObjectKeyItem":{"intAttrName":"fullname","extAttrN [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"connObjectKeyItem":{"intAttrName":"fullname","extAttrName":"fullname","c [...]
<ExternalResource id="ws-target-resource-list-mappings-1" connector_id="88a7a819-dab5-46b4-9b90-0b9769eabdb8"
enforceMandatoryCondition="0"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"email","extAttrName":"email","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"surname","extAttrName":"surname","connObjectKey":false,"password [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"email","extAttrName":"email","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"surname","extAttrName":"surname","connObjectKey":false,"password [...]
<ExternalResource id="ws-target-resource-list-mappings-2" connector_id="88a7a819-dab5-46b4-9b90-0b9769eabdb8"
enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"/>
<ExternalResource id="ws-target-resource-delete" connector_id="5ffbb4ac-a8c3-4b44-b699-11b398a1ba08"
enforceMandatoryCondition="0"
propagationPriority="2" createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"userId","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[],"connObjectKeyItem":{"intAttrName":"username","extAttrNam [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"userId","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"connObjectKeyItem":{"intAttrName":"username","extAttrName":"userId","connO [...]
<ExternalResource id="ws-target-resource-update" connector_id="88a7a819-dab5-46b4-9b90-0b9769eabdb8"
enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"email","extAttrName":"email","connObjectKey":false,"password":false,"mandatoryCondition":"false","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"userId","extAttrName":"userId","connObjectKey":true,"password" [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"email","extAttrName":"email","connObjectKey":false,"password":false,"mandatoryCondition":"false","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"userId","extAttrName":"userId","connObjectKey":true,"password" [...]
<ExternalResource id="resource-testdb" connector_id="5aa5b8be-7521-481a-9651-c557aea078c1"
enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
accountPolicy_id="20ab5a8c-4b0c-432c-b957-f7fb9784d9f7"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"password" [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"password" [...]
<ExternalResource id="resource-testdb2" connector_id="a28abd9b-9f4a-4ef6-a7a8-d19ad2a8f29d"
enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"pa [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"pa [...]
<Implementation id="GenerateRandomPasswordPropagationActions" type="PROPAGATION_ACTIONS" engine="JAVA"
body="org.apache.syncope.core.provisioning.java.propagation.GenerateRandomPasswordPropagationActions"/>
<ExternalResourcePropAction resource_id="resource-testdb2" implementation_id="GenerateRandomPasswordPropagationActions"/>
@@ -609,16 +609,16 @@ under the License.
enforceMandatoryCondition="0"
inboundPolicy_id="880f8553-069b-4aed-9930-2cd53873f544"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":["csv","generic membership","minimal group"],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"id","connObjectKey":false,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"fullname","extAttrName":"id" [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":["csv","generic membership","minimal group"],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"id","connObjectKey":false,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"fullname","extAttrName":"id" [...]
<ExternalResource id="ws-target-resource-update-resetsynctoken" connector_id="88a7a819-dab5-46b4-9b90-0b9769eabdb8"
enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":"{\"value\":null}","ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"userId","extAttrName":"userId","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"fullname","extAttrName":"__PASSWORD__","connObjectKey": [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":"{\"value\":null}","ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"userId","extAttrName":"userId","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"fullname","extAttrName":"__PASSWORD__","connObjectKey": [...]
<ExternalResource id="resource-ldap" connector_id="74141a3b-0762-4720-a4aa-fc3e374ef3ef"
enforceMandatoryCondition="1"
propagationPriority="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":["generic membership","minimal group"],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":"'uid=' + username + ',ou=people,${testds.rootDn}'","items":[{"intAttrName":"username","extAttrName":"cn","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transf [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":["generic membership","minimal group"],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":"'uid=' + username + ',ou=people,${testds.rootDn}'","items":[{"intAttrName":"username","extAttrName":"cn","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transf [...]
<ExternalResourcePropAction resource_id="resource-ldap" implementation_id="GenerateRandomPasswordPropagationActions"/>
<Implementation id="LDAPMembershipPropagationActions" type="PROPAGATION_ACTIONS" engine="JAVA"
body="org.apache.syncope.core.provisioning.java.propagation.LDAPMembershipPropagationActions"/>
@@ -634,44 +634,39 @@ under the License.
enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
passwordPolicy_id="986d1236-3ac5-4a19-810c-5ab21d79cba1"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[],"connObjectKeyItem":{"intAttrName":"fullname","extAttrN [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"connObjectKeyItem":{"intAttrName":"fullname","extAttrName":"fullname","c [...]
<ExternalResource id="ws-target-resource-nopropagation2" connector_id="fcf9f2b0-f7d6-42c9-84a6-61b28255a42b"
enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[],"connObjectKeyItem":{"intAttrName":"fullname","extAttrN [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"connObjectKeyItem":{"intAttrName":"fullname","extAttrName":"fullname","c [...]
<ExternalResource id="ws-target-resource-nopropagation3" connector_id="fcf9f2b0-f7d6-42c9-84a6-61b28255a42b"
enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[],"connObjectKeyItem":{"intAttrName":"fullname","extAttrN [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"connObjectKeyItem":{"intAttrName":"fullname","extAttrName":"fullname","c [...]
<ExternalResource id="ws-target-resource-nopropagation4" connector_id="fcf9f2b0-f7d6-42c9-84a6-61b28255a42b"
enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[],"connObjectKeyItem":{"intAttrName":"fullname","extAttrN [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"connObjectKeyItem":{"intAttrName":"fullname","extAttrName":"fullname","c [...]
<ExternalResource id="resource-db-pull" connector_id="be24b061-019d-4e3e-baf0-0a6d0a45cb9c"
createTraceLevel="ALL" deleteTraceLevel="ALL" provisioningTraceLevel="ALL" updateTraceLevel="ALL"
enforceMandatoryCondition="0"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"email","extAttrName":"EMAIL","connObjectKey":false,"password":false,"mandatoryCondition":"false","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"fullname","extAttrName":"SURNAME","connObjectKey":false,"password":fa [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"email","extAttrName":"EMAIL","connObjectKey":false,"password":false,"mandatoryCondition":"false","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"fullname","extAttrName":"SURNAME","connObjectKey":false,"password":fa [...]
- <ExternalResource id="resource-db-virattr" connector_id="be24b061-019d-4e3e-baf0-0a6d0a45cb9c"
- createTraceLevel="ALL" deleteTraceLevel="ALL" provisioningTraceLevel="ALL" updateTraceLevel="ALL"
- enforceMandatoryCondition="0"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"key","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[{"intAttrName":"virtualdata","extAttrName":"USERNAME","connObjectKey":false [...]
-
<ExternalResource id="resource-db-scripted" connector_id="a6d017fd-a705-4507-bb7c-6ab6a6745997"
createTraceLevel="ALL" deleteTraceLevel="ALL" provisioningTraceLevel="ALL" updateTraceLevel="ALL"
enforceMandatoryCondition="0"
propagationPolicy_id="89d322db-9878-420c-b49c-67be13df9a12"
- provisions='[{"anyType":"PRINTER","objectClass":"__PRINTER__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"key","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"name","extAttrName":"PRINTERNAME","connObjectKey":false,"password":false, [...]
+ provisions='[{"anyType":"PRINTER","objectClass":"__PRINTER__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"key","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"name","extAttrName":"PRINTERNAME","connObjectKey":false,"password":false, [...]
<ExternalResource id="rest-target-resource" connector_id="44c02549-19c3-483c-8025-4919c3283c37"
createTraceLevel="ALL" updateTraceLevel="ALL" deleteTraceLevel="ALL" provisioningTraceLevel="ALL"
enforceMandatoryCondition="1"
- propagationPriority="0" provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"firstname","extAttrName":"firstName","connObjectKey":false,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"key","extAttrName":"key","connObjectKe [...]
+ propagationPriority="0" provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"firstname","extAttrName":"firstName","connObjectKey":false,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"key","extAttrName":"key","connObjectKe [...]
<ExternalResource id="resource-kafka" connector_id="01938bdf-7ac6-7149-a103-3ec9e74cc824"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"items":[{"intAttrName":"username","extAttrName":"__NAME__","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"password":true,"mandatory [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"items":[{"intAttrName":"username","extAttrName":"__NAME__","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"password":true,"mandatory [...]
provisioningTraceLevel="ALL" deleteTraceLevel="ALL" createTraceLevel="ALL" updateTraceLevel="ALL"
enforceMandatoryCondition="0"
propagationPolicy_id="01938c04-65a1-7944-884d-8a26b76bc01e"/>
@@ -689,18 +684,6 @@ under the License.
<SyncopeGroup_ExternalResource group_id="0626100b-a4ba-4e00-9971-86fad52a6216" resource_id="resource-csv"/>
<SyncopeGroup_ExternalResource group_id="ba9ed509-b1f5-48ab-a334-c8530a6422dc" resource_id="resource-csv"/>
- <SyncopeSchema id="virtualReadOnly"/>
- <VirSchema id="virtualReadOnly" READONLY="1" anyTypeClass_id="minimal user"
- resource_id="resource-ldap" anyType_id="USER" extAttrName="givenname"/>
-
- <SyncopeSchema id="rvirtualdata"/>
- <VirSchema id="rvirtualdata" READONLY="0" anyTypeClass_id="minimal group"
- resource_id="resource-ldap" anyType_id="GROUP" extAttrName="businessCategory"/>
-
- <SyncopeSchema id="virtualdata"/>
- <VirSchema id="virtualdata" READONLY="0" anyTypeClass_id="minimal user"
- resource_id="resource-db-virattr" anyType_id="USER" extAttrName="USERNAME"/>
-
<Implementation id="MacroJobDelegate" type="TASKJOB_DELEGATE" engine="JAVA"
body="org.apache.syncope.core.provisioning.java.job.MacroJobDelegate"/>
<Implementation id="LiveSyncJobDelegate" type="TASKJOB_DELEGATE" engine="JAVA"
@@ -733,10 +716,10 @@ under the License.
jobDelegate_id="PullJobDelegate"/>
<AnyTemplatePullTask id="3a6173a9-8c34-4e37-b3b1-0c2ea385fac0"
pullTask_id="c41b9b71-9bfa-4f90-89f2-84787def4c5c" anyType_id="USER"
- template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":null,"status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":["csv"],"derAttrs":[{"schema":"cn","values":[""]}],"virAttrs":[],"resources":["resource-t [...]
+ template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":null,"status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":["csv"],"derAttrs":[{"schema":"cn","values":[""]}],"resources":["resource-testdb"],"relat [...]
<AnyTemplatePullTask id="b3772d66-ec06-4133-bf38-b3273845ac5b"
pullTask_id="c41b9b71-9bfa-4f90-89f2-84787def4c5c" anyType_id="GROUP"
- template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"virAttrs":[],"resources":[],"plainAttrs":[]}'/>
+ template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"resources":[],"plainAttrs":[]}'/>
<Implementation id="TestSampleJobDelegate" type="TASKJOB_DELEGATE" engine="JAVA"
body="org.apache.syncope.fit.core.reference.TestSampleJobDelegate"/>
<SchedTask id="e95555d2-1b09-42c8-b25b-f4c4ec597979" name="SampleJob Task" active="1"
@@ -753,9 +736,9 @@ under the License.
destinationRealm_id="e4c28e7a-9dbf-4ee7-9441-93812a0d4a28" performCreate="1" performUpdate="1" performDelete="0" syncStatus="1" pullMode="FULL_RECONCILIATION"
unmatchingRule="PROVISION" matchingRule="UPDATE" active="1" jobDelegate_id="PullJobDelegate"/>
<AnyTemplatePullTask id="6c3f578d-327b-4a7c-8037-6f5ba24eb770" pullTask_id="83f7e85d-9774-43fe-adba-ccd856312994" anyType_id="USER"
- template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":null,"status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":[],"derAttrs":[],"virAttrs":[],"resources":[],"relationships":[],"memberships":[],"dynMem [...]
+ template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":null,"status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":[],"derAttrs":[],"resources":[],"relationships":[],"memberships":[],"dynMemberships":[]," [...]
<AnyTemplatePullTask id="45b61137-c7c3-49ee-86e0-9efffa75ae68" pullTask_id="83f7e85d-9774-43fe-adba-ccd856312994" anyType_id="GROUP"
- template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"virAttrs":[],"resources":[],"plainAttrs":[]}'/>
+ template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"resources":[],"plainAttrs":[]}'/>
<PullTask remediation="0" id="81d88f73-d474-4450-9031-605daa4e313f" name="TestDB2 Task" resource_id="resource-testdb2"
destinationRealm_id="e4c28e7a-9dbf-4ee7-9441-93812a0d4a28" performCreate="1" performUpdate="1" performDelete="0" syncStatus="1" pullMode="FULL_RECONCILIATION"
unmatchingRule="PROVISION" matchingRule="UPDATE" active="1" jobDelegate_id="PullJobDelegate"/>
@@ -766,15 +749,12 @@ under the License.
destinationRealm_id="e4c28e7a-9dbf-4ee7-9441-93812a0d4a28" pullMode="FULL_RECONCILIATION" performCreate="1" performDelete="1" performUpdate="1" syncStatus="0"
unmatchingRule="PROVISION" matchingRule="UPDATE" active="1" jobDelegate_id="PullJobDelegate"/>
<AnyTemplatePullTask id="df655a2a-40c0-43b1-a157-3f4988802f58" pullTask_id="1e419ca4-ea81-4493-a14f-28b90113686d" anyType_id="USER"
- template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":"'/' + title","status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":["minimal group"],"derAttrs":[],"virAttrs":[{"schema":"virtualReadOnly [...]
+ template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":"'/' + title","status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":["minimal group"],"derAttrs":[],"resources":["resource-ldap"],"roles": [...]
<AnyTemplatePullTask id="fda22ff3-98f3-42e4-a2ae-cd9a28282d57" pullTask_id="1e419ca4-ea81-4493-a14f-28b90113686d" anyType_id="GROUP"
- template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"virAttrs":[],"resources":[],"plainAttrs":[{"schema":"show","values":["true"]}]}'/>
+ template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"resources":[],"plainAttrs":[{"schema":"show","values":["true"]}]}'/>
<Implementation id="LDAPMembershipPullActions" type="INBOUND_ACTIONS" engine="JAVA"
body="org.apache.syncope.core.provisioning.java.pushpull.LDAPMembershipPullActions"/>
<PullTaskAction task_id="1e419ca4-ea81-4493-a14f-28b90113686d" implementation_id="LDAPMembershipPullActions"/>
- <PullTask remediation="0" id="38abbf9e-a1a3-40a1-a15f-7d0ac02f47f1" name="VirAttrCache test" resource_id="resource-csv"
- destinationRealm_id="e4c28e7a-9dbf-4ee7-9441-93812a0d4a28" performCreate="0" performUpdate="1" performDelete="0" syncStatus="0" pullMode="FULL_RECONCILIATION"
- unmatchingRule="PROVISION" matchingRule="UPDATE" active="1" jobDelegate_id="PullJobDelegate"/>
<PushTask id="af558be4-9d2f-4359-bf85-a554e6e90be1" name="Export on resource-testdb2.1" resource_id="resource-testdb2"
sourceRealm_id="e4c28e7a-9dbf-4ee7-9441-93812a0d4a28"
performCreate="1" performUpdate="1" performDelete="1" syncStatus="1"
@@ -834,9 +814,9 @@ under the License.
destinationRealm_id="e4c28e7a-9dbf-4ee7-9441-93812a0d4a28" performCreate="1" performUpdate="1" performDelete="1" syncStatus="1" pullMode="INCREMENTAL"
unmatchingRule="PROVISION" matchingRule="UPDATE" active="1" jobDelegate_id="PullJobDelegate"/>
<AnyTemplatePullTask id="8bc41ba1-cc1d-4ee0-bb43-61cd148b414f" pullTask_id="986867e2-993b-430e-8feb-aa9abb4c1dcd" anyType_id="USER"
- template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":null,"status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":[],"derAttrs":[],"virAttrs":[],"resources":["resource-testdb"],"roles":[],"dynRoles":[]," [...]
+ template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":null,"status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":[],"derAttrs":[],"resources":["resource-testdb"],"roles":[],"dynRoles":[],"relationships" [...]
<AnyTemplatePullTask id="9af0e343-8a37-42d2-9bc7-6e2e3b103219" pullTask_id="986867e2-993b-430e-8feb-aa9abb4c1dcd" anyType_id="GROUP"
- template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"virAttrs":[],"resources":[],"plainAttrs":[]}'/>
+ template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"resources":[],"plainAttrs":[]}'/>
<PullTask remediation="0" id="feae4e57-15ca-40d9-b973-8b9015efca49" name="CSV (unlink matching; ignore unmatching)" resource_id="resource-csv"
destinationRealm_id="e4c28e7a-9dbf-4ee7-9441-93812a0d4a28" performCreate="1" performUpdate="1" performDelete="1" syncStatus="1" pullMode="FULL_RECONCILIATION"
unmatchingRule="IGNORE" matchingRule="UNLINK" active="1" jobDelegate_id="PullJobDelegate"/>
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/PersistenceContext.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/PersistenceContext.java
index 63a1718d5b..8546109452 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/PersistenceContext.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/PersistenceContext.java
@@ -77,7 +77,6 @@ import org.apache.syncope.core.persistence.api.dao.SecurityQuestionDAO;
import org.apache.syncope.core.persistence.api.dao.TaskDAO;
import org.apache.syncope.core.persistence.api.dao.TaskExecDAO;
import org.apache.syncope.core.persistence.api.dao.UserDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.WAConfigDAO;
import org.apache.syncope.core.persistence.api.dao.keymaster.ConfParamDAO;
import org.apache.syncope.core.persistence.api.dao.keymaster.DomainDAO;
@@ -192,9 +191,6 @@ import org.apache.syncope.core.persistence.neo4j.dao.repo.SecurityQuestionRepoEx
import org.apache.syncope.core.persistence.neo4j.dao.repo.UserRepo;
import org.apache.syncope.core.persistence.neo4j.dao.repo.UserRepoExt;
import org.apache.syncope.core.persistence.neo4j.dao.repo.UserRepoExtImpl;
-import org.apache.syncope.core.persistence.neo4j.dao.repo.VirSchemaRepo;
-import org.apache.syncope.core.persistence.neo4j.dao.repo.VirSchemaRepoExt;
-import org.apache.syncope.core.persistence.neo4j.dao.repo.VirSchemaRepoExtImpl;
import org.apache.syncope.core.persistence.neo4j.dao.repo.WAConfigRepo;
import org.apache.syncope.core.persistence.neo4j.entity.EntityCacheKey;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jAnyType;
@@ -206,7 +202,6 @@ import org.apache.syncope.core.persistence.neo4j.entity.Neo4jImplementation;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jPlainSchema;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jRealm;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jRole;
-import org.apache.syncope.core.persistence.neo4j.entity.Neo4jVirSchema;
import org.apache.syncope.core.persistence.neo4j.entity.anyobject.Neo4jAnyObject;
import org.apache.syncope.core.persistence.neo4j.entity.group.Neo4jGroup;
import org.apache.syncope.core.persistence.neo4j.entity.task.Neo4jTaskUtilsFactory;
@@ -315,8 +310,7 @@ public class PersistenceContext {
final Cache<EntityCacheKey, Neo4jPlainSchema> plainSchemaCache,
final Cache<EntityCacheKey, Neo4jRealm> realmCache,
final Cache<EntityCacheKey, Neo4jRole> roleCache,
- final Cache<EntityCacheKey, Neo4jUser> userCache,
- final Cache<EntityCacheKey, Neo4jVirSchema> virSchemaCache) {
+ final Cache<EntityCacheKey, Neo4jUser> userCache) {
return new CacheCleaningTransactionExecutionListener(
anyTypeCache,
@@ -329,8 +323,7 @@ public class PersistenceContext {
plainSchemaCache,
realmCache,
roleCache,
- userCache,
- virSchemaCache);
+ userCache);
}
@Bean(Neo4jRepositoryConfigurationExtension.DEFAULT_TRANSACTION_MANAGER_BEAN_NAME)
@@ -498,7 +491,6 @@ public class PersistenceContext {
final @Lazy AnyTypeClassDAO anyTypeClassDAO,
final @Lazy PlainSchemaDAO plainSchemaDAO,
final @Lazy DerSchemaDAO derSchemaDAO,
- final @Lazy VirSchemaDAO virSchemaDAO,
final @Lazy DynRealmDAO dynRealmDAO,
final @Lazy UserDAO userDAO,
final @Lazy GroupDAO groupDAO,
@@ -514,7 +506,6 @@ public class PersistenceContext {
anyTypeClassDAO,
plainSchemaDAO,
derSchemaDAO,
- virSchemaDAO,
dynRealmDAO,
userDAO,
groupDAO,
@@ -569,7 +560,6 @@ public class PersistenceContext {
final AnyTypeDAO anyTypeDAO,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final @Lazy GroupDAO groupDAO,
final ExternalResourceDAO resourceDAO,
final Neo4jTemplate neo4jTemplate,
@@ -583,7 +573,6 @@ public class PersistenceContext {
anyTypeDAO,
plainSchemaDAO,
derSchemaDAO,
- virSchemaDAO,
groupDAO,
resourceDAO,
neo4jTemplate,
@@ -865,8 +854,7 @@ public class PersistenceContext {
final Cache<EntityCacheKey, Neo4jPlainSchema> plainSchemaCache,
final Cache<EntityCacheKey, Neo4jRealm> realmCache,
final Cache<EntityCacheKey, Neo4jRole> roleCache,
- final Cache<EntityCacheKey, Neo4jUser> userCache,
- final Cache<EntityCacheKey, Neo4jVirSchema> virSchemaCache) {
+ final Cache<EntityCacheKey, Neo4jUser> userCache) {
return new Neo4jEntityCacheDAO(
anyTypeCache,
@@ -879,8 +867,7 @@ public class PersistenceContext {
plainSchemaCache,
realmCache,
roleCache,
- userCache,
- virSchemaCache);
+ userCache);
}
@ConditionalOnMissingBean
@@ -921,7 +908,6 @@ public class PersistenceContext {
final @Lazy AnyTypeClassDAO anyTypeClassDAO,
final @Lazy PlainSchemaDAO plainSchemaDAO,
final @Lazy DerSchemaDAO derSchemaDAO,
- final @Lazy VirSchemaDAO virSchemaDAO,
final @Lazy DynRealmDAO dynRealmDAO,
final AnyMatchDAO anyMatchDAO,
final @Lazy UserDAO userDAO,
@@ -941,7 +927,6 @@ public class PersistenceContext {
anyTypeClassDAO,
plainSchemaDAO,
derSchemaDAO,
- virSchemaDAO,
dynRealmDAO,
anyMatchDAO,
userDAO,
@@ -1253,7 +1238,6 @@ public class PersistenceContext {
final AnyObjectDAO anyObjectDAO,
final UserDAO userDAO,
final GroupDAO groupDAO,
- final VirSchemaDAO virSchemaDAO,
final RealmDAO realmDAO,
final Neo4jTemplate neo4jTemplate,
final Neo4jClient neo4jClient,
@@ -1265,7 +1249,6 @@ public class PersistenceContext {
anyObjectDAO,
userDAO,
groupDAO,
- virSchemaDAO,
realmDAO,
neo4jTemplate,
neo4jClient,
@@ -1435,7 +1418,6 @@ public class PersistenceContext {
final @Lazy AnyTypeClassDAO anyTypeClassDAO,
final @Lazy PlainSchemaDAO plainSchemaDAO,
final @Lazy DerSchemaDAO derSchemaDAO,
- final @Lazy VirSchemaDAO virSchemaDAO,
final @Lazy DynRealmDAO dynRealmDAO,
final RoleDAO roleDAO,
final AccessTokenDAO accessTokenDAO,
@@ -1454,7 +1436,6 @@ public class PersistenceContext {
anyTypeClassDAO,
plainSchemaDAO,
derSchemaDAO,
- virSchemaDAO,
dynRealmDAO,
roleDAO,
accessTokenDAO,
@@ -1478,43 +1459,6 @@ public class PersistenceContext {
return neo4jRepositoryFactory.getRepository(UserRepo.class, userRepoExt);
}
- @ConditionalOnMissingBean(name = VirSchemaRepoExt.CACHE)
- @Bean(name = VirSchemaRepoExt.CACHE)
- public Cache<EntityCacheKey, Neo4jVirSchema> virSchemaCache(final CacheManager cacheManager) {
- return cacheManager.createCache(VirSchemaRepoExt.CACHE,
- new MutableConfiguration<EntityCacheKey, Neo4jVirSchema>().
- setTypes(EntityCacheKey.class, Neo4jVirSchema.class).
- setStoreByValue(false).
- setReadThrough(true).
- setExpiryPolicyFactory(CreatedExpiryPolicy.factoryOf(Duration.ETERNAL)));
- }
-
- @ConditionalOnMissingBean
- @Bean
- public VirSchemaRepoExt virSchemaRepoExt(
- final @Lazy ExternalResourceDAO resourceDAO,
- final Neo4jTemplate neo4jTemplate,
- final Neo4jClient neo4jClient,
- final NodeValidator nodeValidator,
- final Cache<EntityCacheKey, Neo4jVirSchema> virSchemaCache) {
-
- return new VirSchemaRepoExtImpl(
- resourceDAO,
- neo4jTemplate,
- neo4jClient,
- nodeValidator,
- virSchemaCache);
- }
-
- @ConditionalOnMissingBean
- @Bean
- public VirSchemaDAO virSchemaDAO(
- final SyncopeNeo4jRepositoryFactory neo4jRepositoryFactory,
- final VirSchemaRepoExt virSchemaRepoExt) {
-
- return neo4jRepositoryFactory.getRepository(VirSchemaRepo.class, virSchemaRepoExt);
- }
-
@ConditionalOnMissingBean
@Bean
public WAConfigDAO waConfigDAO(final SyncopeNeo4jRepositoryFactory neo4jRepositoryFactory) {
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/content/ContentLoaderHandler.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/content/ContentLoaderHandler.java
index b6330bcd1f..491911aac9 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/content/ContentLoaderHandler.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/content/ContentLoaderHandler.java
@@ -33,7 +33,6 @@ import org.apache.syncope.core.persistence.neo4j.entity.Neo4jDerSchema;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jImplementationRelationship;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jPlainSchema;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jSchema;
-import org.apache.syncope.core.persistence.neo4j.entity.Neo4jVirSchema;
import org.apache.syncope.core.persistence.neo4j.entity.policy.Neo4jAccessPolicy;
import org.apache.syncope.core.persistence.neo4j.entity.policy.Neo4jAccountPolicy;
import org.apache.syncope.core.persistence.neo4j.entity.policy.Neo4jAttrReleasePolicy;
@@ -85,9 +84,6 @@ public class ContentLoaderHandler extends AbstractContentLoaderHandler {
case Neo4jDerSchema.NODE -> {
return Neo4jDerSchema.NODE + ":" + Neo4jSchema.NODE;
}
- case Neo4jVirSchema.NODE -> {
- return Neo4jVirSchema.NODE + ":" + Neo4jSchema.NODE;
- }
case Neo4jAccessPolicy.NODE -> {
return Neo4jAccessPolicy.NODE + ":" + Neo4jPolicy.NODE;
@@ -181,8 +177,8 @@ public class ContentLoaderHandler extends AbstractContentLoaderHandler {
props.put("id", originalValue);
} else {
String name = nodeDesc.getGraphProperties().stream().
- map(GraphPropertyDescription::getPropertyName).
- filter(propertyName -> propertyName.equalsIgnoreCase(originalName)).
+ map(GraphPropertyDescription::getPropertyName).
+ filter(propertyName -> propertyName.equalsIgnoreCase(originalName)).
findFirst().orElseGet(() -> originalName.startsWith("plainAttrs.") ? originalName : null);
if (name == null) {
LOG.error("Property {} not matching for {}", originalName, nodeDesc.getPrimaryLabel());
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/Neo4jEntityCacheDAO.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/Neo4jEntityCacheDAO.java
index 3f58e6d091..44a76bfdc9 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/Neo4jEntityCacheDAO.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/Neo4jEntityCacheDAO.java
@@ -34,7 +34,6 @@ import org.apache.syncope.core.persistence.neo4j.entity.Neo4jImplementation;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jPlainSchema;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jRealm;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jRole;
-import org.apache.syncope.core.persistence.neo4j.entity.Neo4jVirSchema;
import org.apache.syncope.core.persistence.neo4j.entity.anyobject.Neo4jAnyObject;
import org.apache.syncope.core.persistence.neo4j.entity.group.Neo4jGroup;
import org.apache.syncope.core.persistence.neo4j.entity.user.Neo4jUser;
@@ -54,8 +53,7 @@ public class Neo4jEntityCacheDAO implements EntityCacheDAO {
final Cache<EntityCacheKey, Neo4jPlainSchema> plainSchemaCache,
final Cache<EntityCacheKey, Neo4jRealm> realmCache,
final Cache<EntityCacheKey, Neo4jRole> roleCache,
- final Cache<EntityCacheKey, Neo4jUser> userCache,
- final Cache<EntityCacheKey, Neo4jVirSchema> virSchemaCache) {
+ final Cache<EntityCacheKey, Neo4jUser> userCache) {
caches = new HashMap<>();
caches.put(Neo4jAnyTypeClass.class, anyTypeCache);
@@ -69,7 +67,6 @@ public class Neo4jEntityCacheDAO implements EntityCacheDAO {
caches.put(Neo4jRealm.class, realmCache);
caches.put(Neo4jRole.class, roleCache);
caches.put(Neo4jUser.class, userCache);
- caches.put(Neo4jVirSchema.class, virSchemaCache);
}
@Override
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AbstractAnyRepoExt.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AbstractAnyRepoExt.java
index 2f3c519629..fe61c79e94 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AbstractAnyRepoExt.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AbstractAnyRepoExt.java
@@ -37,7 +37,6 @@ import org.apache.syncope.core.persistence.api.dao.DuplicateException;
import org.apache.syncope.core.persistence.api.dao.DynRealmDAO;
import org.apache.syncope.core.persistence.api.dao.NotFoundException;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.Any;
import org.apache.syncope.core.persistence.api.entity.AnyType;
import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
@@ -47,7 +46,6 @@ import org.apache.syncope.core.persistence.api.entity.DerSchema;
import org.apache.syncope.core.persistence.api.entity.ExternalResource;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
import org.apache.syncope.core.persistence.api.entity.Schema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject;
import org.apache.syncope.core.persistence.api.entity.group.Group;
import org.apache.syncope.core.persistence.api.entity.user.User;
@@ -97,8 +95,6 @@ public abstract class AbstractAnyRepoExt<A extends Any, N extends AbstractAny>
protected final DerSchemaDAO derSchemaDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
protected final DynRealmDAO dynRealmDAO;
protected final AnyFinder anyFinder;
@@ -110,7 +106,6 @@ public abstract class AbstractAnyRepoExt<A extends Any, N extends AbstractAny>
final AnyTypeClassDAO anyTypeClassDAO,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final DynRealmDAO dynRealmDAO,
final AnyFinder anyFinder,
final AnyUtils anyUtils,
@@ -122,7 +117,6 @@ public abstract class AbstractAnyRepoExt<A extends Any, N extends AbstractAny>
this.anyTypeClassDAO = anyTypeClassDAO;
this.plainSchemaDAO = plainSchemaDAO;
this.derSchemaDAO = derSchemaDAO;
- this.virSchemaDAO = virSchemaDAO;
this.dynRealmDAO = dynRealmDAO;
this.anyFinder = anyFinder;
this.anyUtils = anyUtils;
@@ -204,11 +198,6 @@ public abstract class AbstractAnyRepoExt<A extends Any, N extends AbstractAny>
map(schema -> derSchemaDAO.findById(schema.getKey())).
flatMap(Optional::stream).
forEach(schema -> result.getForSelf().add((S) schema));
- } else if (reference.equals(VirSchema.class)) {
- atc.getVirSchemas().stream().
- map(schema -> virSchemaDAO.findById(schema.getKey())).
- flatMap(Optional::stream).
- forEach(schema -> result.getForSelf().add((S) schema));
}
});
@@ -258,11 +247,6 @@ public abstract class AbstractAnyRepoExt<A extends Any, N extends AbstractAny>
map(schema -> derSchemaDAO.findById(schema.getKey())).
flatMap(Optional::stream).
forEach(schema -> result.getForMemberships().get(entry.getKey()).add((S) schema));
- } else if (reference.equals(VirSchema.class)) {
- atc.getVirSchemas().stream().
- map(schema -> virSchemaDAO.findById(schema.getKey())).
- flatMap(Optional::stream).
- forEach(schema -> result.getForMemberships().get(entry.getKey()).add((S) schema));
}
}));
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AbstractSchemaRepoExt.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AbstractSchemaRepoExt.java
index 425ff3ca68..210272b8ea 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AbstractSchemaRepoExt.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AbstractSchemaRepoExt.java
@@ -32,7 +32,6 @@ import org.apache.syncope.core.persistence.neo4j.entity.Neo4jAnyTypeClass;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jDerSchema;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jPlainSchema;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jSchema;
-import org.apache.syncope.core.persistence.neo4j.entity.Neo4jVirSchema;
import org.apache.syncope.core.persistence.neo4j.spring.NodeValidator;
import org.springframework.data.neo4j.core.Neo4jClient;
import org.springframework.data.neo4j.core.Neo4jTemplate;
@@ -82,9 +81,6 @@ public abstract class AbstractSchemaRepoExt extends AbstractDAO {
} else if (domainType.equals(Neo4jDerSchema.class)) {
label = Neo4jDerSchema.NODE;
relationship = Neo4jAnyTypeClass.ANY_TYPE_CLASS_DER_REL;
- } else if (domainType.equals(Neo4jVirSchema.class)) {
- label = Neo4jVirSchema.NODE;
- relationship = Neo4jAnyTypeClass.ANY_TYPE_CLASS_VIR_REL;
}
List<String> clauses = new ArrayList<>();
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AnyObjectRepoExtImpl.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AnyObjectRepoExtImpl.java
index d74708bf46..53158cf951 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AnyObjectRepoExtImpl.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AnyObjectRepoExtImpl.java
@@ -39,7 +39,6 @@ import org.apache.syncope.core.persistence.api.dao.DynRealmDAO;
import org.apache.syncope.core.persistence.api.dao.GroupDAO;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.UserDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.Any;
import org.apache.syncope.core.persistence.api.entity.AnyType;
import org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory;
@@ -86,7 +85,6 @@ public class AnyObjectRepoExtImpl extends AbstractAnyRepoExt<AnyObject, Neo4jAny
final AnyTypeClassDAO anyTypeClassDAO,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final DynRealmDAO dynRealmDAO,
final UserDAO userDAO,
final GroupDAO groupDAO,
@@ -101,7 +99,6 @@ public class AnyObjectRepoExtImpl extends AbstractAnyRepoExt<AnyObject, Neo4jAny
anyTypeClassDAO,
plainSchemaDAO,
derSchemaDAO,
- virSchemaDAO,
dynRealmDAO,
anyFinder,
anyUtilsFactory.getInstance(AnyTypeKind.ANY_OBJECT),
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AnyTypeClassRepoExtImpl.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AnyTypeClassRepoExtImpl.java
index 8669192b97..7fc5f1cc58 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AnyTypeClassRepoExtImpl.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/AnyTypeClassRepoExtImpl.java
@@ -26,12 +26,10 @@ import org.apache.syncope.core.persistence.api.dao.DerSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
import org.apache.syncope.core.persistence.api.dao.GroupDAO;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.AnyType;
import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
import org.apache.syncope.core.persistence.api.entity.DerSchema;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.entity.group.TypeExtension;
import org.apache.syncope.core.persistence.neo4j.dao.AbstractDAO;
import org.apache.syncope.core.persistence.neo4j.entity.EntityCacheKey;
@@ -40,7 +38,6 @@ import org.apache.syncope.core.persistence.neo4j.entity.Neo4jAnyTypeClass;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jDerSchema;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jExternalResource;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jPlainSchema;
-import org.apache.syncope.core.persistence.neo4j.entity.Neo4jVirSchema;
import org.apache.syncope.core.persistence.neo4j.entity.group.Neo4jGroup;
import org.apache.syncope.core.persistence.neo4j.spring.NodeValidator;
import org.springframework.data.neo4j.core.Neo4jClient;
@@ -55,8 +52,6 @@ public class AnyTypeClassRepoExtImpl extends AbstractDAO implements AnyTypeClass
protected final DerSchemaDAO derSchemaDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
protected final GroupDAO groupDAO;
protected final ExternalResourceDAO resourceDAO;
@@ -73,7 +68,6 @@ public class AnyTypeClassRepoExtImpl extends AbstractDAO implements AnyTypeClass
final AnyTypeDAO anyTypeDAO,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final GroupDAO groupDAO,
final ExternalResourceDAO resourceDAO,
final Neo4jTemplate neo4jTemplate,
@@ -88,7 +82,6 @@ public class AnyTypeClassRepoExtImpl extends AbstractDAO implements AnyTypeClass
this.anyTypeDAO = anyTypeDAO;
this.plainSchemaDAO = plainSchemaDAO;
this.derSchemaDAO = derSchemaDAO;
- this.virSchemaDAO = virSchemaDAO;
this.groupDAO = groupDAO;
this.resourceDAO = resourceDAO;
this.nodeValidator = nodeValidator;
@@ -121,13 +114,6 @@ public class AnyTypeClassRepoExtImpl extends AbstractDAO implements AnyTypeClass
schema.getKey(),
anyTypeClass.getKey(),
Neo4jAnyTypeClass.ANY_TYPE_CLASS_DER_REL));
- before.getVirSchemas().stream().filter(schema -> !anyTypeClass.getVirSchemas().contains(schema)).
- forEach(schema -> deleteRelationship(
- Neo4jVirSchema.NODE,
- Neo4jAnyTypeClass.NODE,
- schema.getKey(),
- anyTypeClass.getKey(),
- Neo4jAnyTypeClass.ANY_TYPE_CLASS_VIR_REL));
});
AnyTypeClass merged = neo4jTemplate.save(nodeValidator.validate(anyTypeClass));
@@ -140,10 +126,6 @@ public class AnyTypeClassRepoExtImpl extends AbstractDAO implements AnyTypeClass
schema.setAnyTypeClass(merged);
derSchemaDAO.save(schema);
}
- for (VirSchema schema : merged.getVirSchemas()) {
- schema.setAnyTypeClass(merged);
- virSchemaDAO.save(schema);
- }
for (AnyType anyType : anyTypeDAO.findByClassesContaining(merged)) {
anyType.getClasses().removeIf(c -> c.getKey().equals(merged.getKey()));
@@ -170,10 +152,6 @@ public class AnyTypeClassRepoExtImpl extends AbstractDAO implements AnyTypeClass
schema.setAnyTypeClass(null);
derSchemaDAO.save(schema);
}
- for (VirSchema schema : virSchemaDAO.findByAnyTypeClasses(List.of(anyTypeClass))) {
- schema.setAnyTypeClass(null);
- virSchemaDAO.save(schema);
- }
for (AnyType anyType : anyTypeDAO.findByClassesContaining(anyTypeClass)) {
anyType.getClasses().remove(anyTypeClass);
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/ExternalResourceRepoExtImpl.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/ExternalResourceRepoExtImpl.java
index 47c76c4a2d..2f1c125424 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/ExternalResourceRepoExtImpl.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/ExternalResourceRepoExtImpl.java
@@ -31,7 +31,6 @@ import org.apache.syncope.core.persistence.api.dao.GroupDAO;
import org.apache.syncope.core.persistence.api.dao.RealmDAO;
import org.apache.syncope.core.persistence.api.dao.TaskDAO;
import org.apache.syncope.core.persistence.api.dao.UserDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.ExternalResource;
import org.apache.syncope.core.persistence.api.entity.Implementation;
import org.apache.syncope.core.persistence.api.entity.policy.AccountPolicy;
@@ -70,8 +69,6 @@ public class ExternalResourceRepoExtImpl extends AbstractDAO implements External
protected final GroupDAO groupDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
protected final RealmDAO realmDAO;
protected final NodeValidator nodeValidator;
@@ -83,7 +80,6 @@ public class ExternalResourceRepoExtImpl extends AbstractDAO implements External
final AnyObjectDAO anyObjectDAO,
final UserDAO userDAO,
final GroupDAO groupDAO,
- final VirSchemaDAO virSchemaDAO,
final RealmDAO realmDAO,
final Neo4jTemplate neo4jTemplate,
final Neo4jClient neo4jClient,
@@ -95,7 +91,6 @@ public class ExternalResourceRepoExtImpl extends AbstractDAO implements External
this.anyObjectDAO = anyObjectDAO;
this.userDAO = userDAO;
this.groupDAO = groupDAO;
- this.virSchemaDAO = virSchemaDAO;
this.realmDAO = realmDAO;
this.nodeValidator = nodeValidator;
this.cache = cache;
@@ -316,8 +311,6 @@ public class ExternalResourceRepoExtImpl extends AbstractDAO implements External
groupDAO.findByResourcesContaining(resource).
forEach(group -> group.getResources().remove(resource));
- virSchemaDAO.findByResource(resource).forEach(virSchemaDAO::delete);
-
if (resource.getConnector() != null
&& resource.getConnector().getResources() != null
&& !resource.getConnector().getResources().isEmpty()) {
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/GroupRepoExtImpl.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/GroupRepoExtImpl.java
index 93cbd53ace..4aa022737d 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/GroupRepoExtImpl.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/GroupRepoExtImpl.java
@@ -42,7 +42,6 @@ import org.apache.syncope.core.persistence.api.dao.DerSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.DynRealmDAO;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.UserDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.search.SearchCond;
import org.apache.syncope.core.persistence.api.entity.Any;
import org.apache.syncope.core.persistence.api.entity.AnyType;
@@ -110,7 +109,6 @@ public class GroupRepoExtImpl extends AbstractAnyRepoExt<Group, Neo4jGroup> impl
final AnyTypeClassDAO anyTypeClassDAO,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final DynRealmDAO dynRealmDAO,
final AnyMatchDAO anyMatchDAO,
final UserDAO userDAO,
@@ -128,7 +126,6 @@ public class GroupRepoExtImpl extends AbstractAnyRepoExt<Group, Neo4jGroup> impl
anyTypeClassDAO,
plainSchemaDAO,
derSchemaDAO,
- virSchemaDAO,
dynRealmDAO,
anyFinder,
anyUtilsFactory.getInstance(AnyTypeKind.GROUP),
@@ -247,7 +244,7 @@ public class GroupRepoExtImpl extends AbstractAnyRepoExt<Group, Neo4jGroup> impl
@Override
public Collection<String> findAllResourceKeys(final String key) {
return findById(key).map(Any::getResources).
- orElseGet(List::of).
+ orElseGet(List::of).
stream().map(ExternalResource::getKey).toList();
}
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/UserRepoExtImpl.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/UserRepoExtImpl.java
index 4def401122..c50ada8872 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/UserRepoExtImpl.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/UserRepoExtImpl.java
@@ -41,7 +41,6 @@ import org.apache.syncope.core.persistence.api.dao.FIQLQueryDAO;
import org.apache.syncope.core.persistence.api.dao.GroupDAO;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.RoleDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory;
import org.apache.syncope.core.persistence.api.entity.Attributable;
import org.apache.syncope.core.persistence.api.entity.ExternalResource;
@@ -98,7 +97,6 @@ public class UserRepoExtImpl extends AbstractAnyRepoExt<User, Neo4jUser> impleme
final AnyTypeClassDAO anyTypeClassDAO,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final DynRealmDAO dynRealmDAO,
final RoleDAO roleDAO,
final AccessTokenDAO accessTokenDAO,
@@ -117,7 +115,6 @@ public class UserRepoExtImpl extends AbstractAnyRepoExt<User, Neo4jUser> impleme
anyTypeClassDAO,
plainSchemaDAO,
derSchemaDAO,
- virSchemaDAO,
dynRealmDAO,
anyFinder,
anyUtilsFactory.getInstance(AnyTypeKind.USER),
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/VirSchemaRepo.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/VirSchemaRepo.java
deleted file mode 100644
index bb68492819..0000000000
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/VirSchemaRepo.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.neo4j.dao.repo;
-
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
-import org.apache.syncope.core.persistence.neo4j.entity.Neo4jVirSchema;
-import org.springframework.data.repository.ListCrudRepository;
-
-public interface VirSchemaRepo
- extends ListCrudRepository<Neo4jVirSchema, String>, VirSchemaRepoExt, VirSchemaDAO {
-
-}
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/VirSchemaRepoExt.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/VirSchemaRepoExt.java
deleted file mode 100644
index ae60284f8b..0000000000
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/VirSchemaRepoExt.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.neo4j.dao.repo;
-
-import java.util.Collection;
-import java.util.List;
-import java.util.Optional;
-import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
-import org.apache.syncope.core.persistence.api.entity.ExternalResource;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-
-public interface VirSchemaRepoExt {
-
- String CACHE = "virSchemaCache";
-
- Optional<? extends VirSchema> findById(String key);
-
- List<? extends VirSchema> findByIdLike(String keyword);
-
- List<? extends VirSchema> findByAnyTypeClasses(Collection<AnyTypeClass> anyTypeClasses);
-
- List<? extends VirSchema> findByResource(ExternalResource resource);
-
- List<VirSchema> findByResourceAndAnyType(String resource, String anyType);
-
- VirSchema save(VirSchema schema);
-
- void deleteById(String key);
-
- void delete(VirSchema schema);
-}
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/VirSchemaRepoExtImpl.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/VirSchemaRepoExtImpl.java
deleted file mode 100644
index 743ed5cef2..0000000000
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/dao/repo/VirSchemaRepoExtImpl.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.neo4j.dao.repo;
-
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import javax.cache.Cache;
-import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
-import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
-import org.apache.syncope.core.persistence.api.entity.ExternalResource;
-import org.apache.syncope.core.persistence.api.entity.Schema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-import org.apache.syncope.core.persistence.neo4j.entity.EntityCacheKey;
-import org.apache.syncope.core.persistence.neo4j.entity.Neo4jAnyType;
-import org.apache.syncope.core.persistence.neo4j.entity.Neo4jExternalResource;
-import org.apache.syncope.core.persistence.neo4j.entity.Neo4jSchema;
-import org.apache.syncope.core.persistence.neo4j.entity.Neo4jVirSchema;
-import org.apache.syncope.core.persistence.neo4j.spring.NodeValidator;
-import org.springframework.data.neo4j.core.Neo4jClient;
-import org.springframework.data.neo4j.core.Neo4jTemplate;
-import org.springframework.transaction.annotation.Transactional;
-
-public class VirSchemaRepoExtImpl extends AbstractSchemaRepoExt implements VirSchemaRepoExt {
-
- protected final ExternalResourceDAO resourceDAO;
-
- protected final Cache<EntityCacheKey, Neo4jVirSchema> virSchemaCache;
-
- public VirSchemaRepoExtImpl(
- final ExternalResourceDAO resourceDAO,
- final Neo4jTemplate neo4jTemplate,
- final Neo4jClient neo4jClient,
- final NodeValidator nodeValidator,
- final Cache<EntityCacheKey, Neo4jVirSchema> virSchemaCache) {
-
- super(neo4jTemplate, neo4jClient, nodeValidator);
- this.resourceDAO = resourceDAO;
- this.virSchemaCache = virSchemaCache;
- }
-
- @SuppressWarnings("unchecked")
- @Override
- protected <S extends Schema> Cache<EntityCacheKey, S> cache() {
- return (Cache<EntityCacheKey, S>) virSchemaCache;
- }
-
- @Transactional(readOnly = true)
- @Override
- public Optional<? extends VirSchema> findById(final String key) {
- return findById(key, Neo4jVirSchema.class, virSchemaCache);
- }
-
- @Transactional(readOnly = true)
- @Override
- public List<? extends VirSchema> findByIdLike(final String keyword) {
- return findByIdLike(Neo4jVirSchema.NODE, Neo4jVirSchema.class, keyword);
- }
-
- @Override
- public List<? extends VirSchema> findByAnyTypeClasses(final Collection<AnyTypeClass> anyTypeClasses) {
- return findByAnyTypeClasses(anyTypeClasses, Neo4jVirSchema.class, VirSchema.class);
- }
-
- @Override
- public List<? extends VirSchema> findByResource(final ExternalResource resource) {
- return findByRelationship(
- Neo4jVirSchema.NODE,
- Neo4jExternalResource.NODE,
- resource.getKey(),
- Neo4jVirSchema.VIRSCHEMA_RESOURCE_REL,
- Neo4jVirSchema.class,
- virSchemaCache);
- }
-
- @Override
- public List<VirSchema> findByResourceAndAnyType(final String resource, final String anyType) {
- return toList(neo4jClient.query(
- "MATCH (a:" + Neo4jAnyType.NODE + " {id: $anyTypeId})-"
- + "[:" + Neo4jVirSchema.VIRSCHEMA_ANYTYPE_REL + "]-"
- + "(n:" + Neo4jVirSchema.NODE + ")-"
- + "[:" + Neo4jVirSchema.VIRSCHEMA_RESOURCE_REL + "]-"
- + "(r:" + Neo4jExternalResource.NODE + " {id: $resourceId}) "
- + "RETURN n.id").bindAll(Map.of("resourceId", resource, "anyTypeId", anyType)).fetch().all(),
- "n.id",
- Neo4jVirSchema.class,
- virSchemaCache);
- }
-
- @Override
- public VirSchema save(final VirSchema schema) {
- ((Neo4jSchema) schema).map2json();
- VirSchema saved = neo4jTemplate.save(nodeValidator.validate(schema));
- ((Neo4jSchema) saved).postSave();
-
- virSchemaCache.put(EntityCacheKey.of(schema.getKey()), (Neo4jVirSchema) saved);
-
- return saved;
- }
-
- @Override
- public void deleteById(final String key) {
- findById(key).ifPresent(this::delete);
- }
-
- @Override
- public void delete(final VirSchema schema) {
- resourceDAO.deleteMapping(schema.getKey());
-
- Optional.ofNullable(schema.getAnyTypeClass()).ifPresent(atc -> atc.getVirSchemas().remove(schema));
-
- virSchemaCache.remove(EntityCacheKey.of(schema.getKey()));
-
- neo4jTemplate.deleteById(schema.getKey(), Neo4jVirSchema.class);
- }
-}
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/entity/Neo4jAnyTypeClass.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/entity/Neo4jAnyTypeClass.java
index 49b5c3656c..30ca771e62 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/entity/Neo4jAnyTypeClass.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/entity/Neo4jAnyTypeClass.java
@@ -23,7 +23,6 @@ import java.util.List;
import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
import org.apache.syncope.core.persistence.api.entity.DerSchema;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Relationship;
@@ -38,17 +37,12 @@ public class Neo4jAnyTypeClass extends AbstractProvidedKeyNode implements AnyTyp
public static final String ANY_TYPE_CLASS_DER_REL = "ANY_TYPE_CLASS_DER";
- public static final String ANY_TYPE_CLASS_VIR_REL = "ANY_TYPE_CLASS_VIR";
-
@Relationship(type = ANY_TYPE_CLASS_PLAIN_REL, direction = Relationship.Direction.INCOMING)
private List<Neo4jPlainSchema> plainSchemas = new ArrayList<>();
@Relationship(type = ANY_TYPE_CLASS_DER_REL, direction = Relationship.Direction.INCOMING)
private List<Neo4jDerSchema> derSchemas = new ArrayList<>();
- @Relationship(type = ANY_TYPE_CLASS_VIR_REL, direction = Relationship.Direction.INCOMING)
- private List<Neo4jVirSchema> virSchemas = new ArrayList<>();
-
@Override
public boolean add(final PlainSchema schema) {
checkType(schema, Neo4jPlainSchema.class);
@@ -70,15 +64,4 @@ public class Neo4jAnyTypeClass extends AbstractProvidedKeyNode implements AnyTyp
public List<? extends DerSchema> getDerSchemas() {
return derSchemas;
}
-
- @Override
- public boolean add(final VirSchema schema) {
- checkType(schema, Neo4jVirSchema.class);
- return this.virSchemas.add((Neo4jVirSchema) schema);
- }
-
- @Override
- public List<? extends VirSchema> getVirSchemas() {
- return virSchemas;
- }
}
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/entity/Neo4jEntityFactory.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/entity/Neo4jEntityFactory.java
index 88267f646c..5a79855f47 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/entity/Neo4jEntityFactory.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/entity/Neo4jEntityFactory.java
@@ -48,7 +48,6 @@ import org.apache.syncope.core.persistence.api.entity.Report;
import org.apache.syncope.core.persistence.api.entity.ReportExec;
import org.apache.syncope.core.persistence.api.entity.Role;
import org.apache.syncope.core.persistence.api.entity.SRARoute;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.entity.am.AttrRepo;
import org.apache.syncope.core.persistence.api.entity.am.AuthModule;
import org.apache.syncope.core.persistence.api.entity.am.AuthProfile;
@@ -216,8 +215,6 @@ public class Neo4jEntityFactory implements EntityFactory {
result = (E) new Neo4jPlainSchema();
} else if (reference.equals(DerSchema.class)) {
result = (E) new Neo4jDerSchema();
- } else if (reference.equals(VirSchema.class)) {
- result = (E) new Neo4jVirSchema();
} else if (reference.equals(Report.class)) {
result = (E) new Neo4jReport();
} else if (reference.equals(ReportExec.class)) {
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/entity/Neo4jVirSchema.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/entity/Neo4jVirSchema.java
deleted file mode 100644
index 671e560ea2..0000000000
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/entity/Neo4jVirSchema.java
+++ /dev/null
@@ -1,129 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.neo4j.entity;
-
-import jakarta.validation.constraints.NotNull;
-import org.apache.syncope.common.lib.types.AttrSchemaType;
-import org.apache.syncope.core.persistence.api.entity.AnyType;
-import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
-import org.apache.syncope.core.persistence.api.entity.ExternalResource;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-import org.springframework.data.neo4j.core.schema.Node;
-import org.springframework.data.neo4j.core.schema.Relationship;
-
-@Node(Neo4jVirSchema.NODE)
-public class Neo4jVirSchema extends Neo4jSchema implements VirSchema {
-
- private static final long serialVersionUID = -4136127093718028088L;
-
- public static final String NODE = "VirSchema";
-
- public static final String VIRSCHEMA_RESOURCE_REL = "VIRSCHEMA_RESOURCE";
-
- public static final String VIRSCHEMA_ANYTYPE_REL = "VIRSCHEMA_ANYTYPE";
-
- @NotNull
- private String extAttrName;
-
- private Boolean readonly = false;
-
- @Relationship(type = Neo4jAnyTypeClass.ANY_TYPE_CLASS_VIR_REL, direction = Relationship.Direction.OUTGOING)
- private Neo4jAnyTypeClass anyTypeClass;
-
- @NotNull
- @Relationship(type = VIRSCHEMA_RESOURCE_REL, direction = Relationship.Direction.OUTGOING)
- private Neo4jExternalResource resource;
-
- @NotNull
- @Relationship(type = VIRSCHEMA_ANYTYPE_REL, direction = Relationship.Direction.OUTGOING)
- private Neo4jAnyType anyType;
-
- @Override
- public String getExtAttrName() {
- return extAttrName;
- }
-
- @Override
- public void setExtAttrName(final String extAttrName) {
- this.extAttrName = extAttrName;
- }
-
- @Override
- public boolean isReadonly() {
- return readonly;
- }
-
- @Override
- public void setReadonly(final boolean readonly) {
- this.readonly = readonly;
- }
-
- @Override
- public AttrSchemaType getType() {
- return AttrSchemaType.String;
- }
-
- @Override
- public String getMandatoryCondition() {
- return Boolean.FALSE.toString().toLowerCase();
- }
-
- @Override
- public boolean isMultivalue() {
- return true;
- }
-
- @Override
- public boolean isUniqueConstraint() {
- return false;
- }
-
- @Override
- public AnyTypeClass getAnyTypeClass() {
- return anyTypeClass;
- }
-
- @Override
- public void setAnyTypeClass(final AnyTypeClass anyTypeClass) {
- checkType(anyTypeClass, Neo4jAnyTypeClass.class);
- this.anyTypeClass = (Neo4jAnyTypeClass) anyTypeClass;
- }
-
- @Override
- public ExternalResource getResource() {
- return resource;
- }
-
- @Override
- public void setResource(final ExternalResource resource) {
- checkType(resource, Neo4jExternalResource.class);
- this.resource = (Neo4jExternalResource) resource;
- }
-
- @Override
- public AnyType getAnyType() {
- return anyType;
- }
-
- @Override
- public void setAnyType(final AnyType anyType) {
- checkType(anyType, Neo4jAnyType.class);
- this.anyType = (Neo4jAnyType) anyType;
- }
-}
diff --git a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/spring/CacheCleaningTransactionExecutionListener.java b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/spring/CacheCleaningTransactionExecutionListener.java
index 1dc21fe2df..930e43aafb 100644
--- a/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/spring/CacheCleaningTransactionExecutionListener.java
+++ b/core/persistence-neo4j/src/main/java/org/apache/syncope/core/persistence/neo4j/spring/CacheCleaningTransactionExecutionListener.java
@@ -28,7 +28,6 @@ import org.apache.syncope.core.persistence.neo4j.entity.Neo4jImplementation;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jPlainSchema;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jRealm;
import org.apache.syncope.core.persistence.neo4j.entity.Neo4jRole;
-import org.apache.syncope.core.persistence.neo4j.entity.Neo4jVirSchema;
import org.apache.syncope.core.persistence.neo4j.entity.anyobject.Neo4jAnyObject;
import org.apache.syncope.core.persistence.neo4j.entity.group.Neo4jGroup;
import org.apache.syncope.core.persistence.neo4j.entity.user.Neo4jUser;
@@ -59,8 +58,6 @@ public class CacheCleaningTransactionExecutionListener implements TransactionExe
protected final Cache<EntityCacheKey, Neo4jUser> userCache;
- protected final Cache<EntityCacheKey, Neo4jVirSchema> virSchemaCache;
-
public CacheCleaningTransactionExecutionListener(
final Cache<EntityCacheKey, Neo4jAnyType> anyTypeCache,
final Cache<EntityCacheKey, Neo4jAnyObject> anyObjectCache,
@@ -72,8 +69,7 @@ public class CacheCleaningTransactionExecutionListener implements TransactionExe
final Cache<EntityCacheKey, Neo4jPlainSchema> plainSchemaCache,
final Cache<EntityCacheKey, Neo4jRealm> realmCache,
final Cache<EntityCacheKey, Neo4jRole> roleCache,
- final Cache<EntityCacheKey, Neo4jUser> userCache,
- final Cache<EntityCacheKey, Neo4jVirSchema> virSchemaCache) {
+ final Cache<EntityCacheKey, Neo4jUser> userCache) {
this.anyTypeCache = anyTypeCache;
this.anyObjectCache = anyObjectCache;
@@ -86,7 +82,6 @@ public class CacheCleaningTransactionExecutionListener implements TransactionExe
this.realmCache = realmCache;
this.roleCache = roleCache;
this.userCache = userCache;
- this.virSchemaCache = virSchemaCache;
}
@Override
@@ -105,7 +100,6 @@ public class CacheCleaningTransactionExecutionListener implements TransactionExe
} else if (transaction.getTransactionName().contains("Schema")) {
derSchemaCache.removeAll();
plainSchemaCache.removeAll();
- virSchemaCache.removeAll();
} else if (transaction.getTransactionName().contains("Resource")) {
externalResourceCache.removeAll();
} else if (transaction.getTransactionName().contains("Group")) {
diff --git a/core/persistence-neo4j/src/main/resources/META-INF/indexes.xml b/core/persistence-neo4j/src/main/resources/META-INF/indexes.xml
index c59cc41b1c..0bbfcb932d 100644
--- a/core/persistence-neo4j/src/main/resources/META-INF/indexes.xml
+++ b/core/persistence-neo4j/src/main/resources/META-INF/indexes.xml
@@ -57,7 +57,6 @@ under the License.
<entry key="Schema_id">CREATE CONSTRAINT Schema_id FOR (n:Schema) REQUIRE n.id IS UNIQUE</entry>
<entry key="PlainSchema_id">CREATE INDEX PlainSchema_id FOR (n:PlainSchema) ON (n.id)</entry>
<entry key="DerSchema_id">CREATE INDEX DerSchema_id FOR (n:DerSchema) ON (n.id)</entry>
- <entry key="VirSchema_id">CREATE INDEX VirSchema_id FOR (n:VirSchema) ON (n.id)</entry>
<entry key="SRARoute_name">CREATE CONSTRAINT SRARoute_name FOR (n:SRARoute) REQUIRE n.name IS UNIQUE</entry>
diff --git a/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/AnyTypeClassTest.java b/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/AnyTypeClassTest.java
index 5feea372e6..8b0a7d904a 100644
--- a/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/AnyTypeClassTest.java
+++ b/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/AnyTypeClassTest.java
@@ -48,7 +48,6 @@ public class AnyTypeClassTest extends AbstractTest {
assertFalse(minimalGroup.getPlainSchemas().isEmpty());
assertFalse(minimalGroup.getDerSchemas().isEmpty());
- assertFalse(minimalGroup.getVirSchemas().isEmpty());
}
@Test
@@ -72,7 +71,6 @@ public class AnyTypeClassTest extends AbstractTest {
assertNotNull(newClass);
assertFalse(newClass.getPlainSchemas().isEmpty());
assertTrue(newClass.getDerSchemas().isEmpty());
- assertTrue(newClass.getVirSchemas().isEmpty());
firstname = plainSchemaDAO.findById("firstname").orElseThrow();
assertEquals(newClass, firstname.getAnyTypeClass());
diff --git a/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/RemediationTest.java b/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/RemediationTest.java
index 2c9b8c21a8..c91297f3ff 100644
--- a/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/RemediationTest.java
+++ b/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/RemediationTest.java
@@ -70,7 +70,7 @@ public class RemediationTest extends AbstractTest {
remediation.setInstant(OffsetDateTime.now());
remediation.setRemoteName("remote");
remediation.setPullTask((PullTask) taskDAO.findById(
- TaskType.PULL, "38abbf9e-a1a3-40a1-a15f-7d0ac02f47f1").orElseThrow());
+ TaskType.PULL, "81d88f73-d474-4450-9031-605daa4e313f").orElseThrow());
// missing payload
try {
@@ -92,7 +92,7 @@ public class RemediationTest extends AbstractTest {
remediation.setInstant(OffsetDateTime.now());
remediation.setRemoteName("remote");
remediation.setPullTask((PullTask) taskDAO.findById(
- TaskType.PULL, "38abbf9e-a1a3-40a1-a15f-7d0ac02f47f1").orElseThrow());
+ TaskType.PULL, "81d88f73-d474-4450-9031-605daa4e313f").orElseThrow());
remediation.setPayload(UUID.randomUUID().toString());
// wrong payload for operation
@@ -115,7 +115,7 @@ public class RemediationTest extends AbstractTest {
remediation.setInstant(OffsetDateTime.now());
remediation.setRemoteName("remote");
remediation.setPullTask((PullTask) taskDAO.findById(
- TaskType.PULL, "38abbf9e-a1a3-40a1-a15f-7d0ac02f47f1").orElseThrow());
+ TaskType.PULL, "81d88f73-d474-4450-9031-605daa4e313f").orElseThrow());
remediation.setPayload(UUID.randomUUID().toString());
remediation.setOperation(ResourceOperation.DELETE);
diff --git a/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/ResourceTest.java b/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/ResourceTest.java
index b2f181ca89..754ac0a3cd 100644
--- a/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/ResourceTest.java
+++ b/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/ResourceTest.java
@@ -237,38 +237,6 @@ public class ResourceTest extends AbstractTest {
});
}
- @Test
- public void saveVirtualMapping() {
- ExternalResource resource = entityFactory.newEntity(ExternalResource.class);
- resource.setKey("ws-target-resource-virtual-mapping");
- resource.setPropagationPriority(2);
-
- Provision provision = new Provision();
- provision.setAnyType(AnyTypeKind.USER.name());
- provision.setObjectClass(ObjectClass.ACCOUNT_NAME);
- resource.getProvisions().add(provision);
-
- Mapping mapping = new Mapping();
- provision.setMapping(mapping);
-
- Item connObjectKey = new Item();
- connObjectKey.setExtAttrName("username");
- connObjectKey.setIntAttrName("fullname");
- connObjectKey.setPurpose(MappingPurpose.BOTH);
- mapping.setConnObjectKeyItem(connObjectKey);
-
- Item virtualMapItem = new Item();
- virtualMapItem.setIntAttrName("virtualReadOnly");
- virtualMapItem.setExtAttrName("TEST");
- virtualMapItem.setPurpose(MappingPurpose.PROPAGATION);
- mapping.add(virtualMapItem);
-
- ConnInstance connector = resourceDAO.findById("ws-target-resource-1").orElseThrow().getConnector();
- resource.setConnector(connector);
-
- resourceDAO.save(resource);
- }
-
@Test
public void saveWithGroupMappingType() {
ExternalResource resource = entityFactory.newEntity(ExternalResource.class);
diff --git a/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/TaskTest.java b/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/TaskTest.java
index b9a3477d9c..fb1d5bb677 100644
--- a/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/TaskTest.java
+++ b/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/TaskTest.java
@@ -126,7 +126,7 @@ public class TaskTest extends AbstractTest {
assertEquals(6, taskDAO.findAll(TaskType.PROPAGATION).size());
assertEquals(1, taskDAO.findAll(TaskType.NOTIFICATION).size());
assertEquals(3, taskDAO.findAll(TaskType.SCHEDULED).size());
- assertEquals(10, taskDAO.findAll(TaskType.PULL).size());
+ assertEquals(9, taskDAO.findAll(TaskType.PULL).size());
assertEquals(11, taskDAO.findAll(TaskType.PUSH).size());
List<GrantedAuthority> authorities = IdRepoEntitlement.values().stream().
diff --git a/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/VirSchemaTest.java b/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/VirSchemaTest.java
deleted file mode 100644
index f2fe53ad01..0000000000
--- a/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/inner/VirSchemaTest.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.neo4j.inner;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-import static org.junit.jupiter.api.Assertions.fail;
-
-import java.util.List;
-import org.apache.syncope.common.lib.types.EntityViolationType;
-import org.apache.syncope.core.persistence.api.attrvalue.InvalidEntityException;
-import org.apache.syncope.core.persistence.api.dao.AnyTypeDAO;
-import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-import org.apache.syncope.core.persistence.neo4j.AbstractTest;
-import org.junit.jupiter.api.Test;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.transaction.annotation.Transactional;
-
-@Transactional
-public class VirSchemaTest extends AbstractTest {
-
- @Autowired
- private VirSchemaDAO virSchemaDAO;
-
- @Autowired
- private ExternalResourceDAO resourceDAO;
-
- @Autowired
- private AnyTypeDAO anyTypeDAO;
-
- @Test
- public void findAll() {
- List<? extends VirSchema> list = virSchemaDAO.findAll();
- assertEquals(3, list.size());
- }
-
- @Test
- public void findByIdLike() {
- List<? extends VirSchema> schemas = virSchemaDAO.findByIdLike("rvirtuald%");
- assertEquals(1, schemas.size());
- }
-
- @Test
- public void findByName() {
- VirSchema attributeSchema = virSchemaDAO.findById("virtualdata").orElseThrow();
- assertNotNull(attributeSchema);
- }
-
- @Test
- public void save() {
- VirSchema virSchema = entityFactory.newEntity(VirSchema.class);
- virSchema.setKey("virtual");
- virSchema.setResource(resourceDAO.findById("resource-csv").orElseThrow());
- virSchema.setAnyType(anyTypeDAO.getUser());
- virSchema.setReadonly(true);
- virSchema.setExtAttrName("EXT_ATTR");
-
- virSchemaDAO.save(virSchema);
-
- VirSchema actual = virSchemaDAO.findById("virtual").orElseThrow();
- assertNotNull(actual);
- assertTrue(actual.isReadonly());
- assertEquals("EXT_ATTR", actual.getExtAttrName());
- }
-
- @Test
- public void delete() {
- VirSchema virtualdata = virSchemaDAO.findById("virtualdata").orElseThrow();
-
- virSchemaDAO.deleteById(virtualdata.getKey());
-
- assertTrue(virSchemaDAO.findById("virtualdata").isEmpty());
-
- // ------------- //
- VirSchema rvirtualdata = virSchemaDAO.findById("rvirtualdata").orElseThrow();
-
- virSchemaDAO.deleteById(rvirtualdata.getKey());
-
- assertTrue(virSchemaDAO.findById("rvirtualdata").isEmpty());
- }
-
- @Test
- public void issueSYNCOPE418() {
- VirSchema schema = entityFactory.newEntity(VirSchema.class);
- schema.setKey("http://schemas.examples.org/security/authorization/organizationUnit");
-
- try {
- virSchemaDAO.save(schema);
- fail("This should not happen");
- } catch (InvalidEntityException e) {
- assertTrue(e.hasViolation(EntityViolationType.InvalidKey));
- }
- }
-}
diff --git a/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/outer/VirSchemaTest.java b/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/outer/VirSchemaTest.java
deleted file mode 100644
index ab9af6ffaf..0000000000
--- a/core/persistence-neo4j/src/test/java/org/apache/syncope/core/persistence/neo4j/outer/VirSchemaTest.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.persistence.neo4j.outer;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-import org.apache.syncope.common.lib.to.Item;
-import org.apache.syncope.common.lib.types.AnyTypeKind;
-import org.apache.syncope.core.persistence.api.dao.AnyTypeDAO;
-import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
-import org.apache.syncope.core.persistence.api.entity.ExternalResource;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-import org.apache.syncope.core.persistence.neo4j.AbstractTest;
-import org.junit.jupiter.api.Test;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.transaction.annotation.Transactional;
-
-@Transactional
-public class VirSchemaTest extends AbstractTest {
-
- @Autowired
- private VirSchemaDAO virSchemaDAO;
-
- @Autowired
- private ExternalResourceDAO resourceDAO;
-
- @Autowired
- private AnyTypeDAO anyTypeDAO;
-
- @Test
- public void deal() {
- ExternalResource resource = resourceDAO.findById("ws-target-resource-1").orElseThrow();
- assertTrue(virSchemaDAO.findByResource(resource).isEmpty());
- assertTrue(virSchemaDAO.findByResourceAndAnyType(resource.getKey(), AnyTypeKind.USER.name()).isEmpty());
-
- VirSchema virSchema = entityFactory.newEntity(VirSchema.class);
- virSchema.setKey("vSchema");
- virSchema.setReadonly(true);
- virSchema.setExtAttrName("EXT_ATTR");
- virSchema.setResource(resource);
- virSchema.setAnyType(anyTypeDAO.getUser());
-
- virSchemaDAO.save(virSchema);
-
- virSchema = virSchemaDAO.findById("vSchema").orElseThrow();
- assertTrue(virSchema.isReadonly());
- assertEquals("EXT_ATTR", virSchema.getExtAttrName());
-
- assertFalse(virSchemaDAO.findByResource(resource).isEmpty());
- assertTrue(virSchemaDAO.findByResource(resource).contains(virSchema));
-
- assertFalse(virSchemaDAO.findByResourceAndAnyType(
- resource.getKey(), AnyTypeKind.USER.name()).isEmpty());
- assertTrue(virSchemaDAO.findByResourceAndAnyType(
- resource.getKey(), AnyTypeKind.USER.name()).contains(virSchema));
-
- Item item = virSchema.asLinkingMappingItem();
- assertNotNull(item);
- assertEquals(virSchema.getKey(), item.getIntAttrName());
- }
-}
diff --git a/core/persistence-neo4j/src/test/resources/domains/MasterContent.xml b/core/persistence-neo4j/src/test/resources/domains/MasterContent.xml
index c5465463a3..0d8c78b01a 100644
--- a/core/persistence-neo4j/src/test/resources/domains/MasterContent.xml
+++ b/core/persistence-neo4j/src/test/resources/domains/MasterContent.xml
@@ -583,58 +583,58 @@ under the License.
<ExternalResource id="ws-target-resource-1" enforceMandatoryCondition="0"
propagationPriority="1" createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"userId","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"email","extAttrName":"email","connObjectKey":false,"password [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"userId","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"email","extAttrName":"email","connObjectKey":false,"password [...]
<ExternalResource_ConnInstance left="ws-target-resource-1" right="88a7a819-dab5-46b4-9b90-0b9769eabdb8"/>
<ExternalResource id="ws-target-resource-2" enforceMandatoryCondition="1"
createTraceLevel="FAILURES" deleteTraceLevel="NONE" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"pas [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"pas [...]
<ExternalResource_ConnInstance left="ws-target-resource-2" right="88a7a819-dab5-46b4-9b90-0b9769eabdb8"/>
<ExternalResource_InboundPolicy left="ws-target-resource-2" right="9454b0d7-2610-400a-be82-fc23cf553dd6"/>
<ExternalResource id="ws-target-resource-timeout" enforceMandatoryCondition="1"
propagationPriority="1" createTraceLevel="FAILURES" deleteTraceLevel="NONE" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
jsonConf='[{"schema":{"name":"endpoint","displayName":null,"helpMessage":null,"type":"java.lang.String","required":true,"order":0,"confidential":false,"defaultValues":null},"overridable":true,"values":["http://localhost:${cargo.servlet.port}/syncope-fit-build-tools/services/provisioning"]}]'
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[],"connObjectKeyItem":{"intAttrName":"fullname","extAttrN [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"connObjectKeyItem":{"intAttrName":"fullname","extAttrName":"fullname","c [...]
<ExternalResource_ConnInstance left="ws-target-resource-timeout" right="5ffbb4ac-a8c3-4b44-b699-11b398a1ba08"/>
<ExternalResource id="ws-target-resource-list-mappings-1" enforceMandatoryCondition="0"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"email","extAttrName":"email","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"surname","extAttrName":"surname","connObjectKey":false,"password [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"email","extAttrName":"email","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"surname","extAttrName":"surname","connObjectKey":false,"password [...]
<ExternalResource_ConnInstance left="ws-target-resource-list-mappings-1" right="88a7a819-dab5-46b4-9b90-0b9769eabdb8"/>
<ExternalResource id="ws-target-resource-list-mappings-2" enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"/>
<ExternalResource_ConnInstance left="ws-target-resource-list-mappings-2" right="88a7a819-dab5-46b4-9b90-0b9769eabdb8"/>
<ExternalResource id="ws-target-resource-delete" enforceMandatoryCondition="0"
propagationPriority="2" createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"userId","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[],"connObjectKeyItem":{"intAttrName":"username","extAttrNam [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"userId","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"connObjectKeyItem":{"intAttrName":"username","extAttrName":"userId","connO [...]
<ExternalResource_ConnInstance left="ws-target-resource-delete" right="5ffbb4ac-a8c3-4b44-b699-11b398a1ba08"/>
<ExternalResource id="ws-target-resource-update" enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"email","extAttrName":"email","connObjectKey":false,"password":false,"mandatoryCondition":"false","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"userId","extAttrName":"userId","connObjectKey":true,"password" [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"email","extAttrName":"email","connObjectKey":false,"password":false,"mandatoryCondition":"false","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"userId","extAttrName":"userId","connObjectKey":true,"password" [...]
<ExternalResource_ConnInstance left="ws-target-resource-update" right="88a7a819-dab5-46b4-9b90-0b9769eabdb8"/>
<ExternalResource id="resource-testdb" enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"password" [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"password" [...]
<ExternalResource_ConnInstance left="resource-testdb" right="5aa5b8be-7521-481a-9651-c557aea078c1"/>
<ExternalResource_AccountPolicy left="resource-testdb" right="20ab5a8c-4b0c-432c-b957-f7fb9784d9f7"/>
<ExternalResource id="resource-testdb2" enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"pa [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"pa [...]
<ExternalResource_ConnInstance left="resource-testdb2" right="a28abd9b-9f4a-4ef6-a7a8-d19ad2a8f29d"/>
<Implementation id="GenerateRandomPasswordPropagationActions" type="PROPAGATION_ACTIONS" engine="JAVA"
body="org.apache.syncope.core.provisioning.java.propagation.GenerateRandomPasswordPropagationActions"/>
<ExternalResource_Implementation index="1" type="RESOURCE_PROPAGATION_ACTIONS" left="resource-testdb2" right="GenerateRandomPasswordPropagationActions"/>
<ExternalResource id="resource-csv" enforceMandatoryCondition="0"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":["csv","generic membership","minimal group"],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"id","connObjectKey":false,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"fullname","extAttrName":"id" [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":["csv","generic membership","minimal group"],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"username","extAttrName":"id","connObjectKey":false,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"fullname","extAttrName":"id" [...]
<ExternalResource_ConnInstance left="resource-csv" right="6c2acf1b-b052-46f0-8c56-7a8ad6905edf"/>
<ExternalResource_InboundPolicy left="resource-csv" right="880f8553-069b-4aed-9930-2cd53873f544"/>
<ExternalResource id="ws-target-resource-update-resetsynctoken" enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":"{\"value\":null}","ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"userId","extAttrName":"userId","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"fullname","extAttrName":"__PASSWORD__","connObjectKey": [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":"{\"value\":null}","ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"userId","extAttrName":"userId","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"fullname","extAttrName":"__PASSWORD__","connObjectKey": [...]
<ExternalResource_ConnInstance left="ws-target-resource-update-resetsynctoken" right="88a7a819-dab5-46b4-9b90-0b9769eabdb8"/>
<ExternalResource id="resource-ldap" enforceMandatoryCondition="1"
propagationPriority="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":["generic membership","minimal group"],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":"'uid=' + username + ',ou=people,${testds.rootDn}'","items":[{"intAttrName":"username","extAttrName":"cn","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transf [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":["generic membership","minimal group"],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":"'uid=' + username + ',ou=people,${testds.rootDn}'","items":[{"intAttrName":"username","extAttrName":"cn","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transf [...]
<ExternalResource_ConnInstance left="resource-ldap" right="74141a3b-0762-4720-a4aa-fc3e374ef3ef"/>
<ExternalResource_Implementation index="1" type="RESOURCE_PROPAGATION_ACTIONS" left="resource-ldap" right="GenerateRandomPasswordPropagationActions"/>
<Implementation id="LDAPMembershipPropagationActions" type="PROPAGATION_ACTIONS" engine="JAVA"
@@ -648,40 +648,36 @@ under the License.
<ExternalResource_ConnInstance left="resource-ldap-orgunit" right="74141a3b-0762-4720-a4aa-fc3e374ef3ef"/>
<ExternalResource id="ws-target-resource-nopropagation" enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[],"connObjectKeyItem":{"intAttrName":"fullname","extAttrN [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"connObjectKeyItem":{"intAttrName":"fullname","extAttrName":"fullname","c [...]
<ExternalResource_ConnInstance left="ws-target-resource-nopropagation" right="fcf9f2b0-f7d6-42c9-84a6-61b28255a42b"/>
<ExternalResource_PasswordPolicy left="ws-target-resource-nopropagation" right="986d1236-3ac5-4a19-810c-5ab21d79cba1"/>
<ExternalResource id="ws-target-resource-nopropagation2" enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[],"connObjectKeyItem":{"intAttrName":"fullname","extAttrN [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"connObjectKeyItem":{"intAttrName":"fullname","extAttrName":"fullname","c [...]
<ExternalResource_ConnInstance left="ws-target-resource-nopropagation2" right="fcf9f2b0-f7d6-42c9-84a6-61b28255a42b"/>
<ExternalResource id="ws-target-resource-nopropagation3" enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[],"connObjectKeyItem":{"intAttrName":"fullname","extAttrN [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"connObjectKeyItem":{"intAttrName":"fullname","extAttrName":"fullname","c [...]
<ExternalResource_ConnInstance left="ws-target-resource-nopropagation3" right="fcf9f2b0-f7d6-42c9-84a6-61b28255a42b"/>
<ExternalResource id="ws-target-resource-nopropagation4" enforceMandatoryCondition="1"
createTraceLevel="ALL" deleteTraceLevel="ALL" updateTraceLevel="ALL" provisioningTraceLevel="ALL"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[],"connObjectKeyItem":{"intAttrName":"fullname","extAttrN [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"fullname","extAttrName":"fullname","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"PROPAGATION","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"connObjectKeyItem":{"intAttrName":"fullname","extAttrName":"fullname","c [...]
<ExternalResource_ConnInstance left="ws-target-resource-nopropagation4" right="fcf9f2b0-f7d6-42c9-84a6-61b28255a42b"/>
<ExternalResource id="resource-db-pull" createTraceLevel="ALL" deleteTraceLevel="ALL" provisioningTraceLevel="ALL" updateTraceLevel="ALL"
enforceMandatoryCondition="0"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"email","extAttrName":"EMAIL","connObjectKey":false,"password":false,"mandatoryCondition":"false","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"fullname","extAttrName":"SURNAME","connObjectKey":false,"password":fa [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"email","extAttrName":"EMAIL","connObjectKey":false,"password":false,"mandatoryCondition":"false","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"fullname","extAttrName":"SURNAME","connObjectKey":false,"password":fa [...]
<ExternalResource_ConnInstance left="resource-db-pull" right="be24b061-019d-4e3e-baf0-0a6d0a45cb9c"/>
- <ExternalResource id="resource-db-virattr" createTraceLevel="ALL" deleteTraceLevel="ALL" provisioningTraceLevel="ALL" updateTraceLevel="ALL"
- enforceMandatoryCondition="0"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"key","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]}],"linkingItems":[{"intAttrName":"virtualdata","extAttrName":"USERNAME","connObjectKey":false [...]
- <ExternalResource_ConnInstance left="resource-db-virattr" right="be24b061-019d-4e3e-baf0-0a6d0a45cb9c"/>
<ExternalResource id="resource-db-scripted" createTraceLevel="ALL" deleteTraceLevel="ALL" provisioningTraceLevel="ALL" updateTraceLevel="ALL"
enforceMandatoryCondition="0"
- provisions='[{"anyType":"PRINTER","objectClass":"__PRINTER__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"key","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"name","extAttrName":"PRINTERNAME","connObjectKey":false,"password":false, [...]
+ provisions='[{"anyType":"PRINTER","objectClass":"__PRINTER__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"key","extAttrName":"ID","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"name","extAttrName":"PRINTERNAME","connObjectKey":false,"password":false, [...]
<ExternalResource_ConnInstance left="resource-db-scripted" right="a6d017fd-a705-4507-bb7c-6ab6a6745997"/>
<ExternalResource_PropagationPolicy left="resource-db-scripted" right="89d322db-9878-420c-b49c-67be13df9a12"/>
<ExternalResource id="rest-target-resource" createTraceLevel="ALL" updateTraceLevel="ALL" deleteTraceLevel="ALL" provisioningTraceLevel="ALL"
enforceMandatoryCondition="1"
- propagationPriority="0" provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"firstname","extAttrName":"firstName","connObjectKey":false,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"key","extAttrName":"key","connObjectKe [...]
+ propagationPriority="0" provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"connObjectLink":null,"items":[{"intAttrName":"firstname","extAttrName":"firstName","connObjectKey":false,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"key","extAttrName":"key","connObjectKe [...]
<ExternalResource_ConnInstance left="rest-target-resource" right="44c02549-19c3-483c-8025-4919c3283c37"/>
<ExternalResource id="resource-kafka"
- provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"items":[{"intAttrName":"username","extAttrName":"__NAME__","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"password":true,"mandatory [...]
+ provisions='[{"anyType":"USER","objectClass":"__ACCOUNT__","auxClasses":[],"syncToken":null,"ignoreCaseMatch":false,"uidOnCreate":null,"mapping":{"items":[{"intAttrName":"username","extAttrName":"__NAME__","connObjectKey":true,"password":false,"mandatoryCondition":"true","purpose":"BOTH","propagationJEXLTransformer":null,"pullJEXLTransformer":null,"transformers":[]},{"intAttrName":"password","extAttrName":"__PASSWORD__","connObjectKey":false,"password":true,"mandatory [...]
provisioningTraceLevel="ALL" deleteTraceLevel="ALL" createTraceLevel="ALL" updateTraceLevel="ALL"
enforceMandatoryCondition="0"/>
<ExternalResource_ConnInstance left="resource-kafka" right="01938bdf-7ac6-7149-a103-3ec9e74cc824"/>
@@ -700,21 +696,6 @@ under the License.
<SyncopeGroup_ExternalResource left="0626100b-a4ba-4e00-9971-86fad52a6216" right="resource-csv"/>
<SyncopeGroup_ExternalResource left="ba9ed509-b1f5-48ab-a334-c8530a6422dc" right="resource-csv"/>
- <VirSchema id="virtualReadOnly" readonly="1" extAttrName="givenname"/>
- <VirSchema_AnyTypeClass left="virtualReadOnly" right="minimal user"/>
- <VirSchema_AnyType left="virtualReadOnly" right="USER"/>
- <VirSchema_ExternalResource left="virtualReadOnly" right="resource-ldap"/>
-
- <VirSchema id="rvirtualdata" readonly="0" extAttrName="businessCategory"/>
- <VirSchema_AnyTypeClass left="rvirtualdata" right="minimal group"/>
- <VirSchema_AnyType left="rvirtualdata" right="GROUP"/>
- <VirSchema_ExternalResource left="rvirtualdata" right="resource-ldap"/>
-
- <VirSchema id="virtualdata" readonly="0" extAttrName="USERNAME"/>
- <VirSchema_AnyTypeClass left="virtualdata" right="minimal user"/>
- <VirSchema_AnyType left="virtualdata" right="USER"/>
- <VirSchema_ExternalResource left="virtualdata" right="resource-db-virattr"/>
-
<Implementation id="MacroJobDelegate" type="TASKJOB_DELEGATE" engine="JAVA"
body="org.apache.syncope.core.provisioning.java.job.MacroJobDelegate"/>
<Implementation id="LiveSyncJobDelegate" type="TASKJOB_DELEGATE" engine="JAVA"
@@ -754,11 +735,11 @@ under the License.
<PullTask_Realm left="c41b9b71-9bfa-4f90-89f2-84787def4c5c" right="e4c28e7a-9dbf-4ee7-9441-93812a0d4a28"/>
<PullTask_Implementation type="SCHED_TASK_JOB_DELEGATE" left="c41b9b71-9bfa-4f90-89f2-84787def4c5c" right="PullJobDelegate"/>
<AnyTemplatePullTask id="3a6173a9-8c34-4e37-b3b1-0c2ea385fac0"
- template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":null,"status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":["csv"],"derAttrs":[{"schema":"cn","values":[""]}],"virAttrs":[],"resources":["resource-t [...]
+ template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":null,"status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":["csv"],"derAttrs":[{"schema":"cn","values":[""]}],"resources":["resource-testdb"],"relat [...]
<AnyTemplatePullTask_PullTask left="3a6173a9-8c34-4e37-b3b1-0c2ea385fac0" right="c41b9b71-9bfa-4f90-89f2-84787def4c5c"/>
<AnyTemplatePullTask_AnyType left="3a6173a9-8c34-4e37-b3b1-0c2ea385fac0" right="USER"/>
<AnyTemplatePullTask id="b3772d66-ec06-4133-bf38-b3273845ac5b"
- template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"virAttrs":[],"resources":[],"plainAttrs":[]}'/>
+ template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"resources":[],"plainAttrs":[]}'/>
<AnyTemplatePullTask_PullTask left="b3772d66-ec06-4133-bf38-b3273845ac5b" right="c41b9b71-9bfa-4f90-89f2-84787def4c5c"/>
<AnyTemplatePullTask_AnyType left="b3772d66-ec06-4133-bf38-b3273845ac5b" right="GROUP"/>
<Implementation id="TestSampleJobDelegate" type="TASKJOB_DELEGATE" engine="JAVA"
@@ -782,11 +763,11 @@ under the License.
<PullTask_ExternalResource left="83f7e85d-9774-43fe-adba-ccd856312994" right="resource-testdb"/>
<PullTask_Realm left="83f7e85d-9774-43fe-adba-ccd856312994" right="e4c28e7a-9dbf-4ee7-9441-93812a0d4a28"/>
<AnyTemplatePullTask id="6c3f578d-327b-4a7c-8037-6f5ba24eb770"
- template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":null,"status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":[],"derAttrs":[],"virAttrs":[],"resources":[],"relationships":[],"memberships":[],"dynMem [...]
+ template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":null,"status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":[],"derAttrs":[],"resources":[],"relationships":[],"memberships":[],"dynMemberships":[]," [...]
<AnyTemplatePullTask_PullTask left="6c3f578d-327b-4a7c-8037-6f5ba24eb770" right="83f7e85d-9774-43fe-adba-ccd856312994"/>
<AnyTemplatePullTask_AnyType left="6c3f578d-327b-4a7c-8037-6f5ba24eb770" right="USER"/>
<AnyTemplatePullTask id="45b61137-c7c3-49ee-86e0-9efffa75ae68"
- template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"virAttrs":[],"resources":[],"plainAttrs":[]}'/>
+ template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"resources":[],"plainAttrs":[]}'/>
<AnyTemplatePullTask_PullTask left="45b61137-c7c3-49ee-86e0-9efffa75ae68" right="83f7e85d-9774-43fe-adba-ccd856312994"/>
<AnyTemplatePullTask_AnyType left="45b61137-c7c3-49ee-86e0-9efffa75ae68" right="GROUP"/>
<PullTask remediation="0" id="81d88f73-d474-4450-9031-605daa4e313f" name="TestDB2 Task"
@@ -808,21 +789,16 @@ under the License.
<PullTask_Realm left="1e419ca4-ea81-4493-a14f-28b90113686d" right="e4c28e7a-9dbf-4ee7-9441-93812a0d4a28"/>
<PullTask_Implementation type="SCHED_TASK_JOB_DELEGATE" left="1e419ca4-ea81-4493-a14f-28b90113686d" right="PullJobDelegate"/>
<AnyTemplatePullTask id="df655a2a-40c0-43b1-a157-3f4988802f58"
- template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":"'/' + title","status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":["minimal group"],"derAttrs":[],"virAttrs":[{"schema":"virtualReadOnly [...]
+ template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":"'/' + title","status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":["minimal group"],"derAttrs":[],"resources":["resource-ldap"],"roles": [...]
<AnyTemplatePullTask_PullTask left="df655a2a-40c0-43b1-a157-3f4988802f58" right="1e419ca4-ea81-4493-a14f-28b90113686d"/>
<AnyTemplatePullTask_AnyType left="df655a2a-40c0-43b1-a157-3f4988802f58" right="USER"/>
<AnyTemplatePullTask id="fda22ff3-98f3-42e4-a2ae-cd9a28282d57"
- template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"virAttrs":[],"resources":[],"plainAttrs":[{"schema":"show","values":["true"]}]}'/>
+ template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"resources":[],"plainAttrs":[{"schema":"show","values":["true"]}]}'/>
<AnyTemplatePullTask_PullTask left="fda22ff3-98f3-42e4-a2ae-cd9a28282d57" right="1e419ca4-ea81-4493-a14f-28b90113686d"/>
<AnyTemplatePullTask_AnyType left="fda22ff3-98f3-42e4-a2ae-cd9a28282d57" right="GROUP"/>
<Implementation id="LDAPMembershipPullActions" type="INBOUND_ACTIONS" engine="JAVA"
body="org.apache.syncope.core.provisioning.java.pushpull.LDAPMembershipPullActions"/>
<PullTask_Implementation index="1" type="PULL_TASK_INBOUND_ACTIONS" left="1e419ca4-ea81-4493-a14f-28b90113686d" right="LDAPMembershipPullActions"/>
- <PullTask remediation="0" id="38abbf9e-a1a3-40a1-a15f-7d0ac02f47f1" name="VirAttrCache test"
- performCreate="0" performUpdate="1" performDelete="0" syncStatus="0" pullMode="FULL_RECONCILIATION"
- unmatchingRule="PROVISION" matchingRule="UPDATE" active="1"/>
- <PullTask_ExternalResource left="38abbf9e-a1a3-40a1-a15f-7d0ac02f47f1" right="resource-csv"/>
- <PullTask_Realm left="38abbf9e-a1a3-40a1-a15f-7d0ac02f47f1" right="e4c28e7a-9dbf-4ee7-9441-93812a0d4a28"/>
<PullTask_Implementation type="SCHED_TASK_JOB_DELEGATE" left="38abbf9e-a1a3-40a1-a15f-7d0ac02f47f1" right="PullJobDelegate"/>
<PushTask id="af558be4-9d2f-4359-bf85-a554e6e90be1" name="Export on resource-testdb2.1"
performCreate="1" performUpdate="1" performDelete="1" syncStatus="1"
@@ -908,11 +884,11 @@ under the License.
<PullTask_Realm left="986867e2-993b-430e-8feb-aa9abb4c1dcd" right="e4c28e7a-9dbf-4ee7-9441-93812a0d4a28"/>
<PullTask_Implementation type="SCHED_TASK_JOB_DELEGATE" left="986867e2-993b-430e-8feb-aa9abb4c1dcd" right="PullJobDelegate"/>
<AnyTemplatePullTask id="8bc41ba1-cc1d-4ee0-bb43-61cd148b414f"
- template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":null,"status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":[],"derAttrs":[],"virAttrs":[],"resources":["resource-testdb"],"roles":[],"dynRoles":[]," [...]
+ template='{"_class":"org.apache.syncope.common.lib.to.UserTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"USER","realm":null,"status":null,"password":null,"token":null,"tokenExpireTime":null,"username":null,"lastLoginDate":null,"changePwdDate":null,"failedLogins":null,"securityQuestion":null,"securityAnswer":null,"auxClasses":[],"derAttrs":[],"resources":["resource-testdb"],"roles":[],"dynRoles":[],"relationships" [...]
<AnyTemplatePullTask_PullTask left="8bc41ba1-cc1d-4ee0-bb43-61cd148b414f" right="986867e2-993b-430e-8feb-aa9abb4c1dcd"/>
<AnyTemplatePullTask_AnyType left="8bc41ba1-cc1d-4ee0-bb43-61cd148b414f" right="USER"/>
<AnyTemplatePullTask id="9af0e343-8a37-42d2-9bc7-6e2e3b103219"
- template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"virAttrs":[],"resources":[],"plainAttrs":[]}'/>
+ template='{"_class":"org.apache.syncope.common.lib.to.GroupTO","creator":null,"creationDate":null,"lastModifier":null,"lastChangeDate":null,"key":null,"type":"GROUP","realm":null,"status":null,"name":null,"userOwner":null,"groupOwner":null,"udynMembershipCond":null,"auxClasses":[],"derAttrs":[],"resources":[],"plainAttrs":[]}'/>
<AnyTemplatePullTask_PullTask left="9af0e343-8a37-42d2-9bc7-6e2e3b103219" right="986867e2-993b-430e-8feb-aa9abb4c1dcd"/>
<AnyTemplatePullTask_AnyType left="9af0e343-8a37-42d2-9bc7-6e2e3b103219" right="GROUP"/>
<PullTask remediation="0" id="feae4e57-15ca-40d9-b973-8b9015efca49" name="CSV (unlink matching; ignore unmatching)"
diff --git a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/IntAttrNameParser.java b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/IntAttrNameParser.java
index 8fef7a1cf9..745525f2f0 100644
--- a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/IntAttrNameParser.java
+++ b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/IntAttrNameParser.java
@@ -27,7 +27,6 @@ import org.apache.syncope.common.lib.types.AnyTypeKind;
import org.apache.syncope.common.lib.types.SchemaType;
import org.apache.syncope.core.persistence.api.dao.DerSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory;
import org.apache.syncope.core.persistence.api.entity.Entity;
import org.apache.syncope.core.persistence.api.entity.Schema;
@@ -59,8 +58,6 @@ public class IntAttrNameParser {
protected final DerSchemaDAO derSchemaDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
protected final AnyUtilsFactory anyUtilsFactory;
protected final RealmUtils realmUtils;
@@ -68,13 +65,11 @@ public class IntAttrNameParser {
public IntAttrNameParser(
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final AnyUtilsFactory anyUtilsFactory,
final RealmUtils realmUtils) {
this.plainSchemaDAO = plainSchemaDAO;
this.derSchemaDAO = derSchemaDAO;
- this.virSchemaDAO = virSchemaDAO;
this.anyUtilsFactory = anyUtilsFactory;
this.realmUtils = realmUtils;
}
@@ -84,11 +79,7 @@ public class IntAttrNameParser {
if (schema == null) {
schema = derSchemaDAO.findById(key).orElse(null);
if (schema == null) {
- schema = virSchemaDAO.findById(key).orElse(null);
- if (schema == null) {
- return null;
- }
- return Pair.of(schema, SchemaType.VIRTUAL);
+ return null;
}
return Pair.of(schema, SchemaType.DERIVED);
}
diff --git a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/VirAttrHandler.java b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/VirAttrHandler.java
deleted file mode 100644
index 613b6ae1b7..0000000000
--- a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/VirAttrHandler.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.provisioning.api;
-
-import java.util.List;
-import java.util.Map;
-import org.apache.syncope.core.persistence.api.entity.Any;
-import org.apache.syncope.core.persistence.api.entity.Membership;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-import org.identityconnectors.framework.common.objects.ConnectorObject;
-
-public interface VirAttrHandler {
-
- String CACHE = "virAttrCache";
-
- /**
- * Updates cache with values from external resource.
- *
- * @param any any object
- * @param connObj connector object from external resource
- */
- void setValues(Any any, ConnectorObject connObj);
-
- /**
- * Query external resource (or cache, if configured) associated to the given any for values associated to the given
- * virtual schema, not related to any membership.
- *
- * @param any any object
- * @param schema virtual schema
- * @return virtual attribute values, either for local cache or external resource, if resource is owned by the given
- * any and associated to the given virtual schema; empty list otherwise.
- */
- List<String> getValues(Any any, VirSchema schema);
-
- /**
- * Query external resource (or cache, if configured) associated to the given any for values associated to the given
- * virtual schema, for the given membership.
- *
- * @param any any object
- * @param membership membership
- * @param schema virtual schema
- * @return virtual attribute values, either for local cache or external resource, if resource is owned by the given
- * any and associated to the given virtual schema; empty list otherwise.
- */
- List<String> getValues(Any any, Membership<?> membership, VirSchema schema);
-
- /**
- * Query external resources (or cache, if configured) associated to the given any for values associated to all
- * {@link VirSchema} instances in the {@link org.apache.syncope.core.persistence.api.entity.AnyTypeClass}
- * associated to the given any, with no membership.
- *
- * @param any any object
- * @return virtual attribute values, either for local cache or external resources
- */
- Map<VirSchema, List<String>> getValues(Any any);
-
- /**
- * Query external resources (or cache, if configured) associated to the given any for values associated to all
- * {@link VirSchema} instances in the {@link org.apache.syncope.core.persistence.api.entity.AnyTypeClass}
- * associated to the given any, for the given membership.
- *
- * @param any any object
- * @param membership membership
- * @return virtual attribute values, either for local cache or external resources
- */
- Map<VirSchema, List<String>> getValues(Any any, Membership<?> membership);
-
-}
diff --git a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/ItemTransformer.java b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/ItemTransformer.java
index cb31ab94dd..8cbd2dcba2 100644
--- a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/ItemTransformer.java
+++ b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/ItemTransformer.java
@@ -30,8 +30,6 @@ import org.apache.syncope.core.persistence.api.entity.Realm;
/**
* Transforms values to be propagated to (or pulling from) external resources right before they leave (or enter)
* the Syncope internal storage.
- *
- * These transformations are not applied to virtual attribute values.
*/
public interface ItemTransformer {
diff --git a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/SchemaDataBinder.java b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/SchemaDataBinder.java
index 1368fec685..7ce80b9b64 100644
--- a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/SchemaDataBinder.java
+++ b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/SchemaDataBinder.java
@@ -20,10 +20,8 @@ package org.apache.syncope.core.provisioning.api.data;
import org.apache.syncope.common.lib.to.DerSchemaTO;
import org.apache.syncope.common.lib.to.PlainSchemaTO;
-import org.apache.syncope.common.lib.to.VirSchemaTO;
import org.apache.syncope.core.persistence.api.entity.DerSchema;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
public interface SchemaDataBinder {
@@ -31,17 +29,11 @@ public interface SchemaDataBinder {
DerSchema create(DerSchemaTO schemaTO);
- VirSchema create(VirSchemaTO schemaTO);
-
PlainSchema update(PlainSchemaTO schemaTO, PlainSchema schema);
DerSchema update(DerSchemaTO schemaTO, DerSchema derSchema);
- VirSchema update(VirSchemaTO schemaTO, VirSchema virSchema);
-
PlainSchemaTO getPlainSchemaTO(String key);
DerSchemaTO getDerSchemaTO(String key);
-
- VirSchemaTO getVirSchemaTO(String key);
}
diff --git a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/propagation/PropagationManager.java b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/propagation/PropagationManager.java
index 346ef2f4f5..458c5f3fd9 100644
--- a/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/propagation/PropagationManager.java
+++ b/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/propagation/PropagationManager.java
@@ -24,7 +24,6 @@ import java.util.Map;
import java.util.Set;
import java.util.stream.Stream;
import org.apache.commons.lang3.tuple.Pair;
-import org.apache.syncope.common.lib.Attr;
import org.apache.syncope.common.lib.request.AnyUR;
import org.apache.syncope.common.lib.request.UserUR;
import org.apache.syncope.common.lib.to.Item;
@@ -61,7 +60,6 @@ public interface PropagationManager {
* @param key any key
* @param enable whether any should be enabled or not
* @param propByRes operation to be performed per resource
- * @param vAttrs virtual attributes to be set
* @param excludedResources external resources performing not to be considered for propagation
* @return list of propagation tasks
*/
@@ -70,7 +68,6 @@ public interface PropagationManager {
String key,
Boolean enable,
PropagationByResource<String> propByRes,
- Collection<Attr> vAttrs,
Collection<String> excludedResources);
/**
@@ -81,7 +78,6 @@ public interface PropagationManager {
* @param enable whether user must be enabled or not
* @param propByRes operation to be performed per resource
* @param propByLinkedAccount operation to be performed for linked accounts
- * @param vAttrs virtual attributes to be set
* @param excludedResources external resources not to be considered for propagation
* @return list of propagation tasks
*/
@@ -91,7 +87,6 @@ public interface PropagationManager {
Boolean enable,
PropagationByResource<String> propByRes,
PropagationByResource<Pair<String, String>> propByLinkedAccount,
- Collection<Attr> vAttrs,
Collection<String> excludedResources);
/**
@@ -104,7 +99,6 @@ public interface PropagationManager {
* @param enable whether any should be enabled or not, may be null to leave unchanged
* @param propByRes operation to be performed per resource
* @param propByLinkedAccount operation to be performed for linked accounts
- * @param vAttrs virtual attributes to be set
* @param excludedResources external resource keys not to be considered for propagation
* @return list of propagation tasks
*/
@@ -116,7 +110,6 @@ public interface PropagationManager {
Boolean enable,
PropagationByResource<String> propByRes,
PropagationByResource<Pair<String, String>> propByLinkedAccount,
- Collection<Attr> vAttrs,
Collection<String> excludedResources);
/**
@@ -186,7 +179,7 @@ public interface PropagationManager {
* @param kind any type kind
* @param key any key
* @param password to be set (for users)
- * @param changePwdRes the resources in which the password must be included in the propagation attributes (for
+ * @param changePwdRes the resources in which the password must be included in the propagation attributes (for
* users)
* @param enable whether any should be enabled or not, may be null to leave unchanged
* @param excludedResources external resource keys not to be considered for propagation
diff --git a/core/provisioning-api/src/test/java/org/apache/syncope/core/provisioning/api/IntAttrNameParserTest.java b/core/provisioning-api/src/test/java/org/apache/syncope/core/provisioning/api/IntAttrNameParserTest.java
index 412135797e..5823218fb3 100644
--- a/core/provisioning-api/src/test/java/org/apache/syncope/core/provisioning/api/IntAttrNameParserTest.java
+++ b/core/provisioning-api/src/test/java/org/apache/syncope/core/provisioning/api/IntAttrNameParserTest.java
@@ -41,12 +41,10 @@ import org.apache.syncope.common.lib.types.AttrSchemaType;
import org.apache.syncope.common.lib.types.SchemaType;
import org.apache.syncope.core.persistence.api.dao.DerSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.AnyUtils;
import org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory;
import org.apache.syncope.core.persistence.api.entity.DerSchema;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.utils.RealmUtils;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@@ -67,9 +65,6 @@ public class IntAttrNameParserTest extends AbstractTest {
@Mock
private DerSchemaDAO derSchemaDAO;
- @Mock
- private VirSchemaDAO virSchemaDAO;
-
@Mock
private AnyUtilsFactory anyUtilsFactory;
@@ -135,23 +130,8 @@ public class IntAttrNameParserTest extends AbstractTest {
}
}
});
- lenient().when(virSchemaDAO.findById(anyString())).thenAnswer(ic -> {
- String schemaName = ic.getArgument(0);
- switch (schemaName) {
- case "rvirtualdata" -> {
- VirSchema schema = mock(VirSchema.class);
- lenient().when(schema.getKey()).thenReturn(ic.getArgument(0));
- return Optional.of(schema);
- }
- default -> {
- return Optional.empty();
- }
- }
- });
-
- intAttrNameParser = new IntAttrNameParser(
- plainSchemaDAO, derSchemaDAO, virSchemaDAO, anyUtilsFactory, realmUtils);
+ intAttrNameParser = new IntAttrNameParser(plainSchemaDAO, derSchemaDAO, anyUtilsFactory, realmUtils);
}
@Test
@@ -247,20 +227,6 @@ public class IntAttrNameParserTest extends AbstractTest {
assertNull(intAttrName.getRelationshipAnyType());
assertNull(intAttrName.getRelationshipType());
assertNull(intAttrName.getRelatedUser());
-
- intAttrName = intAttrNameParser.parse("rvirtualdata", AnyTypeKind.ANY_OBJECT);
- assertNotNull(intAttrName);
- assertEquals(AnyTypeKind.ANY_OBJECT, intAttrName.getAnyTypeKind());
- assertNull(intAttrName.getField());
- assertEquals("rvirtualdata", intAttrName.getSchema().getKey());
- assertEquals(SchemaType.VIRTUAL, intAttrName.getSchemaType());
- assertTrue(intAttrName.getSchema() instanceof VirSchema);
- assertNull(intAttrName.getEnclosingGroup());
- assertNull(intAttrName.getMembershipOfGroup());
- assertNull(intAttrName.getRelatedAnyObject());
- assertNull(intAttrName.getRelationshipAnyType());
- assertNull(intAttrName.getRelationshipType());
- assertNull(intAttrName.getRelatedUser());
}
@Test
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultAnyObjectProvisioningManager.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultAnyObjectProvisioningManager.java
index 78528fd098..9be41824f9 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultAnyObjectProvisioningManager.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultAnyObjectProvisioningManager.java
@@ -31,7 +31,6 @@ import org.apache.syncope.common.lib.types.ResourceOperation;
import org.apache.syncope.core.persistence.api.dao.AnyObjectDAO;
import org.apache.syncope.core.provisioning.api.AnyObjectProvisioningManager;
import org.apache.syncope.core.provisioning.api.PropagationByResource;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.WorkflowResult;
import org.apache.syncope.core.provisioning.api.propagation.PropagationManager;
import org.apache.syncope.core.provisioning.api.propagation.PropagationReporter;
@@ -52,20 +51,16 @@ public class DefaultAnyObjectProvisioningManager implements AnyObjectProvisionin
protected final AnyObjectDAO anyObjectDAO;
- protected final VirAttrHandler virtAttrHandler;
-
public DefaultAnyObjectProvisioningManager(
final AnyObjectWorkflowAdapter awfAdapter,
final PropagationManager propagationManager,
final PropagationTaskExecutor taskExecutor,
- final AnyObjectDAO anyObjectDAO,
- final VirAttrHandler virtAttrHandler) {
+ final AnyObjectDAO anyObjectDAO) {
this.awfAdapter = awfAdapter;
this.propagationManager = propagationManager;
this.taskExecutor = taskExecutor;
this.anyObjectDAO = anyObjectDAO;
- this.virtAttrHandler = virtAttrHandler;
}
@Override
@@ -94,7 +89,6 @@ public class DefaultAnyObjectProvisioningManager implements AnyObjectProvisionin
created.getResult(),
null,
created.getPropByRes(),
- anyObjectCR.getVirAttrs(),
excludedResources);
PropagationReporter propagationReporter = taskExecutor.execute(taskInfos, nullPriorityAsync, creator);
@@ -129,7 +123,6 @@ public class DefaultAnyObjectProvisioningManager implements AnyObjectProvisionin
null,
updated.getPropByRes(),
null,
- anyObjectUR.getVirAttrs(),
excludedResources),
beforeAttrs);
PropagationReporter propagationReporter = taskExecutor.execute(taskInfos, nullPriorityAsync, updater);
@@ -202,7 +195,6 @@ public class DefaultAnyObjectProvisioningManager implements AnyObjectProvisionin
null,
propByRes,
null,
- null,
null);
PropagationReporter propagationReporter = taskExecutor.execute(taskInfos, nullPriorityAsync, executor);
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultGroupProvisioningManager.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultGroupProvisioningManager.java
index d772d0df1a..e2d7241542 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultGroupProvisioningManager.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultGroupProvisioningManager.java
@@ -33,7 +33,6 @@ import org.apache.syncope.common.lib.types.ResourceOperation;
import org.apache.syncope.core.persistence.api.dao.GroupDAO;
import org.apache.syncope.core.provisioning.api.GroupProvisioningManager;
import org.apache.syncope.core.provisioning.api.PropagationByResource;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.WorkflowResult;
import org.apache.syncope.core.provisioning.api.data.GroupDataBinder;
import org.apache.syncope.core.provisioning.api.propagation.PropagationManager;
@@ -57,22 +56,18 @@ public class DefaultGroupProvisioningManager implements GroupProvisioningManager
protected final GroupDAO groupDAO;
- protected final VirAttrHandler virtAttrHandler;
-
public DefaultGroupProvisioningManager(
final GroupWorkflowAdapter gwfAdapter,
final PropagationManager propagationManager,
final PropagationTaskExecutor taskExecutor,
final GroupDataBinder groupDataBinder,
- final GroupDAO groupDAO,
- final VirAttrHandler virtAttrHandler) {
+ final GroupDAO groupDAO) {
this.gwfAdapter = gwfAdapter;
this.propagationManager = propagationManager;
this.taskExecutor = taskExecutor;
this.groupDataBinder = groupDataBinder;
this.groupDAO = groupDAO;
- this.virtAttrHandler = virtAttrHandler;
}
@Override
@@ -86,7 +81,6 @@ public class DefaultGroupProvisioningManager implements GroupProvisioningManager
created.getResult(),
null,
created.getPropByRes(),
- groupCR.getVirAttrs(),
Set.of());
PropagationReporter propagationReporter = taskExecutor.execute(tasks, nullPriorityAsync, creator);
@@ -114,7 +108,6 @@ public class DefaultGroupProvisioningManager implements GroupProvisioningManager
created.getResult(),
null,
created.getPropByRes(),
- groupCR.getVirAttrs(),
excludedResources);
PropagationReporter propagationReporter = taskExecutor.execute(tasks, nullPriorityAsync, creator);
@@ -149,7 +142,6 @@ public class DefaultGroupProvisioningManager implements GroupProvisioningManager
null,
updated.getPropByRes(),
null,
- groupUR.getVirAttrs(),
excludedResources),
beforeAttrs);
PropagationReporter propagationReporter = taskExecutor.execute(tasks, nullPriorityAsync, updater);
@@ -237,7 +229,6 @@ public class DefaultGroupProvisioningManager implements GroupProvisioningManager
null,
propByRes,
null,
- null,
null);
PropagationReporter propagationReporter = taskExecutor.execute(taskInfos, nullPriorityAsync, executor);
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultMappingManager.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultMappingManager.java
index 6384e34625..222fff943e 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultMappingManager.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultMappingManager.java
@@ -24,11 +24,9 @@ import java.util.ArrayList;
import java.util.Base64;
import java.util.HashSet;
import java.util.List;
-import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
-import javax.cache.Cache;
import org.apache.commons.jexl3.JexlContext;
import org.apache.commons.jexl3.MapContext;
import org.apache.commons.lang3.BooleanUtils;
@@ -73,7 +71,6 @@ import org.apache.syncope.core.persistence.api.entity.Realm;
import org.apache.syncope.core.persistence.api.entity.Relatable;
import org.apache.syncope.core.persistence.api.entity.Relationship;
import org.apache.syncope.core.persistence.api.entity.RelationshipType;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject;
import org.apache.syncope.core.persistence.api.entity.group.Group;
import org.apache.syncope.core.persistence.api.entity.user.Account;
@@ -86,11 +83,8 @@ import org.apache.syncope.core.provisioning.api.IntAttrName;
import org.apache.syncope.core.provisioning.api.IntAttrNameParser;
import org.apache.syncope.core.provisioning.api.MappingManager;
import org.apache.syncope.core.provisioning.api.PlainAttrGetter;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.data.ItemTransformer;
import org.apache.syncope.core.provisioning.api.jexl.JexlUtils;
-import org.apache.syncope.core.provisioning.java.cache.VirAttrCacheKey;
-import org.apache.syncope.core.provisioning.java.cache.VirAttrCacheValue;
import org.apache.syncope.core.provisioning.java.utils.ConnObjectUtils;
import org.apache.syncope.core.provisioning.java.utils.MappingUtils;
import org.identityconnectors.framework.common.FrameworkUtil;
@@ -192,10 +186,6 @@ public class DefaultMappingManager implements MappingManager {
protected final DerAttrHandler derAttrHandler;
- protected final VirAttrHandler virAttrHandler;
-
- protected final Cache<VirAttrCacheKey, VirAttrCacheValue> virAttrCache;
-
protected final IntAttrNameParser intAttrNameParser;
protected final EncryptorManager encryptorManager;
@@ -209,8 +199,6 @@ public class DefaultMappingManager implements MappingManager {
final RealmSearchDAO realmSearchDAO,
final ImplementationDAO implementationDAO,
final DerAttrHandler derAttrHandler,
- final VirAttrHandler virAttrHandler,
- final Cache<VirAttrCacheKey, VirAttrCacheValue> virAttrCache,
final IntAttrNameParser intAttrNameParser,
final EncryptorManager encryptorManager) {
@@ -222,8 +210,6 @@ public class DefaultMappingManager implements MappingManager {
this.realmSearchDAO = realmSearchDAO;
this.implementationDAO = implementationDAO;
this.derAttrHandler = derAttrHandler;
- this.virAttrHandler = virAttrHandler;
- this.virAttrCache = virAttrCache;
this.intAttrNameParser = intAttrNameParser;
this.encryptorManager = encryptorManager;
}
@@ -523,9 +509,6 @@ public class DefaultMappingManager implements MappingManager {
AttrSchemaType schemaType = intAttrName.getSchema() instanceof PlainSchema
? intAttrName.getSchema().getType()
: AttrSchemaType.String;
- boolean readOnlyVirSchema = intAttrName.getSchema() instanceof VirSchema
- ? intAttrName.getSchema().isReadonly()
- : false;
Pair<AttrSchemaType, List<PlainAttrValue>> intValues = getIntValues(
resource, provision, item, intAttrName, schemaType, any, usernameAccountGetter, plainAttrGetter);
@@ -542,39 +525,35 @@ public class DefaultMappingManager implements MappingManager {
* Values {}""",
item, intAttrName.getSchema(), schemaType.getType().getName(), schemaType, values);
- Pair<String, Attribute> result;
- if (readOnlyVirSchema) {
- result = null;
- } else {
- List<Object> objValues = new ArrayList<>();
+ List<Object> objValues = new ArrayList<>();
- for (PlainAttrValue value : values) {
- if (FrameworkUtil.isSupportedAttributeType(schemaType.getType())) {
- objValues.add(value.getValue());
+ for (PlainAttrValue value : values) {
+ if (FrameworkUtil.isSupportedAttributeType(schemaType.getType())) {
+ objValues.add(value.getValue());
+ } else {
+ PlainSchema plainSchema = intAttrName.getSchema() instanceof final PlainSchema schema
+ ? schema
+ : null;
+ if (plainSchema == null || plainSchema.getType() != schemaType) {
+ objValues.add(value.getValueAsString(schemaType));
} else {
- PlainSchema plainSchema = intAttrName.getSchema() instanceof final PlainSchema schema
- ? schema
- : null;
- if (plainSchema == null || plainSchema.getType() != schemaType) {
- objValues.add(value.getValueAsString(schemaType));
- } else {
- objValues.add(value.getValueAsString(plainSchema));
- }
+ objValues.add(value.getValueAsString(plainSchema));
}
}
+ }
- if (item.isConnObjectKey()) {
- result = Pair.of(objValues.isEmpty() ? null : objValues.getFirst().toString(), null);
- } else if (item.isPassword() && any instanceof User) {
- result = getPasswordAttrValue(passwordAccountGetter.apply((User) any), password).
- map(passwordAttrValue -> Pair.of(
- (String) null, AttributeBuilder.buildPassword(passwordAttrValue.toCharArray()))).
- orElse(null);
- } else {
- result = Pair.of(null, objValues.isEmpty()
- ? AttributeBuilder.build(item.getExtAttrName())
- : AttributeBuilder.build(item.getExtAttrName(), objValues));
- }
+ Pair<String, Attribute> result;
+ if (item.isConnObjectKey()) {
+ result = Pair.of(objValues.isEmpty() ? null : objValues.getFirst().toString(), null);
+ } else if (item.isPassword() && any instanceof User) {
+ result = getPasswordAttrValue(passwordAccountGetter.apply((User) any), password).
+ map(passwordAttrValue -> Pair.of(
+ (String) null, AttributeBuilder.buildPassword(passwordAttrValue.toCharArray()))).
+ orElse(null);
+ } else {
+ result = Pair.of(null, objValues.isEmpty()
+ ? AttributeBuilder.build(item.getExtAttrName())
+ : AttributeBuilder.build(item.getExtAttrName(), objValues));
}
return result;
@@ -597,9 +576,6 @@ public class DefaultMappingManager implements MappingManager {
AttrSchemaType schemaType = intAttrName.getSchema() instanceof PlainSchema
? intAttrName.getSchema().getType()
: AttrSchemaType.String;
- boolean readOnlyVirSchema = intAttrName.getSchema() instanceof VirSchema
- ? intAttrName.getSchema().isReadonly()
- : false;
Pair<AttrSchemaType, List<PlainAttrValue>> intValues = getIntValues(
resource, item, intAttrName, schemaType, realm);
@@ -616,34 +592,30 @@ public class DefaultMappingManager implements MappingManager {
* Values {}""",
item, intAttrName.getSchema(), schemaType.getType().getName(), schemaType, values);
- Pair<String, Attribute> result;
- if (readOnlyVirSchema) {
- result = null;
- } else {
- List<Object> objValues = new ArrayList<>();
+ List<Object> objValues = new ArrayList<>();
- for (PlainAttrValue value : values) {
- if (FrameworkUtil.isSupportedAttributeType(schemaType.getType())) {
- objValues.add(value.getValue());
+ for (PlainAttrValue value : values) {
+ if (FrameworkUtil.isSupportedAttributeType(schemaType.getType())) {
+ objValues.add(value.getValue());
+ } else {
+ PlainSchema plainSchema = intAttrName.getSchema() instanceof final PlainSchema schema
+ ? schema
+ : null;
+ if (plainSchema == null || plainSchema.getType() != schemaType) {
+ objValues.add(value.getValueAsString(schemaType));
} else {
- PlainSchema plainSchema = intAttrName.getSchema() instanceof final PlainSchema schema
- ? schema
- : null;
- if (plainSchema == null || plainSchema.getType() != schemaType) {
- objValues.add(value.getValueAsString(schemaType));
- } else {
- objValues.add(value.getValueAsString(plainSchema));
- }
+ objValues.add(value.getValueAsString(plainSchema));
}
}
+ }
- if (item.isConnObjectKey()) {
- result = Pair.of(objValues.isEmpty() ? null : objValues.getFirst().toString(), null);
- } else {
- result = Pair.of(null, objValues.isEmpty()
- ? AttributeBuilder.build(item.getExtAttrName())
- : AttributeBuilder.build(item.getExtAttrName(), objValues));
- }
+ Pair<String, Attribute> result;
+ if (item.isConnObjectKey()) {
+ result = Pair.of(objValues.isEmpty() ? null : objValues.getFirst().toString(), null);
+ } else {
+ result = Pair.of(null, objValues.isEmpty()
+ ? AttributeBuilder.build(item.getExtAttrName())
+ : AttributeBuilder.build(item.getExtAttrName(), objValues));
}
return result;
@@ -844,26 +816,6 @@ public class DefaultMappingManager implements MappingManager {
}
}
- case VIRTUAL -> {
- // virtual attributes don't get transformed
- transform = false;
-
- VirAttrCacheKey cacheKey = VirAttrCacheKey.of(
- ref.getType().getKey(), ref.getKey(), intAttrName.getSchema().getKey());
- virAttrCache.remove(cacheKey);
- LOG.debug("Evicted from cache: {}", cacheKey);
-
- VirSchema virSchema = (VirSchema) intAttrName.getSchema();
- List<String> virValues = membership == null
- ? virAttrHandler.getValues(ref, virSchema)
- : virAttrHandler.getValues(ref, membership, virSchema);
- virValues.forEach(virValue -> {
- PlainAttrValue attrValue = new PlainAttrValue();
- attrValue.setStringValue(virValue);
- values.add(attrValue);
- });
- }
-
default -> {
}
}
@@ -1186,27 +1138,6 @@ public class DefaultMappingManager implements MappingManager {
}
}
- case VIRTUAL -> {
- Attr attrTO = new Attr();
- attrTO.setSchema(intAttrName.getSchema().getKey());
- // virtual attributes don't get transformed, iterate over original attr.getValue()
- if (attr.getValue() != null && !attr.getValue().isEmpty()) {
- attr.getValue().stream().
- filter(Objects::nonNull).
- forEachOrdered(value -> attrTO.getValues().add(value.toString()));
- }
- if (groupableTO == null || group == null) {
- anyTO.getVirAttrs().add(attrTO);
- } else {
- MembershipTO membership = groupableTO.getMembership(group.getKey()).orElseGet(() -> {
- MembershipTO newMemb = new MembershipTO.Builder(group.getKey()).build();
- groupableTO.getMemberships().add(newMemb);
- return newMemb;
- });
- membership.getVirAttrs().add(attrTO);
- }
- }
-
default -> {
}
}
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultUserProvisioningManager.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultUserProvisioningManager.java
index cf848f18b3..dedba38045 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultUserProvisioningManager.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultUserProvisioningManager.java
@@ -41,7 +41,6 @@ import org.apache.syncope.core.persistence.api.dao.UserDAO;
import org.apache.syncope.core.provisioning.api.PropagationByResource;
import org.apache.syncope.core.provisioning.api.UserProvisioningManager;
import org.apache.syncope.core.provisioning.api.UserWorkflowResult;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.propagation.PropagationManager;
import org.apache.syncope.core.provisioning.api.propagation.PropagationReporter;
import org.apache.syncope.core.provisioning.api.propagation.PropagationTaskExecutor;
@@ -65,20 +64,16 @@ public class DefaultUserProvisioningManager implements UserProvisioningManager {
protected final UserDAO userDAO;
- protected final VirAttrHandler virtAttrHandler;
-
public DefaultUserProvisioningManager(
final UserWorkflowAdapter uwfAdapter,
final PropagationManager propagationManager,
final PropagationTaskExecutor taskExecutor,
- final UserDAO userDAO,
- final VirAttrHandler virtAttrHandler) {
+ final UserDAO userDAO) {
this.uwfAdapter = uwfAdapter;
this.propagationManager = propagationManager;
this.taskExecutor = taskExecutor;
this.userDAO = userDAO;
- this.virtAttrHandler = virtAttrHandler;
}
@Override
@@ -108,7 +103,6 @@ public class DefaultUserProvisioningManager implements UserProvisioningManager {
created.getResult().getRight(),
created.getPropByRes(),
created.getPropByLinkedAccount(),
- userCR.getVirAttrs(),
excludedResources);
PropagationReporter propagationReporter = taskExecutor.execute(taskInfos, nullPriorityAsync, creator);
@@ -188,8 +182,8 @@ public class DefaultUserProvisioningManager implements UserProvisioningManager {
propagationManager.getUserUpdateTasks(
updated,
updated.getResult().getLeft().getPassword() != null
- ? updated.getResult().getLeft().getPassword().getResources()
- : List.of(),
+ ? updated.getResult().getLeft().getPassword().getResources()
+ : List.of(),
excludedResources),
beforeAttrs);
PropagationReporter propagationReporter = taskExecutor.execute(taskInfos, nullPriorityAsync, updater);
@@ -296,7 +290,6 @@ public class DefaultUserProvisioningManager implements UserProvisioningManager {
statusR.getType() != StatusRType.SUSPEND,
propByRes,
null,
- null,
null);
PropagationReporter propagationReporter = taskExecutor.execute(taskInfos, nullPriorityAsync, updater);
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultVirAttrHandler.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultVirAttrHandler.java
deleted file mode 100644
index c5bde775f2..0000000000
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/DefaultVirAttrHandler.java
+++ /dev/null
@@ -1,191 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.provisioning.java;
-
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.Set;
-import java.util.stream.Stream;
-import javax.cache.Cache;
-import org.apache.commons.lang3.tuple.Pair;
-import org.apache.syncope.common.lib.to.Item;
-import org.apache.syncope.common.lib.to.Provision;
-import org.apache.syncope.core.persistence.api.dao.AllowedSchemas;
-import org.apache.syncope.core.persistence.api.entity.Any;
-import org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory;
-import org.apache.syncope.core.persistence.api.entity.ExternalResource;
-import org.apache.syncope.core.persistence.api.entity.Membership;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
-import org.apache.syncope.core.provisioning.api.ConnectorManager;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
-import org.apache.syncope.core.provisioning.java.cache.VirAttrCacheKey;
-import org.apache.syncope.core.provisioning.java.cache.VirAttrCacheValue;
-import org.apache.syncope.core.provisioning.java.pushpull.OutboundMatcher;
-import org.identityconnectors.framework.common.objects.Attribute;
-import org.identityconnectors.framework.common.objects.ConnectorObject;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.transaction.annotation.Transactional;
-
-@Transactional(readOnly = true)
-public class DefaultVirAttrHandler implements VirAttrHandler {
-
- protected static final Logger LOG = LoggerFactory.getLogger(VirAttrHandler.class);
-
- protected final ConnectorManager connectorManager;
-
- protected final Cache<VirAttrCacheKey, VirAttrCacheValue> virAttrCache;
-
- protected final OutboundMatcher outboundMatcher;
-
- protected final AnyUtilsFactory anyUtilsFactory;
-
- public DefaultVirAttrHandler(
- final ConnectorManager connectorManager,
- final Cache<VirAttrCacheKey, VirAttrCacheValue> virAttrCache,
- final OutboundMatcher outboundMatcher,
- final AnyUtilsFactory anyUtilsFactory) {
-
- this.connectorManager = connectorManager;
- this.virAttrCache = virAttrCache;
- this.outboundMatcher = outboundMatcher;
- this.anyUtilsFactory = anyUtilsFactory;
- }
-
- @Override
- public void setValues(final Any any, final ConnectorObject connObj) {
- if (any == null) {
- LOG.debug("Null any passed, ignoring");
- return;
- }
-
- AllowedSchemas<VirSchema> schemas =
- anyUtilsFactory.getInstance(any).dao().findAllowedSchemas(any, VirSchema.class);
- Stream.concat(
- schemas.getForSelf().stream(),
- schemas.getForMemberships().values().stream().flatMap(Set::stream)).forEach(schema -> {
-
- VirAttrCacheKey cacheKey = VirAttrCacheKey.of(any.getType().getKey(), any.getKey(), schema.getKey());
-
- Optional.ofNullable(connObj.getAttributeByName(schema.getExtAttrName())).ifPresentOrElse(
- attr -> {
- VirAttrCacheValue cacheValue = VirAttrCacheValue.of(attr.getValue());
- virAttrCache.put(cacheKey, cacheValue);
- LOG.debug("Set in cache: {}={}", cacheKey, cacheValue);
- },
- () -> {
- virAttrCache.remove(cacheKey);
- LOG.debug("Evicted from cache: {}", cacheKey);
- });
- });
- }
-
- protected Map<VirSchema, List<String>> getValues(final Any any, final Set<VirSchema> schemas) {
- Set<ExternalResource> resources = anyUtilsFactory.getInstance(any).getAllResources(any);
-
- Map<VirSchema, List<String>> result = new HashMap<>();
-
- Map<Pair<ExternalResource, Provision>, Set<VirSchema>> toRead = new HashMap<>();
-
- schemas.stream().filter(schema -> resources.contains(schema.getResource())).forEach(schema -> {
- VirAttrCacheKey cacheKey = VirAttrCacheKey.of(any.getType().getKey(), any.getKey(), schema.getKey());
- VirAttrCacheValue cacheValue = virAttrCache.get(cacheKey);
-
- if (cacheValue != null) {
- LOG.debug("Found in cache: {}={}", cacheKey, cacheValue);
- result.put(schema, cacheValue.values());
- } else if (schema.getAnyType().equals(any.getType())) {
- schema.getResource().getProvisionByAnyType(any.getType().getKey()).
- ifPresent(provision -> toRead.computeIfAbsent(
- Pair.of(schema.getResource(), provision), k -> new HashSet<>()).add(schema));
- }
- });
-
- toRead.forEach((pair, schemasToRead) -> {
- LOG.debug("About to read from {}: {}", pair, schemasToRead);
-
- outboundMatcher.match(
- connectorManager.getConnector(pair.getLeft()),
- any,
- pair.getLeft(),
- pair.getRight(),
- Optional.empty(),
- schemasToRead.stream().map(VirSchema::asLinkingMappingItem).toArray(Item[]::new)).
- forEach(connObj -> schemasToRead.forEach(schema -> {
-
- Attribute attr = connObj.getAttributeByName(schema.getExtAttrName());
- if (attr != null) {
- VirAttrCacheKey cacheKey =
- VirAttrCacheKey.of(any.getType().getKey(), any.getKey(), schema.getKey());
- VirAttrCacheValue cacheValue = VirAttrCacheValue.of(attr.getValue());
- virAttrCache.put(cacheKey, cacheValue);
- LOG.debug("Set in cache: {}={}", cacheKey, cacheValue);
-
- result.put(schema, cacheValue.values());
- }
- }));
- });
-
- return result;
- }
-
- @Override
- public List<String> getValues(final Any any, final VirSchema schema) {
- if (!anyUtilsFactory.getInstance(any).dao().
- findAllowedSchemas(any, VirSchema.class).forSelfContains(schema)) {
-
- LOG.debug("{} not allowed for {}", schema, any);
- return List.of();
- }
-
- List<String> result = getValues(any, Set.of(schema)).get(schema);
- return result == null ? List.of() : result;
- }
-
- @Override
- public List<String> getValues(final Any any, final Membership<?> membership, final VirSchema schema) {
- if (!anyUtilsFactory.getInstance(any).dao().
- findAllowedSchemas(any, VirSchema.class).getForMembership(membership.getRightEnd()).contains(schema)) {
-
- LOG.debug("{} not allowed for {}", schema, any);
- return List.of();
- }
-
- List<String> result = getValues(any, Set.of(schema)).get(schema);
- return result == null ? List.of() : result;
- }
-
- @Override
- public Map<VirSchema, List<String>> getValues(final Any any) {
- return getValues(
- any,
- anyUtilsFactory.getInstance(any).dao().findAllowedSchemas(any, VirSchema.class).getForSelf());
- }
-
- @Override
- public Map<VirSchema, List<String>> getValues(final Any any, final Membership<?> membership) {
- return getValues(
- any,
- anyUtilsFactory.getInstance(any).dao().findAllowedSchemas(any, VirSchema.class).
- getForMembership(membership.getRightEnd()));
- }
-}
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/ProvisioningContext.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/ProvisioningContext.java
index 4aaed30505..580783622c 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/ProvisioningContext.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/ProvisioningContext.java
@@ -20,11 +20,6 @@ package org.apache.syncope.core.provisioning.java;
import java.util.List;
import java.util.concurrent.Executor;
-import javax.cache.Cache;
-import javax.cache.CacheManager;
-import javax.cache.configuration.MutableConfiguration;
-import javax.cache.expiry.CreatedExpiryPolicy;
-import javax.cache.expiry.Duration;
import org.apache.syncope.common.keymaster.client.api.ConfParamOps;
import org.apache.syncope.core.persistence.api.DomainHolder;
import org.apache.syncope.core.persistence.api.EncryptorManager;
@@ -60,7 +55,6 @@ import org.apache.syncope.core.persistence.api.dao.SecurityQuestionDAO;
import org.apache.syncope.core.persistence.api.dao.TaskDAO;
import org.apache.syncope.core.persistence.api.dao.TaskExecDAO;
import org.apache.syncope.core.persistence.api.dao.UserDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.WAConfigDAO;
import org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory;
import org.apache.syncope.core.persistence.api.entity.EntityFactory;
@@ -77,7 +71,6 @@ import org.apache.syncope.core.provisioning.api.GroupProvisioningManager;
import org.apache.syncope.core.provisioning.api.IntAttrNameParser;
import org.apache.syncope.core.provisioning.api.MappingManager;
import org.apache.syncope.core.provisioning.api.UserProvisioningManager;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.data.AccessTokenDataBinder;
import org.apache.syncope.core.provisioning.api.data.AnyObjectDataBinder;
import org.apache.syncope.core.provisioning.api.data.AnyTypeClassDataBinder;
@@ -116,8 +109,6 @@ import org.apache.syncope.core.provisioning.api.notification.NotificationJobDele
import org.apache.syncope.core.provisioning.api.notification.NotificationManager;
import org.apache.syncope.core.provisioning.api.propagation.PropagationManager;
import org.apache.syncope.core.provisioning.api.propagation.PropagationTaskExecutor;
-import org.apache.syncope.core.provisioning.java.cache.VirAttrCacheKey;
-import org.apache.syncope.core.provisioning.java.cache.VirAttrCacheValue;
import org.apache.syncope.core.provisioning.java.data.AccessTokenDataBinderImpl;
import org.apache.syncope.core.provisioning.java.data.AnyObjectDataBinderImpl;
import org.apache.syncope.core.provisioning.java.data.AnyTypeClassDataBinderImpl;
@@ -180,7 +171,6 @@ import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Primary;
import org.springframework.core.task.AsyncTaskExecutor;
import org.springframework.mail.javamail.JavaMailSender;
@@ -344,9 +334,7 @@ public class ProvisioningContext {
final AnySearchDAO anySearchDAO,
final RealmDAO realmDAO,
final RealmSearchDAO realmSearchDAO,
- final VirSchemaDAO virSchemaDAO,
final ImplementationDAO implementationDAO,
- final VirAttrHandler virAttrHandler,
final IntAttrNameParser intAttrNameParser) {
return new InboundMatcher(
@@ -356,9 +344,7 @@ public class ProvisioningContext {
anySearchDAO,
realmDAO,
realmSearchDAO,
- virSchemaDAO,
implementationDAO,
- virAttrHandler,
intAttrNameParser,
anyUtilsFactory);
}
@@ -368,11 +354,9 @@ public class ProvisioningContext {
public OutboundMatcher outboundMatcher(
final AnyUtilsFactory anyUtilsFactory,
final MappingManager mappingManager,
- final UserDAO userDAO,
- final VirSchemaDAO virSchemaDAO,
- final VirAttrHandler virAttrHandler) {
+ final UserDAO userDAO) {
- return new OutboundMatcher(mappingManager, userDAO, anyUtilsFactory, virSchemaDAO, virAttrHandler);
+ return new OutboundMatcher(mappingManager, userDAO, anyUtilsFactory);
}
@ConditionalOnMissingBean
@@ -381,17 +365,6 @@ public class ProvisioningContext {
return new DefaultDerAttrHandler(anyUtilsFactory);
}
- @ConditionalOnMissingBean
- @Bean
- public VirAttrHandler virAttrHandler(
- final AnyUtilsFactory anyUtilsFactory,
- final ConnectorManager connectorManager,
- final Cache<VirAttrCacheKey, VirAttrCacheValue> virAttrCache,
- @Lazy final OutboundMatcher outboundMatcher) {
-
- return new DefaultVirAttrHandler(connectorManager, virAttrCache, outboundMatcher, anyUtilsFactory);
- }
-
@ConditionalOnMissingBean
@Bean
public MappingManager mappingManager(
@@ -403,8 +376,6 @@ public class ProvisioningContext {
final RealmSearchDAO realmSearchDAO,
final ImplementationDAO implementationDAO,
final DerAttrHandler derAttrHandler,
- final VirAttrHandler virAttrHandler,
- final Cache<VirAttrCacheKey, VirAttrCacheValue> virAttrCache,
final IntAttrNameParser intAttrNameParser,
final EncryptorManager encryptorManager) {
@@ -417,8 +388,6 @@ public class ProvisioningContext {
realmSearchDAO,
implementationDAO,
derAttrHandler,
- virAttrHandler,
- virAttrCache,
intAttrNameParser,
encryptorManager);
}
@@ -457,14 +426,12 @@ public class ProvisioningContext {
public PropagationManager propagationManager(
final EntityFactory entityFactory,
final AnyUtilsFactory anyUtilsFactory,
- final VirSchemaDAO virSchemaDAO,
final ExternalResourceDAO resourceDAO,
final ConnObjectUtils connObjectUtils,
final MappingManager mappingManager,
final DerAttrHandler derAttrHandler) {
return new DefaultPropagationManager(
- virSchemaDAO,
resourceDAO,
entityFactory,
connObjectUtils,
@@ -485,10 +452,9 @@ public class ProvisioningContext {
final AnyUtilsFactory anyUtilsFactory,
final RealmUtils realmUtils,
final PlainSchemaDAO plainSchemaDAO,
- final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO) {
+ final DerSchemaDAO derSchemaDAO) {
- return new IntAttrNameParser(plainSchemaDAO, derSchemaDAO, virSchemaDAO, anyUtilsFactory, realmUtils);
+ return new IntAttrNameParser(plainSchemaDAO, derSchemaDAO, anyUtilsFactory, realmUtils);
}
@ConditionalOnMissingBean
@@ -533,15 +499,13 @@ public class ProvisioningContext {
final UserWorkflowAdapter uwfAdapter,
final PropagationManager propagationManager,
final PropagationTaskExecutor taskExecutor,
- final UserDAO userDAO,
- final VirAttrHandler virtAttrHandler) {
+ final UserDAO userDAO) {
return new DefaultUserProvisioningManager(
uwfAdapter,
propagationManager,
taskExecutor,
- userDAO,
- virtAttrHandler);
+ userDAO);
}
@ConditionalOnMissingBean
@@ -551,16 +515,14 @@ public class ProvisioningContext {
final PropagationManager propagationManager,
final PropagationTaskExecutor taskExecutor,
final GroupDataBinder groupDataBinder,
- final GroupDAO groupDAO,
- final VirAttrHandler virtAttrHandler) {
+ final GroupDAO groupDAO) {
return new DefaultGroupProvisioningManager(
gwfAdapter,
propagationManager,
taskExecutor,
groupDataBinder,
- groupDAO,
- virtAttrHandler);
+ groupDAO);
}
@ConditionalOnMissingBean
@@ -569,26 +531,13 @@ public class ProvisioningContext {
final AnyObjectWorkflowAdapter awfAdapter,
final PropagationManager propagationManager,
final PropagationTaskExecutor taskExecutor,
- final AnyObjectDAO anyObjectDAO,
- final VirAttrHandler virtAttrHandler) {
+ final AnyObjectDAO anyObjectDAO) {
return new DefaultAnyObjectProvisioningManager(
awfAdapter,
propagationManager,
taskExecutor,
- anyObjectDAO,
- virtAttrHandler);
- }
-
- @ConditionalOnMissingBean(name = VirAttrHandler.CACHE)
- @Bean(name = VirAttrHandler.CACHE)
- public Cache<VirAttrCacheKey, VirAttrCacheValue> virAttrCache(final CacheManager cacheManager) {
- return cacheManager.createCache(VirAttrHandler.CACHE,
- new MutableConfiguration<VirAttrCacheKey, VirAttrCacheValue>().
- setTypes(VirAttrCacheKey.class, VirAttrCacheValue.class).
- setStoreByValue(false).
- setReadThrough(true).
- setExpiryPolicyFactory(CreatedExpiryPolicy.factoryOf(Duration.FIVE_MINUTES)));
+ anyObjectDAO);
}
@ConditionalOnMissingBean
@@ -597,7 +546,6 @@ public class ProvisioningContext {
final EntityFactory entityFactory,
final SearchCondVisitor searchCondVisitor,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final NotificationDAO notificationDAO,
final AnyObjectDAO anyObjectDAO,
final UserDAO userDAO,
@@ -610,12 +558,10 @@ public class ProvisioningContext {
final AnyObjectDataBinder anyObjectDataBinder,
final ConfParamOps confParamOps,
final DerAttrHandler derAttrHandler,
- final VirAttrHandler virAttrHandler,
final IntAttrNameParser intAttrNameParser) {
return new DefaultNotificationManager(
derSchemaDAO,
- virSchemaDAO,
notificationDAO,
anyObjectDAO,
userDAO,
@@ -624,7 +570,6 @@ public class ProvisioningContext {
anyMatchDAO,
taskDAO,
derAttrHandler,
- virAttrHandler,
userDataBinder,
groupDataBinder,
anyObjectDataBinder,
@@ -748,7 +693,6 @@ public class ProvisioningContext {
final ExternalResourceDAO resourceDAO,
final RelationshipTypeDAO relationshipTypeDAO,
final DerAttrHandler derAttrHandler,
- final VirAttrHandler virAttrHandler,
final MappingManager mappingManager,
final IntAttrNameParser intAttrNameParser,
final OutboundMatcher outboundMatcher,
@@ -767,7 +711,6 @@ public class ProvisioningContext {
entityFactory,
anyUtilsFactory,
derAttrHandler,
- virAttrHandler,
mappingManager,
intAttrNameParser,
outboundMatcher,
@@ -780,10 +723,9 @@ public class ProvisioningContext {
final EntityFactory entityFactory,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final AnyTypeDAO anyTypeDAO) {
- return new AnyTypeClassDataBinderImpl(plainSchemaDAO, derSchemaDAO, virSchemaDAO, anyTypeDAO, entityFactory);
+ return new AnyTypeClassDataBinderImpl(plainSchemaDAO, derSchemaDAO, anyTypeDAO, entityFactory);
}
@ConditionalOnMissingBean
@@ -897,7 +839,6 @@ public class ProvisioningContext {
final ExternalResourceDAO resourceDAO,
final RelationshipTypeDAO relationshipTypeDAO,
final DerAttrHandler derAttrHandler,
- final VirAttrHandler virAttrHandler,
final MappingManager mappingManager,
final IntAttrNameParser intAttrNameParser,
final OutboundMatcher outboundMatcher,
@@ -916,7 +857,6 @@ public class ProvisioningContext {
entityFactory,
anyUtilsFactory,
derAttrHandler,
- virAttrHandler,
mappingManager,
intAttrNameParser,
outboundMatcher,
@@ -1029,7 +969,6 @@ public class ProvisioningContext {
final AnyTypeDAO anyTypeDAO,
final ConnInstanceDAO connInstanceDAO,
final PolicyDAO policyDAO,
- final VirSchemaDAO virSchemaDAO,
final AnyTypeClassDAO anyTypeClassDAO,
final ImplementationDAO implementationDAO,
final PlainSchemaDAO plainSchemaDAO,
@@ -1040,7 +979,6 @@ public class ProvisioningContext {
anyTypeDAO,
connInstanceDAO,
policyDAO,
- virSchemaDAO,
anyTypeClassDAO,
implementationDAO,
plainSchemaDAO,
@@ -1092,7 +1030,6 @@ public class ProvisioningContext {
final AnyTypeClassDAO anyTypeClassDAO,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final ExternalResourceDAO resourceDAO,
final AnyTypeDAO anyTypeDAO,
final ImplementationDAO implementationDAO) {
@@ -1101,7 +1038,6 @@ public class ProvisioningContext {
anyTypeClassDAO,
plainSchemaDAO,
derSchemaDAO,
- virSchemaDAO,
resourceDAO,
anyTypeDAO,
implementationDAO,
@@ -1154,7 +1090,6 @@ public class ProvisioningContext {
final ExternalResourceDAO resourceDAO,
final RelationshipTypeDAO relationshipTypeDAO,
final DerAttrHandler derAttrHandler,
- final VirAttrHandler virAttrHandler,
final MappingManager mappingManager,
final IntAttrNameParser intAttrNameParser,
final OutboundMatcher outboundMatcher,
@@ -1178,7 +1113,6 @@ public class ProvisioningContext {
entityFactory,
anyUtilsFactory,
derAttrHandler,
- virAttrHandler,
mappingManager,
intAttrNameParser,
outboundMatcher,
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/cache/VirAttrCacheKey.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/cache/VirAttrCacheKey.java
deleted file mode 100644
index 6f95226a2c..0000000000
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/cache/VirAttrCacheKey.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.provisioning.java.cache;
-
-import org.apache.syncope.core.spring.security.AuthContextUtils;
-
-public record VirAttrCacheKey(String domain, String anyType, String any, String schema) {
-
- public static VirAttrCacheKey of(final String anyType, final String any, final String schema) {
- return new VirAttrCacheKey(AuthContextUtils.getDomain(), anyType, any, schema);
- }
-}
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/cache/VirAttrCacheValue.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/cache/VirAttrCacheValue.java
deleted file mode 100644
index 2f421b1fc5..0000000000
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/cache/VirAttrCacheValue.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.core.provisioning.java.cache;
-
-import java.util.Collection;
-import java.util.List;
-import java.util.Optional;
-
-public record VirAttrCacheValue(List<String> values) {
-
- public static VirAttrCacheValue of(final Collection<Object> values) {
- return new VirAttrCacheValue(Optional.ofNullable(values).
- map(v -> v.stream().map(Object::toString).toList()).
- orElseGet(List::of));
- }
-}
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyDataBinder.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyDataBinder.java
index ff1140aee1..1ddf57dcef 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyDataBinder.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyDataBinder.java
@@ -68,7 +68,6 @@ import org.apache.syncope.core.persistence.api.entity.Membership;
import org.apache.syncope.core.persistence.api.entity.PlainAttr;
import org.apache.syncope.core.persistence.api.entity.PlainAttrValue;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject;
import org.apache.syncope.core.persistence.api.entity.group.Group;
import org.apache.syncope.core.persistence.api.entity.user.User;
@@ -79,7 +78,6 @@ import org.apache.syncope.core.provisioning.api.IntAttrNameParser;
import org.apache.syncope.core.provisioning.api.MappingManager;
import org.apache.syncope.core.provisioning.api.PlainAttrGetter;
import org.apache.syncope.core.provisioning.api.PropagationByResource;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.jexl.JexlUtils;
import org.apache.syncope.core.provisioning.java.pushpull.OutboundMatcher;
import org.apache.syncope.core.provisioning.java.utils.ConnObjectUtils;
@@ -98,7 +96,6 @@ abstract class AnyDataBinder extends AttributableDataBinder {
final Collection<? extends AnyTypeClass> auxClasses,
final Collection<PlainAttr> plainAttrs,
final Map<DerSchema, String> derAttrs,
- final Map<VirSchema, List<String>> virAttrs,
final Collection<? extends ExternalResource> resources) {
anyTO.setRealm(realmFullPath);
@@ -111,9 +108,6 @@ abstract class AnyDataBinder extends AttributableDataBinder {
derAttrs.forEach((schema, value) -> anyTO.getDerAttrs().
add(new Attr.Builder(schema.getKey()).value(value).build()));
- virAttrs.forEach((schema, values) -> anyTO.getVirAttrs().
- add(new Attr.Builder(schema.getKey()).values(values).build()));
-
anyTO.getResources().addAll(resources.stream().map(ExternalResource::getKey).collect(Collectors.toSet()));
}
@@ -136,7 +130,6 @@ abstract class AnyDataBinder extends AttributableDataBinder {
protected static MembershipTO getMembershipTO(
final Collection<PlainAttr> plainAttrs,
final Map<DerSchema, String> derAttrs,
- final Map<VirSchema, List<String>> virAttrs,
final Membership<? extends Any> membership) {
MembershipTO membershipTO = new MembershipTO.Builder(membership.getRightEnd().getKey()).
@@ -148,9 +141,6 @@ abstract class AnyDataBinder extends AttributableDataBinder {
derAttrs.forEach((schema, value) -> membershipTO.getDerAttrs().
add(new Attr.Builder(schema.getKey()).value(value).build()));
- virAttrs.forEach((schema, values) -> membershipTO.getVirAttrs().
- add(new Attr.Builder(schema.getKey()).values(values).build()));
-
return membershipTO;
}
@@ -174,8 +164,6 @@ abstract class AnyDataBinder extends AttributableDataBinder {
protected final AnyUtilsFactory anyUtilsFactory;
- protected final VirAttrHandler virAttrHandler;
-
protected final OutboundMatcher outboundMatcher;
protected AnyDataBinder(
@@ -191,7 +179,6 @@ abstract class AnyDataBinder extends AttributableDataBinder {
final EntityFactory entityFactory,
final AnyUtilsFactory anyUtilsFactory,
final DerAttrHandler derAttrHandler,
- final VirAttrHandler virAttrHandler,
final MappingManager mappingManager,
final IntAttrNameParser intAttrNameParser,
final OutboundMatcher outboundMatcher,
@@ -208,7 +195,6 @@ abstract class AnyDataBinder extends AttributableDataBinder {
this.relationshipTypeDAO = relationshipTypeDAO;
this.entityFactory = entityFactory;
this.anyUtilsFactory = anyUtilsFactory;
- this.virAttrHandler = virAttrHandler;
this.outboundMatcher = outboundMatcher;
}
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyObjectDataBinderImpl.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyObjectDataBinderImpl.java
index 5b43c18486..d9e0056209 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyObjectDataBinderImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyObjectDataBinderImpl.java
@@ -64,7 +64,6 @@ import org.apache.syncope.core.provisioning.api.DerAttrHandler;
import org.apache.syncope.core.provisioning.api.IntAttrNameParser;
import org.apache.syncope.core.provisioning.api.MappingManager;
import org.apache.syncope.core.provisioning.api.PropagationByResource;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.data.AnyObjectDataBinder;
import org.apache.syncope.core.provisioning.java.pushpull.OutboundMatcher;
import org.springframework.transaction.annotation.Transactional;
@@ -85,7 +84,6 @@ public class AnyObjectDataBinderImpl extends AnyDataBinder implements AnyObjectD
final EntityFactory entityFactory,
final AnyUtilsFactory anyUtilsFactory,
final DerAttrHandler derAttrHandler,
- final VirAttrHandler virAttrHandler,
final MappingManager mappingManager,
final IntAttrNameParser intAttrNameParser,
final OutboundMatcher outboundMatcher,
@@ -103,7 +101,6 @@ public class AnyObjectDataBinderImpl extends AnyDataBinder implements AnyObjectD
entityFactory,
anyUtilsFactory,
derAttrHandler,
- virAttrHandler,
mappingManager,
intAttrNameParser,
outboundMatcher,
@@ -138,7 +135,6 @@ public class AnyObjectDataBinderImpl extends AnyDataBinder implements AnyObjectD
anyObject.getAuxClasses(),
anyObject.getPlainAttrs(),
derAttrHandler.getValues(anyObject),
- details ? virAttrHandler.getValues(anyObject) : Map.of(),
anyObjectDAO.findAllResources(anyObject));
// dynamic realms
@@ -163,7 +159,6 @@ public class AnyObjectDataBinderImpl extends AnyDataBinder implements AnyObjectD
anyObject.getMemberships().stream().map(membership -> getMembershipTO(
anyObject.getPlainAttrs(membership),
derAttrHandler.getValues(anyObject, membership),
- virAttrHandler.getValues(anyObject, membership),
membership)).toList());
// dynamic memberships
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyTypeClassDataBinderImpl.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyTypeClassDataBinderImpl.java
index 0738ac3644..badc2b027e 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyTypeClassDataBinderImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyTypeClassDataBinderImpl.java
@@ -23,13 +23,11 @@ import org.apache.syncope.common.lib.to.AnyTypeClassTO;
import org.apache.syncope.core.persistence.api.dao.AnyTypeDAO;
import org.apache.syncope.core.persistence.api.dao.DerSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.AnyType;
import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
import org.apache.syncope.core.persistence.api.entity.DerSchema;
import org.apache.syncope.core.persistence.api.entity.EntityFactory;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.provisioning.api.data.AnyTypeClassDataBinder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -42,8 +40,6 @@ public class AnyTypeClassDataBinderImpl implements AnyTypeClassDataBinder {
protected final DerSchemaDAO derSchemaDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
protected final AnyTypeDAO anyTypeDAO;
protected final EntityFactory entityFactory;
@@ -51,13 +47,11 @@ public class AnyTypeClassDataBinderImpl implements AnyTypeClassDataBinder {
public AnyTypeClassDataBinderImpl(
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final AnyTypeDAO anyTypeDAO,
final EntityFactory entityFactory) {
this.plainSchemaDAO = plainSchemaDAO;
this.derSchemaDAO = derSchemaDAO;
- this.virSchemaDAO = virSchemaDAO;
this.anyTypeDAO = anyTypeDAO;
this.entityFactory = entityFactory;
}
@@ -108,23 +102,6 @@ public class AnyTypeClassDataBinderImpl implements AnyTypeClassDataBinder {
derSchemaDAO.save(schema);
}
});
-
- virSchemaDAO.findByAnyTypeClasses(List.of(anyTypeClass)).forEach(schema -> {
- schema.setAnyTypeClass(null);
- virSchemaDAO.save(schema);
- });
-
- anyTypeClass.getVirSchemas().clear();
- anyTypeClassTO.getVirSchemas().forEach(key -> {
- VirSchema schema = virSchemaDAO.findById(key).orElse(null);
- if (schema == null || schema.getAnyTypeClass() != null) {
- LOG.debug("Invalid or already in use: {} {}, ignoring...", VirSchema.class.getSimpleName(), key);
- } else {
- anyTypeClass.add(schema);
- schema.setAnyTypeClass(anyTypeClass);
- virSchemaDAO.save(schema);
- }
- });
}
@Override
@@ -141,8 +118,6 @@ public class AnyTypeClassDataBinderImpl implements AnyTypeClassDataBinder {
anyTypeClass.getPlainSchemas().stream().map(PlainSchema::getKey).toList());
anyTypeClassTO.getDerSchemas().addAll(
anyTypeClass.getDerSchemas().stream().map(DerSchema::getKey).toList());
- anyTypeClassTO.getVirSchemas().addAll(
- anyTypeClass.getVirSchemas().stream().map(VirSchema::getKey).toList());
return anyTypeClassTO;
}
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/GroupDataBinderImpl.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/GroupDataBinderImpl.java
index 0e144e7f9f..e8c11d92ce 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/GroupDataBinderImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/GroupDataBinderImpl.java
@@ -73,7 +73,6 @@ import org.apache.syncope.core.provisioning.api.DerAttrHandler;
import org.apache.syncope.core.provisioning.api.IntAttrNameParser;
import org.apache.syncope.core.provisioning.api.MappingManager;
import org.apache.syncope.core.provisioning.api.PropagationByResource;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.data.GroupDataBinder;
import org.apache.syncope.core.provisioning.java.pushpull.OutboundMatcher;
import org.springframework.transaction.annotation.Transactional;
@@ -96,7 +95,6 @@ public class GroupDataBinderImpl extends AnyDataBinder implements GroupDataBinde
final EntityFactory entityFactory,
final AnyUtilsFactory anyUtilsFactory,
final DerAttrHandler derAttrHandler,
- final VirAttrHandler virAttrHandler,
final MappingManager mappingManager,
final IntAttrNameParser intAttrNameParser,
final OutboundMatcher outboundMatcher,
@@ -115,7 +113,6 @@ public class GroupDataBinderImpl extends AnyDataBinder implements GroupDataBinde
entityFactory,
anyUtilsFactory,
derAttrHandler,
- virAttrHandler,
mappingManager,
intAttrNameParser,
outboundMatcher,
@@ -505,7 +502,6 @@ public class GroupDataBinderImpl extends AnyDataBinder implements GroupDataBinde
group.getAuxClasses(),
group.getPlainAttrs(),
derAttrHandler.getValues(group),
- details ? virAttrHandler.getValues(group) : Map.of(),
group.getResources());
// dynamic realms
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/JEXLItemTransformerImpl.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/JEXLItemTransformerImpl.java
index 546a4f1615..3e5ee71097 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/JEXLItemTransformerImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/JEXLItemTransformerImpl.java
@@ -178,7 +178,6 @@ public class JEXLItemTransformerImpl implements JEXLItemTransformer {
if (entityTO instanceof AnyTO anyTO) {
JexlUtils.addAttrsToContext(anyTO.getPlainAttrs(), jexlContext);
JexlUtils.addAttrsToContext(anyTO.getDerAttrs(), jexlContext);
- JexlUtils.addAttrsToContext(anyTO.getVirAttrs(), jexlContext);
}
newValues.add(JexlUtils.evaluateExpr(pullJEXL, jexlContext));
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/ResourceDataBinderImpl.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/ResourceDataBinderImpl.java
index bc74dbba62..3f2dc2c94d 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/ResourceDataBinderImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/ResourceDataBinderImpl.java
@@ -44,7 +44,6 @@ import org.apache.syncope.core.persistence.api.dao.ImplementationDAO;
import org.apache.syncope.core.persistence.api.dao.NotFoundException;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
import org.apache.syncope.core.persistence.api.dao.PolicyDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.AnyType;
import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
import org.apache.syncope.core.persistence.api.entity.ConnInstance;
@@ -53,7 +52,6 @@ import org.apache.syncope.core.persistence.api.entity.EntityFactory;
import org.apache.syncope.core.persistence.api.entity.ExternalResource;
import org.apache.syncope.core.persistence.api.entity.Implementation;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.entity.policy.AccountPolicy;
import org.apache.syncope.core.persistence.api.entity.policy.InboundPolicy;
import org.apache.syncope.core.persistence.api.entity.policy.PasswordPolicy;
@@ -78,8 +76,6 @@ public class ResourceDataBinderImpl implements ResourceDataBinder {
protected final PolicyDAO policyDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
protected final AnyTypeClassDAO anyTypeClassDAO;
protected final ImplementationDAO implementationDAO;
@@ -96,7 +92,6 @@ public class ResourceDataBinderImpl implements ResourceDataBinder {
final AnyTypeDAO anyTypeDAO,
final ConnInstanceDAO connInstanceDAO,
final PolicyDAO policyDAO,
- final VirSchemaDAO virSchemaDAO,
final AnyTypeClassDAO anyTypeClassDAO,
final ImplementationDAO implementationDAO,
final PlainSchemaDAO plainSchemaDAO,
@@ -107,7 +102,6 @@ public class ResourceDataBinderImpl implements ResourceDataBinder {
this.anyTypeDAO = anyTypeDAO;
this.connInstanceDAO = connInstanceDAO;
this.policyDAO = policyDAO;
- this.virSchemaDAO = virSchemaDAO;
this.anyTypeClassDAO = anyTypeClassDAO;
this.implementationDAO = implementationDAO;
this.plainSchemaDAO = plainSchemaDAO;
@@ -146,12 +140,12 @@ public class ResourceDataBinderImpl implements ResourceDataBinder {
LOG.debug("Invalid {} specified {}, ignoring...",
AnyType.class.getSimpleName(), provisionTO.getAnyType());
} else {
- Provision provision = resource.getProvisionByAnyType(anyType.getKey()).orElse(null);
- if (provision == null) {
- provision = new Provision();
- provision.setAnyType(anyType.getKey());
- resource.getProvisions().add(provision);
- }
+ Provision provision = resource.getProvisionByAnyType(anyType.getKey()).orElseGet(() -> {
+ Provision p = new Provision();
+ p.setAnyType(anyType.getKey());
+ resource.getProvisions().add(p);
+ return p;
+ });
if (provisionTO.getObjectClass() == null) {
SyncopeClientException sce = SyncopeClientException.build(ClientExceptionType.InvalidProvision);
@@ -209,8 +203,6 @@ public class ResourceDataBinderImpl implements ResourceDataBinder {
map(PlainSchema::getKey).toList());
allowedSchemas.getDerSchemas().addAll(anyTypeClass.getDerSchemas().stream().
map(DerSchema::getKey).toList());
- allowedSchemas.getVirSchemas().addAll(anyTypeClass.getVirSchemas().stream().
- map(VirSchema::getKey).toList());
});
populateMapping(
@@ -220,16 +212,6 @@ public class ResourceDataBinderImpl implements ResourceDataBinder {
anyType.getKind(),
allowedSchemas);
}
-
- if (provisionTO.getVirSchemas().isEmpty()) {
- virSchemaDAO.findByResourceAndAnyType(resource.getKey(), anyType.getKey()).
- forEach(virSchemaDAO::delete);
- } else {
- provisionTO.getVirSchemas().forEach(schemaName -> virSchemaDAO.findById(schemaName).ifPresentOrElse(
- schema -> schema.setResource(resource),
- () -> LOG.debug("Invalid {} specified: {}, ignoring...",
- VirSchema.class.getSimpleName(), schemaName)));
- }
}
});
@@ -237,9 +219,6 @@ public class ResourceDataBinderImpl implements ResourceDataBinder {
for (Iterator<Provision> itor = resource.getProvisions().iterator(); itor.hasNext();) {
Provision provision = itor.next();
if (resourceTO.getProvision(provision.getAnyType()).isEmpty()) {
- virSchemaDAO.findByResourceAndAnyType(resource.getKey(), provision.getAnyType()).
- forEach(virSchemaDAO::delete);
-
itor.remove();
}
}
@@ -433,10 +412,6 @@ public class ResourceDataBinderImpl implements ResourceDataBinder {
allowed = allowedSchemas.getDerSchemas().contains(intAttrName.getSchema().getKey());
break;
- case VIRTUAL:
- allowed = allowedSchemas.getVirSchemas().contains(intAttrName.getSchema().getKey());
- break;
-
default:
}
}
@@ -471,10 +446,6 @@ public class ResourceDataBinderImpl implements ResourceDataBinder {
removeIf(implementation -> !itemTO.getTransformers().contains(implementation));
if (item.isConnObjectKey()) {
- if (intAttrName.getSchemaType() == SchemaType.VIRTUAL) {
- invalidMapping.getElements().
- add("Virtual attributes cannot be set as ConnObjectKey");
- }
if ("password".equals(intAttrName.getField())) {
invalidMapping.getElements().add(
"Password attributes cannot be set as ConnObjectKey");
@@ -505,18 +476,6 @@ public class ResourceDataBinderImpl implements ResourceDataBinder {
invalidMapping.getElements().add(
"Only " + MappingPurpose.PROPAGATION.name() + " allowed for derived");
}
- if (intAttrName.getSchemaType() == SchemaType.VIRTUAL) {
- if (item.getPurpose() != MappingPurpose.PROPAGATION) {
- invalidMapping.getElements().add(
- "Only " + MappingPurpose.PROPAGATION.name() + " allowed for virtual");
- }
-
- VirSchema schema = virSchemaDAO.findById(item.getIntAttrName()).orElse(null);
- if (schema != null && schema.getResource().equals(resource)) {
- invalidMapping.getElements().add(
- "No need to map virtual schema on linking resource");
- }
- }
if (intAttrName.getRelatedUser() != null
&& item.getPurpose() != MappingPurpose.PROPAGATION) {
@@ -602,12 +561,6 @@ public class ResourceDataBinderImpl implements ResourceDataBinder {
resourceTO.getProvisions().add(provisionTO);
});
- resourceTO.getProvisions().
- forEach(provision -> virSchemaDAO.findByResourceAndAnyType(resource.getKey(), provision.getAnyType()).
- forEach(virSchema -> {
- provision.getVirSchemas().add(virSchema.getKey());
- provision.getMapping().getLinkingItems().add(virSchema.asLinkingMappingItem());
- }));
if (resource.getOrgUnit() != null) {
OrgUnit orgUnit = resource.getOrgUnit();
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/SchemaDataBinderImpl.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/SchemaDataBinderImpl.java
index 39489825a5..371d440bb7 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/SchemaDataBinderImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/SchemaDataBinderImpl.java
@@ -26,7 +26,6 @@ import org.apache.syncope.common.lib.SyncopeClientCompositeException;
import org.apache.syncope.common.lib.SyncopeClientException;
import org.apache.syncope.common.lib.to.DerSchemaTO;
import org.apache.syncope.common.lib.to.PlainSchemaTO;
-import org.apache.syncope.common.lib.to.VirSchemaTO;
import org.apache.syncope.common.lib.types.ClientExceptionType;
import org.apache.syncope.core.persistence.api.dao.AnyTypeClassDAO;
import org.apache.syncope.core.persistence.api.dao.AnyTypeDAO;
@@ -35,16 +34,12 @@ import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
import org.apache.syncope.core.persistence.api.dao.ImplementationDAO;
import org.apache.syncope.core.persistence.api.dao.NotFoundException;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
-import org.apache.syncope.core.persistence.api.entity.AnyType;
import org.apache.syncope.core.persistence.api.entity.AnyTypeClass;
import org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory;
import org.apache.syncope.core.persistence.api.entity.DerSchema;
import org.apache.syncope.core.persistence.api.entity.EntityFactory;
-import org.apache.syncope.core.persistence.api.entity.ExternalResource;
import org.apache.syncope.core.persistence.api.entity.Implementation;
import org.apache.syncope.core.persistence.api.entity.PlainSchema;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.provisioning.api.data.SchemaDataBinder;
import org.apache.syncope.core.provisioning.api.jexl.JexlUtils;
import org.slf4j.Logger;
@@ -60,8 +55,6 @@ public class SchemaDataBinderImpl implements SchemaDataBinder {
protected final DerSchemaDAO derSchemaDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
protected final ExternalResourceDAO resourceDAO;
protected final AnyTypeDAO anyTypeDAO;
@@ -76,7 +69,6 @@ public class SchemaDataBinderImpl implements SchemaDataBinder {
final AnyTypeClassDAO anyTypeClassDAO,
final PlainSchemaDAO plainSchemaDAO,
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final ExternalResourceDAO resourceDAO,
final AnyTypeDAO anyTypeDAO,
final ImplementationDAO implementationDAO,
@@ -86,7 +78,6 @@ public class SchemaDataBinderImpl implements SchemaDataBinder {
this.anyTypeClassDAO = anyTypeClassDAO;
this.plainSchemaDAO = plainSchemaDAO;
this.derSchemaDAO = derSchemaDAO;
- this.virSchemaDAO = virSchemaDAO;
this.resourceDAO = resourceDAO;
this.anyTypeDAO = anyTypeDAO;
this.implementationDAO = implementationDAO;
@@ -301,87 +292,4 @@ public class SchemaDataBinderImpl implements SchemaDataBinder {
schemaTO.setAnyTypeClass(schema.getAnyTypeClass() == null ? null : schema.getAnyTypeClass().getKey());
return schemaTO;
}
-
- // --------------- VIRTUAL -----------------
- protected VirSchema fill(final VirSchema schema, final VirSchemaTO schemaTO) {
- schema.setKey(schemaTO.getKey());
- schema.setExtAttrName(schemaTO.getExtAttrName());
- schema.setReadonly(schemaTO.isReadonly());
-
- schema.getLabels().clear();
- schema.getLabels().putAll(schemaTO.getLabels());
-
- ExternalResource resource = resourceDAO.findById(schemaTO.getResource()).orElseThrow(() -> {
- SyncopeClientException sce = SyncopeClientException.build(
- ClientExceptionType.InvalidSchemaDefinition);
- sce.getElements().add("Resource " + schemaTO.getResource() + " not found");
- return sce;
- });
- AnyType anyType = anyTypeDAO.findById(schemaTO.getAnyType()).orElseThrow(() -> {
- SyncopeClientException sce = SyncopeClientException.build(ClientExceptionType.InvalidSchemaDefinition);
- sce.getElements().add("AnyType " + schemaTO.getAnyType() + " not found");
- return sce;
- });
- resource.getProvisionByAnyType(anyType.getKey()).orElseThrow(() -> {
- SyncopeClientException sce = SyncopeClientException.build(ClientExceptionType.InvalidSchemaDefinition);
- sce.getElements().add("Provision for AnyType" + schemaTO.getAnyType()
- + " not found in " + schemaTO.getResource());
- return sce;
- });
- schema.setResource(resource);
- schema.setAnyType(anyType);
-
- VirSchema saved = virSchemaDAO.save(schema);
-
- Mutable<AnyTypeClass> atc = new MutableObject<>();
- if (schemaTO.getAnyTypeClass() != null
- && (saved.getAnyTypeClass() == null
- || !schemaTO.getAnyTypeClass().equals(saved.getAnyTypeClass().getKey()))) {
-
- anyTypeClassDAO.findById(schemaTO.getAnyTypeClass()).ifPresentOrElse(
- anyTypeClass -> {
- anyTypeClass.add(saved);
- saved.setAnyTypeClass(anyTypeClass);
-
- atc.setValue(anyTypeClass);
- },
- () -> LOG.debug("Invalid {}{}, ignoring...",
- AnyTypeClass.class.getSimpleName(), schemaTO.getAnyTypeClass()));
- } else if (schemaTO.getAnyTypeClass() == null && saved.getAnyTypeClass() != null) {
- saved.getAnyTypeClass().getVirSchemas().remove(saved);
- saved.setAnyTypeClass(null);
-
- atc.setValue(saved.getAnyTypeClass());
- }
-
- VirSchema filled = virSchemaDAO.save(saved);
- Optional.ofNullable(atc.getValue()).ifPresent(anyTypeClassDAO::save);
- return filled;
- }
-
- @Override
- public VirSchema create(final VirSchemaTO schemaTO) {
- return fill(entityFactory.newEntity(VirSchema.class), schemaTO);
- }
-
- @Override
- public VirSchema update(final VirSchemaTO schemaTO, final VirSchema schema) {
- return fill(schema, schemaTO);
- }
-
- @Override
- public VirSchemaTO getVirSchemaTO(final String key) {
- VirSchema schema = virSchemaDAO.findById(key).
- orElseThrow(() -> new NotFoundException("VirSchema " + key));
-
- VirSchemaTO schemaTO = new VirSchemaTO();
- schemaTO.setKey(schema.getKey());
- schemaTO.setExtAttrName(schema.getExtAttrName());
- schemaTO.setReadonly(schema.isReadonly());
- schemaTO.getLabels().putAll(schema.getLabels());
- schemaTO.setAnyTypeClass(schema.getAnyTypeClass() == null ? null : schema.getAnyTypeClass().getKey());
- schemaTO.setResource(schema.getResource().getKey());
- schemaTO.setAnyType(schema.getAnyType().getKey());
- return schemaTO;
- }
}
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/UserDataBinderImpl.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/UserDataBinderImpl.java
index e06e8c93d9..f182ab4c39 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/UserDataBinderImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/UserDataBinderImpl.java
@@ -85,7 +85,6 @@ import org.apache.syncope.core.provisioning.api.DerAttrHandler;
import org.apache.syncope.core.provisioning.api.IntAttrNameParser;
import org.apache.syncope.core.provisioning.api.MappingManager;
import org.apache.syncope.core.provisioning.api.PropagationByResource;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.data.UserDataBinder;
import org.apache.syncope.core.provisioning.java.pushpull.OutboundMatcher;
import org.apache.syncope.core.spring.security.AuthContextUtils;
@@ -120,7 +119,6 @@ public class UserDataBinderImpl extends AnyDataBinder implements UserDataBinder
final EntityFactory entityFactory,
final AnyUtilsFactory anyUtilsFactory,
final DerAttrHandler derAttrHandler,
- final VirAttrHandler virAttrHandler,
final MappingManager mappingManager,
final IntAttrNameParser intAttrNameParser,
final OutboundMatcher outboundMatcher,
@@ -144,7 +142,6 @@ public class UserDataBinderImpl extends AnyDataBinder implements UserDataBinder
entityFactory,
anyUtilsFactory,
derAttrHandler,
- virAttrHandler,
mappingManager,
intAttrNameParser,
outboundMatcher,
@@ -759,7 +756,6 @@ public class UserDataBinderImpl extends AnyDataBinder implements UserDataBinder
user.getAuxClasses(),
user.getPlainAttrs(),
derAttrHandler.getValues(user),
- details ? virAttrHandler.getValues(user) : Map.of(),
userDAO.findAllResources(user));
// dynamic realms
@@ -781,7 +777,6 @@ public class UserDataBinderImpl extends AnyDataBinder implements UserDataBinder
userTO.getMemberships().addAll(user.getMemberships().stream().
map(membership -> getMembershipTO(user.getPlainAttrs(membership),
derAttrHandler.getValues(user, membership),
- virAttrHandler.getValues(user, membership),
membership)).toList());
// dynamic memberships
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/notification/DefaultNotificationManager.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/notification/DefaultNotificationManager.java
index 35910be490..953f98af74 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/notification/DefaultNotificationManager.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/notification/DefaultNotificationManager.java
@@ -48,7 +48,6 @@ import org.apache.syncope.core.persistence.api.dao.NotFoundException;
import org.apache.syncope.core.persistence.api.dao.NotificationDAO;
import org.apache.syncope.core.persistence.api.dao.TaskDAO;
import org.apache.syncope.core.persistence.api.dao.UserDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.Any;
import org.apache.syncope.core.persistence.api.entity.AnyType;
import org.apache.syncope.core.persistence.api.entity.EntityFactory;
@@ -65,7 +64,6 @@ import org.apache.syncope.core.persistence.api.search.SearchCondVisitor;
import org.apache.syncope.core.provisioning.api.DerAttrHandler;
import org.apache.syncope.core.provisioning.api.IntAttrName;
import org.apache.syncope.core.provisioning.api.IntAttrNameParser;
-import org.apache.syncope.core.provisioning.api.VirAttrHandler;
import org.apache.syncope.core.provisioning.api.data.AnyObjectDataBinder;
import org.apache.syncope.core.provisioning.api.data.GroupDataBinder;
import org.apache.syncope.core.provisioning.api.data.UserDataBinder;
@@ -86,8 +84,6 @@ public class DefaultNotificationManager implements NotificationManager {
protected final DerSchemaDAO derSchemaDAO;
- protected final VirSchemaDAO virSchemaDAO;
-
protected final NotificationDAO notificationDAO;
protected final AnyObjectDAO anyObjectDAO;
@@ -104,8 +100,6 @@ public class DefaultNotificationManager implements NotificationManager {
protected final DerAttrHandler derAttrHandler;
- protected final VirAttrHandler virAttrHandler;
-
protected final UserDataBinder userDataBinder;
protected final GroupDataBinder groupDataBinder;
@@ -124,7 +118,6 @@ public class DefaultNotificationManager implements NotificationManager {
public DefaultNotificationManager(
final DerSchemaDAO derSchemaDAO,
- final VirSchemaDAO virSchemaDAO,
final NotificationDAO notificationDAO,
final AnyObjectDAO anyObjectDAO,
final UserDAO userDAO,
@@ -133,7 +126,6 @@ public class DefaultNotificationManager implements NotificationManager {
final AnyMatchDAO anyMatchDAO,
final TaskDAO taskDAO,
final DerAttrHandler derAttrHandler,
- final VirAttrHandler virAttrHandler,
final UserDataBinder userDataBinder,
final GroupDataBinder groupDataBinder,
final AnyObjectDataBinder anyObjectDataBinder,
@@ -143,7 +135,6 @@ public class DefaultNotificationManager implements NotificationManager {
final SearchCondVisitor searchCondVisitor) {
this.derSchemaDAO = derSchemaDAO;
- this.virSchemaDAO = virSchemaDAO;
this.notificationDAO = notificationDAO;
this.anyObjectDAO = anyObjectDAO;
this.userDAO = userDAO;
@@ -152,7 +143,6 @@ public class DefaultNotificationManager implements NotificationManager {
this.anyMatchDAO = anyMatchDAO;
this.taskDAO = taskDAO;
this.derAttrHandler = derAttrHandler;
- this.virAttrHandler = virAttrHandler;
this.userDataBinder = userDataBinder;
this.groupDataBinder = groupDataBinder;
this.anyObjectDataBinder = anyObjectDataBinder;
@@ -184,8 +174,6 @@ public class DefaultNotificationManager implements NotificationManager {
jexlVars.put("syncopeConf", confParamOps.list(SyncopeConstants.MASTER_DOMAIN));
jexlVars.put("events", notification.getEvents());
- Optional.ofNullable(any).ifPresent(virAttrHandler::getValues);
-
List<User> recipients = new ArrayList<>();
Optional.ofNullable(notification.getRecipientsFIQL()).
@@ -198,18 +186,14 @@ public class DefaultNotificationManager implements NotificationManager {
Set<String> recipientEmails = new HashSet<>();
List<UserTO> recipientTOs = new ArrayList<>(recipients.size());
- recipients.forEach(recipient -> {
- virAttrHandler.getValues(recipient);
-
- Optional.ofNullable(getRecipientEmail(notification.getRecipientAttrName(), recipient)).
- ifPresentOrElse(
- email -> {
- recipientEmails.add(email);
- recipientTOs.add(userDataBinder.getUserTO(recipient, true));
- },
- () -> LOG.warn("{} cannot be notified: {} not found",
- recipient, notification.getRecipientAttrName()));
- });
+ recipients.forEach(recipient -> Optional.ofNullable(
+ getRecipientEmail(notification.getRecipientAttrName(), recipient)).ifPresentOrElse(
+ email -> {
+ recipientEmails.add(email);
+ recipientTOs.add(userDataBinder.getUserTO(recipient, true));
+ },
+ () -> LOG.warn("{} cannot be notified: {} not found",
+ recipient, notification.getRecipientAttrName())));
jexlVars.put("recipients", recipientTOs);
Optional.ofNullable(notification.getStaticRecipients()).ifPresent(recipientEmails::addAll);
@@ -419,17 +403,6 @@ public class DefaultNotificationManager implements NotificationManager {
orElse(null);
}
- case VIRTUAL -> {
- email = virSchemaDAO.findById(recipientAttrName).
- map(virSchema -> {
- List<String> virAttrValues = membership == null
- ? virAttrHandler.getValues(user, virSchema)
- : virAttrHandler.getValues(user, membership, virSchema);
- return virAttrValues.isEmpty() ? null : virAttrValues.getFirst();
- }).
- orElse(null);
- }
-
default -> {
}
}
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/DefaultPropagationManager.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/DefaultPropagationManager.java
index 6e4001fe0a..83281bddc1 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/DefaultPropagationManager.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/DefaultPropagationManager.java
@@ -31,7 +31,6 @@ import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.Pair;
-import org.apache.syncope.common.lib.Attr;
import org.apache.syncope.common.lib.request.AbstractPatchItem;
import org.apache.syncope.common.lib.request.AnyUR;
import org.apache.syncope.common.lib.request.PasswordPatch;
@@ -43,13 +42,11 @@ import org.apache.syncope.common.lib.types.AnyTypeKind;
import org.apache.syncope.common.lib.types.ResourceOperation;
import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
import org.apache.syncope.core.persistence.api.dao.NotFoundException;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.Any;
import org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory;
import org.apache.syncope.core.persistence.api.entity.EntityFactory;
import org.apache.syncope.core.persistence.api.entity.ExternalResource;
import org.apache.syncope.core.persistence.api.entity.Realm;
-import org.apache.syncope.core.persistence.api.entity.VirSchema;
import org.apache.syncope.core.persistence.api.entity.policy.PropagationPolicy;
import org.apache.syncope.core.persistence.api.entity.task.PropagationData;
import org.apache.syncope.core.persistence.api.entity.user.LinkedAccount;
@@ -85,8 +82,6 @@ public class DefaultPropagationManager implements PropagationManager {
protected static final Logger LOG = LoggerFactory.getLogger(PropagationManager.class);
- protected final VirSchemaDAO virSchemaDAO;
-
protected final ExternalResourceDAO resourceDAO;
protected final EntityFactory entityFactory;
@@ -100,7 +95,6 @@ public class DefaultPropagationManager implements PropagationManager {
protected final AnyUtilsFactory anyUtilsFactory;
public DefaultPropagationManager(
- final VirSchemaDAO virSchemaDAO,
final ExternalResourceDAO resourceDAO,
final EntityFactory entityFactory,
final ConnObjectUtils connObjectUtils,
@@ -108,7 +102,6 @@ public class DefaultPropagationManager implements PropagationManager {
final DerAttrHandler derAttrHandler,
final AnyUtilsFactory anyUtilsFactory) {
- this.virSchemaDAO = virSchemaDAO;
this.resourceDAO = resourceDAO;
this.entityFactory = entityFactory;
this.connObjectUtils = connObjectUtils;
@@ -123,7 +116,6 @@ public class DefaultPropagationManager implements PropagationManager {
final String key,
final Boolean enable,
final PropagationByResource<String> propByRes,
- final Collection<Attr> vAttrs,
final Collection<String> excludedResources) {
return getCreateTasks(
@@ -132,7 +124,6 @@ public class DefaultPropagationManager implements PropagationManager {
enable,
propByRes,
null,
- vAttrs,
excludedResources);
}
@@ -143,7 +134,6 @@ public class DefaultPropagationManager implements PropagationManager {
final Boolean enable,
final PropagationByResource<String> propByRes,
final PropagationByResource<Pair<String, String>> propByLinkedAccount,
- final Collection<Attr> vAttrs,
final Collection<String> excludedResources) {
return getCreateTasks(
@@ -152,7 +142,6 @@ public class DefaultPropagationManager implements PropagationManager {
enable,
propByRes,
propByLinkedAccount,
- vAttrs,
excludedResources);
}
@@ -162,7 +151,6 @@ public class DefaultPropagationManager implements PropagationManager {
final Boolean enable,
final PropagationByResource<String> propByRes,
final PropagationByResource<Pair<String, String>> propByLinkedAccount,
- final Collection<Attr> vAttrs,
final Collection<String> excludedResources) {
if ((propByRes == null || propByRes.isEmpty())
@@ -189,7 +177,7 @@ public class DefaultPropagationManager implements PropagationManager {
if (propByLinkedAccount != null) {
propByLinkedAccount.asMap().forEach((resource, resourceOperation) -> changePwdRes.add(resource.getKey()));
}
- return createTasks(any, password, changePwdRes, enable, propByRes, propByLinkedAccount, vAttrs);
+ return createTasks(any, password, changePwdRes, enable, propByRes, propByLinkedAccount);
}
@Override
@@ -201,7 +189,6 @@ public class DefaultPropagationManager implements PropagationManager {
final Boolean enable,
final PropagationByResource<String> propByRes,
final PropagationByResource<Pair<String, String>> propByLinkedAccount,
- final Collection<Attr> vAttrs,
final Collection<String> excludedResources) {
return getUpdateTasks(
@@ -212,7 +199,6 @@ public class DefaultPropagationManager implements PropagationManager {
enable,
propByRes,
propByLinkedAccount,
- vAttrs,
excludedResources);
}
@@ -231,7 +217,6 @@ public class DefaultPropagationManager implements PropagationManager {
wfResult.getResult().getRight(),
wfResult.getPropByRes(),
wfResult.getPropByLinkedAccount(),
- wfResult.getResult().getLeft().getVirAttrs(),
excludedResources);
}
@@ -304,7 +289,6 @@ public class DefaultPropagationManager implements PropagationManager {
final Boolean enable,
final PropagationByResource<String> propByRes,
final PropagationByResource<Pair<String, String>> propByLinkedAccount,
- final Collection<Attr> vAttrs,
final Collection<String> excludedResources) {
if (excludedResources != null) {
@@ -328,8 +312,7 @@ public class DefaultPropagationManager implements PropagationManager {
changePwdRes,
enable,
Optional.ofNullable(propByRes).orElseGet(PropagationByResource::new),
- propByLinkedAccount,
- vAttrs);
+ propByLinkedAccount);
tasks.forEach(task -> task.setUpdateRequest(anyUR));
return tasks;
}
@@ -376,7 +359,7 @@ public class DefaultPropagationManager implements PropagationManager {
}
}
- return createTasks(any, null, List.of(), false, localPropByRes, propByLinkedAccount, null);
+ return createTasks(any, null, List.of(), false, localPropByRes, propByLinkedAccount);
}
@Override
@@ -433,7 +416,6 @@ public class DefaultPropagationManager implements PropagationManager {
* @param enable whether user must be enabled or not
* @param propByRes operation to be performed per resource
* @param propByLinkedAccount operation to be performed on linked accounts
- * @param vAttrs virtual attributes to be set
* @return list of propagation tasks created
*/
protected List<PropagationTaskInfo> createTasks(
@@ -442,8 +424,7 @@ public class DefaultPropagationManager implements PropagationManager {
final List<String> changePwdRes,
final Boolean enable,
final PropagationByResource<String> propByRes,
- final PropagationByResource<Pair<String, String>> propByLinkedAccount,
- final Collection<Attr> vAttrs) {
+ final PropagationByResource<Pair<String, String>> propByLinkedAccount) {
LOG.debug("Provisioning {}:\n{}", any, propByRes);
@@ -451,41 +432,6 @@ public class DefaultPropagationManager implements PropagationManager {
propByRes.purge();
LOG.debug("After purge {}:\n{}", any, propByRes);
- // Virtual attributes
- Set<String> virtualResources = new HashSet<>();
- virtualResources.addAll(propByRes.get(ResourceOperation.CREATE));
- virtualResources.addAll(propByRes.get(ResourceOperation.UPDATE));
- virtualResources.addAll(anyUtilsFactory.getInstance(any).dao().findAllResourceKeys(any.getKey()));
-
- Map<String, Set<Attribute>> vAttrMap = new HashMap<>();
- if (vAttrs != null) {
- vAttrs.forEach(vAttr -> {
- VirSchema schema = virSchemaDAO.findById(vAttr.getSchema()).orElse(null);
- if (schema == null) {
- LOG.warn("Ignoring invalid {} {}", VirSchema.class.getSimpleName(), vAttr.getSchema());
- } else if (schema.isReadonly()) {
- LOG.warn("Ignoring read-only {} {}", VirSchema.class.getSimpleName(), vAttr.getSchema());
- } else if (anyUtilsFactory.getInstance(any).dao().
- findAllowedSchemas(any, VirSchema.class).contains(schema)
- && virtualResources.contains(schema.getResource().getKey())) {
-
- Set<Attribute> values = vAttrMap.get(schema.getResource().getKey());
- if (values == null) {
- values = new HashSet<>();
- vAttrMap.put(schema.getResource().getKey(), values);
- }
- values.add(AttributeBuilder.build(schema.getExtAttrName(), vAttr.getValues()));
-
- if (!propByRes.contains(ResourceOperation.CREATE, schema.getResource().getKey())) {
- propByRes.add(ResourceOperation.UPDATE, schema.getResource().getKey());
- }
- } else {
- LOG.warn("{} not owned by or {} not allowed for {}", schema.getResource(), schema, any);
- }
- });
- }
- LOG.debug("With virtual attributes {}:\n{}\n{}", any, propByRes, vAttrMap);
-
List<PropagationTaskInfo> tasks = new ArrayList<>();
propByRes.asMap().forEach((resourceKey, operation) -> {
@@ -508,9 +454,6 @@ public class DefaultPropagationManager implements PropagationManager {
Pair<String, Set<Attribute>> preparedAttrs =
mappingManager.prepareAttrsFromAny(any, password, changePwdRes.contains(resourceKey),
enable, resource, provision);
- if (vAttrMap.containsKey(resourceKey)) {
- preparedAttrs.getRight().addAll(vAttrMap.get(resourceKey));
- }
PropagationTaskInfo task = newTask(
derAttrHandler,
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/AbstractPullExecutor.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/AbstractPullExecutor.java
index 32b4d28f47..de5eb45d2f 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/AbstractPullExecutor.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/AbstractPullExecutor.java
@@ -33,7 +33,6 @@ import org.apache.syncope.core.persistence.api.attrvalue.PlainAttrValidationMana
import org.apache.syncope.core.persistence.api.dao.GroupDAO;
import org.apache.syncope.core.persistence.api.dao.NotFoundException;
import org.apache.syncope.core.persistence.api.dao.PlainSchemaDAO;
-import org.apache.syncope.core.persistence.api.dao.VirSchemaDAO;
import org.apache.syncope.core.persistence.api.entity.Implementation;
import org.apache.syncope.core.persistence.api.entity.group.Group;
import org.apache.syncope.core.persistence.api.entity.task.ProvisioningTask;
... 2811 lines suppressed ...