@Component public class ShadowManager extends Object
Constructor and Description |
---|
ShadowManager() |
Modifier and Type | Method and Description |
---|---|
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
addRepositoryShadow(ProvisioningContext ctx,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> resourceShadow,
OperationResult parentResult) |
<T> boolean |
compareAttribute(RefinedObjectClassDefinition refinedObjectClassDefinition,
ResourceAttribute<T> attributeA,
ResourceAttribute<T> attributeB) |
<T> boolean |
compareAttribute(RefinedObjectClassDefinition refinedObjectClassDefinition,
ResourceAttribute<T> attributeA,
T... valuesB) |
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
createRepositoryShadow(ProvisioningContext ctx,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow)
Create a copy of a shadow that is suitable for repository storage.
|
ResourceOperationDescription |
createResourceFailureDescription(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> conflictedShadow,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource,
OperationResult parentResult) |
void |
deleteConflictedShadowFromRepo(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
OperationResult parentResult) |
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
findOrAddShadowFromChange(ProvisioningContext ctx,
Change<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> change,
OperationResult parentResult) |
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
findOrAddShadowFromChangeGlobalContext(ProvisioningContext globalCtx,
Change<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> change,
OperationResult parentResult) |
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
fixShadow(ProvisioningContext ctx,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> origRepoShadow,
OperationResult parentResult)
Re-reads the shadow, re-evaluates the identifiers and stored values, updates them if necessary.
|
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
lookupConflictingShadowBySecondaryIdentifiers(ProvisioningContext ctx,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> resourceShadow,
OperationResult parentResult) |
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
lookupShadowBySecondaryIdentifiers(ProvisioningContext ctx,
Collection<ResourceAttribute<?>> secondaryIdentifiers,
OperationResult parentResult) |
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
lookupShadowInRepository(ProvisioningContext ctx,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> resourceShadow,
OperationResult parentResult)
Locates the appropriate Shadow in repository that corresponds to the
provided resource object.
|
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
lookupShadowInRepository(ProvisioningContext ctx,
ResourceAttributeContainer identifierContainer,
OperationResult parentResult) |
void |
normalizeAttributes(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
RefinedObjectClassDefinition objectClassDefinition) |
<T> void |
normalizeDelta(ItemDelta<PrismPropertyValue<T>,PrismPropertyDefinition<T>> delta,
RefinedObjectClassDefinition objectClassDefinition) |
<T> void |
normalizeDeltas(Collection<? extends ItemDelta<PrismPropertyValue<T>,PrismPropertyDefinition<T>>> deltas,
RefinedObjectClassDefinition objectClassDefinition) |
SearchResultMetadata |
searchObjectsIterativeRepository(ProvisioningContext ctx,
ObjectQuery query,
Collection<SelectorOptions<GetOperationOptions>> options,
ResultHandler<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> repoHandler,
OperationResult parentResult) |
void |
setIntentIfNecessary(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType repoShadowType,
RefinedObjectClassDefinition objectClassDefinition) |
void |
setKindIfNecessary(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType repoShadowType,
RefinedObjectClassDefinition objectClassDefinition) |
Collection<ItemDelta> |
updateShadow(ProvisioningContext ctx,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> resourceShadow,
Collection<? extends ItemDelta> aprioriDeltas,
OperationResult result) |
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> |
updateShadow(ProvisioningContext ctx,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> currentResourceShadow,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> oldRepoShadow,
OperationResult parentResult)
Updates repository shadow based on shadow from resource.
|
public void deleteConflictedShadowFromRepo(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, OperationResult parentResult)
public ResourceOperationDescription createResourceFailureDescription(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> conflictedShadow, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resource, OperationResult parentResult)
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> lookupShadowInRepository(ProvisioningContext ctx, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> resourceShadow, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
parentResult
- SchemaException
ConfigurationException
ObjectNotFoundException
CommunicationException
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> lookupShadowInRepository(ProvisioningContext ctx, ResourceAttributeContainer identifierContainer, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> lookupConflictingShadowBySecondaryIdentifiers(ProvisioningContext ctx, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> resourceShadow, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> lookupShadowBySecondaryIdentifiers(ProvisioningContext ctx, Collection<ResourceAttribute<?>> secondaryIdentifiers, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> addRepositoryShadow(ProvisioningContext ctx, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> resourceShadow, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException, ObjectAlreadyExistsException
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> findOrAddShadowFromChange(ProvisioningContext ctx, Change<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> change, OperationResult parentResult) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ObjectNotFoundException
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> findOrAddShadowFromChangeGlobalContext(ProvisioningContext globalCtx, Change<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> change, OperationResult parentResult) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ObjectNotFoundException
public SearchResultMetadata searchObjectsIterativeRepository(ProvisioningContext ctx, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, ResultHandler<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> repoHandler, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> createRepositoryShadow(ProvisioningContext ctx, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
public Collection<ItemDelta> updateShadow(ProvisioningContext ctx, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> resourceShadow, Collection<? extends ItemDelta> aprioriDeltas, OperationResult result) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> updateShadow(ProvisioningContext ctx, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> currentResourceShadow, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> oldRepoShadow, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, ObjectAlreadyExistsException, ConfigurationException, CommunicationException
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> fixShadow(ProvisioningContext ctx, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> origRepoShadow, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, ConfigurationException, CommunicationException
public void setKindIfNecessary(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType repoShadowType, RefinedObjectClassDefinition objectClassDefinition)
public void setIntentIfNecessary(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType repoShadowType, RefinedObjectClassDefinition objectClassDefinition)
public void normalizeAttributes(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, RefinedObjectClassDefinition objectClassDefinition) throws SchemaException
SchemaException
public <T> void normalizeDeltas(Collection<? extends ItemDelta<PrismPropertyValue<T>,PrismPropertyDefinition<T>>> deltas, RefinedObjectClassDefinition objectClassDefinition) throws SchemaException
SchemaException
public <T> void normalizeDelta(ItemDelta<PrismPropertyValue<T>,PrismPropertyDefinition<T>> delta, RefinedObjectClassDefinition objectClassDefinition) throws SchemaException
SchemaException
public <T> boolean compareAttribute(RefinedObjectClassDefinition refinedObjectClassDefinition, ResourceAttribute<T> attributeA, T... valuesB) throws SchemaException
SchemaException
public <T> boolean compareAttribute(RefinedObjectClassDefinition refinedObjectClassDefinition, ResourceAttribute<T> attributeA, ResourceAttribute<T> attributeB) throws SchemaException
SchemaException
Copyright © 2016 evolveum. All rights reserved.