diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/DisplayedOrSelectedDatasetCriteria.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/DisplayedOrSelectedDatasetCriteria.java index e9fd8517c1d87166d4e5dc0572e981952ce47777..14a318c1eaa4f4b8eeedb8bfcb6c84a04d21c081 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/DisplayedOrSelectedDatasetCriteria.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/DisplayedOrSelectedDatasetCriteria.java @@ -71,33 +71,4 @@ public final class DisplayedOrSelectedDatasetCriteria implements IsSerializable private DisplayedOrSelectedDatasetCriteria() { } - - @SuppressWarnings("unused") - // GWT only - private TableExportCriteria<ExternalData> getDisplayedItemsOrNull() - { - return displayedItemsOrNull; - } - - @SuppressWarnings("unused") - // GWT only - private void setDisplayedItemsOrNull(TableExportCriteria<ExternalData> displayedItemsOrNull) - { - this.displayedItemsOrNull = displayedItemsOrNull; - } - - @SuppressWarnings("unused") - // GWT only - private List<String> getSelectedDatasetCodesOrNull() - { - return selectedDatasetCodesOrNull; - } - - @SuppressWarnings("unused") - // GWT only - private void setSelectedDatasetCodesOrNull(List<String> selectedDatasetCodesOrNull) - { - this.selectedDatasetCodesOrNull = selectedDatasetCodesOrNull; - } - } diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/DisplayedOrSelectedIdHolderCriteria.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/DisplayedOrSelectedIdHolderCriteria.java index aa775de11f1b9381ab4497c60470267355b48dc7..e79b5d120d38d02d9c2d22128d158a791a942028 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/DisplayedOrSelectedIdHolderCriteria.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/DisplayedOrSelectedIdHolderCriteria.java @@ -1 +1 @@ -/* * Copyright 2009 ETH Zuerich, CISD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package ch.systemsx.cisd.openbis.generic.client.web.client.dto; import java.util.List; import com.google.gwt.user.client.rpc.IsSerializable; import ch.systemsx.cisd.openbis.generic.shared.basic.IIdHolder; import ch.systemsx.cisd.openbis.generic.shared.basic.TechId; /** * Defines a set of {@link IIdHolder}s by either enumerating their ids or providing the grid * configuration for it (together with the cache identifier). * * @author Izabela Adamczyk */ public final class DisplayedOrSelectedIdHolderCriteria<T extends IIdHolder> implements IsSerializable { private TableExportCriteria<T> displayedItemsOrNull; private List<TechId> selectedItemsTechIdsOrNull; public static <T extends IIdHolder> DisplayedOrSelectedIdHolderCriteria<T> createSelectedItems( List<T> displayedItems) { return new DisplayedOrSelectedIdHolderCriteria<T>(null, TechId.createList(displayedItems)); } public static <T extends IIdHolder> DisplayedOrSelectedIdHolderCriteria<T> createDisplayedItems( TableExportCriteria<T> tableExportCriteria) { return new DisplayedOrSelectedIdHolderCriteria<T>(tableExportCriteria, null); } private DisplayedOrSelectedIdHolderCriteria(TableExportCriteria<T> displayedItemsOrNull, List<TechId> selectedItemsTechIdOrNull) { this.displayedItemsOrNull = displayedItemsOrNull; selectedItemsTechIdsOrNull = selectedItemsTechIdOrNull; } public List<TechId> tryGetSelectedItems() { return selectedItemsTechIdsOrNull; } public TableExportCriteria<T> tryGetDisplayedItems() { return displayedItemsOrNull; } // GWT only @Deprecated private DisplayedOrSelectedIdHolderCriteria() { } // GWT only @SuppressWarnings("unused") @Deprecated private TableExportCriteria<T> getDisplayedItemsOrNull() { return displayedItemsOrNull; } // GWT only @SuppressWarnings("unused") @Deprecated private void setDisplayedItemsOrNull(TableExportCriteria<T> displayedItemsOrNull) { this.displayedItemsOrNull = displayedItemsOrNull; } // GWT only @SuppressWarnings("unused") @Deprecated private List<TechId> getSelectedItemsTechIdsOrNull() { return selectedItemsTechIdsOrNull; } // GWT only @SuppressWarnings("unused") @Deprecated private void setSelectedItemsTechIdsOrNull(List<TechId> selectedItemsTechIdsOrNull) { this.selectedItemsTechIdsOrNull = selectedItemsTechIdsOrNull; } } +/* * Copyright 2009 ETH Zuerich, CISD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package ch.systemsx.cisd.openbis.generic.client.web.client.dto; import java.util.List; import com.google.gwt.user.client.rpc.IsSerializable; import ch.systemsx.cisd.openbis.generic.shared.basic.IIdHolder; import ch.systemsx.cisd.openbis.generic.shared.basic.TechId; /** * Defines a set of {@link IIdHolder}s by either enumerating their ids or providing the grid * configuration for it (together with the cache identifier). * * @author Izabela Adamczyk */ public final class DisplayedOrSelectedIdHolderCriteria<T extends IIdHolder> implements IsSerializable { private TableExportCriteria<T> displayedItemsOrNull; private List<TechId> selectedItemsTechIdsOrNull; public static <T extends IIdHolder> DisplayedOrSelectedIdHolderCriteria<T> createSelectedItems( List<T> displayedItems) { return new DisplayedOrSelectedIdHolderCriteria<T>(null, TechId.createList(displayedItems)); } public static <T extends IIdHolder> DisplayedOrSelectedIdHolderCriteria<T> createDisplayedItems( TableExportCriteria<T> tableExportCriteria) { return new DisplayedOrSelectedIdHolderCriteria<T>(tableExportCriteria, null); } private DisplayedOrSelectedIdHolderCriteria(TableExportCriteria<T> displayedItemsOrNull, List<TechId> selectedItemsTechIdOrNull) { this.displayedItemsOrNull = displayedItemsOrNull; selectedItemsTechIdsOrNull = selectedItemsTechIdOrNull; } public List<TechId> tryGetSelectedItems() { return selectedItemsTechIdsOrNull; } public TableExportCriteria<T> tryGetDisplayedItems() { return displayedItemsOrNull; } // GWT only @Deprecated private DisplayedOrSelectedIdHolderCriteria() { } } diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/TableModelReference.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/TableModelReference.java index aabba599c978db1f5e37e7600c73462129d79012..1cf3aa2e43675d268a8054816879ffe8ce1640db 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/TableModelReference.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/dto/TableModelReference.java @@ -57,19 +57,4 @@ public class TableModelReference implements IsSerializable private TableModelReference() { } - - // GWT only - @SuppressWarnings("unused") - private void setResultSetKey(String resultSetKey) - { - this.resultSetKey = resultSetKey; - } - - // GWT only - @SuppressWarnings("unused") - private void setHeader(List<TableModelColumnHeader> header) - { - this.header = header; - } - } diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DatastoreServiceDescription.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DatastoreServiceDescription.java index 3bdb92fedb888ae00ecaf95aaf7b50cd47706eb9..c3bf61d8a0f4fec63c71b0c46c41b511d609a403 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DatastoreServiceDescription.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DatastoreServiceDescription.java @@ -87,32 +87,6 @@ public class DatastoreServiceDescription implements IsSerializable, Serializable this.downloadURL = downloadURL; } - // for GWT serialization - - @SuppressWarnings("unused") - private void setKey(String key) - { - this.key = key; - } - - @SuppressWarnings("unused") - private void setLabel(String label) - { - this.label = label; - } - - @SuppressWarnings("unused") - private void setDatasetTypeCodes(String[] datasetTypeCodes) - { - this.datasetTypeCodes = datasetTypeCodes; - } - - @SuppressWarnings("unused") - private void setDatastoreCode(String datastoreCode) - { - this.datastoreCode = datastoreCode; - } - @Override public String toString() { diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DateTableCell.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DateTableCell.java index b3bd7f1ec35576bec21dd7c8733d224eb3921993..b3ce05262635f0da95d9bcbe61397d8b5530e3e0 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DateTableCell.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DateTableCell.java @@ -79,12 +79,4 @@ public class DateTableCell implements ISerializableComparable private DateTableCell() { } - - // GWT only - @SuppressWarnings("unused") - private void setDateTime(long dateTime) - { - this.dateTime = dateTime; - } - } diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/ImageTableCell.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/ImageTableCell.java index 4177880930675a9f8ce745b0e433d625509601e6..1c8bc5ea0e7e2af7a7983b75942153238a4dfc5e 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/ImageTableCell.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/ImageTableCell.java @@ -101,26 +101,5 @@ public class ImageTableCell implements ISerializableComparable private ImageTableCell() { } - - // GWT only - @SuppressWarnings("unused") - private void setPath(String path) - { - this.path = path; - } - - // GWT only - @SuppressWarnings("unused") - private void setMaxThumbnailWidth(int maxThumbnailWidth) - { - this.maxThumbnailWidth = maxThumbnailWidth; - } - - // GWT only - @SuppressWarnings("unused") - private void setMaxThumbnailHeight(int maxThumbnailHeight) - { - this.maxThumbnailHeight = maxThumbnailHeight; - } } diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/NumberTableCell.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/NumberTableCell.java index 358f66bf31a186a338ef78021c014c5deb22b563..9dd607b1509e68fe34557d88188dd04fcb8f33bc 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/NumberTableCell.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/NumberTableCell.java @@ -75,13 +75,4 @@ public class NumberTableCell implements ISerializableComparable private NumberTableCell() { } - - // GWT only - @SuppressWarnings("unused") - private void setNumber(double number) - { - this.number = number; - } - - } diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/StringTableCell.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/StringTableCell.java index eef53885a0bf0e5e3648a744e1798a09733406ab..f1f55fe59e14b00778fd2ed83b8ec029cc297af9 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/StringTableCell.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/StringTableCell.java @@ -68,13 +68,4 @@ public class StringTableCell implements ISerializableComparable private StringTableCell() { } - - // GWT only - @SuppressWarnings("unused") - private void setString(String string) - { - this.string = string; - } - - } diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/TableModel.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/TableModel.java index 0b653bf852d7e5a742fca582b5568ea3f80c2c0e..951b0ffbe0285b19d7a6b3729f2cc34b0847b622 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/TableModel.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/TableModel.java @@ -65,18 +65,4 @@ public class TableModel implements IsSerializable, Serializable private TableModel() { } - - // GWT only - @SuppressWarnings("unused") - private void setRows(List<TableModelRow> rows) - { - this.rows = rows; - } - - // GWT only - @SuppressWarnings("unused") - private void setHeader(List<TableModelColumnHeader> header) - { - this.header = header; - } } diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/TableModelRow.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/TableModelRow.java index 8c4e7d557d318be0ce3a8a5c02d8f005507caf6f..64e8155b7666e07f72e865854f0492886293fde1 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/TableModelRow.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/TableModelRow.java @@ -50,12 +50,4 @@ public class TableModelRow implements IsSerializable, Serializable private TableModelRow() { } - - // GWT only - @SuppressWarnings("unused") - private void setValues(List<ISerializableComparable> values) - { - this.values = values; - } - }