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 setUserRegistries(ChainingUserRegistrySynchronizerTest.MockUserRegistry[] registries)
          Sets the user registries.
 
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

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.