alfresco

Sending a HTTP POST request for updating file contents using C++ REST SDK Casablanca

倾然丶 夕夏残阳落幕 提交于 2019-12-12 16:09:55
问题 I am trying to update the contents of a file in alfresco server using C++ rest sdk. I am using the alfresco CMIS url to send the request.To be more specific it is Alfresco CMIS browser binding.I have to stick to browser binding not atom binding. When I send the request it always updates the version of the file not the contents. I am sending the contents in the request body.Below is my code void UpdateFileContent() { concurrency::streams::basic_istream<unsigned char> fileStream = file_stream

Alfresco: Defining new Control-Params

淺唱寂寞╮ 提交于 2019-12-12 14:24:52
问题 I am working on a custom form control, and need to define a new control-parameter of type string called helptext . I understand how to call it in my share-config-custom, how to use it in my custom form control, but not how to initially declare it. I see other control-params use the format field.control.params.${param} , but cannot locate where any of these are defined. A file search for existing control-params returns dozens of files. Where and how do I declare control-params before using

Make Alfresco Web Script show error 500 as JSON rather than HTML

孤人 提交于 2019-12-12 06:58:42
问题 I am writing an Alfresco Web Script that will be consumed by external computers. When I throw a WebScriptException, I would like the error 500 to come with an error page in JSON, rather than HTML, so that the external computers can parse it. Right now I am getting this: How to get JSON instead? I see that some Web Scripts manage to produce error pages as JSON (for error 401 though, so probably before the Web Script actually gets called): 回答1: You can create a freemarker dedicated for each

how to add links in property sheet in alfresco

孤者浪人 提交于 2019-12-12 06:37:44
问题 I was able to add a property to the property sheet in alfresco and display some message in, but now i want the message to be a link just like <a href="#" > someText </a> is there any solution ? 回答1: If you go look in the Share form configuration you'll see several examples of fields that have "controls" associated with them. One way to do what you are asking is to add a custom control for that particular property. For example, you could edit share-config-custom.xml and go to the field element

how to Integrate google docs with alfresco community 4.0?

旧街凉风 提交于 2019-12-12 05:15:57
问题 I found some configuration for enable google docs These properties I have added in alfresco-global.properties googledocs.googleeditable.enabled = true googledocs.username =*******@gmail.com googledocs.password =************* and in share-config I have added the code and added aspect <aspect name="gd:googleEditable"/> <!-- Google Docs™ integration --> <google-docs> <enabled>true</enabled> <creatable-types> <creatable type="doc">application/msword</creatable> <creatable type="xls">application

Recursively get all content file names under a folder in Alfresco 5.0 (by WebScripts)

梦想与她 提交于 2019-12-12 04:54:44
问题 So far I found the script to show the children: http://localhost:8080/alfresco/service/slingshot/datalists/lists/site/MyFakeSite/documentLibrary It returns me something like: { "container": "workspace:\/\/SpacesStore\/8ef98a58-18f0-4f27-9fee-709f81ca0a65", "permissions": { "create": true }, "datalists": [ { "name": "MyPicture.jpg", "title": "My Awesome Picture File", "description": "Legen - wait for it - dary!!!", "nodeRef": "workspace://SpacesStore/54acabf9-bf6b-42f0-8b68-bbe9732b29b8",

How to auto-generate a mail with the password created after clicking on “Create User” button in Alfresco New User page? [duplicate]

落爺英雄遲暮 提交于 2019-12-12 04:32:08
问题 This question already has an answer here : Auto-generation of email with username and random password on creation of new user (1 answer) Closed 3 years ago . How can we auto-generate a mail with the new user's password as soon as we click on the create user button in Alfresco New User page. Do we need to create any webscript or action which can redirect to create user action and a corresponding mail will be generated automatically. Please let me know how to create the link between Create User

Is there a way to set the display text for the value in list?

£可爱£侵袭症+ 提交于 2019-12-12 04:25:14
问题 For example, there are some business process. The user is prompted to reject or to approve some document. Part of the workflow content model: ... <constraints> <constraint type="LIST"> <parameter name="allowedValues"> <list> <value>Approve</value> <value>Reject</value> </list> </parameter> </constraint> </constraints> ... Instead of Approve / Reject I want to display a different text (national, with spaces, etc.). But in scripts I would like to use the same Approve / Reject values. Is it

Alfresco Java script API Reference error 'document' is not found

无人久伴 提交于 2019-12-12 03:46:29
问题 My apologies for being a newbie. I have configured javascript api amps and I can access java script console via admin tools. My challenge is that for 'document', 'search', logger and 'companyhome' I am an receiving reference error e.g reference error 'document' is not defined. I have been reading alfresco documentation and they show that you have to access it using javascript server side. how can i do that in alfresco or how can overcome these errors 回答1: If you are using javascript console.

Trigger Activiti workflow for task sitting in ReceiveTask looping

元气小坏坏 提交于 2019-12-12 03:46:25
问题 I have an Activiti workflow that contains a ReceiveTask where I'm grouping tasks. I have a Listener that triggers on the event start of the ReceiveTask where I check the property of the newly added task to see if others with the same properties are in the ReceiveTask. If yes, then I want to trigger them all to move to the next step. <receiveTask id="IssuePost" name="Issue Post"> <extensionElements> <activiti:executionListener event="start" delegateExpression="${IssuePost}"></activiti