boolean parent,
IdentityObjectSearchCriteria criteria) throws IdentityException
{
// Check in the mapped store and merge with default
IdentityStore mappedStore = resolveIdentityStore(identity);
IdentityStoreInvocationContext mappedCtx = resolveInvocationContext(mappedStore, invocationCxt);
IdentityStoreInvocationContext defaultCtx = resolveInvocationContext(defaultIdentityStore, invocationCxt);
if (mappedStore == defaultIdentityStore)
{
return defaultIdentityStore.findIdentityObject(defaultCtx, identity, relationshipType, parent, criteria);
}
Collection<IdentityObject> results = new LinkedList<IdentityObject>();
if (relationshipType == null || !RoleManagerImpl.ROLE.getName().equals(relationshipType.getName()) ||
mappedStore.getSupportedFeatures().isNamedRelationshipsSupported())
{
results = mappedStore.findIdentityObject(mappedCtx, identity, relationshipType, parent, criteria);
}
IdentityObject defaultStoreIdentityObject = null;
try