public final class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
addDefaultExpressionVariables(ExpressionVariables variables,
PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> focus,
PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
ResourceShadowDiscriminator discr,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType> configuration,
LensElementContext<O> affectedElementContext) |
static void |
clearRequestee(Task task) |
static void |
clearSystemConfigurationCache() |
static PrismReferenceValue |
determineAuditTarget(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas) |
static PrismReferenceValue |
determineAuditTargetDeltaOps(Collection<ObjectDeltaOperation<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltaOps) |
static ObjectClassComplexTypeDefinition |
determineObjectClass(RefinedResourceSchema refinedSchema,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) |
static ObjectClassComplexTypeDefinition |
determineObjectClass(RefinedResourceSchema refinedSchema,
Task task) |
static void |
encrypt(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas,
Protector protector,
ModelExecuteOptions options,
OperationResult result) |
static <V extends PrismValue,F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
evaluateScript(ScriptExpression scriptExpression,
LensContext<F> lensContext,
ExpressionVariables variables,
boolean useNew,
String shortDesc,
Task task,
OperationResult parentResult) |
static PrismReferenceValue |
getAditTarget(ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> delta) |
static ExpressionVariables |
getDefaultExpressionVariables(LensContext<?> context,
LensProjectionContext projCtx) |
static ExpressionVariables |
getDefaultExpressionVariables(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType focusType,
com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType,
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType,
com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType configurationType) |
static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
getDefaultExpressionVariables(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> focus,
PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow,
ResourceShadowDiscriminator discr,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType> configuration,
LensElementContext<O> affectedElementContext) |
static String |
getPolicyDesc(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectSynchronizationType synchronizationPolicy) |
static PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType> |
getSystemConfiguration(RepositoryService repositoryService,
OperationResult result) |
static boolean |
isDryRun(Task task) |
static <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
resolveReferences(ObjectDelta<T> objectDelta,
RepositoryService repository,
boolean enforceReferentialIntegrity,
boolean forceFilterReevaluation,
EvaluationTimeType resolutionTime,
PrismContext prismContext,
OperationResult result)
Resolves references contained in ADD and REPLACE value sets for item modifications in a given ObjectDelta.
|
static <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
resolveReferences(PrismObject<T> object,
RepositoryService repository,
boolean enforceReferentialIntegrity,
boolean forceFilterReevaluation,
EvaluationTimeType resolutionTime,
PrismContext prismContext,
OperationResult result)
Resolves references contained in given PrismObject.
|
static <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
searchIterative(RepositoryService repositoryService,
Class<T> type,
ObjectQuery query,
Handler<PrismObject<T>> handler,
int blockSize,
OperationResult opResult)
Deprecated.
|
static void |
setRequestee(Task task,
LensContext context) |
static <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
setRequestee(Task task,
LensFocusContext<F> context) |
static void |
setRequestee(Task task,
PrismObject object) |
@Deprecated public static <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void searchIterative(RepositoryService repositoryService, Class<T> type, ObjectQuery query, Handler<PrismObject<T>> handler, int blockSize, OperationResult opResult) throws SchemaException
SchemaException
public static <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void resolveReferences(PrismObject<T> object, RepositoryService repository, boolean enforceReferentialIntegrity, boolean forceFilterReevaluation, EvaluationTimeType resolutionTime, PrismContext prismContext, OperationResult result)
object
- repository
- enforceReferentialIntegrity
- If true, missing reference causes fatal error when processing (if false, only warning is issued).forceFilterReevaluation
- If true, references are reevaluated even if OID is present. (Given that filter is present as well, of course.)prismContext
- result
- public static <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void resolveReferences(ObjectDelta<T> objectDelta, RepositoryService repository, boolean enforceReferentialIntegrity, boolean forceFilterReevaluation, EvaluationTimeType resolutionTime, PrismContext prismContext, OperationResult result)
public static ObjectClassComplexTypeDefinition determineObjectClass(RefinedResourceSchema refinedSchema, Task task) throws SchemaException
SchemaException
public static ObjectClassComplexTypeDefinition determineObjectClass(RefinedResourceSchema refinedSchema, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow) throws SchemaException
SchemaException
public static void encrypt(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas, Protector protector, ModelExecuteOptions options, OperationResult result)
public static void setRequestee(Task task, LensContext context)
public static <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void setRequestee(Task task, LensFocusContext<F> context)
public static void setRequestee(Task task, PrismObject object)
public static void clearRequestee(Task task)
public static boolean isDryRun(Task task) throws SchemaException
SchemaException
public static ExpressionVariables getDefaultExpressionVariables(@NotNull LensContext<?> context, @Nullable LensProjectionContext projCtx) throws SchemaException
SchemaException
public static ExpressionVariables getDefaultExpressionVariables(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType focusType, com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType shadowType, com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType, com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType configurationType)
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> ExpressionVariables getDefaultExpressionVariables(PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> focus, PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, ResourceShadowDiscriminator discr, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType> configuration, LensElementContext<O> affectedElementContext)
public static <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void addDefaultExpressionVariables(ExpressionVariables variables, PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> focus, PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadow, ResourceShadowDiscriminator discr, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resource, PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType> configuration, LensElementContext<O> affectedElementContext)
public static String getPolicyDesc(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectSynchronizationType synchronizationPolicy)
public static PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType> getSystemConfiguration(RepositoryService repositoryService, OperationResult result) throws SchemaException
SchemaException
public static void clearSystemConfigurationCache()
public static PrismReferenceValue determineAuditTargetDeltaOps(Collection<ObjectDeltaOperation<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltaOps)
public static PrismReferenceValue determineAuditTarget(Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> deltas)
public static PrismReferenceValue getAditTarget(ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> delta)
public static <V extends PrismValue,F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> List<V> evaluateScript(ScriptExpression scriptExpression, LensContext<F> lensContext, ExpressionVariables variables, boolean useNew, String shortDesc, Task task, OperationResult parentResult) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException
Copyright © 2016 evolveum. All rights reserved.