You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2007/08/19 07:13:57 UTC
svn commit: r567354 -
/incubator/tuscany/java/das/ldap/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/MetaContextCreator.java
Author: lresende
Date: Sat Aug 18 22:13:56 2007
New Revision: 567354
URL: http://svn.apache.org/viewvc?view=rev&rev=567354
Log:
TUSCANY-1551 - Applying patch from Ole Ersoy
Modified:
incubator/tuscany/java/das/ldap/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/MetaContextCreator.java
Modified: incubator/tuscany/java/das/ldap/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/MetaContextCreator.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/das/ldap/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/MetaContextCreator.java?view=diff&rev=567354&r1=567353&r2=567354
==============================================================================
--- incubator/tuscany/java/das/ldap/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/MetaContextCreator.java (original)
+++ incubator/tuscany/java/das/ldap/das.ldap/src/main/java/org/apache/tuscany/das/ldap/create/MetaContextCreator.java Sat Aug 18 22:13:56 2007
@@ -25,13 +25,25 @@
import org.apache.tuscany.das.ldap.constants.DASConstants;
import org.apache.tuscany.das.ldap.schema.constants.AttributeTypeConstants;
+/**
+ * The Class MetaContextCreator.
+ */
public class MetaContextCreator
implements
DASConstants,
AttributeTypeConstants
{
+ /**
+ * Create a meta context below the provided parent context.
+ *
+ * @param metaParentContext the context
+ *
+ * @return the ldap context
+ *
+ * @throws NamingException the naming exception
+ */
public static LdapContext create(
- LdapContext context) throws NamingException
+ LdapContext metaParentContext) throws NamingException
{
String rdn =
CN + "=" + META_CONTEXT_NAME;
@@ -40,14 +52,14 @@
{
return
( LdapContext )
- context.lookup( rdn );
+ metaParentContext.lookup( rdn );
}
catch(Exception e)
{
return
( LdapContext )
- context.
+ metaParentContext.
createSubcontext( rdn );
}
}
-}
\ No newline at end of file
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org