All Downloads are FREE. Search and download functionalities are using the official Maven repository.

model.events.SymphonyElementsAction Maven / Gradle / Ivy

There is a newer version: 1.3.9
Show newest version
package model.events;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.Map;

@JsonIgnoreProperties(ignoreUnknown = true)
public class SymphonyElementsAction {
    private Map formStream;
    private Map stream;
    private String formId;
    private Map formValues;

    public String getStreamId() {
        if (stream != null && stream.get("id") != null) {
            return stream.get("id");
        }
        if (formStream != null && formStream.get("streamId") != null) {
            return formStream.get("streamId")
                .replaceAll("=", "")
                .replaceAll("/", "_")
                .replaceAll("\\+", "-");
        }
        return null;
    }

    public String getStreamType() {
        if (stream != null && stream.get("type") != null) {
            return stream.get("type");
        }
        return null;
    }

    public void setFormStream(Map formStream) {
        this.formStream = formStream;
    }

    public void setStream(Map stream) {
        this.stream = stream;
    }

    public String getFormId() {
        return formId;
    }

    public void setFormId(String formId) {
        this.formId = formId;
    }

    public Map getFormValues() {
        return formValues;
    }

    public void setFormValues(Map formValues) {
        this.formValues = formValues;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy