From 0e367bc7ce95c13a9a4db24549ac8f55d6ec7d1b Mon Sep 17 00:00:00 2001 From: kaloyane <kaloyane> Date: Mon, 5 Sep 2011 09:57:41 +0000 Subject: [PATCH] [LMS-2509] make GWT happy SVN: 22787 --- .../shared/basic/dto/DeletedEntity.java | 89 +++++++++++++++++++ .../translator/DeletedEntityTranslator.java | 61 +------------ 2 files changed, 90 insertions(+), 60 deletions(-) create mode 100644 openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DeletedEntity.java diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DeletedEntity.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DeletedEntity.java new file mode 100644 index 00000000000..c999fb391dc --- /dev/null +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/basic/dto/DeletedEntity.java @@ -0,0 +1,89 @@ +/* + * Copyright 2011 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.shared.basic.dto; + +import ch.systemsx.cisd.openbis.generic.shared.basic.IEntityInformationHolderWithIdentifier; + +/** + * @author Kaloyan Enimanev + */ +public class DeletedEntity implements IEntityInformationHolderWithIdentifier +{ + + private static final long serialVersionUID = 1L; + + private Long id; + + private String code; + + private String permId; + + private String identifier; + + private BasicEntityType entityType; + + private EntityKind entityKind; + + // GTW + @SuppressWarnings("unused") + private DeletedEntity() + { + + } + + public DeletedEntity(Long id, String code, String permId, String identifier, + BasicEntityType entityType, EntityKind entityKind) + { + this.id = id; + this.code = code; + this.permId = permId; + this.identifier = identifier; + this.entityType = entityType; + this.entityKind = entityKind; + } + + public String getIdentifier() + { + return identifier; + } + + public BasicEntityType getEntityType() + { + return entityType; + } + + public EntityKind getEntityKind() + { + return entityKind; + } + + public Long getId() + { + return id; + } + + public String getCode() + { + return code; + } + + public String getPermId() + { + return permId; + } + +} diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/translator/DeletedEntityTranslator.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/translator/DeletedEntityTranslator.java index 52d3302bf4f..bcadfbd6cf8 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/translator/DeletedEntityTranslator.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/translator/DeletedEntityTranslator.java @@ -20,6 +20,7 @@ import java.util.HashMap; import ch.systemsx.cisd.openbis.generic.shared.basic.IEntityInformationHolderWithIdentifier; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.BasicEntityType; +import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DeletedEntity; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityKind; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.PropertyType; import ch.systemsx.cisd.openbis.generic.shared.dto.DataSetTypePE; @@ -71,64 +72,4 @@ public class DeletedEntityTranslator } } - private static final class DeletedEntity implements IEntityInformationHolderWithIdentifier - { - - private static final long serialVersionUID = 1L; - - private final Long id; - - private final String code; - - private final String permId; - - private final String identifier; - - private final BasicEntityType entityType; - - private final EntityKind entityKind; - - DeletedEntity(Long id, String code, String permId, String identifier, - BasicEntityType entityType, EntityKind entityKind) - { - super(); - this.id = id; - this.code = code; - this.permId = permId; - this.identifier = identifier; - this.entityType = entityType; - this.entityKind = entityKind; - } - - public String getIdentifier() - { - return identifier; - } - - public BasicEntityType getEntityType() - { - return entityType; - } - - public EntityKind getEntityKind() - { - return entityKind; - } - - public Long getId() - { - return id; - } - - public String getCode() - { - return code; - } - - public String getPermId() - { - return permId; - } - } - } -- GitLab