package jnpf.certificate.util;

import jnpf.permission.eum.v2.FtbStoreTagEnum;

import java.util.Objects;

public class StoreTypeUtils {
    public static String buildStoreType(String storeType) {
        if(Objects.isNull(storeType)){
            return "";
        }
        FtbStoreTagEnum storeTypeEnum = FtbStoreTagEnum.fromName(storeType);
        if(Objects.isNull(storeTypeEnum)){
            return "";
        }
        return storeTypeEnum.getLabel();
    }
}
