// Path: src/java/se/agura/memorial/search/api/Grave.java
// public class Grave {
// 
//     private String graveId;
// 	private String firstName; 
// 	private String lastName; 
// 	private CustomMemorialDate dateOfBirth; 
// 	private CustomMemorialDate dateOfDeath; 
// 	private CustomMemorialDate dateOfBurial; 		
//     private String hometown;
// 	
// 	private GraveInformation graveInfo;
// 
// 	
// 
// 	public Grave(String graveId, 
// 			     String firstName, 
// 			     String lastName, 
// 				 CustomMemorialDate dateOfBirth, 
// 				 CustomMemorialDate dateOfDeath, 
// 				 CustomMemorialDate dateOfBurial,
// 			     String hometown, 
// 			     GraveInformation graveInfo) {
// 		super();
// 
// 		this.graveId = graveId;
// 		this.firstName = firstName;
// 		this.lastName = lastName;
// 		this.dateOfBirth = dateOfBirth;
// 		this.dateOfDeath = dateOfDeath;
// 		this.dateOfBurial = dateOfBurial;
// 		this.hometown = hometown;
// 		this.graveInfo = graveInfo;
// 		
// 	}
// 
// 
// 	
// 
// 
// 	public CustomMemorialDate getDateOfBirth() {
// 		return dateOfBirth;
// 	}
// 	
// 
// 	public void setDateOfBirth(CustomMemorialDate dateOfBirth) {
// 		this.dateOfBirth = dateOfBirth;
// 	}
// 	
// 
// 	public CustomMemorialDate getDateOfDeath() {
// 		return dateOfDeath;
// 	}
// 	
// 
// 	public void setDateOfDeath(CustomMemorialDate dateOfDeath) {
// 		this.dateOfDeath = dateOfDeath;
// 	}
// 	
// 
// 	public String getFirstName() {
// 		return firstName;
// 	}
// 	
// 
// 	public void setFirstName(String firstName) {
// 		this.firstName = firstName;
// 	}
// 	
// 
// 	public String getGraveId() {
// 		return graveId;
// 	}
// 	
// 
// 	public void setGraveId(String graveId) {
// 		this.graveId = graveId;
// 	}
// 	
// 
// 	public GraveInformation getGraveInfo() {
// 		return graveInfo;
// 	}
// 	
// 
// 	public void setGraveInfo(GraveInformation graveInfo) {
// 		this.graveInfo = graveInfo;
// 	}
// 	
// 
// 	public String getHometown() {
// 		return hometown;
// 	}
// 	
// 
// 	public void setHometown(String hometown) {
// 		this.hometown = hometown;
// 	}
// 	
// 
// 	public String getLastName() {
// 		return lastName;
// 	}
// 	
// 
// 	public void setLastName(String lastName) {
// 		this.lastName = lastName;
// 	}
// 	 
// 
// 	
// 	
// 		
// 	public CustomMemorialDate getDateOfBurial() {
// 		return dateOfBurial;
// 	}
// 	public void setDateOfBurial(CustomMemorialDate dateOfBurial) {
// 		this.dateOfBurial = dateOfBurial;
// 	}
// }


import se.agura.memorial.search.api.Grave;
import java.util.Collection;
package se.agura.memorial.search.api;
/**
 * 
 
Here we need interface for thee actual search classes, we could call 
it ObituarySearch
It will need three methods to begin with at least
findGraves(String bean.firstName, String bean.lastName, Interval 
bean.dateOfBirth, Interval bean.dayOfDeath, String bean.region, String 
bean.graveyard)  - For the search form
getGraveyards() - For the dropdown in the search form (or to load to 
the local database once and from there to the dropdown)
findGrave(string identifier) - for the grave-details in the Obituary 
part

findGraves could return list of Grave objects which is class you 
could define in se.agura.memorial.search.business.  The fields needed 
would be: String identifier, String firstName, String lastName Date 
dateOfBirth, Date dateOfDeath, Region region, GraveInformation info; 
where GraveInformation would be similar class with the fields:  String 
graveNumber, String block, String department, String cemetery.  Region 
may not be necessary to begin with, I let you know.  It would then be 
Region with the fields: String name, String type where type can be 
county, Commune, Parish.


 * 
 */




/**
 * @author Igors
 *
 */
public interface ObituarySearch {
              
	public Collection findGraves (
			           String firstName,
			           String lastName,
					   String personIdentifier,
					   CustomMemorialDate dateOfBirthFrom,
					   CustomMemorialDate dateOfBirthTo,			           
					   CustomMemorialDate dateOfDeathFrom,
					   CustomMemorialDate dateOfDeathTo,			           
			           String hometown,
			           String graveyard);
	
	public Collection getGraveyards();	
	
// Path: src/java/se/agura/memorial/search/api/Grave.java
// public class Grave {
// 
//     private String graveId;
// 	private String firstName; 
// 	private String lastName; 
// 	private CustomMemorialDate dateOfBirth; 
// 	private CustomMemorialDate dateOfDeath; 
// 	private CustomMemorialDate dateOfBurial; 		
//     private String hometown;
// 	
// 	private GraveInformation graveInfo;
// 
// 	
// 
// 	public Grave(String graveId, 
// 			     String firstName, 
// 			     String lastName, 
// 				 CustomMemorialDate dateOfBirth, 
// 				 CustomMemorialDate dateOfDeath, 
// 				 CustomMemorialDate dateOfBurial,
// 			     String hometown, 
// 			     GraveInformation graveInfo) {
// 		super();
// 
// 		this.graveId = graveId;
// 		this.firstName = firstName;
// 		this.lastName = lastName;
// 		this.dateOfBirth = dateOfBirth;
// 		this.dateOfDeath = dateOfDeath;
// 		this.dateOfBurial = dateOfBurial;
// 		this.hometown = hometown;
// 		this.graveInfo = graveInfo;
// 		
// 	}
// 
// 
// 	
// 
// 
// 	public CustomMemorialDate getDateOfBirth() {
// 		return dateOfBirth;
// 	}
// 	
// 
// 	public void setDateOfBirth(CustomMemorialDate dateOfBirth) {
// 		this.dateOfBirth = dateOfBirth;
// 	}
// 	
// 
// 	public CustomMemorialDate getDateOfDeath() {
// 		return dateOfDeath;
// 	}
// 	
// 
// 	public void setDateOfDeath(CustomMemorialDate dateOfDeath) {
// 		this.dateOfDeath = dateOfDeath;
// 	}
// 	
// 
// 	public String getFirstName() {
// 		return firstName;
// 	}
// 	
// 
// 	public void setFirstName(String firstName) {
// 		this.firstName = firstName;
// 	}
// 	
// 
// 	public String getGraveId() {
// 		return graveId;
// 	}
// 	
// 
// 	public void setGraveId(String graveId) {
// 		this.graveId = graveId;
// 	}
// 	
// 
// 	public GraveInformation getGraveInfo() {
// 		return graveInfo;
// 	}
// 	
// 
// 	public void setGraveInfo(GraveInformation graveInfo) {
// 		this.graveInfo = graveInfo;
// 	}
// 	
// 
// 	public String getHometown() {
// 		return hometown;
// 	}
// 	
// 
// 	public void setHometown(String hometown) {
// 		this.hometown = hometown;
// 	}
// 	
// 
// 	public String getLastName() {
// 		return lastName;
// 	}
// 	
// 
// 	public void setLastName(String lastName) {
// 		this.lastName = lastName;
// 	}
// 	 
// 
// 	
// 	
// 		
// 	public CustomMemorialDate getDateOfBurial() {
// 		return dateOfBurial;
// 	}
// 	public void setDateOfBurial(CustomMemorialDate dateOfBurial) {
// 		this.dateOfBurial = dateOfBurial;
// 	}
// }


// Path: src/java/se/agura/memorial/search/api/ObituarySearch.java
import se.agura.memorial.search.api.Grave;
import java.util.Collection;

package se.agura.memorial.search.api;
/**
 * 
 
Here we need interface for thee actual search classes, we could call 
it ObituarySearch
It will need three methods to begin with at least
findGraves(String bean.firstName, String bean.lastName, Interval 
bean.dateOfBirth, Interval bean.dayOfDeath, String bean.region, String 
bean.graveyard)  - For the search form
getGraveyards() - For the dropdown in the search form (or to load to 
the local database once and from there to the dropdown)
findGrave(string identifier) - for the grave-details in the Obituary 
part

findGraves could return list of Grave objects which is class you 
could define in se.agura.memorial.search.business.  The fields needed 
would be: String identifier, String firstName, String lastName Date 
dateOfBirth, Date dateOfDeath, Region region, GraveInformation info; 
where GraveInformation would be similar class with the fields:  String 
graveNumber, String block, String department, String cemetery.  Region 
may not be necessary to begin with, I let you know.  It would then be 
Region with the fields: String name, String type where type can be 
county, Commune, Parish.


 * 
 */




/**
 * @author Igors
 *
 */
public interface ObituarySearch {
              
	public Collection findGraves (
			           String firstName,
			           String lastName,
					   String personIdentifier,
					   CustomMemorialDate dateOfBirthFrom,
					   CustomMemorialDate dateOfBirthTo,			           
					   CustomMemorialDate dateOfDeathFrom,
					   CustomMemorialDate dateOfDeathTo,			           
			           String hometown,
			           String graveyard);
	
	public Collection getGraveyards();	
	
	public Grave findGrave(String graveId);	