org.openanzo.common.ldap.container
Interface LdapMapping

All Known Implementing Classes:
BasicLdapMapping, FoafLdapMapping, VCardLdapMapping

public interface LdapMapping

Provides mapping information for LdapSolutionGenerator. See EntrySet and AttributeBinding for details. Dictates how Ldap data will be mapped to RDF.

Author:
Joe Betz

Method Summary
 java.util.Set<java.lang.String> getAllAttributes(java.net.URI uri)
          Gets all the attributes mapped to the given URI.
 java.util.List<? extends AttributeBinding> getAttributeBinding(java.lang.String attribute, java.lang.String dn)
          Gets the attribute bindings for the given attribute and entry set identified by the given Ldap DN.
 BlankNodeIndex getBlankNodeIndex()
           
 EntrySet getEntrySet(java.lang.String distinguishedName)
          Gets the entry set for the provided DN.
 java.util.List<EntrySet> getEntrySets()
          Gets the entry sets the mapping uses.
 java.net.URI getGraphUri()
          Gets the named graph uri for this mapping.
 javax.naming.Name toDistinguishedName(TriplePatternComponent subject)
          Map an RDF term or blank node to an Ldap DN, or, if term is ambiguous or matches multiple results return null.
 

Method Detail

getGraphUri

java.net.URI getGraphUri()
Gets the named graph uri for this mapping.

Returns:
Graph URI.

getEntrySets

java.util.List<EntrySet> getEntrySets()
Gets the entry sets the mapping uses.

Returns:
List of entry sets used by mapping.

getAllAttributes

java.util.Set<java.lang.String> getAllAttributes(java.net.URI uri)
Gets all the attributes mapped to the given URI.

Parameters:
uri - URI to map.
Returns:
all attributes mapped to given URI

getAttributeBinding

java.util.List<? extends AttributeBinding> getAttributeBinding(java.lang.String attribute,
                                                               java.lang.String dn)
Gets the attribute bindings for the given attribute and entry set identified by the given Ldap DN.

Parameters:
attribute - Attribute to find bindings for.
dn - Ldap DN
Returns:
Bindings that map the attribute to uris and mapping rules

getEntrySet

EntrySet getEntrySet(java.lang.String distinguishedName)
Gets the entry set for the provided DN.

Parameters:
distinguishedName - LDAP DN.
Returns:
entry set

toDistinguishedName

javax.naming.Name toDistinguishedName(TriplePatternComponent subject)
Map an RDF term or blank node to an Ldap DN, or, if term is ambiguous or matches multiple results return null. This must map all values returned by EntrySet.toSubject(String, AttributeBinding, String) back to the DNs provided as input. I.e. it must be inversely functional.

Parameters:
subject - RDF term or blank node to map to Ldap DN.
Returns:
Ldap DN.

getBlankNodeIndex

BlankNodeIndex getBlankNodeIndex()


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