English 中文(简体)
在Alfresco 4.0.d 生产th
原标题:generating thumbnails in Alfresco 4.0.d

我正在利用Alfresco社区4.0.d的Java网络服务,目前正在设法将th铁功能添加到我的网站上。 我注意到,在张贴新形象之后,th子无法立即获得;我很想知道,有人是否可以建议采取好的办法,使一代人能够人工启动?

问题回答

Answered your question in the forums as well. Using the JavaScript API you can ask a document to generate its thumbnail, like this:

document.createThumbnail("doclib");

在这种情况下,“思想”是“分享”文件图书馆的星座名称,但这可能是你创造的任何th词。

http://docs.alfresco.com/4.0/topic/com.alfresco.business.doc/viss/API-JS-Thumbnail-createThumbnail.html“rel=“noreferer”http://docs.alfresco.com/4.0/topic/com.alfresco.business.doc/viss/API-JS-Thumbnail-createumbnail.html

Java,见org.alfresco.repo.thumbnail.CreateThumbnailAction。 子宫外产物。 在你自己的班子里,你可以做类似的事情。 更确切地说,利用行动处援引制造灾难的行动。

To use the Action Service, all you need is the name of the action and the parameters it expects. For example, here s what it looks like when you use the mail action:

ActionService actionService = getServiceRegistry().getActionService();
Action mailAction = actionService.createAction(MailActionExecuter.NAME);
mailAction.setParameterValue(MailActionExecuter.PARAM_SUBJECT, ExternalReviewNotification.SUBJECT);        
mailAction.setParameterValue(MailActionExecuter.PARAM_TO, recipient);
mailAction.setParameterValue(MailActionExecuter.PARAM_FROM, ExternalReviewNotification.FROM_ADDRESS);
mailAction.setParameterValue(MailActionExecuter.PARAM_TEXT, sb.toString());

actionService.executeAction(mailAction, null);

为了对th子进行治疗,你将“create-thumbnail”改为“ThumbnailActionExecuter.NAME”。 看看这一类的来源,我看看看它有两个参数:PARAM_CONTENT_PROPERTY,即“cm:content”,和PARAM_THUMBNAIL_NAME,如果你自行界定,那将是普通文件图书馆的“思想”。

在“执行行动”呼吁中,有一点需要指出,第二个论点是“对 no子采取行动”。 在你看来,你想要成为你正在制造的umb子。





相关问题
IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

ASP.net web services

I am using a web service which sets the Thread.CurrentPrincipal object while logging in and soon later when another webmethod of the same web service accesses Thread.CurrentPrincipal, its different/...

Unity Container Disposing and XML Web Service

I am registering some wrapers over un-managed objects in container. How can I dispose of them at the end of the container s lifetime? Please bear in mind I have an XML Web service.

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

热门标签