Use the license controller to create and manage license templates and to assign and manage those license templates to mediacontainers.
License templates
TBA
Licenses
After you have created license templates, you can assign those templates to mediacontainers. Make sure the license template is locked (otherwise the license template cannot be assigned to mediacontainers).
If a license is assigned to a mediacontainer, the mediacontainer will be updated like this:
- if no startDate (settings.startDate) is set for the mediacontainer, the startDate will be set to the start date of the license and startDateSetBy will bet set to an object with properties type = license and id = id of the license
- if no endDate (settings.endDate) is set for the mediacontainer, the settings.endDate will be set to the end date of the license and endDateSetBy will bet set to an object with properties type = license and id = id of the license
Please note: Those settings can be overwritten manually. In this case, the license watcher (see below) will still check and deactivate the license.
Reference: updateMediaContainerWithLicenseData
License Watcher
If you have set and end date to your license, our license watcher service will automatically detect mediacontainers with such license and will deactivate it to avoid claims against you for wrongful usage of assets.
The license watcher will automatically deactivate a mediacontainer (set flag 9) if
- the license template is not set to settings.behaviour.ignoreAutoDeactivate
- the mediacontainer is already deactivated – see MediaContainer Controller
The mediacontainer’s event history will contain an entry “unpublished_because_licenseEnd” in case the license watcher deactivated the mediacontainer.
Attention: If you manually re-activate the mediacontainer after the license watcher has deactivated it, the mediacontainer will not be set back to deactivated state!
Please also read about start and end date in section Availability of mediacontainers for external publishing at MediaContainer Controller
Reference
Find licenses
TBA