org.openanzo.common.ldap.container
Interface EntryBinding<T extends AttributeBinding>

All Known Implementing Classes:
BasicEntrySetBinding

public interface EntryBinding<T extends AttributeBinding>

Maps an entry to AttributeBindings. There is one EntrySetBinding for every unique ldap attribute that has any bindings. * Since an ldap attribute may be bound to different URIs for different EntrySets, a map from EntrySet to binding rules is kept.

Author:
Joe Betz

Method Summary
 void addBinding(BasicEntrySet entrySet, T binding)
          Add a binding.
 T findBinding(EntrySet entrySet, java.lang.String attribute, java.net.URI uri)
          Finds the binding for the given entry set, attribute and URI.
 java.util.Set<java.lang.String> getAllAttributes()
          Gets all the bound attributes for all the entry sets.
 java.util.List<T> getBinding(EntrySet entrySet)
          Get the attribute binding that applies to the provided EntrySet.
 

Method Detail

addBinding

void addBinding(BasicEntrySet entrySet,
                T binding)
Add a binding.

Parameters:
entrySet - EntrySet the attribute bindings apply to.
binding - Attribute bindings to apply for the provided EntrySet.

getBinding

java.util.List<T> getBinding(EntrySet entrySet)
Get the attribute binding that applies to the provided EntrySet.

Parameters:
entrySet - EntrySet.
Returns:
T.

findBinding

T findBinding(EntrySet entrySet,
              java.lang.String attribute,
              java.net.URI uri)
Finds the binding for the given entry set, attribute and URI.

Parameters:
entrySet - The entry set to scan for a match
attribute - the attribute of the binding to match
uri - the uri of the binding to match
Returns:
the matched binding or null if it is not found

getAllAttributes

java.util.Set<java.lang.String> getAllAttributes()
Gets all the bound attributes for all the entry sets.

Returns:
Complete list of bound attributes for all entry sets.


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