|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.apacheds.ApacheDSContextListener
public class ApacheDSContextListener
A Servlet context listener to start and stop ApacheDS. The following environment variables are supported:
Constructor Summary | |
---|---|
ApacheDSContextListener()
|
Method Summary | |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent evt)
Shutdown ApacheDS embedded. |
void |
contextInitialized(javax.servlet.ServletContextEvent evt)
Startup ApacheDS embedded. |
protected int |
getLdapPort()
|
protected java.lang.String |
getLdifFile()
|
protected java.lang.String |
getPartitionDN()
|
protected java.util.List<org.apache.directory.shared.ldap.ldif.LdifEntry> |
loadLdif(java.io.InputStream in,
boolean verifyEntries)
Loads an LDIF from an input stream and adds the entries it contains to the server. |
protected void |
verify(org.apache.directory.shared.ldap.ldif.LdifEntry entry)
Verifies that an entry exists in the directory with the specified attributes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApacheDSContextListener()
Method Detail |
---|
protected java.lang.String getPartitionDN()
protected int getLdapPort()
protected java.lang.String getLdifFile()
protected java.util.List<org.apache.directory.shared.ldap.ldif.LdifEntry> loadLdif(java.io.InputStream in, boolean verifyEntries) throws java.lang.Exception
in
- the input stream containing the LDIF entries to loadverifyEntries
- whether or not all entry additions are checked
to see if they were in fact correctly added to the server
javax.naming.NamingException
- of the load fails
java.lang.Exception
protected void verify(org.apache.directory.shared.ldap.ldif.LdifEntry entry) throws java.lang.Exception
entry
- the entry to verify
javax.naming.NamingException
- if there are problems accessing the entry
java.lang.Exception
public void contextInitialized(javax.servlet.ServletContextEvent evt)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent evt)
contextDestroyed
in interface javax.servlet.ServletContextListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |