Added Uri Resolver
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@100794 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
743853e44f
commit
ac3dcc4934
|
@ -11,5 +11,6 @@ package org.gcube.portlets.user.td.widgetcommonevent.client.type;
|
|||
*/
|
||||
public enum DataViewRequestType {
|
||||
OPEN,
|
||||
CLOSE;
|
||||
CLOSE,
|
||||
UPDATE_TAB_NAME;
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ public class TabularResourceDataView extends DataView {
|
|||
private static final long serialVersionUID = -8615122839978608904L;
|
||||
|
||||
private TRId trId;
|
||||
private String tabName;
|
||||
|
||||
|
||||
public TabularResourceDataView() {
|
||||
|
@ -25,6 +26,14 @@ public class TabularResourceDataView extends DataView {
|
|||
super();
|
||||
dataViewType = DataViewType.TABULARRESOURCE;
|
||||
this.trId = trId;
|
||||
this.tabName = null;
|
||||
}
|
||||
|
||||
public TabularResourceDataView(TRId trId, String tabName) {
|
||||
super();
|
||||
dataViewType = DataViewType.TABULARRESOURCE;
|
||||
this.trId = trId;
|
||||
this.tabName = tabName;
|
||||
}
|
||||
|
||||
public TRId getTrId() {
|
||||
|
@ -35,11 +44,21 @@ public class TabularResourceDataView extends DataView {
|
|||
this.trId = trId;
|
||||
}
|
||||
|
||||
public String getTabName() {
|
||||
return tabName;
|
||||
}
|
||||
|
||||
public void setTabName(String tabName) {
|
||||
this.tabName = tabName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TabularResourceDataView [dataViewType="+dataViewType+", trId=" + trId + "]";
|
||||
return "TabularResourceDataView [trId=" + trId + ", tabName=" + tabName
|
||||
+ "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
package org.gcube.portlets.user.td.widgetcommonevent.shared.uriresolver;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author giancarlo
|
||||
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public enum ApplicationType {
|
||||
GIS("GIS");
|
||||
|
||||
/**
|
||||
* @param text
|
||||
*/
|
||||
private ApplicationType(final String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
private final String id;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return id;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue