|
LDAPJDK 4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--netscape.ldap.LDAPSchemaElement | +--netscape.ldap.LDAPDITContentRuleSchema
The definition of a DIT content rule in the schema. RFC 2252, Lightweight Directory Access Protocol (v3): DIT Content Rule Description covers the types of information to specify when defining a DIT content rule. According to the RFC, the description of a DIT content rule can include the following:
cis
or int
)
When you construct an LDAPDITContentRuleSchema
object, you can
specify these types of information as arguments to the constructor or
in the AttributeTypeDescription format specified in RFC 2252.
When an LDAP client searches an LDAP server for the schema, the server
returns schema information as an object with attribute values in this
format.
There are a number of additional optional description fields which are not explicitly accessible through LDAPDITContentRuleSchema, but which can be managed with setQualifier, getQualifier, and getQualifierNames:
To get the name, OID, and description of this DIT content rule
, use the getName
, getOID
, and
getDescription
methods inherited from the abstract class
LDAPSchemaElement
. Optional and custom qualifiers are
accessed with getQualifier
and getQualifierNames
from LDAPSchemaElement
.
To add or remove this attribute type definition from the
schema, use the add
and remove
methods, which this class inherits from the LDAPSchemaElement
abstract class.
RFC 2252 defines DITContentRuleDescription as follows:
DITContentRuleDescription = "(" numericoid ; Structural ObjectClass identifier [ "NAME" qdescrs ] [ "DESC" qdstring ] [ "OBSOLETE" ] [ "AUX" oids ] ; Auxiliary ObjectClasses [ "MUST" oids ] ; AttributeType identifiers [ "MAY" oids ] ; AttributeType identifiers [ "NOT" oids ] ; AttributeType identifiers ")"
LDAPSchemaElement
, Serialized FormField Summary | |
static java.lang.String |
AUX
|
static java.lang.String |
MAY
|
static java.lang.String |
MUST
|
static java.lang.String |
NOT
|
Fields inherited from class netscape.ldap.LDAPSchemaElement |
aliases,
attrName,
binary,
binaryString,
ces,
cesString,
cis,
cisString,
description,
dn,
dnString,
integer,
intString,
name,
novalsTable,
OBSOLETE,
oid,
properties,
rawValue,
SUPERIOR,
SYNTAX,
telephone,
telephoneString,
unknown |
Constructor Summary | |
protected |
LDAPDITContentRuleSchema()
Constructs a blank element. |
|
LDAPDITContentRuleSchema(java.lang.String raw)
Constructs a DIT content rule definition based on a description in the DITContentRuleDescription format. |
|
LDAPDITContentRuleSchema(java.lang.String name,
java.lang.String oid,
java.lang.String description,
boolean obsolete,
java.lang.String[] auxiliary,
java.lang.String[] required,
java.lang.String[] optional,
java.lang.String[] precluded)
Constructs a DIT content rule definition, using the specified information. |
Method Summary | |
java.lang.String[] |
getAuxiliaryClasses()
Gets the names of the auxiliary object classes allowed in this content rule. |
java.lang.String[] |
getOptionalAttributes()
Gets the names of optional attributes allowed in this content rule. |
java.lang.String[] |
getPrecludedAttributes()
Gets the names of the precluded attributes for this content rule. |
java.lang.String[] |
getRequiredAttributes()
Gets the names of the required attributes for this content rule. |
java.lang.String |
getValue()
Prepares a value in RFC 2252 format for submission to a server |
java.lang.String |
toString()
Gets the definition of the rule in a user friendly format. |
protected java.lang.String |
vectorToList(java.util.Vector vals)
Creates a list within parentheses, with $ as delimiter |
Methods inherited from class netscape.ldap.LDAPSchemaElement |
add,
add,
getAliases,
getCustomValues,
getDescription,
getID,
getName,
getOID,
getOptionalValues,
getQualifier,
getQualifierNames,
isObsolete,
modify,
modify,
parseValue,
remove,
remove,
setQualifier,
setQualifier,
update,
update,
update |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String AUX
public static final java.lang.String MUST
public static final java.lang.String MAY
public static final java.lang.String NOT
Constructor Detail |
protected LDAPDITContentRuleSchema()
public LDAPDITContentRuleSchema(java.lang.String name, java.lang.String oid, java.lang.String description, boolean obsolete, java.lang.String[] auxiliary, java.lang.String[] required, java.lang.String[] optional, java.lang.String[] precluded)
name
- name of the attribute typeoid
- object identifier (OID) of the attribute type
in dotted-string format (for example, "1.2.3.4")description
- description of attribute typeobsolete
- true
if the rule is obsoleteauxiliary
- a list of auxiliary object classes
allowed for an entry to which this content rule applies.
These may either be specified by name or numeric oid.required
- a list of user attribute types that an entry
to which this content rule applies must contain in addition to
its normal set of mandatory attributes. These may either be
specified by name or numeric oid.optional
- a list of user attribute types that an entry
to which this content rule applies may contain in addition to
its normal set of optional attributes. These may either be
specified by name or numeric oid.precluded
- a list consisting of a subset of the optional
user attribute types of the structural and auxiliary object
classes which are precluded from an entry to which this content rule
applies. These may either be specified by name or numeric oid.public LDAPDITContentRuleSchema(java.lang.String raw)
raw
- definition of the DIT content rule in the
DITContentRuleDescription formatMethod Detail |
public java.lang.String[] getRequiredAttributes()
public java.lang.String[] getOptionalAttributes()
public java.lang.String[] getPrecludedAttributes()
public java.lang.String[] getAuxiliaryClasses()
public java.lang.String getValue()
protected java.lang.String vectorToList(java.util.Vector vals)
vals
- values for listpublic java.lang.String toString()
|
LDAPJDK 4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |