org.imsglobal.lti2.objects.consumer.ServiceOwner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of basiclti-util Show documentation
Show all versions of basiclti-util Show documentation
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_owner_name",
"description",
"timestamp",
"support"
})
public class ServiceOwner {
@JsonProperty("@id")
private String _id;
@JsonProperty("service_owner_name")
private ServiceOwnerName service_owner_name;
@JsonProperty("description")
private Description description;
@JsonProperty("timestamp")
private String timestamp;
@JsonProperty("support")
private Support support;
private Map additionalProperties = new HashMap();
public ServiceOwner(LTI2Config cnf) {
this._id = cnf.getService_owner_id();
this.service_owner_name = new ServiceOwnerName(cnf.getService_owner_owner_name());
this.description = new Description(cnf.getService_owner_description());
this.support = new Support(cnf.getService_owner_support_email());
}
public ServiceOwner() {
}
@JsonProperty("@id")
public String get_id() {
return _id;
}
@JsonProperty("@id")
public void set_id(String _id) {
this._id = _id;
}
@JsonProperty("service_owner_name")
public ServiceOwnerName getService_owner_name() {
return service_owner_name;
}
@JsonProperty("service_owner_name")
public void setService_name(ServiceOwnerName service_owner_name) {
this.service_owner_name = service_owner_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);
}
}