VotingBeanLocal.java 1.68 KB
/*
 * Copyright Codecrew Ry
 * 
 * All rights reserved.
 * 
 * This license applies to any software containing a notice placed by the 
 * copyright holder. Such software is herein referred to as the Software. 
 * This license covers modification, distribution and use of the Software. 
 * 
 * Any distribution and use in source and binary forms, with or without 
 * modification is not permitted without explicit written permission from the 
 * copyright owner. 
 * 
 * A non-exclusive royalty-free right is granted to the copyright owner of the 
 * Software to use, modify and distribute all modifications to the Software in 
 * future versions of the Software. 
 * 
 */
package fi.codecrew.moya.beans;

import java.util.List;

import javax.ejb.Local;

import fi.codecrew.moya.model.Compo;
import fi.codecrew.moya.model.CompoEntry;
import fi.codecrew.moya.model.CompoEntryFile;
import fi.codecrew.moya.model.Vote;

@Local
public interface VotingBeanLocal {
	public void createCompo(Compo c);

	public void addEntry(CompoEntry compoEntry, CompoEntryFile compoEntryFile);

	public List<Compo> getCompoList(boolean showHidden);

	public Compo getCompoById(Integer compoId);

	public Compo addEntry(CompoEntry entry);

	public CompoEntry saveEntry(CompoEntry entry);

	public List<CompoEntryFile> getEntryFiles(CompoEntry entry);

	public CompoEntryFile findEntryFile(Integer id);

	public CompoEntry findEntry(Integer entryId);

	public CompoEntry saveSort(CompoEntry e);

	public Vote saveVote(CompoEntry entry, Integer vote);

	//public CompoEntry findEntryWithFiles(Integer entryId);

	public Compo saveCompo(Compo compo);

	public void create(CompoEntryFile cef);

	public List<CompoEntry> getEntriesForCurrentUser();

}