Skip to content

Instantly share code, notes, and snippets.

@wingyplus
Last active February 6, 2019 13:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wingyplus/5757155 to your computer and use it in GitHub Desktop.
Save wingyplus/5757155 to your computer and use it in GitHub Desktop.
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