Class Integration

java.lang.Object
com.nicholasalfonso.lato.entity.Integration

@Entity public class Integration extends Object
JPA entity representing an LMS integration. Stores configuration and metadata for integrations with learning management systems. Supports multiple courses within a single integration.
  • Constructor Details

    • Integration

      public Integration()
  • Method Details

    • addCourse

      public void addCourse(Course course)
      Adds a course to this integration.
      Parameters:
      course - the course to add
    • removeCourse

      public void removeCourse(Course course)
      Removes a course from this integration.
      Parameters:
      course - the course to remove
    • getId

      public Long getId()
      Gets the ID of this integration.
      Returns:
      the integration ID
    • getUser

      public User getUser()
      Gets the user who owns this integration.
      Returns:
      the owner user
    • setUser

      public void setUser(User user)
      Sets the user who owns this integration.
      Parameters:
      user - the owner user
    • getProvider

      public Integration.LMSProvider getProvider()
      Gets the LMS provider type.
      Returns:
      the provider
    • setProvider

      public void setProvider(Integration.LMSProvider provider)
      Sets the LMS provider type.
      Parameters:
      provider - the provider
    • getIcsUrl

      public String getIcsUrl()
      Gets the ICS calendar URL.
      Returns:
      the ICS URL
    • setIcsUrl

      public void setIcsUrl(String icsUrl)
      Sets the ICS calendar URL.
      Parameters:
      icsUrl - the ICS URL
    • getLastSyncAt

      public Instant getLastSyncAt()
      Gets the timestamp of the last synchronization.
      Returns:
      the last sync timestamp
    • setLastSyncAt

      public void setLastSyncAt(Instant lastSyncAt)
      Sets the timestamp of the last synchronization.
      Parameters:
      lastSyncAt - the last sync timestamp
    • getCreatedAt

      public Instant getCreatedAt()
      Gets the creation timestamp.
      Returns:
      the creation timestamp
    • setCreatedAt

      public void setCreatedAt(Instant createdAt)
      Sets the creation timestamp.
      Parameters:
      createdAt - the creation timestamp
    • getUpdatedAt

      public Instant getUpdatedAt()
      Gets the last update timestamp.
      Returns:
      the update timestamp
    • setUpdatedAt

      public void setUpdatedAt(Instant updatedAt)
      Sets the last update timestamp.
      Parameters:
      updatedAt - the update timestamp
    • getCourses

      public Set<Course> getCourses()
      Gets the set of courses in this integration.
      Returns:
      the courses
    • setCourses

      public void setCourses(Set<Course> courses)
      Sets the set of courses in this integration.
      Parameters:
      courses - the courses