PollBeanLocal.java 584 Bytes
package fi.codecrew.moya.beans;

import java.util.List;

import javax.ejb.Local;

import fi.codecrew.moya.model.Poll;
import fi.codecrew.moya.model.PollAnswer;
import fi.codecrew.moya.model.PollQuestion;
import fi.codecrew.moya.model.PossibleAnswer;

@Local
public interface PollBeanLocal {

	boolean createAnswers(List<PollAnswer> answers);

	PossibleAnswer findPossibleAnwerById(Integer id);

	void createPoll(Poll poll);

	void createAnswers(PollQuestion q1);

	Poll find(Integer pollId);

	Poll savePoll(Poll poll);

	List<Poll> findAllPolls();

	List<Poll> findUsablePolls();

}