Exemple #1
0
  public String generateLdapQuery() throws ServiceException {
    assert (mConfig != null);
    String token =
        (mSyncToken != null) ? mSyncToken.getLdapTimestamp(mConfig.mTimestampFormat) : null;

    String extraQuery = null;
    if (GalSearchConfig.GalType.zimbra == mConfig.getGalType() && mExtraQueryCallback != null) {
      extraQuery = mExtraQueryCallback.getZimbraLdapSearchQuery();
    }
    return GalUtil.expandFilter(
        mConfig.getTokenizeKey(), mConfig.getFilter(), mQuery, token, extraQuery);
  }
Exemple #2
0
 public GalSearchParams(DataSource ds) throws ServiceException {
   this(ds.getAccount());
   mDataSource = ds;
   mConfig = GalSearchConfig.create(mDataSource);
 }
Exemple #3
0
 public void createSearchConfig(GalSearchConfig.GalType type) throws ServiceException {
   mConfig = GalSearchConfig.create(getDomain(), mOp, type, mType);
   mConfig.getRules().setFetchGroupMembers(mFetchGroupMembers);
   mConfig.getRules().setNeedSMIMECerts(mNeedSMIMECerts);
 }