|
OracleAS PDK for Java 9.0.4.0.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.portal.provider.v2.oid.OidManager
An OidManager communicates with the OID server
to get details of users and user group membership.
This class uses a class derived from OidInfo to get the OID connection
details.
This class manages a pool of OID connections to the OID server.
It is imperitive that code using this class that gets a connection
also calls the release method so the connection can be reused.
| Field Summary | |
static java.lang.String |
DEPLOYMENT_PARAM_OID_ADMIN_CLASS
|
static java.lang.String |
DEPLOYMENT_PARAM_OID_MANAGER
|
static java.lang.String |
OID_USER_DESCRIPTION
|
static java.lang.String |
OID_USER_DISPLAY_NAME
|
static java.lang.String |
OID_USER_FAMILY_NAME
|
static java.lang.String |
OID_USER_GIVEN_NAME
|
static java.lang.String |
OID_USER_INITIALS
|
static java.lang.String |
OID_USER_MAIL
|
static java.lang.String |
OID_USER_TELEPHONE
|
static java.lang.String |
OID_USER_TITLE
|
| Constructor Summary | |
OidManager(ProviderContext pc)
Constructs an OidManager. |
|
| Method Summary | |
javax.naming.directory.DirContext |
getUserLDAPContext(java.lang.String userDN,
java.lang.String subscriberDN)
Get the user LDAP context. |
java.lang.String |
getUserProperty(java.lang.String userDN,
java.lang.String subscriberDN,
java.lang.String propertyName)
Get a user property. |
boolean |
isUserInGroup(java.lang.String userDN,
java.lang.String subscriberDN,
java.lang.String groupDN)
Test if a user is in a specified group. |
void |
releaseLDAPContext(javax.naming.directory.DirContext ctx)
Release an LDAP context. |
java.lang.String |
test()
Tests the Oid connection and configuration. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEPLOYMENT_PARAM_OID_MANAGER
public static final java.lang.String DEPLOYMENT_PARAM_OID_ADMIN_CLASS
public static final java.lang.String OID_USER_GIVEN_NAME
public static final java.lang.String OID_USER_FAMILY_NAME
public static final java.lang.String OID_USER_TITLE
public static final java.lang.String OID_USER_INITIALS
public static final java.lang.String OID_USER_MAIL
public static final java.lang.String OID_USER_TELEPHONE
public static final java.lang.String OID_USER_DESCRIPTION
public static final java.lang.String OID_USER_DISPLAY_NAME
| Constructor Detail |
public OidManager(ProviderContext pc)
throws ProviderException
pc - the ProviderContext| Method Detail |
public javax.naming.directory.DirContext getUserLDAPContext(java.lang.String userDN,
java.lang.String subscriberDN)
throws javax.naming.NamingException,
ProviderException
releaseLDAPContext(DirContext) must be called.
userDN - the distinguished name of the usersubscriberDN - the distinguished name of the subscriber
javax.naming.NamingException
ProviderException
public void releaseLDAPContext(javax.naming.directory.DirContext ctx)
throws javax.naming.NamingException
ctx - The LDAP context to be released.
javax.naming.NamingException
public java.lang.String getUserProperty(java.lang.String userDN,
java.lang.String subscriberDN,
java.lang.String propertyName)
throws javax.naming.NamingException,
ProviderException
userDN - the distinguished name of the usersubscriberDN - the distinguished name of the subscriberpropertyName - the name of a user property
javax.naming.NamingException
ProviderException
public boolean isUserInGroup(java.lang.String userDN,
java.lang.String subscriberDN,
java.lang.String groupDN)
throws javax.naming.NamingException,
ProviderException
userDN - the distinguished name of the usersubscriberDN - the distinguished name of the subscribergroupDN - the distinguished name of a group
javax.naming.NamingException
ProviderExceptionpublic java.lang.String test()
|
OracleAS PDK for Java 9.0.4.0.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||