com.facetmap.sql
Interface ResourceIdQuery

All Known Implementing Classes:
PreferenceResourceIdQuery

public interface ResourceIdQuery

Contains the external query logic represented by a ResourceIdFacet.

This interface doesn't address the organization of known Headings. As a result, no Heading will have any forward headings. It's the consumer's job to track possible headingId values and present them in the faceted browsing UI.


Method Summary
 java.lang.String getDisplayTitle(java.lang.String headingId)
          Return a title that describes the query corresponding to a Heading ID.
 int[] getResourceIds(java.lang.String headingId)
          Resolve a Heading ID string to a set of Resource IDs that belong in that Heading.
 java.lang.String getRootDisplayTitle()
          Return the title that describes the set of all resources.
 

Method Detail

getResourceIds

int[] getResourceIds(java.lang.String headingId)
Resolve a Heading ID string to a set of Resource IDs that belong in that Heading. The Heading ID string, therefore, must contain all the information necessary to do a query and return a set of IDs. (Or it must be a pointer to that information; the implementation decides.)


getDisplayTitle

java.lang.String getDisplayTitle(java.lang.String headingId)
Return a title that describes the query corresponding to a Heading ID.


getRootDisplayTitle

java.lang.String getRootDisplayTitle()
Return the title that describes the set of all resources. (In other words, the title of the root heading in this facet.)