-
-
Save douglascrp/f8287f506570ef8e4a5119e386e5811d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importClass(Packages.org.springframework.web.context.ContextLoader); | |
importClass(Packages.org.alfresco.service.cmr.repository.TransformationOptions); | |
var context = ContextLoader.getCurrentWebApplicationContext(); | |
var alfThumbnailService = context.getBean("thumbnailService"); | |
alfThumbnailService.updateThumbnail(document.getThumbnail("webpreview").nodeRef, new TransformationOptions()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment