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:
parent
64b251773e
commit
e6b5f124b5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue