Skip to content

Commit

Permalink
Fixing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Jan 26, 2017
1 parent f265076 commit 84ab9aa
Showing 1 changed file with 8 additions and 23 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010-2016 Evolveum
* Copyright (c) 2010-2017 Evolveum
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -163,9 +163,8 @@ public PrismObject<ShadowType> getShadow(String oid, PrismObject<ShadowType> rep
// We want to hide the existence of shadow cache from the user.

// Get the shadow from repository. There are identifiers that we need
// for accessing the object by UCF.
// Later, the repository object may have a fully cached object from the
// resource.
// for accessing the object by UCF.Later, the repository object may
// have a fully cached object from the resource.
if (repositoryShadow == null) {
repositoryShadow = repositoryService.getObject(ShadowType.class, oid, null, parentResult);
if (LOGGER.isTraceEnabled()) {
Expand Down Expand Up @@ -226,9 +225,8 @@ public PrismObject<ShadowType> getShadow(String oid, PrismObject<ShadowType> rep
resourceShadow = resouceObjectConverter.getResourceObject(ctx, identifiers, true, parentResult);

// Resource shadow may have different auxiliary object classes than
// the original repo shadow. Make sure we have
// the definition that applies to resource shadow. We will fix repo
// shadow later.
// the original repo shadow. Make sure we have the definition that
// applies to resource shadow. We will fix repo shadow later.
// BUT we need also information about kind/intent and these information is only
// in repo shadow, therefore the following 2 lines..
resourceShadow.asObjectable().setKind(repositoryShadow.asObjectable().getKind());
Expand Down Expand Up @@ -983,22 +981,9 @@ private SearchResultMetadata searchObjectsIterativeRepository(final Provisioning
public boolean handle(PrismObject<ShadowType> object, OperationResult parentResult) {
try {
applyAttributesDefinition(ctx, object);
ProvisioningUtil.setProtectedFlag(ctx, object, matchingRuleRegistry); // fixing
// MID-1640;
// hoping
// that
// the
// protected
// object
// filter
// uses
// only
// identifiers
// (that
// are
// stored
// in
// repo)
// fixing MID-1640; hoping that the protected object filter uses only identifiers
// (that are stored in repo)
ProvisioningUtil.setProtectedFlag(ctx, object, matchingRuleRegistry);
boolean cont = shadowHandler.handle(object.asObjectable());
parentResult.recordSuccess();
return cont;
Expand Down

0 comments on commit 84ab9aa

Please sign in to comment.