org.alfresco.repo.security.sync
Class ChainingUserRegistrySynchronizerTest.MockApplicationContextManager

java.lang.Object
  extended by org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizerTest.MockApplicationContextManager
All Implemented Interfaces:
ChildApplicationContextManager
Enclosing class:
ChainingUserRegistrySynchronizerTest

public static class ChainingUserRegistrySynchronizerTest.MockApplicationContextManager
extends java.lang.Object
implements ChildApplicationContextManager

An ChildApplicationContextManager for a chain of application contexts containing mock user registries.


Constructor Summary
ChainingUserRegistrySynchronizerTest.MockApplicationContextManager()
           
 
Method Summary
 org.springframework.context.ApplicationContext getApplicationContext(java.lang.String id)
          Gets the application context with the given identifier.
 java.util.Collection getInstanceIds()
          Gets the ordered collection of identifiers, indicating the ordering of the chain.
 void removeZone(java.lang.String zoneId)
          Removes the application context for the given zone ID (simulating a change in the authentication chain).
 void setUserRegistries(ChainingUserRegistrySynchronizerTest.MockUserRegistry[] registries)
          Sets the user registries.
 void updateZone(java.lang.String zoneId, NodeDescription[] persons, NodeDescription[] groups)
          Updates the state of the given zone ID, oopying in new modification dates only where changes have been made.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainingUserRegistrySynchronizerTest.MockApplicationContextManager

public ChainingUserRegistrySynchronizerTest.MockApplicationContextManager()
Method Detail

setUserRegistries

public void setUserRegistries(ChainingUserRegistrySynchronizerTest.MockUserRegistry[] registries)
Sets the user registries.

Parameters:
registries - the new user registries

removeZone

public void removeZone(java.lang.String zoneId)
Removes the application context for the given zone ID (simulating a change in the authentication chain).

Parameters:
zoneId - the zone id

updateZone

public void updateZone(java.lang.String zoneId,
                       NodeDescription[] persons,
                       NodeDescription[] groups)
Updates the state of the given zone ID, oopying in new modification dates only where changes have been made.

Parameters:
zoneId - the zone id
persons - the new list of persons
groups - the new list of groups

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext(java.lang.String id)
Description copied from interface: ChildApplicationContextManager
Gets the application context with the given identifier.

Specified by:
getApplicationContext in interface ChildApplicationContextManager
Parameters:
id - the identifier of the application context to retrieve
Returns:
the application context with the given identifier

getInstanceIds

public java.util.Collection getInstanceIds()
Description copied from interface: ChildApplicationContextManager
Gets the ordered collection of identifiers, indicating the ordering of the chain.

Specified by:
getInstanceIds in interface ChildApplicationContextManager
Returns:
an ordered collection of identifiers, indicating the ordering of the chain.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.