EventBeanLocal.java 1.19 KB
package fi.codecrew.moya.beans;

import java.util.List;

import javax.ejb.Local;

import fi.codecrew.moya.model.EventOrganiser;
import fi.codecrew.moya.model.LanEvent;
import fi.codecrew.moya.model.LanEventPrivateProperty;
import fi.codecrew.moya.model.LanEventProperty;
import fi.codecrew.moya.model.LanEventPropertyKey;

@Local
public interface EventBeanLocal {
	// static final String HTTP_URL_HOSTNAME = "HTTP_URL_HOSTNAME";

	LanEvent getEventByHostname(String hostname);

	LanEvent getCurrentEvent();

	LanEvent mergeChanges(LanEvent event);

	void create(LanEvent event);

	String flushCache();

	LanEventProperty getProperty(LanEventPropertyKey property);

	String getPropertyString(LanEventPropertyKey property);

	LanEventProperty saveOrCreateProperty(LanEventProperty property);

	EventOrganiser mergeChanges(EventOrganiser eventorg);

	List<LanEventPrivateProperty> getPrivateProperties();

	LanEventPrivateProperty saveOrCreatePrivateProperty(LanEventPrivateProperty privateProperty);

	long getPropertyLong(LanEventPropertyKey property);

	LanEvent getEventById(Integer id);

	LanEvent deleteProperty(LanEventProperty property);

	LanEvent deletePrivateProperty(LanEventPrivateProperty property);

}