package eu.dnetlib.enabling.ui.common.services;

import java.util.List;

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

import eu.dnetlib.enabling.ui.common.beans.GraphInfo;
import eu.dnetlib.enabling.ui.common.beans.ManagerRuleInfo;
import eu.dnetlib.enabling.ui.common.beans.ProcessHtmlInfo;
import eu.dnetlib.enabling.ui.common.beans.ProcessInfo;




public interface ManagerService extends RemoteService { 
	public List<ProcessInfo> listOrchestrationProcess(String rsId, int maxProcesses) throws MyGwtException;;
	public ProcessHtmlInfo obtainHtmlProcess(String pid) throws MyGwtException;
	public String obtainHtmlProcessNode(String pid, String nodeId) throws MyGwtException;
	public List<String> listCategoryRules() throws MyGwtException;
	public List<ManagerRuleInfo> listRules(String category) throws MyGwtException;
	public Boolean updateRule(ManagerRuleInfo info) throws MyGwtException;
	public ProcessHtmlInfo verifyRule(String ruleId) throws MyGwtException;
	public ProcessHtmlInfo asImageMap(String ruleId) throws MyGwtException;
	public Boolean reactivateRule(String ruleId, String action) throws MyGwtException;
	public List<GraphInfo> listSavedGraphs(String ruleId) throws MyGwtException;
	public ProcessHtmlInfo asSavedImageMap(String ruleId, int i) throws MyGwtException;
}
