Package com.nicholasalfonso.lato.entity
Class Integration
java.lang.Object
com.nicholasalfonso.lato.entity.Integration
JPA entity representing an LMS integration.
Stores configuration and metadata for integrations with learning management systems.
Supports multiple courses within a single integration.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a course to this integration.Gets the set of courses in this integration.Gets the creation timestamp.Gets the ICS calendar URL.getId()Gets the ID of this integration.Gets the timestamp of the last synchronization.Gets the LMS provider type.Gets the last update timestamp.getUser()Gets the user who owns this integration.voidremoveCourse(Course course) Removes a course from this integration.voidsetCourses(Set<Course> courses) Sets the set of courses in this integration.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp.voidSets the ICS calendar URL.voidsetLastSyncAt(Instant lastSyncAt) Sets the timestamp of the last synchronization.voidsetProvider(Integration.LMSProvider provider) Sets the LMS provider type.voidsetUpdatedAt(Instant updatedAt) Sets the last update timestamp.voidSets the user who owns this integration.
-
Constructor Details
-
Integration
public Integration()
-
-
Method Details
-
addCourse
Adds a course to this integration.- Parameters:
course- the course to add
-
removeCourse
Removes a course from this integration.- Parameters:
course- the course to remove
-
getId
Gets the ID of this integration.- Returns:
- the integration ID
-
getUser
Gets the user who owns this integration.- Returns:
- the owner user
-
setUser
Sets the user who owns this integration.- Parameters:
user- the owner user
-
getProvider
Gets the LMS provider type.- Returns:
- the provider
-
setProvider
Sets the LMS provider type.- Parameters:
provider- the provider
-
getIcsUrl
Gets the ICS calendar URL.- Returns:
- the ICS URL
-
setIcsUrl
Sets the ICS calendar URL.- Parameters:
icsUrl- the ICS URL
-
getLastSyncAt
Gets the timestamp of the last synchronization.- Returns:
- the last sync timestamp
-
setLastSyncAt
Sets the timestamp of the last synchronization.- Parameters:
lastSyncAt- the last sync timestamp
-
getCreatedAt
Gets the creation timestamp.- Returns:
- the creation timestamp
-
setCreatedAt
Sets the creation timestamp.- Parameters:
createdAt- the creation timestamp
-
getUpdatedAt
Gets the last update timestamp.- Returns:
- the update timestamp
-
setUpdatedAt
Sets the last update timestamp.- Parameters:
updatedAt- the update timestamp
-
getCourses
Gets the set of courses in this integration.- Returns:
- the courses
-
setCourses
Sets the set of courses in this integration.- Parameters:
courses- the courses
-