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

org.imsglobal.lti2.objects.consumer.ServiceProvider Maven / Gradle / Ivy

Go to download

BasicLTI Utilities are a set of utility classes to aid in the development of BasicLTI consumers and providers. They deal with much of the heavy lifting and make the process more opaque to the developer.

The newest version!

package org.imsglobal.lti2.objects.consumer;

import org.imsglobal.lti2.LTI2Config;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import org.codehaus.jackson.annotate.JsonAnyGetter;
import org.codehaus.jackson.annotate.JsonAnySetter;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.codehaus.jackson.map.annotate.JsonSerialize;

@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@Generated("com.googlecode.jsonschema2pojo")
@JsonPropertyOrder({
    "@id",
    "service_provider_name",
    "description",
    "timestamp",
    "support"
})
public class ServiceProvider {

    @JsonProperty("@id")
    private String _id;
    @JsonProperty("service_provider_name")
    private ServiceProviderName service_provider_name;
    @JsonProperty("description")
    private Description description;
    @JsonProperty("timestamp")
    private String timestamp;
    @JsonProperty("support")
    private Support support;
    private Map additionalProperties = new HashMap();

    public ServiceProvider(LTI2Config cnf) {
        this._id = cnf.getService_provider_id();
        this.service_provider_name = new ServiceProviderName(cnf.getService_provider_provider_name());
        this.description = new Description(cnf.getService_provider_description());
        this.support = new Support(cnf.getService_provider_support_email());
    }

    public ServiceProvider() {
    }

    @JsonProperty("@id")
    public String get_id() {
        return _id;
    }

    @JsonProperty("@id")
    public void set_id(String _id) {
        this._id = _id;
    }

    @JsonProperty("service_provider_name")
    public ServiceProviderName getService_provider_name() {
        return service_provider_name;
    }

    @JsonProperty("service_provider_name")
    public void setService_name(ServiceProviderName service_provider_name) {
        this.service_provider_name = service_provider_name;
    }

    @JsonProperty("description")
    public Description getDescription() {
        return description;
    }

    @JsonProperty("description")
    public void setDescription(Description description) {
        this.description = description;
    }

    @JsonProperty("timestamp")
    public String getTimestamp() {
        return timestamp;
    }

    @JsonProperty("timestamp")
    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    @JsonProperty("support")
    public Support getSupport() {
        return support;
    }

    @JsonProperty("support")
    public void setSupport(Support support) {
        this.support = support;
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperties(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy