Updated TRId

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@100931 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-10-23 16:22:42 +00:00
parent 64b251773e
commit e6b5f124b5
1 changed files with 6 additions and 6 deletions

View File

@ -40,7 +40,7 @@ public class ColumnTypeCodeStore implements Serializable {
public static ArrayList<ColumnTypeCodeElement> getColumnTypeCodes(TRId trId) {
store = new ArrayList<ColumnTypeCodeElement>();
if (trId.getTabularResourceType().compareTo("Generic") == 0) {
if (trId.getTableTypeName().compareTo("Generic") == 0) {
store.add(annotation);
store.add(attribute);
store.add(measure);
@ -50,13 +50,13 @@ public class ColumnTypeCodeStore implements Serializable {
store.add(dimension);
store.add(timeDimension);
} else {
if (trId.getTabularResourceType().compareTo("Codelist") == 0) {
if (trId.getTableTypeName().compareTo("Codelist") == 0) {
store.add(annotation);
store.add(code);
store.add(codeName);
store.add(codeDescription);
} else {
if (trId.getTabularResourceType().compareTo("Dataset") == 0) {
if (trId.getTableTypeName().compareTo("Dataset") == 0) {
store.add(attribute);
store.add(measure);
store.add(dimension);
@ -75,7 +75,7 @@ public class ColumnTypeCodeStore implements Serializable {
public static ArrayList<ColumnTypeCodeElement> getColumnTypeCodesForAddColumn(TRId trId) {
store = new ArrayList<ColumnTypeCodeElement>();
if (trId.getTabularResourceType().compareTo("Generic") == 0) {
if (trId.getTableTypeName().compareTo("Generic") == 0) {
store.add(annotation);
store.add(attribute);
store.add(measure);
@ -83,13 +83,13 @@ public class ColumnTypeCodeStore implements Serializable {
store.add(codeName);
store.add(codeDescription);
} else {
if (trId.getTabularResourceType().compareTo("Codelist") == 0) {
if (trId.getTableTypeName().compareTo("Codelist") == 0) {
store.add(annotation);
store.add(code);
store.add(codeName);
store.add(codeDescription);
} else {
if (trId.getTabularResourceType().compareTo("Dataset") == 0) {
if (trId.getTableTypeName().compareTo("Dataset") == 0) {
store.add(attribute);
store.add(measure);
} else {