com.evolveum.midpoint.provisioning.impl
Class ShadowCache

java.lang.Object
  extended by com.evolveum.midpoint.provisioning.impl.ShadowCache
Direct Known Subclasses:
ShadowCacheProvisioner, ShadowCacheReconciler

public abstract class ShadowCache
extends Object


Constructor Summary
ShadowCache()
           
 
Method Summary
 String addShadow(ResourceObjectShadowType shadowType, ProvisioningScriptsType scripts, ResourceType resource, ProvisioningOperationOptions options, Task task, OperationResult parentResult)
           
abstract  String afterAddOnResource(ResourceObjectShadowType shadowType, ResourceType resource, OperationResult parentResult)
           
abstract  void afterModifyOnResource(ResourceObjectShadowType shadowType, Collection<? extends ItemDelta> modifications, OperationResult parentResult)
           
<T extends ResourceObjectShadowType>
void
applyDefinition(ObjectDelta delta, OperationResult parentResult)
           
<T extends ResourceObjectShadowType>
void
applyDefinition(PrismObject<T> shadow, OperationResult parentResult)
           
abstract  Collection<? extends ItemDelta> beforeModifyOnResource(ResourceObjectShadowType shadowType, ProvisioningOperationOptions options, Collection<? extends ItemDelta> modifications)
           
 void deleteShadow(ObjectType objectType, ProvisioningOperationOptions options, ProvisioningScriptsType scripts, ResourceType resource, Task task, OperationResult parentResult)
           
 PrismContext getPrismContext()
           
 RepositoryService getRepositoryService()
          Get the value of repositoryService.
protected  ResourceType getResource(ResourceObjectShadowType shadowType, OperationResult parentResult)
           
<T extends ResourceObjectShadowType>
T
getShadow(Class<T> type, String oid, T repositoryShadow, OperationResult parentResult)
           
protected
<T extends ResourceObjectShadowType>
T
handleError(Exception ex, T shadow, ErrorHandler.FailedOperation op, ResourceType resource, Collection<? extends ItemDelta> modifications, boolean compensate, Task task, OperationResult parentResult)
           
 String modifyShadow(ResourceObjectShadowType objectType, ResourceType resource, String oid, Collection<? extends ItemDelta> modifications, ProvisioningScriptsType scripts, ProvisioningOperationOptions options, Task task, OperationResult parentResult)
           
 void setRepositoryService(RepositoryService repositoryService)
          Set the value of repositoryService

Expected to be injected.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowCache

public ShadowCache()
Method Detail

getRepositoryService

public RepositoryService getRepositoryService()
Get the value of repositoryService.

Returns:
the value of repositoryService

setRepositoryService

public void setRepositoryService(RepositoryService repositoryService)
Set the value of repositoryService

Expected to be injected.

Parameters:
repositoryService - new value of repositoryService

getPrismContext

public PrismContext getPrismContext()

getShadow

public <T extends ResourceObjectShadowType> T getShadow(Class<T> type,
                                                        String oid,
                                                        T repositoryShadow,
                                                        OperationResult parentResult)
                                             throws ObjectNotFoundException,
                                                    CommunicationException,
                                                    SchemaException,
                                                    ConfigurationException,
                                                    SecurityViolationException
Throws:
ObjectNotFoundException
CommunicationException
SchemaException
ConfigurationException
SecurityViolationException

afterAddOnResource

public abstract String afterAddOnResource(ResourceObjectShadowType shadowType,
                                          ResourceType resource,
                                          OperationResult parentResult)
                                   throws SchemaException,
                                          ObjectAlreadyExistsException,
                                          ObjectNotFoundException
Throws:
SchemaException
ObjectAlreadyExistsException
ObjectNotFoundException

addShadow

public String addShadow(ResourceObjectShadowType shadowType,
                        ProvisioningScriptsType scripts,
                        ResourceType resource,
                        ProvisioningOperationOptions options,
                        Task task,
                        OperationResult parentResult)
                 throws CommunicationException,
                        GenericFrameworkException,
                        ObjectAlreadyExistsException,
                        SchemaException,
                        ObjectNotFoundException,
                        ConfigurationException,
                        SecurityViolationException
Throws:
CommunicationException
GenericFrameworkException
ObjectAlreadyExistsException
SchemaException
ObjectNotFoundException
ConfigurationException
SecurityViolationException

afterModifyOnResource

public abstract void afterModifyOnResource(ResourceObjectShadowType shadowType,
                                           Collection<? extends ItemDelta> modifications,
                                           OperationResult parentResult)
                                    throws SchemaException,
                                           ObjectNotFoundException
Throws:
SchemaException
ObjectNotFoundException

beforeModifyOnResource

public abstract Collection<? extends ItemDelta> beforeModifyOnResource(ResourceObjectShadowType shadowType,
                                                                       ProvisioningOperationOptions options,
                                                                       Collection<? extends ItemDelta> modifications)
                                                                throws SchemaException
Throws:
SchemaException

modifyShadow

public String modifyShadow(ResourceObjectShadowType objectType,
                           ResourceType resource,
                           String oid,
                           Collection<? extends ItemDelta> modifications,
                           ProvisioningScriptsType scripts,
                           ProvisioningOperationOptions options,
                           Task task,
                           OperationResult parentResult)
                    throws CommunicationException,
                           GenericFrameworkException,
                           ObjectNotFoundException,
                           SchemaException,
                           ConfigurationException,
                           SecurityViolationException
Throws:
CommunicationException
GenericFrameworkException
ObjectNotFoundException
SchemaException
ConfigurationException
SecurityViolationException

deleteShadow

public void deleteShadow(ObjectType objectType,
                         ProvisioningOperationOptions options,
                         ProvisioningScriptsType scripts,
                         ResourceType resource,
                         Task task,
                         OperationResult parentResult)
                  throws CommunicationException,
                         GenericFrameworkException,
                         ObjectNotFoundException,
                         SchemaException,
                         ConfigurationException,
                         SecurityViolationException
Throws:
CommunicationException
GenericFrameworkException
ObjectNotFoundException
SchemaException
ConfigurationException
SecurityViolationException

applyDefinition

public <T extends ResourceObjectShadowType> void applyDefinition(ObjectDelta delta,
                                                                 OperationResult parentResult)
                     throws SchemaException,
                            ObjectNotFoundException,
                            CommunicationException,
                            ConfigurationException
Throws:
SchemaException
ObjectNotFoundException
CommunicationException
ConfigurationException

applyDefinition

public <T extends ResourceObjectShadowType> void applyDefinition(PrismObject<T> shadow,
                                                                 OperationResult parentResult)
                     throws SchemaException,
                            ObjectNotFoundException,
                            CommunicationException,
                            ConfigurationException
Throws:
SchemaException
ObjectNotFoundException
CommunicationException
ConfigurationException

getResource

protected ResourceType getResource(ResourceObjectShadowType shadowType,
                                   OperationResult parentResult)
                            throws ObjectNotFoundException,
                                   SchemaException,
                                   CommunicationException,
                                   ConfigurationException
Throws:
ObjectNotFoundException
SchemaException
CommunicationException
ConfigurationException

handleError

protected <T extends ResourceObjectShadowType> T handleError(Exception ex,
                                                             T shadow,
                                                             ErrorHandler.FailedOperation op,
                                                             ResourceType resource,
                                                             Collection<? extends ItemDelta> modifications,
                                                             boolean compensate,
                                                             Task task,
                                                             OperationResult parentResult)
                                                  throws SchemaException,
                                                         GenericFrameworkException,
                                                         CommunicationException,
                                                         ObjectNotFoundException,
                                                         ObjectAlreadyExistsException,
                                                         ConfigurationException,
                                                         SecurityViolationException
Throws:
SchemaException
GenericFrameworkException
CommunicationException
ObjectNotFoundException
ObjectAlreadyExistsException
ConfigurationException
SecurityViolationException


Copyright © 2013 evolveum. All Rights Reserved.