sogo: master e07734fa

Author Committer Branch Timestamp Parent
Jean Raby Jean Raby master 2013-03-29 10:38 master 6a8e6cd7
Changeset

Filter sql source entries based on the user domain

When using dynamic domains with SQL sources (DomainFieldName),
let WebUI and dav lookups return entries from current domain
and other domains visible from the originating domain.

Fixes #2269

SQLSource.m: _visibleDomainsQualifierFromDomain:
returns a EOQualifier OR'ing all visible domains from specified domain
(including specified domain)

SQLSource.m: allEntryIDsVisibleFromDomain
Replacement for allEntryIDs.
Instead of returning all entries from the sql source,
only return the entries visible from the specified domain.

SoObjects/SOGo/SQLSource.m: allEntryIDs
Changed to call allEntryIDsVisibleFromDomain with an empty domain.

SQLSource.m fetchContactsMatching:inDomain:
Use _visibleDomainsQualifierFromDomain to filter entries

LDAPSource.m: allEntryIDsVisibleFromDomain
Simply call allEntryIDs, discarding the domain.
LDAP does need to do the extra domain filtering

SOGoContactSourceFolder.m: toOneRelationshipKeys
Call new method: allEntryIDsVisibleFromDomain

mod - SoObjects/Contacts/SOGoContactSourceFolder.m Diff File
mod - SoObjects/SOGo/LDAPSource.m Diff File
mod - SoObjects/SOGo/SOGoSource.h Diff File
mod - SoObjects/SOGo/SQLSource.m Diff File