Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


oracle.idm.user
Class UserFactoryBuilder

java.lang.Object
  extended by oracle.idm.user.UserFactoryBuilder


public class UserFactoryBuilder
extends java.lang.Object

This class provides methods for creating UserFactory objects.


Method Summary
static UserFactory createUserFactory(javax.naming.directory.DirContext dirCtx, Configuration prvCfg)
          Creates an instance of User factory object that uses an already created Configuration for the specified realm.
static UserFactory createUserFactory(javax.naming.directory.DirContext dirCtx, java.util.Hashtable environment)
          This method creates instance of Default User factory object that uses the JNDI access method for the default realm
static UserFactory createUserFactory(javax.naming.directory.DirContext dirCtx, java.lang.String realm)
          Creates an instance of Default User factory object for the specified realm
static UserFactory createUserFactory(OIDContext ctxt, java.util.Hashtable environment)
          This method creates instance of class implementing UserFactory interface.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

createUserFactory

public static UserFactory createUserFactory(OIDContext ctxt,
                                            java.util.Hashtable environment)
                                     throws UtilException
This method creates instance of class implementing UserFactory interface. The chosen class (whose instance is created) will depend upon environment properties. The environment specifies the following properties :- 1. User.USER_INTERFACE :- It specifies user interface of the program calling this method. It can be User.CMDLINE or User.GUI for command line or graphic user interface respectively.
Parameters:
ctxt - instance of oidcontext
environment - environment properties used
Returns:
Instance of class implementing UserFactory interface
Throws:
UtilException
See Also:
User#USER_INTERFACE

createUserFactory

public static UserFactory createUserFactory(javax.naming.directory.DirContext dirCtx,
                                            java.util.Hashtable environment)
                                     throws UtilException
This method creates instance of Default User factory object that uses the JNDI access method for the default realm
Parameters:
ctxt - Directory context
environment - environment properties used
Returns:
Instance of class implementing UserFactory interface
Throws:
UtilException
See Also:
User#USER_INTERFACE

createUserFactory

public static UserFactory createUserFactory(javax.naming.directory.DirContext dirCtx,
                                            java.lang.String realm)
                                     throws UtilException
Creates an instance of Default User factory object for the specified realm
Parameters:
dirCtx - reference to a valid Ldap context
realm - for which user factory is getting created
Returns:
an Instance of class implementing UserFactory interface
Throws:
UtilException

createUserFactory

public static UserFactory createUserFactory(javax.naming.directory.DirContext dirCtx,
                                            Configuration prvCfg)
                                     throws UtilException
Creates an instance of User factory object that uses an already created Configuration for the specified realm.
  Ex.
         LdapContext lCtx = ConnectionUtil.getDefaultDirCtx(host,
                             port, bindDn, bindPass);
         Configuration cfg = new Congiguration("us");
         ....
         ...
         UserFactory ufactory = UserFactoryBuilder(lCtx, cfg);
         ....

  
Parameters:
dirCtx - reference to a valid Ldap context
prvCfg - a Configuration object that was alread y created
Returns:
an Instance of class implementing UserFactory interface
Throws:
UtilException

Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


Copyright © 1999, 2009 Oracle. All Rights Reserved.