public static class ChainingUserRegistrySynchronizerTest.MockUserRegistry extends java.lang.Object implements UserRegistry
UserRegistry that returns a fixed set of users and groups.| Constructor and Description |
|---|
ChainingUserRegistrySynchronizerTest.MockUserRegistry(java.lang.String zoneId,
java.util.Collection persons,
java.util.Collection groups)
Instantiates a new mock user registry.
|
ChainingUserRegistrySynchronizerTest.MockUserRegistry(java.lang.String zoneId,
NodeDescription[] persons,
NodeDescription[] groups)
Instantiates a new mock user registry.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
getGroupNames()
Gets the names of all groups in the registry.
|
java.util.Collection |
getGroups(java.util.Date modifiedSince)
Gets descriptions of all the groups in the user registry or all those changed since a certain date.
|
java.util.Set |
getPersonMappedProperties()
Gets the set of property names that are auto-mapped by this user registry.
|
java.util.Collection |
getPersonNames()
Gets the names of all persons in the registry.
|
java.util.Collection |
getPersons(java.util.Date modifiedSince)
Gets descriptions of all the persons (users) in the user registry or all those changed since a certain date.
|
java.lang.String |
getZoneId()
Gets the zone id.
|
void |
updateState(java.util.Collection persons,
java.util.Collection groups)
Modifies the state to match the arguments.
|
public ChainingUserRegistrySynchronizerTest.MockUserRegistry(java.lang.String zoneId,
java.util.Collection persons,
java.util.Collection groups)
zoneId - the zone idpersons - the personsgroups - the groupspublic ChainingUserRegistrySynchronizerTest.MockUserRegistry(java.lang.String zoneId,
NodeDescription[] persons,
NodeDescription[] groups)
zoneId - the zone idpersons - the personsgroups - the groupspublic void updateState(java.util.Collection persons,
java.util.Collection groups)
persons - the personsgroups - the groupspublic java.lang.String getZoneId()
public java.util.Collection getGroupNames()
UserRegistrygetGroupNames in interface UserRegistrypublic java.util.Collection getPersonNames()
UserRegistrygetPersonNames in interface UserRegistrypublic java.util.Collection getGroups(java.util.Date modifiedSince)
UserRegistrygetGroups in interface UserRegistrymodifiedSince - if non-null, then only descriptions of groups modified since this date should be returned; if
null then descriptions of all groups should be returned.Collection of NodeDescriptions of all the groups in the user registry or all those
changed since a certain date. The description properties should correspond to those of an Alfresco
authority node.public java.util.Collection getPersons(java.util.Date modifiedSince)
UserRegistrygetPersons in interface UserRegistrymodifiedSince - if non-null, then only descriptions of users modified since this date should be returned; if
null then descriptions of all users should be returned.Collection of NodeDescriptions of all the persons (users) in the user registry or all
those changed since a certain date. The description properties should correspond to those of an Alfresco
person node.public java.util.Set getPersonMappedProperties()
UserRegistrygetPersonMappedProperties in interface UserRegistryCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.