com.magmutual.nmpcf.view.XMLUploadView.java Source code

Java tutorial

Introduction

Here is the source code for com.magmutual.nmpcf.view.XMLUploadView.java

Source

package com.magmutual.nmpcf.view;

import com.magmutual.nmpcf.model.NMPCFPayments;

import java.io.Serializable;

import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;

/**
 * @author tblanks
 */
@Component("view")
@Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS)
public class XMLUploadView implements Serializable {

    private String errors;
    private String uploadedFile;
    private String convertedXMLFile;
    private NMPCFPayments payments = null;
    private static final String headers = "Insured Name,Received Date,NmPhyLicense,PolicyNumber,"
            + "RateClass,ISOspecialty,BeginningDate,EndingDate,Surcharge,BaseSurcharge,"
            + "ExperienceModifier,SSNFEDID,StateLicensure,Gender,OccupationCode,yrGraduated,"
            + "ProfessionalSchool,DOB,Description,Entity";

    public XMLUploadView() {
        reset();
    }

    public void reset() {
        this.errors = "No Errors Found.";
        this.uploadedFile = "No Content Uploaded.";
        this.convertedXMLFile = "";
        this.payments = null;
    }

    public void setPayments(NMPCFPayments payments) {
        this.payments = payments;
    }

    public NMPCFPayments getPayments() {
        return payments;
    }

    public String getErrors() {
        return errors;
    }

    public void setErrors(String errors) {
        this.errors = errors;
    }

    public String getUploadedFile() {
        return uploadedFile;
    }

    public void setUploadedFile(String uploadedFile) {
        this.uploadedFile = uploadedFile;
    }

    public String getConvertedXMLFile() {
        return convertedXMLFile;
    }

    public void setConvertedXMLFile(String convertedXMLFile) {
        this.convertedXMLFile = convertedXMLFile;
    }

    public String getColumnHeaders() {
        return headers;
    }

}