alfresco

Aikau fundamentals - payload 101

拈花ヽ惹草 提交于 2019-12-11 00:09:09
问题 I am very new to Alfresco Aikau and I just don't get how payload works. There are many examples where payload is used but I am not making the connection. All the examples I seem to find suggest (to me that is) that the payload is used to define a data list that will be loaded and returned to the widget. But, the data list always seems to be a url and I assume the result from the url is a json object. What if I want to call a webscript that build a json object and returns it back to the widget

get current user name inside called webscript

蹲街弑〆低调 提交于 2019-12-10 10:22:54
问题 Is there any way in alfresco to get the current user name inside web script ?? I am calling a web script and want to access current user name and password by which he logged in inside it. Here is my descriptor: <webscript> <shortname>Save Document </shortname> <description>Save description</description> <url>/alfresco/save</url> <format default="">argument</format> <family>Active document</family> </webscript> My web script code : public void execute(WebScriptRequest req, WebScriptResponse

alfresco: limiting authority.ftl to a group of users

我是研究僧i 提交于 2019-12-09 21:29:23
问题 In my workflow model I have an association to cm:person type, in share configuration I'm using the authority.ftl template to display it, how can I limit the available users to select from down to the members of one group ? 回答1: There s a few changes that I needed to do in order to achieve this: You should pass a parameter to your authority.ftl in your share modules config file using a new control param: <config evaluator="node-type" condition="my:customtype"> <forms> <form> <appearance>

how to get related (peer association) nodes programatically in alfresco using java?

自作多情 提交于 2019-12-08 13:24:39
问题 So I currently have one node, campaigns, which has a field/association that references the user table called authorised_by. In code I can set the association like this: nodeService.createAssociation(mcdNodeRef, newAuthority, CustomContentModel.ASSOC_MCD_CAMP_AUTHORITY); Now I need to basically reverse engineer this process and get the value of the association back out of the alfresco DB but there is no getAssociation method and can't seem to work it out. Thanks 回答1: Solved it myself, here is

Is there a way to control the sorting order in the user's search interface?

天大地大妈咪最大 提交于 2019-12-08 12:18:42
问题 I'm developing AMP file for the Share tier and I want to override the search order. Currently, the sorting performed by fullName . In my case I need sorting by lastName . In people-finder.js I found this line: ... /** * Build URI parameter string for People Finder JSON data webscript * * @method _buildSearchParams * @param searchTerm {string} Search terms to query */ _buildSearchParams: function PeopleFinder__buildSearchParams(searchTerm) { return "sortBy=fullName&dir=asc&filter=" +

pagination in alfresco

安稳与你 提交于 2019-12-08 10:00:43
问题 I am working on an application which lists and searches document from alfresco. The issue is the alfresco can return upto 5000 records per query. but I don't want my application to list down all documents instead if I can some how implement pagination in alfresco, so that alfresco only return X result per page. I am using Alfresco 4 enterprise edition. Any help or suggestion please. UPDATE (Example) I have written a web script which executes the query and returns all the documents satisfies

Alfresco CE how to enable and configure FTP?

≡放荡痞女 提交于 2019-12-08 09:36:58
问题 How to enable and configure ftp in Alfresco Community Edition (v.5.2.0)? According to the documentation first I should configure VFS from the admin console. The documentation states In the Virtual File Systems section, click File Servers. However my admin console looks like this I am confused. Does VFS/FTP is only supported in Enterprise Edition> 回答1: Add settings to the alfresco-global.properties : ### FTP Server Configuration ### ftp.port=2121 ftp.enabled=true and restart Tomcat ./alfresco

Downloading files from Alfresco with MuleSoft CMIS connector

梦想与她 提交于 2019-12-08 08:16:58
问题 I have a little problem with the MuleSoft CMIS connector. I have an application that uploads and downloads files from Alfresco. I connect to Alfresco through AtomPub and use CMIS for all actions towards the Alfresco. The problem is this: I used to get the object from the repository and it worked fine. In my flow I added one component that takes the object from the flow, which is of type DocumentImpl , get InputStream , cast it to an Object and return it. The browser starts the download of the

Alfresco migrating server

别来无恙 提交于 2019-12-08 07:44:45
问题 I'm migrating Alfresco Community 4.0.b from Server 1 to Server 2. Both are Ubuntu Server 10.04. I have followed the instruction from wiki, and I used binary installation file to install Alfresco on both server. Database back up and restore code: pg_dump -U postgres -h localhost -p 5432 -F c -v -f alfresco_db alfresco pg_restore -U postgres -h localhost -p 5432 -C -d postgres -v alfresco_db When starting Alfresco on Server 2, I get this following error: 2012-08-07 07:50:15,623 ERROR [web

cross domain call using REST Alfresco

最后都变了- 提交于 2019-12-08 07:10:56
问题 I am using the REST API to upload a file. http://fiddle.jshell.net/876fzzd5/5/ is the pastebin. I am using http://malsup.com/jquery/form/#file-upload form plugin to upload cross domain. IE debug tools shows that the correct response is received from the server. However the success callback is always called even if the file upload fails. If I don't use a cross domain Ajax call then the correct callback methods (success/error) are called. Could some one let me know what might be the issue? 回答1: