alfresco

Alfresco Object is not available in extension module in alfresco share

六眼飞鱼酱① 提交于 2019-12-12 03:42:14
问题 I am trying to override the javascript controller node-header.js of components\node-details with the extension module of alfresco share This is my node-header.get.js <import resource="classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js"> for (var i=0; i<model.widgets.length; i++) { if (model.widgets[i].id == "NodeHeader") { if(model.widgets[i].options.nodeRef!=null) { var jsNode = new Alfresco.util.Node(model.widgets[i].options.nodeRef); if(jsNode.hasAspect("custom:intranetFile

Alfresco 5.1 Javascript debugger error no x11 display variable was set but this program performed an operation which requires

纵然是瞬间 提交于 2019-12-12 03:37:49
问题 I have installed Alfresco 5.1 on Ubuntu 14.04 and I have also installed the Javascript repo for script editing. However my challenge is when I want to enable javascript debugger through http://localhost:8080/alfresco/s/api/javascript/debugger I get the following error: The Web Script /alfresco/s/api/javascript/debugger has responded with a status of 500 - Internal Error. 500 Description: An error inside the HTTP server which prevented it from fulfilling the request. Message: 05230000 Wrapped

Reindex a file in alfresco 5.0

折月煮酒 提交于 2019-12-12 03:36:21
问题 I just want to re-indexed a file,I am using this api "https://localhost:8443/solr4/admin/cores?action=REINDEX&nodeid=983" but i could not re-indexed.Can any one tell how can i re-indexed a file ? I am using alfresco 5.0. 回答1: You should be able to see the count of error nodes using your admin console and confirm that something really is in error. The action you mentioned is the right one (there are a few more, check the official documentation), but if the node is not reindexed, the action

How to get Alfresco Action status

杀马特。学长 韩版系。学妹 提交于 2019-12-12 03:35:23
问题 I have a problem. I have Alfresco 4. I'm create a rule(for INBOUND, OUTBOUND, UPDATE) and action for my scpecific folder. But when I hook the action in my java class(extending from ActionExecuterAbstractBase) I don't know, how to get status for node(what's happen - deleted, modified or created node). One way for resolved this problem - it's a comparison uploaded_date and modified_date properties from a node. But it's not good. If anyone know how to do it, please, answer. Thank you. 回答1: 2

User creation in alfresco through java

眉间皱痕 提交于 2019-12-12 03:20:14
问题 PersonServiceImpl personService = new PersonServiceImpl(); PropertyMap ppOne = new PropertyMap(6); AuthenticationService authenticationService = new AuthenticationServiceImpl(); AuthorityService aService = new AuthorityServiceImpl(); if(authenticationService.authenticationExists("admin123")==false){ authenticationService.authenticate("admin123","admin123".toCharArray()); ppOne.put(ContentModel.PROP_USER_USERNAME,"admin123"); ppOne.put(ContentModel.PROP_FIRSTNAME,"admin123"); ppOne.put

Filter user in Select (bpm:assignee) control (Alfresco)

一世执手 提交于 2019-12-12 03:11:39
问题 I have bpm:assignee control in my custom wokflow, and that's ok. But wright now user can pick up all alfresco users for bpm:assignee. I wan't to limit user so that when he goes to select control and enter some term for search in search result appear just user from specific group or just some users defined by some criteria (it means that user can not search over entire alfresco user database, just over specific set of users). Does anybody know how i can achieve this in my custom workflow?

How to make the following code in alfresco work properly?

[亡魂溺海] 提交于 2019-12-12 03:05:42
问题 I have created a class by the name CreateUserHandler in Alfresco in order to generate the username and random password for an email address. I am getting exception in this..Please someone help me with this... public class CreateUserHandler { private static Logger logger = LoggerFactory.getLogger(CreateUserHandler.class); private NodeService nodeService = getServiceRegistry().getNodeService(); private PersonService personService = getServiceRegistry() .getPersonService(); private ActionService

How to fetch password from Alfresco UI page which has been created by admin for the new user?

时光总嘲笑我的痴心妄想 提交于 2019-12-12 02:45:45
问题 I had used this code for auto generation of mails. Now the problem is password shown in the mail is the password as generated by the script. I want the password to be fetched from alfresco new user page, where the admin has created the password for the new user not any random string. Below is the script that i generated for automatic mail generation. if (document.isContainer && document.displayPath == "/Company Home/User Homes") { var owner = document.properties["cm:owner"]; var pNode =

Get Alfresco NodeRef by path

最后都变了- 提交于 2019-12-12 02:38:03
问题 I want to get the NodeRef of a document (or space) stored in Alfresco. My code is in Java, running within Alfresco (for instance in an AMP). I don't care about race conditions, as I will only use this for nodes that I know for sure have existed for days already. How to do? 回答1: The easiest way is probably using the NodeLocatorService and the XPath locatorName + an xpath expression Under the hood, that uses the search service, but it wraps up a lot of the complexity for you! To use it, get the

upload and update with same name to Alfresco

末鹿安然 提交于 2019-12-12 02:29:04
问题 i want to update files to Alfresco. i upload it and when i want to update (with same name) i have errors "duplicate child name". i want to keep both of files with the same name on Alfresco and to change only the "file versions" (the name to Alfresco will be one but have file versions 1.0 , 1.1, 1.2). Below is my java code that i have the problem. protected void executeFunction(AlfrescoRestClient alfrescoClient, AlfrescoSOAPClient alfrescoSOAPClient) throws Exception { String lastFileId = "";