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

edu.ksu.canvas.model.EnrollmentTerm Maven / Gradle / Ivy

package edu.ksu.canvas.model;

import edu.ksu.canvas.annotation.CanvasObject;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * Class to represent Canvas enrollment termss.
 * See Canvas Enrollment Terms documentation.
 */
@CanvasObject(postKey = "enrollment_term")
public class EnrollmentTerm extends BaseCanvasModel implements Serializable {
    private static final long serialVersionUID = 1L;

    private long id;
    private String sisTermId;
    private String name;
    private Date startAt;
    private Date endAt;
    private Date createdAt;
    private String workflowState;
    private Long gradingPeriodGroupId;
    private Map overrides;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getSisTermId() {
        return sisTermId;
    }

    public void setSisTermId(String sisTermId) {
        this.sisTermId = sisTermId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getStartAt() {
        return startAt;
    }

    public void setStartAt(Date startAt) {
        this.startAt = startAt;
    }

    public Date getEndAt() {
        return endAt;
    }

    public void setEndAt(Date endAt) {
        this.endAt = endAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public String getWorkflowState() {
        return workflowState;
    }

    public void setWorkflowState(String workflowState) {
        this.workflowState = workflowState;
    }


    public Long getGradingPeriodGroupId() {
        return gradingPeriodGroupId;
    }

    public void setGradingPeriodGroupId(Long gradingPeriodGroupId) {
        this.gradingPeriodGroupId = gradingPeriodGroupId;
    }

    public Map getOverrides() {
        return overrides;
    }

    public void setOverrides(Map overrides) {
        this.overrides = overrides;
    }

    @Override
    public String toString() {
        return "EnrollmentTerm{" +
                "id=" + id +
                ", sisTermId='" + sisTermId + '\'' +
                ", name='" + name + '\'' +
                ", startAt=" + startAt +
                ", endAt=" + endAt +
                ", createdAt=" + createdAt +
                '}';
    }

    public class EnrollmentTermOverride {
        private Date startAt;
        private Date endAt;

        public Date getStartAt() {
            return startAt;
        }

        public void setStartAt(Date startAt) {
            this.startAt = startAt;
        }

        public Date getEndAt() {
            return endAt;
        }

        public void setEndAt(Date endAt) {
            this.endAt = endAt;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy