public static class ChainingUserRegistrySynchronizerTest.MockApplicationContextManager extends java.lang.Object implements ChildApplicationContextManager
ChildApplicationContextManager for a chain of application contexts containing mock user registries.| Constructor and Description |
|---|
ChainingUserRegistrySynchronizerTest.MockApplicationContextManager() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ChainingUserRegistrySynchronizerTest.MockApplicationContextManager()
public void setUserRegistries(ChainingUserRegistrySynchronizerTest.MockUserRegistry[] registries)
registries - the new user registriespublic void removeZone(java.lang.String zoneId)
zoneId - the zone idpublic void updateZone(java.lang.String zoneId,
NodeDescription[] persons,
NodeDescription[] groups)
zoneId - the zone idpersons - the new list of personsgroups - the new list of groupspublic org.springframework.context.ApplicationContext getApplicationContext(java.lang.String id)
ChildApplicationContextManagergetApplicationContext in interface ChildApplicationContextManagerid - the identifier of the application context to retrievepublic java.util.Collection getInstanceIds()
ChildApplicationContextManagergetInstanceIds in interface ChildApplicationContextManagerCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.