SettingsController

SettingsController

SettingsController imports JSON settings from a URL or from cut-and-pasted text. The settings JSON should be in the format below. Note that each array is optional.

Constructor

new SettingsController()

Source:
See:
Example
{
  appSettings: [ ... array of AppSetting objects ... ],
  bagItProfiles: [ ... array of BagItProfile objects ... ],
  remoteRepositories: [ ... array of RemoteRepository objects ... ],
  storageServices: [ ... array of StorageService objects ... ],
}

Methods

_processResponses()

This processes the user's responses to import questions.

Source:

export()

Shows the page where a user can choose which settings to export.

Source:

import()

Shows the page where a user can import settings from text or a URL.

Source:

postRenderCallback()

This attaches event handlers after the page loads.

Source:

reset()

Resets the settings export form by erasing all export settings and questions.

Source:

saveAndGoToExport()

Saves export settings, then redirects to the export settings page.

Source:

saveAndGoToQuestions()

Saves export settings, then redirects to the questions page.

Source:

showExportJson()

Shows the exported settings in JSON format in a modal dialog. The user can copy the JSON to the system clipboard from here.

Source:

showImportResult()

Show the result of a successful import. This displays a list of imported settings and questions, if there are any.

Source:

showQuestionsForm()

Shows the form where a user can define setup questions.

Source: