001/* 002 * Copyright 2020 Global Biodiversity Information Facility (GBIF) 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.gbif.api.model.collections.view; 017 018import org.gbif.api.model.collections.Collection; 019 020import com.fasterxml.jackson.annotation.JsonUnwrapped; 021 022public class CollectionView { 023 024 @JsonUnwrapped private Collection collection; 025 026 private String institutionName; 027 private String institutionCode; 028 029 public CollectionView() {} 030 031 public CollectionView(Collection collection) { 032 this.collection = collection; 033 } 034 035 public Collection getCollection() { 036 return collection; 037 } 038 039 public void setCollection(Collection collection) { 040 this.collection = collection; 041 } 042 043 public String getInstitutionName() { 044 return institutionName; 045 } 046 047 public void setInstitutionName(String institutionName) { 048 this.institutionName = institutionName; 049 } 050 051 public String getInstitutionCode() { 052 return institutionCode; 053 } 054 055 public void setInstitutionCode(String institutionCode) { 056 this.institutionCode = institutionCode; 057 } 058}