package com.rjlresaka.model;

import java.io.Serializable;

public class StoredAttachment implements Serializable {
    private static final long serialVersionUID = 1L;

    private String originalName;
    private String storagePath;
    private String contentType;
    private long size;

    public String getOriginalName() {
        return originalName;
    }

    public void setOriginalName(String originalName) {
        this.originalName = originalName;
    }

    public String getStoragePath() {
        return storagePath;
    }

    public void setStoragePath(String storagePath) {
        this.storagePath = storagePath;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public boolean isImage() {
        return contentType != null && contentType.startsWith("image/");
    }
}
