ManageManageableFactory
Summary
Defines a factory to manage manageables.
Item Index
Methods
- addHistoric
- addSchedule
- addSchedule
- addToAcceptedDevices
- addToRefusedDevices
- checkSchedulesConflict
- closeDetail
- displayErrors
- displayNameForm
- getPreset
- getPresetName
- isValidSchedule
- openRemoveModal
- removeDevice
- removeHistoric
- removeHistoric
- removeHistory
- removeHistory
- removeSchedule
- removeSchedule
- resetActionForm
- startRecord
- startRecord
- startRecord
- updateName
- validateEndDate
- validatePreset
- validateSchedule
Methods
addHistoric
Syntax
addHistoric
-
manageable
-
historic
Summary
Adds a manageable historic.
addSchedule
Syntax
addSchedule
-
manageable
-
schedule
Summary
Adds a manageable schedule.
addSchedule
Syntax
addSchedule
()
Summary
Adds a new schedule.
addToAcceptedDevices
Syntax
addToAcceptedDevices
-
device
Summary
Adds pending/refused device to the accepted list of devices.
Parameters:
-
device
ObjectThe device to accept
addToRefusedDevices
Syntax
addToRefusedDevices
-
device
Summary
Adds the new device to the refused list of devices.
Parameters:
-
device
ObjectThe device object
checkSchedulesConflict
Syntax
Summary
Checks if two schedules are in conflict.
Parameters:
-
schedule1
ObjectSchedule object with :
- Date beginDate : The begin date of the schedule
- Date duration : The schedule duration
- Boolean recurrent : true is this is a daily schedule, false otherwise
-
schedule2
ObjectSchedule object with :
- Date beginDate : The begin date of the schedule
- Date duration : The schedule duration
- Boolean recurrent : true is this is a daily schedule, false otherwise
Returns:
true if there are in conflict, false otherwise
closeDetail
Syntax
closeDetail
()
Summary
Closes the details panel.
displayErrors
Syntax
displayErrors
-
errors
-
message
Summary
Displays an error message for each given errors.
displayNameForm
Syntax
displayNameForm
()
Summary
Displays the input to update the manageable's name.
getPreset
Syntax
Summary
Gets a manageable's preset.
Returns:
The preset's configuration or null if not found
getPresetName
Syntax
Summary
Gets selected manageable's preset's name.
Parameters:
-
id
StringThe preset id
Returns:
The preset name or null if not found
isValidSchedule
Syntax
Summary
Checks if a schedule is not in collision with other schedules.
Returns:
The error if validation failed, null otherwise
openRemoveModal
Syntax
openRemoveModal
-
id
-
action
Summary
Opens a modal to remove something.
removeDevice
Syntax
removeDevice
-
id
Summary
Removes a device.
Parameters:
-
id
StringThe id of the device to remove
removeHistoric
Syntax
removeHistoric
-
historicId
Summary
Removes an historic from selected manageable.
Parameters:
-
historicId
StringThe historic id
removeHistoric
Syntax
removeHistoric
-
manageable
-
historicId
Summary
Removes a manageable historic.
removeHistory
Syntax
removeHistory
()
private
Summary
Removes the whole history.
removeHistory
Syntax
removeHistory
-
manageable
Summary
Removes a manageable's history.
Parameters:
-
manageable
ObjectThe manageable
removeSchedule
Syntax
removeSchedule
-
scheduleId
Summary
Removes a schedule from selected manageable.
Parameters:
-
scheduleId
StringThe schedule id
removeSchedule
Syntax
removeSchedule
-
manageable
-
scheduleId
Summary
Removes a manageable's schedule.
resetActionForm
Syntax
resetActionForm
()
Summary
Resets the action form.
startRecord
Syntax
startRecord
()
Summary
Creates a new tag on the recording session of the selected manageable.
startRecord
Syntax
startRecord
()
Summary
Stops recording session on the selected manageable.
startRecord
Syntax
startRecord
()
Summary
Starts a new recording session on the selected manageable.
updateName
Syntax
updateName
-
name
Summary
Updates manageable's name.
Parameters:
-
name
StringThe new manageable name
validateEndDate
Syntax
validateEndDate
()
Summary
Validates the end date regarding the begin date. End date should not be inferior to begin date.
validatePreset
Syntax
validatePreset
-
presetId
Summary
Validates the selected manageable's inputs regarding the given preset id.
It is not possible to start a recording session if the inputs of the selected manageable does not correspond to the preset configuration. e.g. It is not possible to start a recording session with slides extraction without a desktop input.
Parameters:
-
presetId
StringThe id of the preset
validateSchedule
Syntax
Summary
Validates that begin and end dates of the new scheduled job are not in conflicts with the other scheduled jobs.
Parameters:
-
schedule
ObjectSchedule object with :
- Date beginDate The begin date of the schedule
- Date endDate The end date of the schedule
- Number duration The schedule duration in milliseconds
- Boolean recurrent true is this is a daily schedule, false otherwise
Returns:
true if valid, false otherwise