GameBeanLocal.java 608 Bytes
package fi.codecrew.moya.beans;

import java.util.List;

import javax.ejb.Local;

import fi.codecrew.moya.model.EventUser;
import fi.codecrew.moya.model.Game;
import fi.codecrew.moya.model.GameCode;
import fi.codecrew.moya.model.LanEvent;
import fi.codecrew.moya.model.Place;

@Local
public interface GameBeanLocal {
	public GameCode getCode(Place place);
	public boolean accessCode(GameCode code, EventUser user);
	public List<Game> findAll(LanEvent event);
	public void saveOrCreateGame(Game game);
	public List<GameCode> findUserCodes(EventUser user);
	public void generateCodesForAllPlaces(Game game);
}