DocumentManagementHardCoding.java

package com.tradecloud.domain.dms;

/**
 * Created by ds on 09/10/17.
 * <p>
 * This is for the hard coding required for DMS to work with consignments on the TMP/Lite Tradecloud.
 * <p>
 * There has to be a Document template named "Planned shipment" in the system. And if the costings must be save that document
 * template has to have a document type named "Planned Shipment Costing". Not ideal, but there were other places where checks
 * needed to be done based on the names.
 */

public enum DocumentManagementHardCoding {

    DOCUMENT_TYPE_COSTING("Planned Shipment Costing"),
    DOCUMENT_GROUP_TYPE("Planned shipment"),
    ORDER("ORDER"),
    COSTING_DOCUMENT_GROUP("Costing Document Group"),
    COSTING_SUMMARY_DOCUMENT_TYPE("Consignment Summary Report"),
    COSTING_UNIT_DOCUMENT_TYPE("Consignment Unit Price Report"),
    SHIPMENT_AIR("SHIPMENT AIR"),
    SHIPMENT_SEA("SHIPMENT SEA"),
    CONSIGNMENT_SEA("CONSIGNMENT SEA"),
    CONSIGNMENT_AIR("CONSIGNMENT AIR"),
    CONSIGNMENT_ROAD("CONSIGNMENT ROAD"),
    CUSTOMS_DECLARATION("CUSTOMS DECLARATION"),
    CLEARING_INSTRUCTION("CLEARING INSTRUCTION"),
    CLEARING_INSTRUCTION_UNSIGNED("CLEARING INSTRUCTION UNSIGNED"),
    CLEARING_INSTRUCTION_ANNEXURE_PDF("CLEARING INSTRUCTION ANNEXURE PDF"),
    CLEARING_INSTRUCTION_ANNEXURE_CSV("CLEARING INSTRUCTION ANNEXURE CSV"),
    FINANCE_60_DAY_REPORT("FINANCE 60 DAY REPORT"),
    EXPORT_SHIPMENT("EXPORT SHIPMENT"),
    EXPORT_CONSIGNMENT("EXPORT CONSIGNMENT"),
    CR1("CR1"),
    CI("CI"),
    PRODUCT("PRODUCT"),
    SUPPLIER("SUPPLIER");

    private final String documentManagementHardCodedName;

    DocumentManagementHardCoding(String documentManagementHardCodedName) {
        this.documentManagementHardCodedName = documentManagementHardCodedName;
    }

    public String getDocumentManagementHardCodedName() {
        return documentManagementHardCodedName;
    }
}