[midPoint-git] [Evolveum/midpoint] 1eefca: Stop applying authorizations onto definitions

mederly noreply at github.com
Thu Apr 20 11:05:48 CEST 2023


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 1eefcaee1ac4026f3b54698e144ab3d8ed7dd6b3
      https://github.com/Evolveum/midpoint/commit/1eefcaee1ac4026f3b54698e144ab3d8ed7dd6b3
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2023-04-19 (Wed, 19 Apr 2023)

  Changed paths:
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/self/PagePostAuthentication.java
    A infra/schema/src/main/java/com/evolveum/midpoint/schema/ParsedGetOperationOptions.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/SelectorOptions.java
    A infra/schema/src/main/java/com/evolveum/midpoint/schema/error/ConfigErrorReporter.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectTypeIdentification.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ItemRefinedDefinitionTypeUtil.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ObjectTemplateTypeUtil.java
    A infra/schema/src/test/java/com/evolveum/midpoint/schema/TestConfigErrorReporter.java
    A infra/schema/src/test/resources/config-error-reporter/object-template-1.xml
    A infra/schema/src/test/resources/config-error-reporter/resource-1.xml
    M infra/schema/testng-unit.xml
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/MappingImpl.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/metadata/ItemValueMetadataProcessingSpec.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/mapping/metadata/ValueMetadataComputation.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/ModelController.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/ModelInteractionServiceImpl.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/ResolveOptionExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/controller/SchemaTransformer.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensOwnerResolver.java
    R model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/identities/IdentityItemConfiguration.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/identities/IdentityItemConfigurationImpl.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/indexing/IndexingItemConfigurationImpl.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/schema/transform/TransformableItemDefinition.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/schema/transform/TransformableObjectDefinition.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/gensync/TestEditSchema.java
    M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/ReportFunctions.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/expression/TransformationValueMetadataComputer.java
    M repo/security-api/src/main/java/com/evolveum/midpoint/security/api/OwnerResolver.java
    M repo/security-enforcer-api/src/main/java/com/evolveum/midpoint/security/enforcer/api/SecurityEnforcer.java
    M repo/security-enforcer-impl/src/main/java/com/evolveum/midpoint/security/enforcer/impl/ObjectSecurityConstraintsImpl.java
    M repo/security-enforcer-impl/src/main/java/com/evolveum/midpoint/security/enforcer/impl/PhasedConstraints.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/cluster/ClusterExecutionHelperImpl.java

  Log Message:
  -----------
  Stop applying authorizations onto definitions

In order to improve the performance of model.getObject and similar
method calls, we decided to reduce the processing done on objects being
returned.

The first candidate is the application of authorizations on object
definitions. It looks like these need not be done. (The
getEditObjectDefinition method should be sufficient for this.)
So, this commit eliminates this processing.

Work in progress. To be tested.

There are other (mainly readability) changes. The following experimental
auxiliary classes were created:

- ConfigErrorReporter
- ParsedGetOperationOptions




More information about the midPoint-svn mailing list