package com.eshore.gringotts.web.domain.resource.entity.type;

import com.eshore.gringotts.core.Constants;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = Constants.TABLE_PREFIX + "resource_type_ftp")
public class FtpResourceType extends ResourceType {
    @Column(nullable = false)
    private String url;
    private String username;
    private String password;
    private String path;
    private String regexFilter;

    @Override
    public Type getResourceType() {
        return Type.FTP;
    }
}
