com.ibm.portal
Interface MetaDataLocator<V,E>

All Superinterfaces:
Locator<E>
All Known Subinterfaces:
TransitionEndpointLocator<E>, TransitionLocator<E>

public interface MetaDataLocator<V,E>
extends Locator<E>

Interface to locate a resource by meta data information.

Since:
8.0.0.1

Method Summary
 IterableListModel<E> findByMetaData(java.lang.String name, V value)
          Finds all resources which have the given name/value pair as meta data.
 E findSingleByMetaData(java.lang.String name, V value)
          Finds one of the resources that is returned in the iteration over findByMetaData(String, Object).
 
Methods inherited from interface com.ibm.portal.Locator
findByID, findByUniqueName
 

Method Detail

findByMetaData

IterableListModel<E> findByMetaData(java.lang.String name,
                                    V value)
                                    throws ModelException
Finds all resources which have the given name/value pair as meta data.

Parameters:
name - the meta data name
value - the meta data value
Returns:
a list with all resource matching the criteria, never null
Throws:
ModelException

findSingleByMetaData

E findSingleByMetaData(java.lang.String name,
                       V value)
                       throws ModelException
Finds one of the resources that is returned in the iteration over findByMetaData(String, Object). If findByMetaData(String, Object) would contain more than one resource it is undefined which of these resources would be returned.

Parameters:
name - the meta data name
value - the meta data value
Returns:
a list with one of the resources matching the criteria, never null
Throws:
ModelException