Class CanvasAdapter
java.lang.Object
com.nicholasalfonso.lato.integration.adapter.CanvasAdapter
- All Implemented Interfaces:
LMSAdapter
Adapter that parses Canvas iCalendar feeds into course and assignment models.
Extracts metadata from Canvas-specific calendar entry formats.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAssignments(String feed) Parses assignment records from the given iCalendar feed content.getCourses(String feed) Parses course records from the given iCalendar feed content.Returns the LMS provider handled by this adapter.booleanDetermines whether this adapter can parse the given feed content.
-
Constructor Details
-
CanvasAdapter
public CanvasAdapter()
-
-
Method Details
-
getProvider
Description copied from interface:LMSAdapterReturns the LMS provider handled by this adapter.- Specified by:
getProviderin interfaceLMSAdapter- Returns:
- the provider enum value for this adapter
-
getCourses
Description copied from interface:LMSAdapterParses course records from the given iCalendar feed content.- Specified by:
getCoursesin interfaceLMSAdapter- Parameters:
feed- the raw iCalendar feed content- Returns:
- imported courses extracted from the feed
-
getAssignments
Description copied from interface:LMSAdapterParses assignment records from the given iCalendar feed content.- Specified by:
getAssignmentsin interfaceLMSAdapter- Parameters:
feed- the raw iCalendar feed content- Returns:
- imported assignments extracted from the feed
-
supports
Description copied from interface:LMSAdapterDetermines whether this adapter can parse the given feed content.- Specified by:
supportsin interfaceLMSAdapter- Parameters:
feed- the raw iCalendar feed content- Returns:
trueif this adapter supports the feed format
-