Search in sources :

Example 41 with ZLdapFilter

use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.

the class TestLdapZLdapFilter method dataSourceByName.

@Test
public void dataSourceByName() throws Exception {
    String NAME = getTestName();
    String filter = LegacyLdapFilter.dataSourceByName(NAME);
    ZLdapFilter zLdapFilter = filterDactory.dataSourceByName(NAME);
    verify(FilterId.DATA_SOURCE_BY_NAME, filter, zLdapFilter);
}
Also used : ZLdapFilter(com.zimbra.cs.ldap.ZLdapFilter)

Example 42 with ZLdapFilter

use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.

the class TestLdapZLdapFilter method calendarResourcesHomedOnServer.

@Test
public void calendarResourcesHomedOnServer() throws Exception {
    Server SERVER = prov.getLocalServer();
    String filter = LegacyLdapFilter.calendarResourcesHomedOnServer(SERVER.getServiceHostname());
    ZLdapFilter zLdapFilter = filterDactory.calendarResourcesHomedOnServer(SERVER.getServiceHostname());
    verify(FilterId.CALENDAR_RESOURCES_HOMED_ON_SERVER, filter, zLdapFilter);
}
Also used : ZLdapFilter(com.zimbra.cs.ldap.ZLdapFilter) Server(com.zimbra.cs.account.Server)

Example 43 with ZLdapFilter

use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.

the class TestLdapZLdapFilter method allDomains.

@Test
public void allDomains() throws Exception {
    String filter = LegacyLdapFilter.allDomains();
    ZLdapFilter zLdapFilter = filterDactory.allDomains();
    verify(FilterId.ALL_DOMAINS, filter, zLdapFilter);
}
Also used : ZLdapFilter(com.zimbra.cs.ldap.ZLdapFilter)

Example 44 with ZLdapFilter

use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.

the class TestLdapZLdapFilter method createdLaterOrEqual.

@Test
public void createdLaterOrEqual() throws Exception {
    String GENERALIZED_TIME = "20111005190522Z";
    String filter = LegacyLdapFilter.createdLaterOrEqual(GENERALIZED_TIME);
    ZLdapFilter zLdapFilter = filterDactory.createdLaterOrEqual(GENERALIZED_TIME);
    verify(FilterId.CREATED_LATEROREQUAL, filter, zLdapFilter);
}
Also used : ZLdapFilter(com.zimbra.cs.ldap.ZLdapFilter)

Example 45 with ZLdapFilter

use of com.zimbra.cs.ldap.ZLdapFilter in project zm-mailbox by Zimbra.

the class TestLdapZLdapFilter method homedOnServer.

@Test
public void homedOnServer() throws Exception {
    Server SERVER = prov.getLocalServer();
    String filter = LegacyLdapFilter.homedOnServer(SERVER.getServiceHostname());
    ZLdapFilter zLdapFilter = filterDactory.homedOnServer(SERVER.getServiceHostname());
    verify(FilterId.HOMED_ON_SERVER, filter, zLdapFilter);
}
Also used : ZLdapFilter(com.zimbra.cs.ldap.ZLdapFilter) Server(com.zimbra.cs.account.Server)

Aggregations

ZLdapFilter (com.zimbra.cs.ldap.ZLdapFilter)121 ZSearchResultEntry (com.zimbra.cs.ldap.ZSearchResultEntry)15 ZSearchResultEnumeration (com.zimbra.cs.ldap.ZSearchResultEnumeration)11 ZLdapContext (com.zimbra.cs.ldap.ZLdapContext)8 ZSearchControls (com.zimbra.cs.ldap.ZSearchControls)8 ArrayList (java.util.ArrayList)8 ServiceException (com.zimbra.common.service.ServiceException)7 Server (com.zimbra.cs.account.Server)7 LdapDIT (com.zimbra.cs.account.ldap.LdapDIT)7 Account (com.zimbra.cs.account.Account)6 AccountServiceException (com.zimbra.cs.account.AccountServiceException)6 AuthFailedServiceException (com.zimbra.cs.account.AccountServiceException.AuthFailedServiceException)6 LdapSizeLimitExceededException (com.zimbra.cs.ldap.LdapException.LdapSizeLimitExceededException)6 NamedEntry (com.zimbra.cs.account.NamedEntry)5 SearchAccountsOptions (com.zimbra.cs.account.SearchAccountsOptions)5 BySearchResultEntrySearcher (com.zimbra.cs.account.ldap.BySearchResultEntrySearcher)5 SearchLdapOptions (com.zimbra.cs.ldap.SearchLdapOptions)5 ProvTest (com.zimbra.qa.unittest.prov.ProvTest)5 LDAPException (com.unboundid.ldap.sdk.LDAPException)3 SearchRequest (com.unboundid.ldap.sdk.SearchRequest)3