Package org.gluu.oxtrust.service
Class LdifService
java.lang.Object
org.gluu.oxtrust.service.LdifService
- All Implemented Interfaces:
Serializable
@ApplicationScoped
@Named("ldifService")
public class LdifService
extends Object
implements Serializable
Provides operations with LDIF files
- Author:
- Shekhar L Date: 02.28.2017, Yuriy Movchan Date: 03/06/2017
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexportLDIFFile(List<String> checkedItems, OutputStream output, String objectClass) com.unboundid.ldap.sdk.ResultCodeimportLdifFileInLdap(Class<?> entryClass, InputStream is) voidperformImport(Class entryClass, InputStream inputStream) com.unboundid.ldap.sdk.ResultCodevalidateLdifFile(InputStream is, String dn)
-
Constructor Details
-
LdifService
public LdifService()
-
-
Method Details
-
importLdifFileInLdap
public com.unboundid.ldap.sdk.ResultCode importLdifFileInLdap(Class<?> entryClass, InputStream is) throws com.unboundid.ldap.sdk.LDAPException - Throws:
com.unboundid.ldap.sdk.LDAPException
-
validateLdifFile
public com.unboundid.ldap.sdk.ResultCode validateLdifFile(InputStream is, String dn) throws com.unboundid.ldap.sdk.LDAPException - Throws:
com.unboundid.ldap.sdk.LDAPException
-
performImport
-
exportLDIFFile
public void exportLDIFFile(List<String> checkedItems, OutputStream output, String objectClass) throws com.unboundid.ldap.sdk.LDAPException - Throws:
com.unboundid.ldap.sdk.LDAPException
-