81: Allow the creation and use of expressions on multi column in TDM portlet
Updated FilterSession Task-Url: https://support.d4science.org/issues/81 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@114740 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
57d16e4b78
commit
fc45f8c186
|
@ -88,7 +88,7 @@ public class SessionUtil {
|
|||
.getAttribute(ScopeHelper.USERNAME_ATTRIBUTE);
|
||||
ASLSession session;
|
||||
if (username == null) {
|
||||
/*logger.warn("no user found in session, using test one");*/
|
||||
logger.warn("no user found in session, use test user");
|
||||
throw new TDGWTSessionExpiredException("Session Expired!");
|
||||
/*
|
||||
// Remove comment for Test
|
||||
|
|
|
@ -5417,10 +5417,10 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
aslSession.getUsername(), aslSession.getScope()));
|
||||
TabularDataService service = TabularDataServiceFactory.getService();
|
||||
|
||||
checkTRId(filterColumnSession.getColumn().getTrId());
|
||||
checkTRId(filterColumnSession.getTrId());
|
||||
|
||||
TabularResourceId tabularResourceId = new TabularResourceId(
|
||||
Long.valueOf(filterColumnSession.getColumn().getTrId()
|
||||
Long.valueOf(filterColumnSession.getTrId()
|
||||
.getId()));
|
||||
TabularResource tabularResource = service
|
||||
.getTabularResource(tabularResourceId);
|
||||
|
@ -5445,8 +5445,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
logger.debug("Filter Column on service: TaskId " + trTask.getId());
|
||||
|
||||
TaskWrapper taskWrapper = new TaskWrapper(trTask,
|
||||
UIOperationsId.FilterColumn, filterColumnSession
|
||||
.getColumn().getTrId());
|
||||
UIOperationsId.FilterColumn, filterColumnSession.getTrId());
|
||||
SessionUtil.setStartedTask(session, taskWrapper);
|
||||
return trTask.getId().getValue();
|
||||
|
||||
|
|
|
@ -2,48 +2,51 @@ package org.gcube.portlets.user.td.gwtservice.shared.tr.column;
|
|||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.expression.C_Expression;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author giancarlo
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
* @author giancarlo email: <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class FilterColumnSession implements Serializable{
|
||||
|
||||
public class FilterColumnSession implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -5362632291599472352L;
|
||||
private ColumnData column;
|
||||
private TRId trId;
|
||||
private C_Expression cexpression;
|
||||
|
||||
public FilterColumnSession(){
|
||||
|
||||
|
||||
public FilterColumnSession() {
|
||||
|
||||
}
|
||||
|
||||
public FilterColumnSession(ColumnData column, C_Expression cexpression){
|
||||
this.column=column;
|
||||
this.cexpression=cexpression;
|
||||
|
||||
public FilterColumnSession(TRId trId, C_Expression cexpression) {
|
||||
super();
|
||||
this.trId = trId;
|
||||
this.cexpression = cexpression;
|
||||
}
|
||||
|
||||
|
||||
public ColumnData getColumn() {
|
||||
return column;
|
||||
|
||||
public TRId getTrId() {
|
||||
return trId;
|
||||
}
|
||||
public void setColumn(ColumnData column) {
|
||||
this.column = column;
|
||||
|
||||
public void setTrId(TRId trId) {
|
||||
this.trId = trId;
|
||||
}
|
||||
|
||||
public C_Expression getCexpression() {
|
||||
return cexpression;
|
||||
}
|
||||
|
||||
public void setCexpression(C_Expression cexpression) {
|
||||
this.cexpression = cexpression;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ColumnFilterSession [column=" + column + ", cexpression="
|
||||
return "FilterColumnSession [trId=" + trId + ", cexpression="
|
||||
+ cexpression + "]";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue