RepositoryImageInfo.java

/*
 * Copyright 2025 Global Crop Diversity Trust
 *
 * 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 org.genesys.server.model.elastic;

import java.time.Instant;
import java.util.UUID;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Getter
@Setter
public class RepositoryImageInfo {

	private Long id;
	private UUID uuid;

	private String createdBy;
	private Instant createdDate;
	private String lastModifiedBy;
	private Instant lastModifiedDate;
	private boolean active;
	private Integer version;

	@Field(type = FieldType.Text)
	private String originalFilename;
	@Field(type = FieldType.Keyword)
	private String extension;
	@Field(type = FieldType.Text)
	private String title;
	@Field(type = FieldType.Text)
	private String subject;
	@Field(type = FieldType.Text)
	private String description;
	@Field(type = FieldType.Text)
	private String creator;
	@Field(type = FieldType.Text)
	private String created;
	@Field(type = FieldType.Text)
	private String rightsHolder;
	@Field(type = FieldType.Text)
	private String accessRights;
	@Field(type = FieldType.Text)
	private String license;
	@Field(type = FieldType.Keyword)
	private String contentType;
	private String extent;
	@Field(type = FieldType.Text)
	private String bibliographicCitation;
	@Field(type = FieldType.Text)
	private String originalUrl;
	private Instant dateRetrieved;
	private String sha1Sum;
	private byte[] sha384;
	private String md5Sum;
	private int size;

	private int width;
	private int height;
	private String orientation;
	private String thumbnailPath;
	private String storagePath;
}