com.evolveum.midpoint.model.sync
Class SynchronizationService

java.lang.Object
  extended by com.evolveum.midpoint.model.sync.SynchronizationService
All Implemented Interfaces:
ProvisioningListener, ResourceObjectChangeListener

@Service(value="synchronizationService")
public class SynchronizationService
extends Object
implements ResourceObjectChangeListener

Author:
lazyman

Field Summary
 
Fields inherited from interface com.evolveum.midpoint.provisioning.api.ResourceObjectChangeListener
CHECK_SITUATION, CLASS_NAME_WITH_DOT, NOTIFY_CHANGE
 
Constructor Summary
SynchronizationService()
           
 
Method Summary
 String getName()
          Returns a short name of the listener for debugging purposes.
 void notifyChange(ResourceObjectShadowChangeDescription change, Task task, OperationResult parentResult)
          Submits notification about a specific change that happened on the resource.
 void registerForResourceObjectChangeNotifications()
           
 void unregisterForResourceObjectChangeNotifications()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizationService

public SynchronizationService()
Method Detail

registerForResourceObjectChangeNotifications

@PostConstruct
public void registerForResourceObjectChangeNotifications()

unregisterForResourceObjectChangeNotifications

@PreDestroy
public void unregisterForResourceObjectChangeNotifications()

notifyChange

public void notifyChange(ResourceObjectShadowChangeDescription change,
                         Task task,
                         OperationResult parentResult)
Description copied from interface: ResourceObjectChangeListener
Submits notification about a specific change that happened on the resource. This describes the change that has already happened on the resource. The upper layers are notified to take that change into an account (synchronize it). The call should return without a major delay. It means that the implementation can do calls to repository, but it should not (synchronously) initiate a long-running process or provisioning request. This operation may be called multiple times with the same change, e.g. in case of failures in IDM or on the resource. The implementation must be able to handle such duplicates.

Specified by:
notifyChange in interface ResourceObjectChangeListener
Parameters:
change - change description

getName

public String getName()
Description copied from interface: ProvisioningListener
Returns a short name of the listener for debugging purposes. E.g. "model synchronization service". This name is used in log and error messages.

Specified by:
getName in interface ProvisioningListener


Copyright © 2013 evolveum. All Rights Reserved.