com.sapportals.portal.prt.jndisupport.util
Class AbstractDirContextWrapper
java.lang.Object
com.sapportals.portal.prt.jndisupport.util.AbstractContextWrapper
com.sapportals.portal.prt.jndisupport.util.AbstractDirContextWrapper
- All Implemented Interfaces:
- Context, DirContext
public abstract class AbstractDirContextWrapper
- extends AbstractContextWrapper
- implements DirContext
| Fields inherited from interface javax.naming.Context |
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
|
Method Summary |
void |
bind(Name name,
Object obj,
Attributes attrs)
|
void |
bind(String name,
Object obj,
Attributes attrs)
|
DirContext |
createSubcontext(Name name,
Attributes attrs)
|
DirContext |
createSubcontext(String name,
Attributes attrs)
|
Attributes |
getAttributes(Name name)
|
Attributes |
getAttributes(Name name,
String[] attrIds)
|
Attributes |
getAttributes(String name)
|
Attributes |
getAttributes(String name,
String[] attrIds)
|
protected abstract Context |
getOriginalContext()
returns the context to use
Can be overidden to handle cache expiration |
protected abstract DirContext |
getOriginalDirContext()
returns the context to use
Can be overidden to handle cache expiration |
DirContext |
getSchema(Name name)
|
DirContext |
getSchema(String name)
|
DirContext |
getSchemaClassDefinition(Name name)
|
DirContext |
getSchemaClassDefinition(String name)
|
void |
modifyAttributes(Name name,
int mod_op,
Attributes attrs)
|
void |
modifyAttributes(Name name,
ModificationItem[] mods)
|
void |
modifyAttributes(String name,
int mod_op,
Attributes attrs)
|
void |
modifyAttributes(String name,
ModificationItem[] mods)
|
void |
rebind(Name name,
Object obj,
Attributes attrs)
|
void |
rebind(String name,
Object obj,
Attributes attrs)
|
NamingEnumeration |
search(Name name,
Attributes matchingAttributes)
|
NamingEnumeration |
search(Name name,
Attributes matchingAttributes,
String[] attributesToReturn)
|
NamingEnumeration |
search(Name name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
|
NamingEnumeration |
search(Name name,
String filter,
SearchControls cons)
|
NamingEnumeration |
search(String name,
Attributes matchingAttributes)
|
NamingEnumeration |
search(String name,
Attributes matchingAttributes,
String[] attributesToReturn)
|
NamingEnumeration |
search(String name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
|
NamingEnumeration |
search(String name,
String filter,
SearchControls cons)
|
| Methods inherited from class com.sapportals.portal.prt.jndisupport.util.AbstractContextWrapper |
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.naming.Context |
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind |
AbstractDirContextWrapper
public AbstractDirContextWrapper()
getOriginalContext
protected abstract Context getOriginalContext()
throws NamingException
- returns the context to use
Can be overidden to handle cache expiration
- Specified by:
getOriginalContext in class AbstractContextWrapper
- Throws:
NamingException
getOriginalDirContext
protected abstract DirContext getOriginalDirContext()
throws NamingException
- returns the context to use
Can be overidden to handle cache expiration
- Throws:
NamingException
getAttributes
public Attributes getAttributes(Name name)
throws NamingException
- Specified by:
getAttributes in interface DirContext
- Throws:
NamingException
getAttributes
public Attributes getAttributes(String name)
throws NamingException
- Specified by:
getAttributes in interface DirContext
- Throws:
NamingException
getAttributes
public Attributes getAttributes(Name name,
String[] attrIds)
throws NamingException
- Specified by:
getAttributes in interface DirContext
- Throws:
NamingException
getAttributes
public Attributes getAttributes(String name,
String[] attrIds)
throws NamingException
- Specified by:
getAttributes in interface DirContext
- Throws:
NamingException
modifyAttributes
public void modifyAttributes(Name name,
int mod_op,
Attributes attrs)
throws NamingException
- Specified by:
modifyAttributes in interface DirContext
- Throws:
NamingException
modifyAttributes
public void modifyAttributes(String name,
int mod_op,
Attributes attrs)
throws NamingException
- Specified by:
modifyAttributes in interface DirContext
- Throws:
NamingException
modifyAttributes
public void modifyAttributes(Name name,
ModificationItem[] mods)
throws NamingException
- Specified by:
modifyAttributes in interface DirContext
- Throws:
NamingException
modifyAttributes
public void modifyAttributes(String name,
ModificationItem[] mods)
throws NamingException
- Specified by:
modifyAttributes in interface DirContext
- Throws:
NamingException
bind
public void bind(Name name,
Object obj,
Attributes attrs)
throws NamingException
- Specified by:
bind in interface DirContext
- Throws:
NamingException
bind
public void bind(String name,
Object obj,
Attributes attrs)
throws NamingException
- Specified by:
bind in interface DirContext
- Throws:
NamingException
rebind
public void rebind(Name name,
Object obj,
Attributes attrs)
throws NamingException
- Specified by:
rebind in interface DirContext
- Throws:
NamingException
rebind
public void rebind(String name,
Object obj,
Attributes attrs)
throws NamingException
- Specified by:
rebind in interface DirContext
- Throws:
NamingException
createSubcontext
public DirContext createSubcontext(Name name,
Attributes attrs)
throws NamingException
- Specified by:
createSubcontext in interface DirContext
- Throws:
NamingException
createSubcontext
public DirContext createSubcontext(String name,
Attributes attrs)
throws NamingException
- Specified by:
createSubcontext in interface DirContext
- Throws:
NamingException
getSchema
public DirContext getSchema(Name name)
throws NamingException
- Specified by:
getSchema in interface DirContext
- Throws:
NamingException
getSchema
public DirContext getSchema(String name)
throws NamingException
- Specified by:
getSchema in interface DirContext
- Throws:
NamingException
getSchemaClassDefinition
public DirContext getSchemaClassDefinition(Name name)
throws NamingException
- Specified by:
getSchemaClassDefinition in interface DirContext
- Throws:
NamingException
getSchemaClassDefinition
public DirContext getSchemaClassDefinition(String name)
throws NamingException
- Specified by:
getSchemaClassDefinition in interface DirContext
- Throws:
NamingException
search
public NamingEnumeration search(Name name,
Attributes matchingAttributes,
String[] attributesToReturn)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public NamingEnumeration search(String name,
Attributes matchingAttributes,
String[] attributesToReturn)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public NamingEnumeration search(Name name,
Attributes matchingAttributes)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public NamingEnumeration search(String name,
Attributes matchingAttributes)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public NamingEnumeration search(Name name,
String filter,
SearchControls cons)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public NamingEnumeration search(String name,
String filter,
SearchControls cons)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public NamingEnumeration search(Name name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
search
public NamingEnumeration search(String name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
throws NamingException
- Specified by:
search in interface DirContext
- Throws:
NamingException
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/basis/jndisupportdeprecated
|
api
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
Copyright 2015 SAP AG Complete Copyright Notice