/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.security.ldap.exportimport;
import com.liferay.portal.kernel.model.Contact;
import com.liferay.portal.kernel.model.User;
import com.liferay.portal.kernel.model.UserGroup;
import com.liferay.portal.security.exportimport.UserOperation;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import javax.naming.directory.Attributes;
/**
* @author Michael C. Han
* @author Brian Wing Shun Chan
* @author Marcellus Tavares
* @author Wesley Gong
*/
public interface PortalToLDAPConverter {
public String getGroupDNName(
long ldapServerId, UserGroup userGroup, Properties groupMappings)
throws Exception;
public Modifications getLDAPContactModifications(
Contact contact, Map<String, Serializable> contactExpandoAttributes,
Properties contactMappings, Properties contactExpandoMappings)
throws Exception;
public Attributes getLDAPGroupAttributes(
long ldapServerId, UserGroup userGroup, User user,
Properties groupMappings, Properties userMappings)
throws Exception;
public Modifications getLDAPGroupModifications(
long ldapServerId, UserGroup userGroup, User user,
Properties groupMappings, Properties userMappings,
UserOperation userOperation)
throws Exception;
public Attributes getLDAPUserAttributes(
long ldapServerId, User user, Properties userMappings)
throws Exception;
public Modifications getLDAPUserGroupModifications(
long ldapServerId, List<UserGroup> userGroups, User user,
Properties userMappings)
throws Exception;
public Modifications getLDAPUserModifications(
User user, Map<String, Serializable> userExpandoAttributes,
Properties userMappings, Properties userExpandoMappings)
throws Exception;
public String getUserDNName(
long ldapServerId, User user, Properties userMappings)
throws Exception;
}