Additional top-level classes in compilation unit: DirContextNamePair, DirContextStringPair.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | bind(Name name, Object obj, Attributes attrs)
Implements javax. Binds a name to an object, along with associated attributes. |
| public void | bind(String name, Object obj, Attributes attrs)
Implements javax. Binds a name to an object, along with associated attributes. |
| public DirContext | createSubcontext(Name name, Attributes attrs)
Implements javax. Creates and binds a new context, along with associated attributes. |
| public DirContext | createSubcontext(String name, Attributes attrs)
Implements javax. Creates and binds a new context, along with associated attributes. |
| public Attributes | getAttributes(String name)
Implements javax. Retrieves all of the attributes associated with a named object. |
| public Attributes | getAttributes(String name, String[] attrIds)
Implements javax. Retrieves selected attributes associated with a named object. |
| public Attributes | getAttributes(Name name)
Implements javax. Retrieves all of the attributes associated with a named object. |
| public Attributes | getAttributes(Name name, String[] attrIds)
Implements javax. Retrieves selected attributes associated with a named object. |
| public DirContext | getSchema(String name)
Implements javax. Retrieves the schema associated with the named object. |
| public DirContext | getSchema(Name name)
Implements javax. Retrieves the schema associated with the named object. |
| public DirContext | getSchemaClassDefinition(String name)
Implements javax. Retrieves a context containing the schema objects of the named object's class definitions. |
| public DirContext | getSchemaClassDefinition(Name name)
Implements javax. Retrieves a context containing the schema objects of the named object's class definitions. |
| protected DirContextNamePair | |
| protected DirContextStringPair | |
| public void | modifyAttributes(Name name, int mod_op, Attributes attrs)
Implements javax. Modifies the attributes associated with a named object. |
| public void | modifyAttributes(String name, int mod_op, Attributes attrs)
Implements javax. Modifies the attributes associated with a named object. |
| public void | modifyAttributes(Name name, ModificationItem[] mods)
Implements javax. Modifies the attributes associated with a named object using an ordered list of modifications. |
| public void | modifyAttributes(String name, ModificationItem[] mods)
Implements javax. Modifies the attributes associated with a named object using an ordered list of modifications. |
| public void | rebind(Name name, Object obj, Attributes attrs)
Implements javax. Binds a name to an object, along with associated attributes, overwriting any existing binding. |
| public void | rebind(String name, Object obj, Attributes attrs)
Implements javax. Binds a name to an object, along with associated attributes, overwriting any existing binding. |
| public NamingEnumeration | search(Name name, Attributes matchingAttributes, String[] attributesToReturn)
Implements javax. Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes. |
| public NamingEnumeration | search(String name, Attributes matchingAttributes, String[] attributesToReturn)
Implements javax. Searches in a single context for objects that contain a specified set of attributes, and retrieves selected attributes. |
| public NamingEnumeration | search(Name name, Attributes matchingAttributes)
Implements javax. Searches in a single context for objects that contain a specified set of attributes. |
| public NamingEnumeration | search(String name, Attributes matchingAttributes)
Implements javax. Searches in a single context for objects that contain a specified set of attributes. |
| public NamingEnumeration | search(Name name, String filter, SearchControls cons)
Implements javax. Searches in the named context or object for entries that satisfy the given search filter. |
| public NamingEnumeration | search(String name, String filter, SearchControls cons)
Implements javax. Searches in the named context or object for entries that satisfy the given search filter. |
| public NamingEnumeration | search(Name name, String filterExpr, Object[] args, SearchControls cons)
Implements javax. Searches in the named context or object for entries that satisfy the given search filter. |
| public NamingEnumeration | search(String name, String filterExpr, Object[] args, SearchControls cons)
Implements javax. Searches in the named context or object for entries that satisfy the given search filter. |
| ContinuationDirContext | back to summary |
|---|---|
| pack-priv ContinuationDirContext(CannotProceedException cpe, Hashtable<?, ?> env) | |
| bind | back to summary |
|---|---|
| public void bind(Name name, Object obj, Attributes attrs) throws NamingException Implements javax. Doc from javax. Binds a name to an object, along with associated attributes.
If
| |
| bind | back to summary |
|---|---|
| public void bind(String name, Object obj, Attributes attrs) throws NamingException Implements javax. Doc from javax. Binds a name to an object, along with associated attributes.
See
| |
| createSubcontext | back to summary |
|---|---|
| public DirContext createSubcontext(Name name, Attributes attrs) throws NamingException Implements javax. Doc from javax. Creates and binds a new context, along with associated attributes.
This method creates a new subcontext with the given name, binds it in
the target context (that named by all but terminal atomic
component of the name), and associates the supplied attributes
with the newly created object.
All intermediate and target contexts must already exist.
If
| |
| createSubcontext | back to summary |
|---|---|
| public DirContext createSubcontext(String name, Attributes attrs) throws NamingException Implements javax. Doc from javax. Creates and binds a new context, along with associated attributes.
See
| |
| getAttributes | back to summary |
|---|---|
| public Attributes getAttributes(String name) throws NamingException Implements javax. Doc from javax. Retrieves all of the attributes associated with a named object.
See
| |
| getAttributes | back to summary |
|---|---|
| public Attributes getAttributes(String name, String[] attrIds) throws NamingException Implements javax. Doc from javax. Retrieves selected attributes associated with a named object.
See
| |
| getAttributes | back to summary |
|---|---|
| public Attributes getAttributes(Name name) throws NamingException Implements javax. Doc from javax. Retrieves all of the attributes associated with a named object. See the class description regarding attribute models, attribute type names, and operational attributes.
| |
| getAttributes | back to summary |
|---|---|
| public Attributes getAttributes(Name name, String[] attrIds) throws NamingException Implements javax. Doc from javax. Retrieves selected attributes associated with a named object. See the class description regarding attribute models, attribute type names, and operational attributes. If the object does not have an attribute specified, the directory will ignore the nonexistent attribute and return those requested attributes that the object does have. A directory might return more attributes than was requested (see Attribute Type Names in the class description), but is not allowed to return arbitrary, unrelated attributes. See also Operational Attributes in the class description.
| |
| getSchema | back to summary |
|---|---|
| public DirContext getSchema(String name) throws NamingException Implements javax. Doc from javax. Retrieves the schema associated with the named object.
See
| |
| getSchema | back to summary |
|---|---|
| public DirContext getSchema(Name name) throws NamingException Implements javax. Doc from javax. Retrieves the schema associated with the named object. The schema describes rules regarding the structure of the namespace and the attributes stored within it. The schema specifies what types of objects can be added to the directory and where they can be added; what mandatory and optional attributes an object can have. The range of support for schemas is directory-specific. This method returns the root of the schema information tree that is applicable to the named object. Several named objects (or even an entire directory) might share the same schema. Issues such as structure and contents of the schema tree, permission to modify to the contents of the schema tree, and the effect of such modifications on the directory are dependent on the underlying directory.
| |
| getSchemaClassDefinition | back to summary |
|---|---|
| public DirContext getSchemaClassDefinition(String name) throws NamingException Implements javax. Doc from javax. Retrieves a context containing the schema objects of the
named object's class definitions.
See
| |
| getSchemaClassDefinition | back to summary |
|---|---|
| public DirContext getSchemaClassDefinition(Name name) throws NamingException Implements javax. Doc from javax. Retrieves a context containing the schema objects of the named object's class definitions.
One category of information found in directory schemas is
class definitions. An "object class" definition
specifies the object's type and what attributes (mandatory
and optional) the object must/can have. Note that the term
"object class" being referred to here is in the directory sense
rather than in the Java sense.
For example, if the named object is a directory object of
"Person" class, The information that can be retrieved from an object class definition is directory-dependent.
Prior to JNDI 1.2, this method
returned a single schema object representing the class definition of
the named object.
Since JNDI 1.2, this method returns a
| |
| getTargetContext | back to summary |
|---|---|
| protected DirContextNamePair getTargetContext(Name name) throws NamingException | |
| getTargetContext | back to summary |
|---|---|
| protected DirContextStringPair getTargetContext(String name) throws NamingException | |
| modifyAttributes | back to summary |
|---|---|
| public void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException Implements javax. Doc from javax. Modifies the attributes associated with a named object. The order of the modifications is not specified. Where possible, the modifications are performed atomically.
| |
| modifyAttributes | back to summary |
|---|---|
| public void modifyAttributes(String name, int mod_op, Attributes attrs) throws NamingException Implements javax. Doc from javax. Modifies the attributes associated with a named object.
See
| |
| modifyAttributes | back to summary |
|---|---|
| public void modifyAttributes(Name name, ModificationItem[] mods) throws NamingException Implements javax. Doc from javax. Modifies the attributes associated with a named object using an ordered list of modifications. The modifications are performed in the order specified. Each modification specifies a modification operation code and an attribute on which to operate. Where possible, the modifications are performed atomically.
| |
| modifyAttributes | back to summary |
|---|---|
| public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException Implements javax. Doc from javax. Modifies the attributes associated with a named object using
an ordered list of modifications.
See
| |
| rebind | back to summary |
|---|---|
| public void rebind(Name name, Object obj, Attributes attrs) throws NamingException Implements javax. Doc from javax. Binds a name to an object, along with associated attributes,
overwriting any existing binding.
If
| |
| rebind | back to summary |
|---|---|
| public void rebind(String name, Object obj, Attributes attrs) throws NamingException Implements javax. Doc from javax. Binds a name to an object, along with associated attributes,
overwriting any existing binding.
See
| |
| search | back to summary |
|---|---|
| public NamingEnumeration Implements javax. Doc from javax. Searches in a single context for objects that contain a
specified set of attributes, and retrieves selected attributes.
The search is performed using the default
For an object to be selected, each attribute in
An attribute A1 in
The precise definition of "equality" used in comparing attribute values
is defined by the underlying directory service. It might use the
When changes are made to this If the object does not have the attribute specified, the directory will ignore the nonexistent attribute and return the requested attributes that the object does have. A directory might return more attributes than was requested (see Attribute Type Names in the class description), but is not allowed to return arbitrary, unrelated attributes. See also Operational Attributes in the class description.
| |
| search | back to summary |
|---|---|
| public NamingEnumeration Implements javax. Doc from javax. Searches in a single context for objects that contain a
specified set of attributes, and retrieves selected attributes.
See
| |
| search | back to summary |
|---|---|
| public NamingEnumeration Implements javax. Doc from javax. Searches in a single context for objects that contain a
specified set of attributes.
This method returns all the attributes of such objects.
It is equivalent to supplying null as
the
| |
| search | back to summary |
|---|---|
| public NamingEnumeration Implements javax. Doc from javax. Searches in a single context for objects that contain a
specified set of attributes.
See
| |
| search | back to summary |
|---|---|
| public NamingEnumeration Implements javax. Doc from javax. Searches in the named context or object for entries that satisfy the given search filter. Performs the search as specified by the search controls.
The format and interpretation of
For the assertion "someCount=127", for example, Any non-ASCII characters in the filter string should be represented by the appropriate Java (Unicode) characters, and not encoded as UTF-8 octets. Alternately, the "backslash-hexcode" notation described in RFC 2254 may be used.
If the directory does not support a string representation of
some or all of its attributes, the form of RFC 2254 defines certain operators for the filter, including substring matches, equality, approximate match, greater than, less than. These operators are mapped to operators with corresponding semantics in the underlying directory. For example, for the equals operator, suppose the directory has a matching rule defining "equality" of the attributes in the filter. This rule would be used for checking equality of the attributes specified in the filter with the attributes of objects in the directory. Similarly, if the directory has a matching rule for ordering, this rule would be used for making "greater than" and "less than" comparisons.
Not all of the operators defined in RFC 2254 are applicable to all
attributes. When an operator is not applicable, the exception
The result is returned in an enumeration of If the object does not have a requested attribute, that nonexistent attribute will be ignored. Those requested attributes that the object does have will be returned. A directory might return more attributes than were requested (see Attribute Type Names in the class description) but is not allowed to return arbitrary, unrelated attributes. See also Operational Attributes in the class description.
| |
| search | back to summary |
|---|---|
| public NamingEnumeration Implements javax. Doc from javax. Searches in the named context or object for entries that satisfy the
given search filter. Performs the search as specified by
the search controls.
See
| |
| search | back to summary |
|---|---|
| public NamingEnumeration Implements javax. Doc from javax. Searches in the named context or object for entries that satisfy the given search filter. Performs the search as specified by the search controls.
The interpretation of
When a variable For directories that do not use a string representation for some or all of their attributes, the filter argument corresponding to an attribute value may be of a type other than String. Directories that support unstructured binary-valued attributes, for example, should accept byte arrays as filter arguments. The interpretation (if any) of filter arguments of any other type is determined by the service provider for that directory, which maps the filter operations onto operations with corresponding semantics in the underlying directory.
This method returns an enumeration of the results.
Each element in the enumeration contains the name of the object
and other information about the object (see
The If the object does not have a requested attribute, that nonexistent attribute will be ignored. Those requested attributes that the object does have will be returned. A directory might return more attributes than were requested (see Attribute Type Names in the class description) but is not allowed to return arbitrary, unrelated attributes. If a search filter with invalid variable substitutions is provided to this method, the result is undefined. When changes are made to this DirContext, the effect on enumerations returned by prior calls to this method is undefined. See also Operational Attributes in the class description.
| |
| search | back to summary |
|---|---|
| public NamingEnumeration Implements javax. Doc from javax. Searches in the named context or object for entries that satisfy the
given search filter. Performs the search as specified by
the search controls.
See
| |