package org.skyve.impl.content.ejb;

import javax.ejb.Local;
import javax.ejb.Remote;

import org.skyve.content.AttachmentContent;
import org.skyve.content.BeanContent;
import org.skyve.content.SearchResults;

@Remote
@Local
public interface EJBRemoteContentManagerServer {
	public void put(BeanContent content) throws Exception;

	/**
	 * 
	 * @param content The AttachmentContent to put.
	 * @param index	whether to index of not
	 * @return	The contentId.
	 * @throws Exception
	 */
	public String put(AttachmentContent content, boolean index) throws Exception;

	public AttachmentContent get(String id) throws Exception;
	
	public void remove(BeanContent content) throws Exception;
	
	public void remove(String contentId) throws Exception;
	
	public SearchResults google(String search, int maxResults) throws Exception;
}

@@ -34,58 +34,8 @@
 b;%0A%0A
-import javax.ejb.Local;%0Aimport javax.ejb.Remote;%0A%0A
 impo
@@ -157,23 +157,8 @@
 s;%0A%0A
-@Remote%0A@Local%0A
 publ

Remove @Remote and @Local off of the content interface to allow the session bean definition in the target system to specify.