ExportHandler

Object that manage data export

class Object
trait Matchable
class Any

Value members

Concrete methods

def exportDataToPersonalDirectory[A](data: A): Try[String]

Export data to personal directory if possible Path and name are predetermined in Configuration

Export data to personal directory if possible Path and name are predetermined in Configuration

Value parameters:
data

the data to export

Returns:

a Try[String] with file path

def exportSavedCoursesToPath(savedCourseList: List[SavedCourse], filePath: String): Try[String]

Export the list of SavedCourse to chosen directory Name of file is predetermined in Configuration

Export the list of SavedCourse to chosen directory Name of file is predetermined in Configuration

Returns:

a Try[String] with file path

Inherited methods

def loadDataFromFile[A](jsonParser: JsonParser[A], filePath: String): Try[A]

Load data from a file and return the object depending on which JsonParser type is passed

Load data from a file and return the object depending on which JsonParser type is passed

Returns:

a Try[A]

Inherited from:
DataStorageHandler
def storeDataToPath[A](data: A, filePath: String): Try[String]

Store JSON parsed data in a file depending on which JsonParser type is passed

Store JSON parsed data in a file depending on which JsonParser type is passed

Returns:

a Try[String] with file path

Inherited from:
DataStorageHandler