org.openanzo.common.ldap.container
Interface EntrySet

All Known Implementing Classes:
BasicEntrySet

public interface EntrySet

Represents a conceptual grouping of LDAP entries. Mapping rules are are defined on a per entry set basis, making it often most convenient to define entry sets that map directly to RDF resource types. Any LDAP search rules may be used to specified to define the entry set. By default and EntrySet is all the nodes one level below the provided DN.

Author:
Joe Betz

Method Summary
 java.lang.String getFilter()
          Gets the LDAP filter to be used to constrain which entries are part of this set.
 javax.naming.Name getRootDn()
          Gets the Root DN of the entry set.
 javax.naming.directory.SearchControls getSearchControls()
          Gets the search controls to use for this entry set.
 RDFTerm toSubject(java.lang.String dn, AttributeBinding binding, java.lang.String value)
          Returns a RDF resource representing the entry.
 

Method Detail

getRootDn

javax.naming.Name getRootDn()
Gets the Root DN of the entry set.

Returns:
The Root DN of the entry set.

getSearchControls

javax.naming.directory.SearchControls getSearchControls()
Gets the search controls to use for this entry set.

Returns:
Search controls to use. Contains scope property.

getFilter

java.lang.String getFilter()
Gets the LDAP filter to be used to constrain which entries are part of this set. See DirContext.search(Name, String, Object[], SearchControls) for details regarding LDAP filter syntax.

Returns:
the LDAP filter.

toSubject

RDFTerm toSubject(java.lang.String dn,
                  AttributeBinding binding,
                  java.lang.String value)
Returns a RDF resource representing the entry. See also LdapMapping.toDistinguishedName(TriplePatternComponent)

Parameters:
dn - The LDAP dn representing the entry.
binding - The attribute for the RDF statement the returned value will be part of.
value - The attribute value for the RDF statement the returned value will be part of.
Returns:
An RDF resource.


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.