2014-01-20 11:30:20 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.portlets.user.td.expressionwidget.client.rpc;
|
|
|
|
|
2015-04-14 15:13:58 +02:00
|
|
|
import java.util.ArrayList;
|
|
|
|
|
2014-08-27 16:47:50 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTServiceException;
|
2015-04-21 16:54:35 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.rule.AppliedRulesResponseData;
|
2015-05-27 18:31:06 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.rule.ApplyTableRuleSession;
|
2015-04-22 18:56:08 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.rule.DetachColumnRulesSession;
|
2015-05-28 17:16:55 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.rule.DetachTableRulesSession;
|
2015-04-17 18:52:37 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.rule.RuleScopeType;
|
2015-04-23 13:30:51 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.rule.ApplyAndDetachColumnRulesSession;
|
2015-05-19 18:53:26 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.rule.description.RuleDescriptionData;
|
2015-03-31 18:06:05 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.AddColumnSession;
|
2014-08-27 16:47:50 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.FilterColumnSession;
|
2014-09-12 18:54:37 +02:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.ReplaceColumnByExpressionSession;
|
2015-04-21 16:54:35 +02:00
|
|
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
2015-04-17 18:52:37 +02:00
|
|
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
2014-01-20 11:30:20 +01:00
|
|
|
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteService;
|
|
|
|
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Implements the basic interfaces generate and submit Expression on service.
|
|
|
|
*
|
2017-05-15 12:49:43 +02:00
|
|
|
* Allows Generate Expression
|
2014-01-20 11:30:20 +01:00
|
|
|
*
|
2017-05-15 12:49:43 +02:00
|
|
|
*
|
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2014-01-20 11:30:20 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
@RemoteServiceRelativePath("ExpressionService")
|
|
|
|
public interface ExpressionService extends RemoteService {
|
|
|
|
|
2017-05-15 12:49:43 +02:00
|
|
|
public String startFilterColumn(FilterColumnSession filterColumnSession) throws TDGWTServiceException;
|
2015-03-31 18:06:05 +02:00
|
|
|
|
|
|
|
public String startReplaceColumnByExpression(
|
2017-05-15 12:49:43 +02:00
|
|
|
ReplaceColumnByExpressionSession replaceColumnByExpressionColumnSession) throws TDGWTServiceException;
|
2015-03-31 18:06:05 +02:00
|
|
|
|
2017-05-15 12:49:43 +02:00
|
|
|
public String startAddColumn(AddColumnSession addColumnSession) throws TDGWTServiceException;
|
2015-04-15 13:32:02 +02:00
|
|
|
|
2017-05-15 12:49:43 +02:00
|
|
|
public ArrayList<RuleDescriptionData> getRules() throws TDGWTServiceException;
|
2014-01-20 11:30:20 +01:00
|
|
|
|
2017-05-15 12:49:43 +02:00
|
|
|
public ArrayList<RuleDescriptionData> getRules(RuleScopeType scope) throws TDGWTServiceException;
|
2015-05-19 18:53:26 +02:00
|
|
|
|
2017-05-15 12:49:43 +02:00
|
|
|
public ArrayList<RuleDescriptionData> getApplicableBaseColumnRules(ColumnData columnData)
|
2015-04-23 16:13:15 +02:00
|
|
|
throws TDGWTServiceException;
|
2017-05-15 12:49:43 +02:00
|
|
|
|
|
|
|
public String saveRule(RuleDescriptionData ruleDescriptionData) throws TDGWTServiceException;
|
|
|
|
|
|
|
|
public void updateColumnRule(RuleDescriptionData ruleDescriptionData) throws TDGWTServiceException;
|
|
|
|
|
2015-04-17 12:25:30 +02:00
|
|
|
public void removeRulesById(ArrayList<RuleDescriptionData> rules) throws TDGWTServiceException;
|
2017-05-15 12:49:43 +02:00
|
|
|
|
2015-04-23 13:30:51 +02:00
|
|
|
public String startApplyAndDetachColumnRules(ApplyAndDetachColumnRulesSession applyColumnRulesSession)
|
2015-04-17 18:52:37 +02:00
|
|
|
throws TDGWTServiceException;
|
2017-05-15 12:49:43 +02:00
|
|
|
|
|
|
|
public void setDetachColumnRules(DetachColumnRulesSession detachColumnRulesSession) throws TDGWTServiceException;
|
|
|
|
|
|
|
|
public void setDetachTableRules(DetachTableRulesSession detachTableRulesSession) throws TDGWTServiceException;
|
|
|
|
|
|
|
|
public String startApplyTableRule(ApplyTableRuleSession applyTableRuleSession) throws TDGWTServiceException;
|
|
|
|
|
|
|
|
public AppliedRulesResponseData getActiveRulesByTabularResourceId(TRId trId) throws TDGWTServiceException;
|
|
|
|
|
2014-01-20 11:30:20 +01:00
|
|
|
}
|