81: Allow the creation and use of expressions on multi column in TDM portlet
Task-Url: https://support.d4science.org/issues/81 Added Detach rule on table git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@115126 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
fbc19f9e7e
commit
dea1958869
|
@ -9,6 +9,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTServiceExcept
|
|||
import org.gcube.portlets.user.td.gwtservice.shared.rule.AppliedRulesResponseData;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.ApplyTableRuleSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.DetachColumnRulesSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.DetachTableRulesSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.RuleScopeType;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.ApplyAndDetachColumnRulesSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.description.RuleDescriptionData;
|
||||
|
@ -78,6 +79,10 @@ public interface ExpressionService extends RemoteService {
|
|||
public void setDetachColumnRules(DetachColumnRulesSession detachColumnRulesSession)
|
||||
throws TDGWTServiceException;
|
||||
|
||||
public void setDetachTableRules(DetachTableRulesSession detachTableRulesSession)
|
||||
throws TDGWTServiceException;
|
||||
|
||||
|
||||
public String startApplyTableRule(ApplyTableRuleSession applyTableRuleSession)
|
||||
throws TDGWTServiceException;
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.rule.AppliedRulesResponseDat
|
|||
import org.gcube.portlets.user.td.gwtservice.shared.rule.ApplyAndDetachColumnRulesSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.ApplyTableRuleSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.DetachColumnRulesSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.DetachTableRulesSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.RuleScopeType;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.description.RuleDescriptionData;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.AddColumnSession;
|
||||
|
@ -68,6 +69,10 @@ public interface ExpressionServiceAsync {
|
|||
DetachColumnRulesSession detachColumnRulesSession,
|
||||
AsyncCallback<Void> callback);
|
||||
|
||||
void setDetachTableRules(
|
||||
DetachTableRulesSession detachTableRulesSession,
|
||||
AsyncCallback<Void> callback);
|
||||
|
||||
void startApplyTableRule(
|
||||
ApplyTableRuleSession applyTableRuleSession,
|
||||
AsyncCallback<String> callback);
|
||||
|
|
|
@ -33,6 +33,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.rule.AppliedRulesResponseDat
|
|||
import org.gcube.portlets.user.td.gwtservice.shared.rule.ApplyAndDetachColumnRulesSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.ApplyTableRuleSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.DetachColumnRulesSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.DetachTableRulesSession;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.RuleScopeType;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.rule.description.RuleDescriptionData;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.AddColumnSession;
|
||||
|
@ -674,4 +675,28 @@ public class ExpressionServiceImpl extends TDGWTServiceImpl implements
|
|||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void setDetachTableRules(
|
||||
DetachTableRulesSession detachTableRulesSession)
|
||||
throws TDGWTServiceException {
|
||||
try {
|
||||
HttpSession session = this.getThreadLocalRequest().getSession();
|
||||
setDetachTableRules(detachTableRulesSession, session);
|
||||
return;
|
||||
|
||||
} catch (TDGWTServiceException e) {
|
||||
throw e;
|
||||
} catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
throw new TDGWTServiceException(e.getLocalizedMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue