macaw.persistenceLayer.demo
Class InMemorySupportingDocumentFilter

java.lang.Object
  extended by macaw.persistenceLayer.demo.InMemorySupportingDocumentFilter

public class InMemorySupportingDocumentFilter
extends java.lang.Object

filter class that performs different searches to retrieve instances of SupportingDocument. The Macaw data entry forms for raw and derived variables (see package macaw.view ) allow users to add, edit, delete or select supporting documents. The select operation allows users to choose an existing supporting document.

Macaw provides a search facility to help users find a particular supporting document to associate with a variable. This class contains the code which supports that feature.


Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
InMemorySupportingDocumentFilter()
           
 
Method Summary
 java.util.ArrayList<SupportingDocument> filterSupportingDocuments(User user, java.lang.String documentTitleFilter, java.lang.String documentCodeFilter)
           
 void setSupportingDocuments(java.util.ArrayList<SupportingDocument> supportingDocuments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemorySupportingDocumentFilter

public InMemorySupportingDocumentFilter()
Method Detail

setSupportingDocuments

public void setSupportingDocuments(java.util.ArrayList<SupportingDocument> supportingDocuments)

filterSupportingDocuments

public java.util.ArrayList<SupportingDocument> filterSupportingDocuments(User user,
                                                                         java.lang.String documentTitleFilter,
                                                                         java.lang.String documentCodeFilter)
                                                                  throws MacawException
Throws:
MacawException