package de.micromata.jira.rest.core.domain.customFields;


import org.apache.commons.lang3.StringUtils;

/**
 * Created by cschulc on 19.02.16.
 */
public enum CustomFieldType {
    // String Value Custom Fields
    URL("com.atlassian.jira.plugin.system.customfieldtypes:url", false),
    DATE("com.atlassian.jira.plugin.system.customfieldtypes:datepicker", false),
    DATETIME("com.atlassian.jira.plugin.system.customfieldtypes:datetime", false),
    TEXT("com.atlassian.jira.plugin.system.customfieldtypes:textfield", false),
    TEXTAREA("com.atlassian.jira.plugin.system.customfieldtypes:textarea", false),
    FLOAT("com.atlassian.jira.plugin.system.customfieldtypes:float", false),
    // Single ValueBean Custom Fields
    SELECT("com.atlassian.jira.plugin.system.customfieldtypes:select", true),
    RADIO("com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons", true),
    // Multi ValueBean Custom Fields
    MULTISELECT("com.atlassian.jira.plugin.system.customfieldtypes:multiselect", true),
    CHECKBOX("com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes", true),
    LABELS("com.atlassian.jira.plugin.system.customfieldtypes:labels", false),
    CASCADING("com.atlassian.jira.plugin.system.customfieldtypes:cascadingselect", true),
    USER("com.atlassian.jira.plugin.system.customfieldtypes:userpicker", false),
    MULTIUSER("com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker", false),
    PROJECT("com.atlassian.jira.plugin.system.customfieldtypes:project", false),
    VERSION("com.atlassian.jira.plugin.system.customfieldtypes:version", false),
    MULTIVERSION("com.atlassian.jira.plugin.system.customfieldtypes:multiversion", false),
    GROUP("com.atlassian.jira.plugin.system.customfieldtypes:grouppicker", false),
    MULTIGROUP("com.atlassian.jira.plugin.system.customfieldtypes:multigrouppicker", false),
    UNKNWON("unknown.custom.field.type", false);

    CustomFieldType(String jiraName, boolean hasAllowedValues) {
        this.jiraName = jiraName;
        this.hasAllowedValues = hasAllowedValues;
    }

    public String jiraName = StringUtils.EMPTY;

    public boolean hasAllowedValues = false;

    public String getJiraName() {
        return jiraName;
    }

    public boolean isHasAllowedValues() {
        return hasAllowedValues;
    }
}

@@ -1877,10 +1877,10 @@
 UNKN
-W
 O
+W
 N(%22u

fix spelling of 'unknown'