alfresco

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

早过忘川 提交于 2020-01-12 10:13:09
问题 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).

cmis or web scripts use?

北城以北 提交于 2020-01-11 10:32:09
问题 I want to build a JavaEE GED application using alfresco and activiti Workflow engine which manages and monitors the mail of an organization (Letter, Fax, mail etc.). Since I am new with alfresco I want to know the best way to communicate with alfresco in my case : the use of CMIS or web scripts (I'm building a third-party application ) . 回答1: I can suggest two solutions using Using the REST API or CMIS with a library like Apache Chemistry Apache Chemistry is very well documented and you can

Get if a user is in a specific alfresco site

随声附和 提交于 2020-01-07 03:01:45
问题 I am working in a JavaEE project and i want simply see if a user is a member of an private Alfresco site using CMIS. I need to see if the user is a member of this (private,public) Site and his current situation in this site. 回答1: You cannot easily do this with CMIS alone. But you can use the SiteService because it has an isMember method. This would only work if your code is running in the same process as Alfresco (like in an action, behavior, or web script). If you are running code in a

How to retrieve 'repository root' id/children from CMIS repository?

霸气de小男生 提交于 2020-01-07 02:51:08
问题 I am using the openCMIS library against a cmis 1.0 compliant server and I noticed that whenever I call getRepositories on the server (an alfresco v3.2 & v5.0 server) I only receive a list with one repository as opposed to what I was expecting, i.e. the list of roots on the server. How do I retrieve the list of repository roots using the opencmis library? EDIT I inappropriately phrased the question so I will explain better. What I would like to do is to be able to get the actual repository

Rapid Application Development in Eclipse Alfresco (Hot Reloading)

喜你入骨 提交于 2020-01-05 13:43:05
问题 I want to make changes in the SendAsEmailActionExecuter.java file in the sub-project AMP (add-action-repo) which is inside All-in-one project in Alfresco 5 community. It is an example as you can see in the following link. I am developing in eclipse and when I customize an ftl or js file the eclipse the eclipse reload the changes. How can achieve the same thing with java file without the need to execute clean install -Prun command every time. I have notice this guide but the DemoComponentTest

Alfresco 4.2.c rest api: create site giving error

天涯浪子 提交于 2020-01-05 10:05:05
问题 I am trying to create a site using alfresco 4.2.c rest api /alfresco/wcservice/api/sites (PUT) I am using admin user so no issues with permissions. I am able to create site successfully using the alfresco share UI String objectToPost = "{\"shortName\":\"firm007\", \"title\":\"firm007\", \"description\":\"firm007\", \"visibility\":\"PRIVATE\", \"isPublic\":\"false\", \"sitePreset\":\"site-dashboard\"}"; RestTemplate restTemplate = new RestTemplate(); HttpHeaders headers = new HttpHeaders();

SSLPeerUnverifiedException During attempted upload

两盒软妹~` 提交于 2020-01-05 08:54:13
问题 When attempting a file upload to an Alfresco Server using ssl the server logs show no errors. The below error can be pulled from the clients logs. javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated Certificates have been checked, and are valid. From this error is it possible to tell if the error is occuring on the server or client side of the ssl handshake? I would assume that it is client side since the server shows no log entries but am not confident in my answer. Could it be

Packages not defined

陌路散爱 提交于 2020-01-03 06:27:12
问题 i wrote a script in javascript and used it in rules (share). The script start with: var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); I m getting an error telling me that "Reference error: Packages is not defined". How can i solve this issue? 回答1: The Packages object is only available for code which is considered "secure". This is most likely failing because the code is from a node in the Repository/Data-Dictionary. Put it somewhere in the

Alfresco Workflow Share Form

半城伤御伤魂 提交于 2020-01-03 06:22:23
问题 I am trying to build a custom workflow in alfresco community edition. Basically I am trying to modify the existing workflow called lifecycleprocess. I have been able to deploy the process using workflow console without error. But I am not able to do any change at all on the workflow form. My workflow is called leaveprocess and I have the following code : Path : alfresco/tomcat/shared/classes/alfresco/extension/ leave-process-bpmn20.xml <?xml version="1.0" encoding="UTF-8" ?> <definitions id=

Customizing Surf Platform Root-Scoped API

北战南征 提交于 2020-01-02 10:06:32
问题 I want to customize Surf Platform Root-Scoped API specifically user object. That means add new property or method to user object to check the user is in certain group in header.inc.ftl [in share] like `<#if user.isAdmin> How can I implement this? Is Alfresco Root Scoped Objects can be used as Surf Platform Root-Scoped object? I have no idea of customizing surf platform root object. Can anyone help me??? 回答1: Not quite sure what you are trying to accomplish, but the role security model is