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

java.lang.Object
  extended by org.eclipse.stardust.engine.core.spi.security.DynamicParticipantSynchronizationStrategy
      extended by org.eclipse.stardust.engine.core.spi.security.TimebasedSynchronizationStrategy
All Implemented Interfaces:
org.eclipse.stardust.common.Flushable

public class TimebasedSynchronizationStrategy
extends DynamicParticipantSynchronizationStrategy
implements org.eclipse.stardust.common.Flushable

Concrete implementation of the DynamicParticipantSynchronizationStrategy based on the time lapsed since the last synchronization.

Version:
$Revision$
Author:
ubirkemeyer

Field Summary
 
Fields inherited from class org.eclipse.stardust.engine.core.spi.security.DynamicParticipantSynchronizationStrategy
trace
 
Constructor Summary
TimebasedSynchronizationStrategy()
           
 
Method Summary
 void flush()
           
 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.
 void setSynchronized(org.eclipse.stardust.engine.core.runtime.beans.IUser user)
          Callback method to inform the SynchronizationStrategy that the user have been successfuly synchronized.
This call will update the synchronization timestamp associated with this user.
 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.
This call will update the synchronization timestamp associated with this user group.
 
Methods inherited from class org.eclipse.stardust.engine.core.spi.security.DynamicParticipantSynchronizationStrategy
isDirty, isDirtyLogAware, setSynchronized, setSynchronizedLogAware
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimebasedSynchronizationStrategy

public TimebasedSynchronizationStrategy()
Method Detail

isDirty

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

Specified by:
isDirty in class DynamicParticipantSynchronizationStrategy
Parameters:
user - the user to be checked.
Returns:
true if the time lapsed since the last synchronization is greater then the value defined in the Security.Authorization.TimebasedSynchronizationStrategy.UserSyncTimeout property.

setSynchronized

public void setSynchronized(org.eclipse.stardust.engine.core.runtime.beans.IUser user)
Callback method to inform the SynchronizationStrategy that the user have been successfuly synchronized.
This call will update the synchronization timestamp associated with this user.

Specified by:
setSynchronized in class DynamicParticipantSynchronizationStrategy
Parameters:
user - the user that has been synchronized.

isDirty

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

Overrides:
isDirty in class DynamicParticipantSynchronizationStrategy
Parameters:
userGroup - the user group to be checked.
Returns:
true if the time lapsed since the last synchronization is greater then the value defined in the Security.Authorization.TimebasedSynchronizationStrategy.UserGroupSyncTimeout property.

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.
This call will update the synchronization timestamp associated with this user group.

Overrides:
setSynchronized in class DynamicParticipantSynchronizationStrategy
Parameters:
userGroup - the user group that has been synchronized.

flush

public void flush()
Specified by:
flush in interface org.eclipse.stardust.common.Flushable


Copyright © 2017 Eclipse Stardust. All Rights Reserved.