public final class Utils extends Object
Modifier and Type | Method and Description |
---|---|
static 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) |
static void |
clearRequestee(Task task) |
static void |
clearSystemConfigurationCache() |
static ObjectClassComplexTypeDefinition |
determineObjectClass(RefinedResourceSchema refinedSchema,
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType> shadowToImport) |
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 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 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) |
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,
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,
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, 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, 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> shadowToImport) 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(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 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)
public static 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)
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()
Copyright © 2015 evolveum. All rights reserved.