com.atlassian.crowd.apacheds
Class AppServerFriendlySchemaLdifExtractor

java.lang.Object
  extended by com.atlassian.crowd.apacheds.AppServerFriendlySchemaLdifExtractor
All Implemented Interfaces:
org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractor

public class AppServerFriendlySchemaLdifExtractor
extends Object
implements org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractor

DefaultSchemaLdifExtractor makes assumptions about java.class.path. Since we're just copying resources to the filing system from a JAR file, reimplement in a way that works for our testing. This assumes that SchemaLdifExtractor is in a jar file that also holds the initial schema.


Constructor Summary
AppServerFriendlySchemaLdifExtractor(File outputDirectory)
           
 
Method Summary
 void extractOrCopy()
           
 void extractOrCopy(boolean overwrite)
           
 boolean isExtracted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppServerFriendlySchemaLdifExtractor

public AppServerFriendlySchemaLdifExtractor(File outputDirectory)
Method Detail

extractOrCopy

public void extractOrCopy()
                   throws IOException
Specified by:
extractOrCopy in interface org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractor
Throws:
IOException

isExtracted

public boolean isExtracted()
Specified by:
isExtracted in interface org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractor

extractOrCopy

public void extractOrCopy(boolean overwrite)
                   throws IOException
Specified by:
extractOrCopy in interface org.apache.directory.shared.ldap.schema.ldif.extractor.SchemaLdifExtractor
Throws:
IOException


Copyright © 2013 Atlassian. All Rights Reserved.