alfresco

How to display all the properties of the selected reviewers?

僤鯓⒐⒋嵵緔 提交于 2019-12-25 08:21:31
问题 Consider the business process "Review and Approve (one or more reviewers) - Assign a review task to multiple reviewers" . When I choose reviewers I see only their properties cm:userName . How to display all the properties of the type cm:person? For example: cm:userName cm:firstName cm:middleName cm:email cm:organizationId cm:jobtitle cm:googleusername And so on... Instead of this container (part of the association.ftl): ... <div id="${controlId}-currentValueDisplay" class="current-values"><

How to start an FTR Replication Job from Alfresco Script

纵饮孤独 提交于 2019-12-25 08:20:35
问题 As in the subject, I have an already configured File Transfer Replication Job, which I am able to run manually. Now, I would like to start it at the end of a Script (not a Web Script or Java). However I cannot find documentation or example on how to achieve this. I have spot a Transfer object in the official documentation, but I have not been able to found any more API details. My Alfresco version is 4.2. 回答1: It took me a while to figure it out, but eventually I found two solutions. First

How to use external AMP in alfresco Maven Project

痴心易碎 提交于 2019-12-25 08:02:58
问题 I'm trying to use the alfresco-pdf-toolkit addon in my Alfresco Maven project, is there anyway to include the amp in the pom.xml file of my project? 回答1: Yes, assuming your project uses the all-in-one archetype of the Alfresco Maven SDK, you can add an AMP dependency as an overlay. Go look in the repo pom.xml for an example. You'll see something like: <overlay> <groupId>${alfresco.groupId}</groupId> <artifactId>alfresco-spp</artifactId> <type>amp</type> </overlay> Which is how the all-in-one

Get quickshare url with javascript

跟風遠走 提交于 2019-12-25 07:30:31
问题 I want to share a document with JavaScript and get its share_id programatically. There is a REST API that can do that but I didn't know how to call it from script. Any clues? 回答1: The following hack will do the trick. (edit: Must be executed from the classpath in the repository) var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); var qsService = ctx.getBean("QuickShareService"); var sId = document.properties['qshare:sharedId']; if (!sId) { sId =

GetRepositories(parameters) throws CmisRuntimeException

◇◆丶佛笑我妖孽 提交于 2019-12-25 05:32:07
问题 Hi Everyone, I'm currently trying to Connect to Alfresco (DMS), using DotCMIS/C#, so that I can create/locate/retrieve/archive files from it through my program. Reference: https://chemistry.apache.org/dotnet/getting-started-with-dotcmis.html Note: I tried different "AtomPubUrl" to test which URL might work. [CMIS v1.0] For Alfresco Version 3.x: http://[host]:[port]/alfresco/service/cmis For Alfresco 4.0.x and Alfresco 4.1.x : http://[host]:[port]/alfresco/cmisatom For Alfresco 4.2: http://

Call js webscript from Java webscript in Alfresco

不羁的心 提交于 2019-12-25 05:29:31
问题 I have a problem. I need execute js webscript from Java webscript. I know, how do it: req.getRuntime().getContainer().getRegistry().getWebScript("com/home/testJs/testJs.get").execute(req, res) , but how to construct the new WebScriptRequest object? I need do it for rewrite request path. It's a really problem for me. Thank you. 回答1: In general, you should use WebScriptRequestURLImpl. Without any other detail, it's hard go any deeper. That said, it's in general a bad idea to go through yet

How to add a header to all the user task forms in an Activiti workflow?

﹥>﹥吖頭↗ 提交于 2019-12-25 05:25:47
问题 I'm working with Activiti workflows in Alfresco Share and I need to add a header common to all the user task forms in a workflow. This header would be a set of read-only properties (fields) displaying context workflow information at the top of all the user task forms in the workflow. For example, in client management workflows, the header may show the client name and surnames, the client file code, etc., displaying each value in a read-only text box or label. Is there a simple way to add a

How to extend toolbar.get.config.xml in Alfresco Share

江枫思渺然 提交于 2019-12-25 05:22:37
问题 I'm trying to extend toolbar.get.config.xml in (share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\data-lists). For some reasons these is still done in pre v4.0 stile. https://issues.alfresco.com/jira/browse/ALF-13592 Would be ideal to extend it via share-config-custom like other DocumentLibrary actions Many thanks, Rocco 回答1: take a look at this french blog (use google translater if needed) and a lot will be clear. 来源: https://stackoverflow.com/questions/13156806/how-to

How to hide the “Data Dictionary” from the Alfresco Repository?

你说的曾经没有我的故事 提交于 2019-12-25 05:08:53
问题 I am new to alfresco. I am integrating Alfresco with the web application as an library for my application. I am logging to alfresco as a admin and I can see the Data Dictionary in my repository. I want to hide it. Is it possible? 回答1: In order to hide the Data Dictionary folder for normal users you have to properly configure permissions. By default, all folders in Alfresco use the default ACL, which makes everyone Consumer (i.e. read only). This is what makes them visible to every user. Try

Alfresco - Transform Doc to pdf and download custom action

拥有回忆 提交于 2019-12-25 04:36:05
问题 I have created one custom action to convert document to pdf. It worked fine but I want to download converted pdf on click of same custom action , I mean I want to convert and download document on clicking of custom action.How can do that? I have tried following code. newdoc = document.transformDocument("application/pdf"); newdoc.save(); 回答1: Here you go and you need to pass your actual nodeRef values. Added new document action in share-custom-config.xml <action id="convert-to-pdf-download"