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); }
public GalSearchParams(DataSource ds) throws ServiceException { this(ds.getAccount()); mDataSource = ds; mConfig = GalSearchConfig.create(mDataSource); }
public void createSearchConfig(GalSearchConfig.GalType type) throws ServiceException { mConfig = GalSearchConfig.create(getDomain(), mOp, type, mType); mConfig.getRules().setFetchGroupMembers(mFetchGroupMembers); mConfig.getRules().setNeedSMIMECerts(mNeedSMIMECerts); }