com.evolveum.midpoint.provisioning.util
Class ShadowCacheUtil

java.lang.Object
  extended by com.evolveum.midpoint.provisioning.util.ShadowCacheUtil

public class ShadowCacheUtil
extends Object


Constructor Summary
ShadowCacheUtil()
           
 
Method Summary
static ActivationType completeActivation(ResourceObjectShadowType shadow, ResourceType resource, OperationResult parentResult)
          Completes activation state by determinig simulated activation if necessary.
static
<T extends ResourceObjectShadowType>
T
completeShadow(T resourceShadow, T repoShadow, ResourceType resource, OperationResult parentResult)
          Make sure that the shadow is complete, e.g.
static
<T extends ResourceObjectShadowType>
T
createRepositoryShadow(T shadowType, ResourceType resource)
          Create a copy of a shadow that is suitable for repository storage.
static ObjectQuery createSearchShadowQuery(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 String determineShadowStringName(ResourceObjectShadowType shadow)
           
static PrismObjectDefinition<ResourceObjectShadowType> getResourceObjectShadowDefinition(PrismContext prismContext)
           
static
<T extends ResourceObjectShadowType>
void
normalizeShadow(T shadow, OperationResult result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowCacheUtil

public ShadowCacheUtil()
Method Detail

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 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(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 © 2013 evolveum. All Rights Reserved.