Alfresco Share 是否有等效的 FileTypeImageUtils?
我需要根据内容文件的媒体类型检索其图标。
我知道在 Alfresco Explorer 中您可以使用 FileTypeImageUtils.getFileTypeImage() 方法。
Share 中有类似的东西吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想要文件图标还是文件缩略图?
如果您使用的是 Alfresco 4.0,则请求文档缩略图的 URL 为 /proxy/alfresco/api/node/workspace/[Store]/[ID]/content/thumbnails/doclib?c=queue&ph=true例如
http://localhost:8080/share/proxy/alfresco/api/node/workspace/SpacesStore/62d652d5-5759-434e-8739-295fa3447481/content/thumbnails/doclib?c=queue&ph= true
构建方法通常是:
如果您只想要图标,那么代码就是一些东西 喜欢:
Do you want the file icon, or the file thumbnail?
If you're on Alfresco 4.0, the URL to request the thumbnail of a document is /proxy/alfresco/api/node/workspace/[Store]/[ID]/content/thumbnails/doclib?c=queue&ph=true eg
http://localhost:8080/share/proxy/alfresco/api/node/workspace/SpacesStore/62d652d5-5759-434e-8739-295fa3447481/content/thumbnails/doclib?c=queue&ph=true
The way to build that is usually:
If you do just want the icon, then the code is something like: