Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IliasBuddyManageEntriesApi

Class that helps managing all the Ilias entries by combining fetching, new entries evaluating and cache management

Hierarchy

  • IliasBuddyManageEntriesApi

Index

Constructors

constructor

  • new IliasBuddyManageEntriesApi(url: string, userName: string, password: string, newEntriesFoundCallback: function): IliasBuddyManageEntriesApi

Methods

extractNewEntries

  • extractNewEntries(fetchedEntries: Entry[]): Entry[]
  • Check if in a list of fetched entries new entries can be found

    throws

    Error if fetchedEntries is undefined or empty

    Parameters

    • fetchedEntries: Entry[]

    Returns Entry[]

    {import('../FETCH/FetchEntriesTypes') .IliasBuddyFetchEntries.Entry[]}

getCurrentEntries

  • getCurrentEntries(callback?: boolean): Promise<Entry[]>

saveCache

  • saveCache(): void

Static getCachedEntries

  • getCachedEntries(): Entry[]

Static testConnection

  • testConnection(url: string, userName: string, password: string): Promise<void>
  • Test if a connection with a 200 response can be established

    Parameters

    • url: string

      Private Ilias feed URL

    • userName: string

      Private Ilias feed user name for authentication

    • password: string

      Private Ilias feed password for authentication

    Returns Promise<void>

Generated using TypeDoc