com.evolveum.midpoint.model.lens
Class LensUtil
java.lang.Object
com.evolveum.midpoint.model.lens.LensUtil
public class LensUtil
- extends java.lang.Object
- Author:
- semancik
Method Summary |
static
|
consolidateTripleToDelta(ItemPath itemPath,
DeltaSetTriple<? extends ItemValueWithOrigin<V>> triple,
ItemDefinition itemDefinition,
ItemDelta<V> apropriItemDelta,
PrismContainer<?> itemContainer,
boolean addUnchangedValues,
boolean filterExistingValues,
java.lang.String contextDescription)
|
static LensProjectionContext<AccountShadowType> |
getAccountContext(LensContext<UserType,AccountShadowType> context,
PrismObject<AccountShadowType> equivalentAccount,
ProvisioningService provisioningService,
PrismContext prismContext,
OperationResult result)
|
static LensProjectionContext<AccountShadowType> |
getAccountContext(LensContext<UserType,AccountShadowType> context,
java.lang.String resourceOid,
java.lang.String intent,
ProvisioningService provisioningService,
PrismContext prismContext,
OperationResult result)
|
static LensProjectionContext<AccountShadowType> |
getOrCreateAccountContext(LensContext<UserType,AccountShadowType> context,
ResourceShadowDiscriminator rsd)
|
static LensProjectionContext<AccountShadowType> |
getOrCreateAccountContext(LensContext<UserType,AccountShadowType> context,
java.lang.String resourceOid,
java.lang.String intent,
ProvisioningService provisioningService,
PrismContext prismContext,
OperationResult result)
|
static
|
getProjectionClass(java.lang.Class<F> focusClass)
|
static
|
getResource(LensContext<F,P> context,
java.lang.String resourceOid,
ProvisioningService provisioningService,
OperationResult result)
|
static
|
isFocalClass(java.lang.Class<T> clazz)
|
static
|
objectDeltasToContext(java.util.Collection<ObjectDelta<? extends ObjectType>> deltas,
ProvisioningService provisioningService,
PrismContext prismContext,
Task task,
OperationResult result)
|
static java.lang.String |
refineAccountType(java.lang.String intent,
ResourceType resource,
PrismContext prismContext)
|
static
|
traceContext(Trace logger,
java.lang.String activity,
java.lang.String phase,
boolean important,
LensContext<F,P> context,
boolean showTriples)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LensUtil
public LensUtil()
traceContext
public static <F extends ObjectType,P extends ObjectType> void traceContext(Trace logger,
java.lang.String activity,
java.lang.String phase,
boolean important,
LensContext<F,P> context,
boolean showTriples)
throws SchemaException
- Throws:
SchemaException
getResource
public static <F extends ObjectType,P extends ObjectType> ResourceType getResource(LensContext<F,P> context,
java.lang.String resourceOid,
ProvisioningService provisioningService,
OperationResult result)
throws ObjectNotFoundException,
CommunicationException,
SchemaException,
ConfigurationException,
SecurityViolationException
- Throws:
ObjectNotFoundException
CommunicationException
SchemaException
ConfigurationException
SecurityViolationException
refineAccountType
public static java.lang.String refineAccountType(java.lang.String intent,
ResourceType resource,
PrismContext prismContext)
throws SchemaException
- Throws:
SchemaException
getAccountContext
public static LensProjectionContext<AccountShadowType> getAccountContext(LensContext<UserType,AccountShadowType> context,
PrismObject<AccountShadowType> equivalentAccount,
ProvisioningService provisioningService,
PrismContext prismContext,
OperationResult result)
throws ObjectNotFoundException,
CommunicationException,
SchemaException,
ConfigurationException,
SecurityViolationException
- Throws:
ObjectNotFoundException
CommunicationException
SchemaException
ConfigurationException
SecurityViolationException
getAccountContext
public static LensProjectionContext<AccountShadowType> getAccountContext(LensContext<UserType,AccountShadowType> context,
java.lang.String resourceOid,
java.lang.String intent,
ProvisioningService provisioningService,
PrismContext prismContext,
OperationResult result)
throws ObjectNotFoundException,
CommunicationException,
SchemaException,
ConfigurationException,
SecurityViolationException
- Throws:
ObjectNotFoundException
CommunicationException
SchemaException
ConfigurationException
SecurityViolationException
getOrCreateAccountContext
public static LensProjectionContext<AccountShadowType> getOrCreateAccountContext(LensContext<UserType,AccountShadowType> context,
java.lang.String resourceOid,
java.lang.String intent,
ProvisioningService provisioningService,
PrismContext prismContext,
OperationResult result)
throws ObjectNotFoundException,
CommunicationException,
SchemaException,
ConfigurationException,
SecurityViolationException
- Throws:
ObjectNotFoundException
CommunicationException
SchemaException
ConfigurationException
SecurityViolationException
getOrCreateAccountContext
public static LensProjectionContext<AccountShadowType> getOrCreateAccountContext(LensContext<UserType,AccountShadowType> context,
ResourceShadowDiscriminator rsd)
objectDeltasToContext
public static <F extends ObjectType,P extends ObjectType> LensContext<F,P> objectDeltasToContext(java.util.Collection<ObjectDelta<? extends ObjectType>> deltas,
ProvisioningService provisioningService,
PrismContext prismContext,
Task task,
OperationResult result)
throws SchemaException,
ObjectNotFoundException,
CommunicationException,
ConfigurationException
- Throws:
SchemaException
ObjectNotFoundException
CommunicationException
ConfigurationException
isFocalClass
public static <T extends ObjectType> boolean isFocalClass(java.lang.Class<T> clazz)
getProjectionClass
public static <F extends ObjectType,P extends ObjectType> java.lang.Class<P> getProjectionClass(java.lang.Class<F> focusClass)
consolidateTripleToDelta
public static <V extends PrismValue> ItemDelta<V> consolidateTripleToDelta(ItemPath itemPath,
DeltaSetTriple<? extends ItemValueWithOrigin<V>> triple,
ItemDefinition itemDefinition,
ItemDelta<V> apropriItemDelta,
PrismContainer<?> itemContainer,
boolean addUnchangedValues,
boolean filterExistingValues,
java.lang.String contextDescription)
throws ExpressionEvaluationException
- Throws:
ExpressionEvaluationException
Copyright © 2012 evolveum. All Rights Reserved.