alfresco

Testing user account alfresco CMIS if exist

℡╲_俬逩灬. 提交于 2019-12-04 05:54:48
问题 I am working in a JavaEE project and i want simply see if the user ho logged in with a username and a password have an account in Alfresco , I user the getSession method but it doesn't return if the username and password are wrong (doesn't exist). private static Session getSession(String serverUrl, String username, String password) { SessionFactory sessionFactory = SessionFactoryImpl.newInstance(); Map<String, String> params = new HashMap<>(); params.put(SessionParameter.USER, username);

How can I access files in Alfresco using the CMIS REST API?

陌路散爱 提交于 2019-12-04 05:54:32
问题 I installed Alfresco Community v4.1 for use in my application. I want to access its contents (list files, add, delete etc.) using CMIS REST API . I don't find any example for the endpoint I need to use. I implemented a small CMIS client (you can get information on it here) using Apache Chemistry and listing the contents of my user's space and I obtain this result: [Folder] workspace://SpacesStore/624914c7-3ca2-4937-a612-96f1df928cc1 - Dictionnaire de données [Folder] workspace://SpacesStore

Provide default parameters automatically with $resource?

拥有回忆 提交于 2019-12-04 04:54:13
问题 I'm creating a simple AngularJS app that uses Alfresco as back-end over the provided REST API. Firstly, authentication is performed through the appropriate service which returns a token ( alf_ticket ) and that token must be sent as a URL parameter in the subsequent requests after a successful authentication. As far as I'm concerned, the Alfresco REST API doesn't support to receive the token as part of the HTTP headers; that would be best option though, since it would be straightforward to

How to Delete Document Using CMIS

隐身守侯 提交于 2019-12-03 23:15:57
I have Created a External web application using Servlets which is connected to alfresco repository. I am also able to upload document in to the repository, download document from repository. now my requirement is, i have to delete document based on user role. means i want to give delete document access to only site manager. Please provide sample code if you have. Thanks in Advance In order to delete a document you first need to see if the user have the role to delete this is why the answer will be split in two part Part 1 : search for authority in this part you will see if the user have the

How to get Alfresco login ticket without user password, but with impersonating user with user principal name (UPN)

僤鯓⒐⒋嵵緔 提交于 2019-12-03 17:34:58
I'm writing a DLL that has function for getting Alfresco login ticket without using user password, using only a user principal name (UPN). I’m calling alfresco REST API service /wcservice . I use NTLM in Alfresco. I’m impersonating users using WindowsIdentity constructor as explained here http://msdn.microsoft.com/en-us/library/ms998351.aspx#paght000023_impersonatingbyusingwindowsidentity . I checked and user is properly impersonated (I checked WindowsIdentity.GetCurrent().Name property). After impersonating a user, I try to make HttpWebRequest and set its credentials with CredentialsCache

Integrating Liferay and Alfresco

半世苍凉 提交于 2019-12-03 16:33:13
Im using Liferay version 5.2.3 and Alfresco Community Edition.I want to integrate Alfresco with Liferay . I want to show Alfresco as a portlet within Liferay. Can someone please tell me how to go about doing this ? Thank You There are a couple well-travelled links on the liferay community site. The most often recommended is this one ... http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Full+Integration+-+Liferay,+Alfresco,+SSO+and+LDAP This one describes a more basic setup : http://www.liferay.com/web/jonas.yuan/blog/-/blogs/integrating-alfresco-web-client-as-a-set-of-portlets-with

How to give FTP address in java?

匿名 (未验证) 提交于 2019-12-03 09:52:54
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have written the code which downloads the file from FTP server. Since I have my FTP server locally and I want to access like "ftp://localhost/alfresco". It was alfresco's FTP. I have the following Code public class FtpTransfer { public static final void main ( String [] args ) { FTPClient ftp = new FTPClient (); FileOutputStream br = null ; try { ftp . connect ( "ftp://localhost/alfresco" ); ftp . login ( "admin" , "admin" ); String file = "KPUB//Admin//TMM//Pickup//TMM_TO_ARTESIA_06152010220246.xml" ; br = new FileOutputStream (

Downloading files from Alfresco with MuleSoft CMIS connector

匿名 (未验证) 提交于 2019-12-03 09:13:36
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 file but it has no idea what the file is because

Alfresco migrating server

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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.context.ContextLoader] [main] Context initialization

Non-Authenticated FreeMarker page in alfresco share

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i have create a new page in alfresco share but the page cannot be displayed without login! how can i make this page enabled without login. my file in "/alfresco/templates/blog/demo/custom-viewer.ftl". and this file contains "custom-viewer.ftl": <#include "include/alfresco-template.ftl" /> <@templateHeader> <@script type="text/javascript" src="${url.context}/res/modules/documentlibrary/doclib-actions.js" group="document-details"/> <@link rel="stylesheet" type="text/css" href="${url.context}/res/components/document- details/document-details