}
}, new OnFailureCommand()
{
public void onFailure(final Throwable inEx)
{
eventBus.notifyObservers(new MembershipCriteriaVerificationFailureEvent());
}
}, inUseClientCacheIfAvailable);
}
else
{
super.callReadAction("personLookupOrg", new PersonLookupRequest(criterion, MAX_RESULTS),
new OnSuccessCommand<ArrayList<PersonModelView>>()
{
public void onSuccess(final ArrayList<PersonModelView> people)
{
sendSuccessEvent(inRequest.getMembershipCriteria(), !people.isEmpty());
}
}, new OnFailureCommand()
{
public void onFailure(final Throwable inEx)
{
eventBus.notifyObservers(new MembershipCriteriaVerificationFailureEvent());
}
}, inUseClientCacheIfAvailable);
}
}