Skip to content

Commit

Permalink
fixing TestRetirement
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Apr 11, 2018
1 parent f4145af commit 0c35283
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
Expand Up @@ -106,20 +106,11 @@ public class ResourceObjectConverter {
private static final String OPERATION_REFRESH_OPERATION_STATUS = DOT_CLASS + "refreshOperationStatus";


@Autowired
private EntitlementConverter entitlementConverter;

@Autowired
private MatchingRuleRegistry matchingRuleRegistry;

@Autowired
private ResourceObjectReferenceResolver resourceObjectReferenceResolver;

@Autowired
private Clock clock;

@Autowired
private PrismContext prismContext;
@Autowired private EntitlementConverter entitlementConverter;
@Autowired private MatchingRuleRegistry matchingRuleRegistry;
@Autowired private ResourceObjectReferenceResolver resourceObjectReferenceResolver;
@Autowired private Clock clock;
@Autowired private PrismContext prismContext;

private static final Trace LOGGER = TraceManager.getTrace(ResourceObjectConverter.class);

Expand Down
Expand Up @@ -102,6 +102,7 @@ PrismObject<ShadowType> resolve(ProvisioningContext ctx, ResourceObjectReference
if (resourceObjectReference.getResolutionFrequency() == null
|| resourceObjectReference.getResolutionFrequency() == ResourceObjectReferenceResolutionFrequencyType.ONCE) {
PrismObject<ShadowType> shadow = repositoryService.getObject(ShadowType.class, shadowRef.getOid(), null, result);
shadowCache.applyDefinition(shadow, result);
return shadow;
}
} else if (resourceObjectReference.getResolutionFrequency() == ResourceObjectReferenceResolutionFrequencyType.NEVER) {
Expand All @@ -126,7 +127,7 @@ PrismObject<ShadowType> resolve(ProvisioningContext ctx, ResourceObjectReference
ObjectFilter filter = AndFilter.createAnd(baseFilter, evaluatedRefQuery.getFilter());
ObjectQuery query = ObjectQuery.createObjectQuery(filter);

// TODO: implement "repo" search strategies
// TODO: implement "repo" search strategies, don't forget to apply definitions

Collection<SelectorOptions<GetOperationOptions>> options = null;

Expand Down Expand Up @@ -165,6 +166,7 @@ Collection<? extends ResourceAttribute<?>> resolvePrimaryIdentifier(Provisioning
if (repoShadow == null) {
return null;
}
shadowCache.applyDefinition(repoShadow, result);
PrismContainer<Containerable> attributesContainer = repoShadow.findContainer(ShadowType.F_ATTRIBUTES);
if (attributesContainer == null) {
return null;
Expand Down

0 comments on commit 0c35283

Please sign in to comment.