alfresco

Node Browser does not work properly

♀尐吖头ヾ 提交于 2020-01-26 03:58:05
问题 I have a new content model and by it i create a new node called "organization" and that node will be saved under organizations folder. After create a node i noticed that Node Browser and search Service will not be able to find my organization(s) nodes which are located in the organizations folder until i navigate to the organizations folder node. Can any on help me ? All of your replies are highly appreciated. My Code Is: // Acquire organization folder Node organizationsFolder = new Node

Access file/content directly from Alfresco without log in

对着背影说爱祢 提交于 2020-01-25 03:39:25
问题 My scenario is this.. I am having a web application which uses the ALFRESCO CMS to display files or images. What I am doing is I login to alfresco using username and password in a Java servlet and I can able to get a ticket for that login. But I could not able to access the file/image from browser directly with that ticket. When I launch the url (with ticket) from the browser it goes to alfresco login page for credentials. Do we have any way to login to alfresco programmatically and get the

Alfresco: Folder permission by role

走远了吗. 提交于 2020-01-25 03:04:26
问题 Problem: we have a space template that we use as a folder structure for share sites document library . Our aim is to make visible some folders to special users that have a custom role (created in sitePermissions.xml). generally we can do that with groups but we need to do that with roles (e.g. when we invite an external user, we wish to assign him to an internal role so he can automatically see some folders). Please help us with some clues. 回答1: Short Version: You need need to assign that

See if Alfresco Server is available

拟墨画扇 提交于 2020-01-17 06:21:31
问题 I am working with Alfresco and sometimes the server is down for low space or other problem , the thing is with my serverURL i want to check if he is available (Alfresco Server) i thought to make a ping but the adresse is to complexe for a simple ping ex : http://127.0.0.1:8084/alfresco/api/-default-/public/cmis/versions/1.0/atom I am working in a J2EE Project 回答1: Hi i want to say that the part of the answer where given by @Gagravarr public void pingADR() throws UnknownHostException,

Alfresco openCMIS connect to home folder

◇◆丶佛笑我妖孽 提交于 2020-01-17 02:36:15
问题 In Alfresco I have this structure /Company Home/A and /Company Home/B some users home folders are set to A and others set to B. Problem: I see that in order to connect from my application to Alfresco though OpenCMIS, I need connect there using the repositoryId, aka MainRepository(Company home), so I need give all users from A and B permissions to connect to there. So that´s means that if a users from A connect to Alfresco, they can read documents from B, and the other way around. I was

Get NodeRef of a workflow task Alfresco

时光总嘲笑我的痴心妄想 提交于 2020-01-16 03:18:24
问题 I create a workflow, and when I go to the task-edit page: I'm trying to obtain the nodeRef of the file (latexexemplo-2.pdf) of the workflow task: http://localhost:8080/share/page/task-edit?taskId=activiti$20649 I'm trying to make this way: var taskId = args.taskId var task = workflow.getTaskById(taskId); nodeRef = task.getPackageResources()[0].nodeRef; But I obtain "args is not defined" ... "workflow is not defined" ... "task is not defined". How can I get the nodeRef with another way? 回答1:

Run Alfresco Java code as Administrator

最后都变了- 提交于 2020-01-15 06:38:29
问题 I'm trying to implement an action in which I will add permissions to all parent nodes. However, I need to run as admin to manage the permissions. Currently my code looks like this: permissionService = serviceRegistry.getPermissionService(); //Read the username of the current user final String loggedInUser = authenticationService.getCurrentUserName(); ChildAssociationRef childAssociationRef = nodeService.getPrimaryParent(actionedUponNodeRef); //Get the parent NodeRef NodeRef parent =

Change the version manually of a Document in Alfresco using OpenCmis

浪尽此生 提交于 2020-01-14 10:25:28
问题 I want to know how can we change the Document Version Manually in Alfresco using OpenCmis? As of now when i update the document, every time alfresco change the version itself but I want to change version from user input like 1.0,2.0, 2.1 etc. For Eg. document.txt 1.0, document.txt 1.1 Instead of document.txt 1.1 i want to place version 2.3 回答1: There's no way to accomplish your goal under CMIS. The spec mandates all versioning properties on a cmis:document to be read only, and the only way to

start workflow using alfresco java script api or through web script

蓝咒 提交于 2020-01-14 02:35:20
问题 I want to start a workflow programatically. So written a web script. Execute Script : function startWorkflow() { var workflow = actions.create("start-workflow"); workflow.parameters.workflowName = "activiti$alfGroupReview"; workflow.parameters["bpm:workflowDescription"] = "Please review "; workflow.parameters["bpm:groupAssignee"] = people.getGroup( "GROUP_site_collaborators");; var futureDate = new Date(); futureDate.setDate(futureDate.getDate() + 7); workflow.parameters["bpm:workflowDueDate"

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

耗尽温柔 提交于 2020-01-12 10:13:20
问题 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).