org.eclipse.stardust.engine.core.spi.security
Class DynamicParticipantSynchronizationStrategy

java.lang.Object
  extended by org.eclipse.stardust.engine.core.spi.security.DynamicParticipantSynchronizationStrategy
Direct Known Subclasses:
TimebasedSynchronizationStrategy

public abstract class DynamicParticipantSynchronizationStrategy
extends java.lang.Object

The DynamicParticipantSynchronizationStrategy is used to determine if a given user or user group needs to be synchronized with an external.


Field Summary
static org.eclipse.stardust.common.log.Logger trace
           
 
Constructor Summary
DynamicParticipantSynchronizationStrategy()
           
 
Method Summary
 boolean isDirty(org.eclipse.stardust.engine.core.runtime.beans.IDepartment department)
          Checks if this department needs to be synchronized.
abstract  boolean isDirty(org.eclipse.stardust.engine.core.runtime.beans.IUser user)
          Checks if this user needs to be synchronized.
 boolean isDirty(org.eclipse.stardust.engine.core.runtime.beans.IUserGroup userGroup)
          Checks if this user group needs to be synchronized.
 boolean isDirtyLogAware(org.eclipse.stardust.engine.core.runtime.beans.IUser user)
          wrapper to catch and log possible exceptions.
 void setSynchronized(org.eclipse.stardust.engine.core.runtime.beans.IDepartment department)
          Callback method to inform the SynchronizationStrategy that the department has been successfully synchronized.
abstract  void setSynchronized(org.eclipse.stardust.engine.core.runtime.beans.IUser user)
          Callback method to inform the SynchronizationStrategy that the user have been successfuly synchronized.
 void setSynchronized(org.eclipse.stardust.engine.core.runtime.beans.IUserGroup userGroup)
          Callback method to inform the SynchronizationStrategy that the user group has been successfully synchronized.
 void setSynchronizedLogAware(org.eclipse.stardust.engine.core.runtime.beans.IUser user)
          wrapper to catch and log possible exceptions.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trace

public static final org.eclipse.stardust.common.log.Logger trace
Constructor Detail

DynamicParticipantSynchronizationStrategy

public DynamicParticipantSynchronizationStrategy()
Method Detail

isDirty

public abstract boolean isDirty(org.eclipse.stardust.engine.core.runtime.beans.IUser user)
Checks if this user needs to be synchronized.

Parameters:
user - the user to be checked.
Returns:

isDirtyLogAware

public final boolean isDirtyLogAware(org.eclipse.stardust.engine.core.runtime.beans.IUser user)
wrapper to catch and log possible exceptions. isDirty(IUserGroup userGroup)


setSynchronized

public abstract void setSynchronized(org.eclipse.stardust.engine.core.runtime.beans.IUser user)
Callback method to inform the SynchronizationStrategy that the user have been successfuly synchronized.

Parameters:
user - the user that has been synchronized.

setSynchronizedLogAware

public final void setSynchronizedLogAware(org.eclipse.stardust.engine.core.runtime.beans.IUser user)
wrapper to catch and log possible exceptions. setSynchronized(IUser user))


isDirty

public boolean isDirty(org.eclipse.stardust.engine.core.runtime.beans.IUserGroup userGroup)
Checks if this user group needs to be synchronized.

The default implementation is to never flag the user group as dirty.

Parameters:
userGroup - the user group to be checked.
Returns:

setSynchronized

public void setSynchronized(org.eclipse.stardust.engine.core.runtime.beans.IUserGroup userGroup)
Callback method to inform the SynchronizationStrategy that the user group has been successfully synchronized.

The default implementation is to do nothing.

Parameters:
userGroup - the user group that has been synchronized.

isDirty

public boolean isDirty(org.eclipse.stardust.engine.core.runtime.beans.IDepartment department)
Checks if this department needs to be synchronized.

The default implementation is to never flag the department as dirty.

Parameters:
department - the department to be checked.
Returns:

setSynchronized

public void setSynchronized(org.eclipse.stardust.engine.core.runtime.beans.IDepartment department)
Callback method to inform the SynchronizationStrategy that the department has been successfully synchronized.

The default implementation is to do nothing.

Parameters:
department - the department that has been synchronized.


Copyright © 2014 SunGard CSA LLC. All Rights Reserved.