Search in sources :

Example 6 with LdapDistributionList

use of com.zimbra.cs.account.ldap.entry.LdapDistributionList in project zm-mailbox by Zimbra.

the class LdapProvisioning method makeDistributionList.

private DistributionList makeDistributionList(String dn, ZAttributes attrs, boolean isBasic) throws ServiceException {
    String emailAddress = mDIT.dnToEmail(dn, attrs);
    DistributionList dl = new LdapDistributionList(dn, emailAddress, attrs, isBasic, this);
    return dl;
}
Also used : LdapDistributionList(com.zimbra.cs.account.ldap.entry.LdapDistributionList) LdapDistributionList(com.zimbra.cs.account.ldap.entry.LdapDistributionList) DistributionList(com.zimbra.cs.account.DistributionList)

Example 7 with LdapDistributionList

use of com.zimbra.cs.account.ldap.entry.LdapDistributionList in project zm-mailbox by Zimbra.

the class LdapProvisioning method removeMembers.

@Override
public void removeMembers(DistributionList list, String[] members) throws ServiceException {
    LdapDistributionList ldl = (LdapDistributionList) list;
    removeDistributionListMembers(ldl, members);
}
Also used : LdapDistributionList(com.zimbra.cs.account.ldap.entry.LdapDistributionList)

Aggregations

LdapDistributionList (com.zimbra.cs.account.ldap.entry.LdapDistributionList)7 ServiceException (com.zimbra.common.service.ServiceException)2 AccountServiceException (com.zimbra.cs.account.AccountServiceException)2 AuthFailedServiceException (com.zimbra.cs.account.AccountServiceException.AuthFailedServiceException)2 DynamicGroup (com.zimbra.cs.account.DynamicGroup)2 LdapDynamicGroup (com.zimbra.cs.account.ldap.entry.LdapDynamicGroup)2 ZLdapContext (com.zimbra.cs.ldap.ZLdapContext)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 Account (com.zimbra.cs.account.Account)1 DistributionList (com.zimbra.cs.account.DistributionList)1 Domain (com.zimbra.cs.account.Domain)1 Group (com.zimbra.cs.account.Group)1 GuestAccount (com.zimbra.cs.account.GuestAccount)1 LdapAccount (com.zimbra.cs.account.ldap.entry.LdapAccount)1 LdapDomain (com.zimbra.cs.account.ldap.entry.LdapDomain)1 LdapException (com.zimbra.cs.ldap.LdapException)1 LdapEntryAlreadyExistException (com.zimbra.cs.ldap.LdapException.LdapEntryAlreadyExistException)1