PlaceBeanLocal.java 1.48 KB
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fi.codecrew.moya.beans;

import java.math.BigDecimal;

import javax.ejb.Local;

import fi.codecrew.moya.exceptions.BortalCatchableException;
import fi.codecrew.moya.model.EventMap;
import fi.codecrew.moya.model.EventUser;
import fi.codecrew.moya.model.Place;
import fi.codecrew.moya.model.PlaceGroup;

/**
 * 
 * @author tuukka
 */
@Local
// @RemoteDestination
public interface PlaceBeanLocal {

	Place findPlace(EventMap e, int x, int y);

	boolean reservePlace(Place place, EventUser user);

	int setBuyable(EventMap map, String buyableLike, boolean b);

	// Place find(EventPk id);

	boolean releasePlace(Place place);

	Place mergeChanges(Place place);

	PlaceGroup buySelectedPlaces(EventUser user) throws BortalCatchableException;

	// void releaseUsersPlaces(User user) throws PermissionDeniedException;

	Place find(int placeId);

	Place unbuyPlace(Place place);

	BigDecimal getTotalReservationPrice(EventUser user, Place newPlace);

	BigDecimal getTotalReservationPrice(Place newPlace);

	/**
	 * 
	 * @param width
	 *            page width in millimeters
	 * @param height
	 *            page height in millimeters
	 * @param font1
	 *            font 1 size
	 * @param font2
	 *            font 2 size
	 * @return
	 */

	byte[] generatePlacesPdf(float width, float height, double font1, double font2);
	//	public byte[] generatePlacesPdf(double width, double height, double font1, double font2);

}