package eu.dnetlib.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import eu.dnetlib.efg1914.authoring.users.User;
import eu.dnetlib.efg1914.commons.store.XMLStoreException;

//@RemoteServiceRelativePath("LoginService")
@RemoteServiceRelativePath("springGwtServices/LoginService")
public interface LoginService extends RemoteService {

	public String login(String name, String password, boolean RememberMe) throws XMLStoreException;

 
	public boolean checkLogin() throws XMLStoreException;

	public void logout() throws XMLStoreException;

	public User getUser();


	boolean isValid();


	int getSessionMaxInterval();

}
