Environnement
AEM 6.5
Problème/Symptômes
AEM peut imposer l’acceptation de la licence avant de télécharger une ressource. Cet article explique comment ajouter une page de contrat de licence à une ressource.
Il existe deux façons d’ajouter une page de contrat de licence à une ressource.
Premier : xmpRights:WebStatement
property
Ajoutez la propriété suivante à <path to target asset>/jcr:content/metadata node
.
Name: xmpRights:WebStatement
Type: String
Value: <path to license agreement page>
Exemple de valeur :/libs/settings/dam/drm/licenses/TOUCH-UI-LICENSE.html
Second: adobe_dam:restrictions
property
Ajoutez la propriété suivante à <path to target asset>/jcr:content/metadata node
.
Name: adobe_dam:restrictions
Type: String
Value: <HTML code>
Example value:
<!DOCTYPE html>
<html>
<body>
<p>Sample license agreement description</p>
</body>
</html>
xmpRights:WebStatement supersedes when you set both xmpRights:WebStatement and adobe_dam:restrictions.