The Stardust QueryService provides functionality to filter for DocumentQuery types, which can be used to search for documents.
For details on filtering Document Types, refer to section Searching for Document Types of chapter Managing Document Types.
To define a filter on the document ID (ID) use the document Id as a predicate in a Document Query.
public static final FilterableAttribute ID = new Attribute("id");
To define a filter on the document name (NAME) use the document name as a predicate in a Document Query.
public static final FilterableAttribute NAME = new Attribute("name");
To define a filter on the document's content type (CONTENT_TYPE) use the document content type as a predicate in a Document Query.
public static final FilterableAttribute CONTENT_TYPE = new Attribute("contentType");
The following example uses the DocumentQuery for finding documents with a specific content type by using the CONTENT_TYPE filter:
private ServiceFactory sf = ServiceFactoryLocator.get("motu", "motu");