// Path: src/java/se/idega/idegaweb/commune/school/business/MailReceiver.java
// public class MailReceiver implements Serializable {
// 	private  String studentName;
// 	private  String ssn;
// 	private  String parentName;
// 	private  String streetAddress;
// 	private  String postalAddress;
// 	private  boolean isInDefaultCommune;
// 	
// 	public MailReceiver(){
// 	    
// 	}
// 
// 	MailReceiver(FamilyLogic familyLogic, UserBusiness userBusiness, Integer userId) throws RemoteException, FinderException {
// 		User student = userBusiness.getUser(userId);
// 		this.studentName = student.getName();
// 		this.ssn = student.getPersonalID();
// 		Address address = userBusiness.getUsersMainAddress(student);
// 		Collection parents = null;
// 		try {
// 		    if(familyLogic!=null) {
// 					parents = familyLogic.getCustodiansFor(student);
// 				}
// 		}
// 		catch (NoCustodianFound e) {
// 			parents = null;
// 		}
// 		if (parents == null || parents.isEmpty()) {
// 			this.parentName = "?";
// 		}
// 		else {
// 			User parent = (User) parents.iterator().next();
// 			this.parentName = parent.getName();
// 		}
// 		this.streetAddress = address != null ? address.getStreetAddress() : "?";
// 		this.postalAddress = address != null ? address.getPostalAddress() : "?";
// 		this.isInDefaultCommune = userBusiness.isInDefaultCommune (student);
// 	}
// 
// 	public String getStudentName() {
// 		return this.studentName;
// 	}
// 
// 	public String getSsn() {
// 		return this.ssn;
// 	}
// 
// 	public String getParentName() {
// 		return this.parentName;
// 	}
// 
// 	public String getStreetAddress() {
// 		return this.streetAddress;
// 	}
// 
// 	public String getPostalAddress() {
// 		return this.postalAddress;
// 	}
// 
// 	public boolean isInDefaultCommune () {
// 		return this.isInDefaultCommune;
// 	}
// 	
//     public void setInDefaultCommune(boolean isInDefaultCommune) {
//         this.isInDefaultCommune = isInDefaultCommune;
//     }
//     public void setParentName(String parentName) {
//         this.parentName = parentName;
//     }
//     public void setPostalAddress(String postalAddress) {
//         this.postalAddress = postalAddress;
//     }
//     public void setSsn(String ssn) {
//         this.ssn = ssn;
//     }
//     public void setStreetAddress(String streetAddress) {
//         this.streetAddress = streetAddress;
//     }
//     public void setStudentName(String studentName) {
//         this.studentName = studentName;
//     }
// }


import java.sql.Date;
import java.sql.SQLException;
import java.util.Collection;
import javax.ejb.FinderException;
import se.idega.idegaweb.commune.school.business.MailReceiver;
import com.idega.block.process.data.Case;
import com.idega.block.school.data.SchoolSeason;
import com.idega.block.school.data.SchoolYear;
import com.idega.data.IDOException;
import com.idega.data.IDOHome;
import com.idega.user.data.User;
	public int getNumberOfChoices(int userID, int seasonID, String[] notInStatuses) throws IDOException;

	/**
	 * @see se.idega.idegaweb.commune.school.data.SchoolChoiceBMPBean#ejbHomeGetMoveChoices
	 */
	public int getMoveChoices(int userID, int schoolID, int seasonID) throws IDOException;

	/**
	 * @see se.idega.idegaweb.commune.school.data.SchoolChoiceBMPBean#ejbHomeGetChoices
	 */
	public int getChoices(int userID, int seasonID, String[] notInStatus) throws IDOException;

	/**
	 * @see se.idega.idegaweb.commune.school.data.SchoolChoiceBMPBean#ejbHomeGetChoices
	 */
	public int getChoices(int userID, int schoolID, int seasonID, String[] notInStatus) throws IDOException;

	/**
	 * @see se.idega.idegaweb.commune.school.data.SchoolChoiceBMPBean#ejbFindByParent
	 */
	public Collection findByParent(Case parent) throws FinderException;

	/**
	 * @see se.idega.idegaweb.commune.school.data.SchoolChoiceBMPBean#ejbHomeCountChildrenWithoutSchoolChoice
	 */
	public int countChildrenWithoutSchoolChoice(SchoolSeason season, SchoolYear year, boolean onlyInCommune, boolean onlyLastGrade, int maxAge) throws SQLException;

	/**
	 * @see se.idega.idegaweb.commune.school.data.SchoolChoiceBMPBean#ejbHomeGetChildrenWithoutSchoolChoice
	 */
// Path: src/java/se/idega/idegaweb/commune/school/business/MailReceiver.java
// public class MailReceiver implements Serializable {
// 	private  String studentName;
// 	private  String ssn;
// 	private  String parentName;
// 	private  String streetAddress;
// 	private  String postalAddress;
// 	private  boolean isInDefaultCommune;
// 	
// 	public MailReceiver(){
// 	    
// 	}
// 
// 	MailReceiver(FamilyLogic familyLogic, UserBusiness userBusiness, Integer userId) throws RemoteException, FinderException {
// 		User student = userBusiness.getUser(userId);
// 		this.studentName = student.getName();
// 		this.ssn = student.getPersonalID();
// 		Address address = userBusiness.getUsersMainAddress(student);
// 		Collection parents = null;
// 		try {
// 		    if(familyLogic!=null) {
// 					parents = familyLogic.getCustodiansFor(student);
// 				}
// 		}
// 		catch (NoCustodianFound e) {
// 			parents = null;
// 		}
// 		if (parents == null || parents.isEmpty()) {
// 			this.parentName = "?";
// 		}
// 		else {
// 			User parent = (User) parents.iterator().next();
// 			this.parentName = parent.getName();
// 		}
// 		this.streetAddress = address != null ? address.getStreetAddress() : "?";
// 		this.postalAddress = address != null ? address.getPostalAddress() : "?";
// 		this.isInDefaultCommune = userBusiness.isInDefaultCommune (student);
// 	}
// 
// 	public String getStudentName() {
// 		return this.studentName;
// 	}
// 
// 	public String getSsn() {
// 		return this.ssn;
// 	}
// 
// 	public String getParentName() {
// 		return this.parentName;
// 	}
// 
// 	public String getStreetAddress() {
// 		return this.streetAddress;
// 	}
// 
// 	public String getPostalAddress() {
// 		return this.postalAddress;
// 	}
// 
// 	public boolean isInDefaultCommune () {
// 		return this.isInDefaultCommune;
// 	}
// 	
//     public void setInDefaultCommune(boolean isInDefaultCommune) {
//         this.isInDefaultCommune = isInDefaultCommune;
//     }
//     public void setParentName(String parentName) {
//         this.parentName = parentName;
//     }
//     public void setPostalAddress(String postalAddress) {
//         this.postalAddress = postalAddress;
//     }
//     public void setSsn(String ssn) {
//         this.ssn = ssn;
//     }
//     public void setStreetAddress(String streetAddress) {
//         this.streetAddress = streetAddress;
//     }
//     public void setStudentName(String studentName) {
//         this.studentName = studentName;
//     }
// }


// Path: src/java/se/idega/idegaweb/commune/school/data/SchoolChoiceHome.java
import java.sql.Date;
import java.sql.SQLException;
import java.util.Collection;
import javax.ejb.FinderException;
import se.idega.idegaweb.commune.school.business.MailReceiver;
import com.idega.block.process.data.Case;
import com.idega.block.school.data.SchoolSeason;
import com.idega.block.school.data.SchoolYear;
import com.idega.data.IDOException;
import com.idega.data.IDOHome;
import com.idega.user.data.User;

	public int getNumberOfChoices(int userID, int seasonID, String[] notInStatuses) throws IDOException;

	/**
	 * @see se.idega.idegaweb.commune.school.data.SchoolChoiceBMPBean#ejbHomeGetMoveChoices
	 */
	public int getMoveChoices(int userID, int schoolID, int seasonID) throws IDOException;

	/**
	 * @see se.idega.idegaweb.commune.school.data.SchoolChoiceBMPBean#ejbHomeGetChoices
	 */
	public int getChoices(int userID, int seasonID, String[] notInStatus) throws IDOException;

	/**
	 * @see se.idega.idegaweb.commune.school.data.SchoolChoiceBMPBean#ejbHomeGetChoices
	 */
	public int getChoices(int userID, int schoolID, int seasonID, String[] notInStatus) throws IDOException;

	/**
	 * @see se.idega.idegaweb.commune.school.data.SchoolChoiceBMPBean#ejbFindByParent
	 */
	public Collection findByParent(Case parent) throws FinderException;

	/**
	 * @see se.idega.idegaweb.commune.school.data.SchoolChoiceBMPBean#ejbHomeCountChildrenWithoutSchoolChoice
	 */
	public int countChildrenWithoutSchoolChoice(SchoolSeason season, SchoolYear year, boolean onlyInCommune, boolean onlyLastGrade, int maxAge) throws SQLException;

	/**
	 * @see se.idega.idegaweb.commune.school.data.SchoolChoiceBMPBean#ejbHomeGetChildrenWithoutSchoolChoice
	 */
	public MailReceiver[] getChildrenWithoutSchoolChoice(SchoolSeason season, SchoolYear year, boolean onlyInCommune, boolean onlyLastGrade, int maxAge) throws FinderException;