com.sun.jndi.ldap.obj
Class LdapGroupFactory

java.lang.Object
  extended by com.sun.jndi.ldap.obj.LdapGroupFactory
All Implemented Interfaces:
javax.naming.spi.DirObjectFactory, javax.naming.spi.DirStateFactory, javax.naming.spi.ObjectFactory, javax.naming.spi.StateFactory

public class LdapGroupFactory
extends java.lang.Object
implements javax.naming.spi.DirStateFactory, javax.naming.spi.DirObjectFactory

A state factory and an object factory for handling LDAP groups. The following group objects are supported:

Author:
Vincent Ryan

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.naming.spi.DirStateFactory
javax.naming.spi.DirStateFactory.Result
 
Field Summary
private static boolean debug
           
 
Constructor Summary
LdapGroupFactory()
           
 
Method Summary
private  java.lang.String getName(javax.naming.Context ctx, javax.naming.Name name)
           
 java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context ctx, java.util.Hashtable environment)
          The method is not applicable to this class.
 java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context ctx, java.util.Hashtable environment, javax.naming.directory.Attributes attributes)
          Creates an object that represents an LDAP object at directory context.
 java.lang.Object getStateToBind(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
          The method is not applicable to this class.
 javax.naming.spi.DirStateFactory.Result getStateToBind(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment, javax.naming.directory.Attributes inAttrs)
          Extracts the attributes that represent the LDAP object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

private static final boolean debug
See Also:
Constant Field Values
Constructor Detail

LdapGroupFactory

public LdapGroupFactory()
Method Detail

getStateToBind

public java.lang.Object getStateToBind(java.lang.Object obj,
                                       javax.naming.Name name,
                                       javax.naming.Context nameCtx,
                                       java.util.Hashtable environment)
                                throws javax.naming.NamingException
The method is not applicable to this class.

Specified by:
getStateToBind in interface javax.naming.spi.StateFactory
Returns:
null is always returned.
Throws:
javax.naming.NamingException

getStateToBind

public javax.naming.spi.DirStateFactory.Result getStateToBind(java.lang.Object obj,
                                                              javax.naming.Name name,
                                                              javax.naming.Context nameCtx,
                                                              java.util.Hashtable environment,
                                                              javax.naming.directory.Attributes inAttrs)
                                                       throws javax.naming.NamingException
Extracts the attributes that represent the LDAP object.

Specified by:
getStateToBind in interface javax.naming.spi.DirStateFactory
Throws:
javax.naming.NamingException

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object obj,
                                          javax.naming.Name name,
                                          javax.naming.Context ctx,
                                          java.util.Hashtable environment)
                                   throws java.lang.Exception
The method is not applicable to this class.

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Returns:
null is always returned.
Throws:
java.lang.Exception

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object obj,
                                          javax.naming.Name name,
                                          javax.naming.Context ctx,
                                          java.util.Hashtable environment,
                                          javax.naming.directory.Attributes attributes)
                                   throws java.lang.Exception
Creates an object that represents an LDAP object at directory context. The LDAP objectClass attribute is examined to determine which object to create.

Specified by:
getObjectInstance in interface javax.naming.spi.DirObjectFactory
Returns:
An LDAP object or null.
Throws:
java.lang.Exception

getName

private java.lang.String getName(javax.naming.Context ctx,
                                 javax.naming.Name name)
                          throws javax.naming.NamingException
Throws:
javax.naming.NamingException