Package org.opends.server.types
Class SubEntry
java.lang.Object
org.opends.server.types.SubEntry
This class represents RFC 3672 subentries and RFC 3671 collective attribute subentries objects.
-
Constructor Summary
ConstructorsConstructorDescriptionSubEntry
(Entry entry, ServerContext serverContext) Constructs a subentry object from a given entry object. -
Method Summary
Modifier and TypeMethodDescriptionGetter for collective attributes contained within this subentry.Getter for collective conflict behavior defined for this collective attribute's subentry.getDN()
Retrieves the distinguished name for this subentry.getEntry()
Getter to retrieve the actual entry object for this subentry.Getter for inherited collective attributes mappings.Getter to retrieve inheritFromBaseRDN DN for inherited collective attribute subentry.int
Returns the number of parent levels to lookup in the DN for inherited collective attribute subentry.Returns the attribute type where to find the DN of the entry from which to inherit collective attributesGetter to retrieve inheritFromRDNAttribute type for inherited collective attribute subentry.Getter to retrieve RDN type of inheritFromRDNType for inherited collective attribute subentry.Getter for subentry subtree specification.boolean
Indicates whether this subentry is a collective attribute subentry or an inherited collective attribute subentry.boolean
Indicates whether this subentry is inherited from DN collective attribute subentry.boolean
Indicates whether this subentry is inherited from RDN collective attribute subentry.toString()
-
Constructor Details
-
SubEntry
Constructs a subentry object from a given entry object.- Parameters:
entry
- LDAP subentry to construct from.serverContext
- The server context- Throws:
LdapException
- if there is a problem with constructing a subentry from a given entry.
-
-
Method Details
-
getDN
Retrieves the distinguished name for this subentry.- Returns:
- The distinguished name for this subentry.
-
getEntry
Getter to retrieve the actual entry object for this subentry.- Returns:
- entry object for this subentry.
-
isCollectiveOrInheritedCollective
public boolean isCollectiveOrInheritedCollective()Indicates whether this subentry is a collective attribute subentry or an inherited collective attribute subentry.- Returns:
true
if collective or inherited collective,false
otherwise.
-
isInheritedFromDNCollective
public boolean isInheritedFromDNCollective()Indicates whether this subentry is inherited from DN collective attribute subentry.- Returns:
true
if inherited from DN collective,false
otherwise.
-
isInheritedFromRDNCollective
public boolean isInheritedFromRDNCollective()Indicates whether this subentry is inherited from RDN collective attribute subentry.- Returns:
true
if inherited from RDN collective,false
otherwise.
-
getInheritFromDNType
Returns the attribute type where to find the DN of the entry from which to inherit collective attributesOnly valid when
isInheritedFromDNCollective()
returns true.- Returns:
- the attribute type where to find the DN of an entry, or
null
if there is none.
-
getInheritFromDNParent
public int getInheritFromDNParent()Returns the number of parent levels to lookup in the DN for inherited collective attribute subentry.Only valid when:
isInheritedFromDNCollective()
returns true.getInheritFromDNType()
returns a non-null
value.
- Returns:
- the number of parent levels to lookup.
-
getInheritFromRDNAttrType
Getter to retrieve inheritFromRDNAttribute type for inherited collective attribute subentry.- Returns:
- Type of inheritFromRDNAttribute, or
null
if there is none.
-
getInheritFromRDNType
Getter to retrieve RDN type of inheritFromRDNType for inherited collective attribute subentry.- Returns:
- RDN Type of inheritFromRDNAttribute, or
null
if there is none.
-
getInheritFromBaseDN
Getter to retrieve inheritFromBaseRDN DN for inherited collective attribute subentry.- Returns:
- DN of inheritFromBaseRDN, or
null
if there is none.
-
getSubTreeSpecification
Getter for subentry subtree specification.- Returns:
- subtree specification for this subentry.
-
getCollectiveAttributes
Getter for collective attributes contained within this subentry.- Returns:
- collective attributes contained within this subentry.
-
getInheritedCollectiveAttributes
Getter for inherited collective attributes mappings. The returned map's keys are the names of the attributes added to the entry and the map's values are the names of the attributes in the referenced entry.- Returns:
- inherited collective attributes mappings.
-
getConflictBehavior
Getter for collective conflict behavior defined for this collective attribute's subentry.- Returns:
- conflict behavior for this collective attribute's subentry.
-
toString
-