com.evolveum.midpoint.provisioning.util
Class ShadowCacheUtil
java.lang.Object
com.evolveum.midpoint.provisioning.util.ShadowCacheUtil
public class ShadowCacheUtil
- extends java.lang.Object
Method Summary |
static ActivationType |
completeActivation(ResourceObjectShadowType shadow,
ResourceType resource,
OperationResult parentResult)
Completes activation state by determinig simulated activation if
necessary. |
static
|
completeShadow(T resourceShadow,
T repoShadow,
ResourceType resource,
OperationResult parentResult)
Make sure that the shadow is complete, e.g. |
static
|
createRepositoryShadow(T shadowType,
ResourceType resource)
Create a copy of a shadow that is suitable for repository storage. |
static ObjectQuery |
createSearchShadowQuery(java.util.Collection<ResourceAttribute<?>> identifiers,
ResourceType resource,
PrismContext prismContext,
OperationResult parentResult)
|
static ObjectQuery |
createSearchShadowQuery(ResourceObjectShadowType resourceShadow,
ResourceType resource,
PrismContext prismContext,
OperationResult parentResult)
|
static PolyStringType |
determineShadowName(ResourceObjectShadowType shadow)
|
static java.lang.String |
determineShadowStringName(ResourceObjectShadowType shadow)
|
static PrismObjectDefinition<ResourceObjectShadowType> |
getResourceObjectShadowDefinition(PrismContext prismContext)
|
static
|
normalizeShadow(T shadow,
OperationResult result)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShadowCacheUtil
public ShadowCacheUtil()
completeShadow
public static <T extends ResourceObjectShadowType> T completeShadow(T resourceShadow,
T repoShadow,
ResourceType resource,
OperationResult parentResult)
throws SchemaException
- Make sure that the shadow is complete, e.g. that all the mandatory fields
are filled (e.g name, resourceRef, ...) Also transforms the shadow with
respect to simulated capabilities.
- Throws:
SchemaException
normalizeShadow
public static <T extends ResourceObjectShadowType> void normalizeShadow(T shadow,
OperationResult result)
throws SchemaException
- Throws:
SchemaException
completeActivation
public static ActivationType completeActivation(ResourceObjectShadowType shadow,
ResourceType resource,
OperationResult parentResult)
- Completes activation state by determinig simulated activation if
necessary.
TODO: The placement of this method is not correct. It should go back to
ShadowConverter
determineShadowName
public static PolyStringType determineShadowName(ResourceObjectShadowType shadow)
throws SchemaException
- Throws:
SchemaException
determineShadowStringName
public static java.lang.String determineShadowStringName(ResourceObjectShadowType shadow)
throws SchemaException
- Throws:
SchemaException
createRepositoryShadow
public static <T extends ResourceObjectShadowType> T createRepositoryShadow(T shadowType,
ResourceType resource)
throws SchemaException
- Create a copy of a shadow that is suitable for repository storage.
- Throws:
SchemaException
createSearchShadowQuery
public static ObjectQuery createSearchShadowQuery(java.util.Collection<ResourceAttribute<?>> identifiers,
ResourceType resource,
PrismContext prismContext,
OperationResult parentResult)
throws SchemaException
- Throws:
SchemaException
createSearchShadowQuery
public static ObjectQuery createSearchShadowQuery(ResourceObjectShadowType resourceShadow,
ResourceType resource,
PrismContext prismContext,
OperationResult parentResult)
throws SchemaException
- Throws:
SchemaException
getResourceObjectShadowDefinition
public static PrismObjectDefinition<ResourceObjectShadowType> getResourceObjectShadowDefinition(PrismContext prismContext)
Copyright © 2012 evolveum. All Rights Reserved.