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

com.formkiq.server.service.dto.SaveActionResponse Maven / Gradle / Ivy

/*
 * Copyright (C) 2016 FormKiQ Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.formkiq.server.service.dto;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * The result from an Save Action.
 *
 */
public class SaveActionResponse {

    /** Any message. */
    private String message;

    /** Action Validators. */
    private Map> validators;

    /**
     * constructor.
     */
    public SaveActionResponse() {
        this.message = "";
        this.validators = new HashMap>();
    }

    /**
     * @return {@link String}
     */
    public String getMessage() {
        return this.message;
    }

    /**
     * @param msg String
     */
    public void setMessage(final String msg) {
        this.message = msg;
    }

    /**
     * @return Map<String, List<ActionValidator>>
     */
    public Map> getValidators() {
        return this.validators;
    }

    /**
     * @param map Map<String, List<ActionValidator>
     */
    public void putValidators(final Map> map) {
        this.validators.putAll(map);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy