|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.security.sync.ChainingUserRegistrySynchronizerTest.MockUserRegistry
public static class ChainingUserRegistrySynchronizerTest.MockUserRegistry
A Mock UserRegistry
that returns a fixed set of users and groups.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 groupsMethod Detail |
---|
public void updateState(java.util.Collection persons, java.util.Collection groups)
persons
- the personsgroups
- the groupspublic java.lang.String getZoneId()
public java.util.Collection getGroupNames()
UserRegistry
getGroupNames
in interface UserRegistry
public java.util.Collection getPersonNames()
UserRegistry
getPersonNames
in interface UserRegistry
public java.util.Collection getGroups(java.util.Date modifiedSince)
UserRegistry
getGroups
in interface UserRegistry
modifiedSince
- 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 NodeDescription
s 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)
UserRegistry
getPersons
in interface UserRegistry
modifiedSince
- 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 NodeDescription
s 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()
UserRegistry
getPersonMappedProperties
in interface UserRegistry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |