alfresco-webscripts

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

Auto-Incrementing (Unique) ID in Alfresco

余生颓废 提交于 2019-12-11 08:03:30
问题 i am trying to extend alfresco's document management by running a script. So far, i have managed to create a Custom Model with a Custom Type and Property as seen below: the said Custom Type is under this Custom Model (never mind the Custom Aspect for now) the custom type is working so far, i managed to apply it to a certain document as you can see below (Notice the Control Code Field) now what i want to do is to add an auto incrementing function that will be set as the value of the Control

Modify live search in Alfresco Commmunity 5.0.d

元气小坏坏 提交于 2019-12-08 05:15:44
问题 I am using Alfresco Community 5.0.d and trying to find the files related to live search. I would like to remove or modify the people finder in live search. Please let me know the files or way to achieve it. Share-header.get.js info is below: if (!user.isAdmin) { widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_MY_FILES"); widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_SHARED_FILES"); widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_SITES_MENU"

Task edit document preview component Alfresco

只愿长相守 提交于 2019-12-07 18:14:06
问题 First question: I want to implement a preview of the document in the form of the task-edit of the workflows... How can I do this? I try to adapt the document-details.xml and document-details.ftl to workflow-details.xml and workflow-details.ftl but not works. I tried to copy the components that have web-preview of the document-details files to workflow-details. Any hint to make this? I have this in workflow-details.ftl : <#include "include/alfresco-template.ftl" /> <@templateHeader> <@script

Modify live search in Alfresco Commmunity 5.0.d

空扰寡人 提交于 2019-12-07 03:18:29
I am using Alfresco Community 5.0.d and trying to find the files related to live search. I would like to remove or modify the people finder in live search. Please let me know the files or way to achieve it. Share-header.get.js info is below: if (!user.isAdmin) { widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_MY_FILES"); widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_SHARED_FILES"); widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_SITES_MENU"); widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_PEOPLE"); widgetUtils

Task edit document preview component Alfresco

血红的双手。 提交于 2019-12-05 21:02:50
First question: I want to implement a preview of the document in the form of the task-edit of the workflows... How can I do this? I try to adapt the document-details.xml and document-details.ftl to workflow-details.xml and workflow-details.ftl but not works. I tried to copy the components that have web-preview of the document-details files to workflow-details. Any hint to make this? I have this in workflow-details.ftl : <#include "include/alfresco-template.ftl" /> <@templateHeader> <@script type="text/javascript" src="${url.context}/res/modules/documentlibrary/doclib-actions.js" group=

Alfresco webscript to get the list of all files and folder with their size

梦想与她 提交于 2019-12-02 22:45:06
问题 Need a js based alfresco webscript to get the list of all folders and files recursively alond with their size. 回答1: CMIS Query: select cmis:objectId, cmis:name, cmis:contentStreamLength from cmis:document where cmis:contentStreamLength>0 order by cmis:contentStreamLength desc HTTP GET: http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/ ?cmisselector=query &succinct=true &q=select cmis:objectId, cmis:name, cmis:contentStreamLength from cmis:document where cmis

Connection with alfresco cmis

半世苍凉 提交于 2019-12-02 16:57:45
问题 I am trying to connect alfresco using config parameters but i am getting error: Config: sessionParameters.put(SessionParameter.USER, "admin"); sessionParameters.put(SessionParameter.PASSWORD, "admin"); sessionParameters.put(SessionParameter.ATOMPUB_URL, "http://localhost:8080/alfresco/service/cmis"); sessionParameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value()); sessionParameters.put(SessionParameter.REPOSITORY_ID, "CIPBASE"); sessionParameters.put(SessionParameter.AUTH

Alfresco webscript to get the list of all files and folder with their size

≡放荡痞女 提交于 2019-12-02 13:56:13
Need a js based alfresco webscript to get the list of all folders and files recursively alond with their size. CMIS Query: select cmis:objectId, cmis:name, cmis:contentStreamLength from cmis:document where cmis:contentStreamLength>0 order by cmis:contentStreamLength desc HTTP GET: http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/ ?cmisselector=query &succinct=true &q=select cmis:objectId, cmis:name, cmis:contentStreamLength from cmis:document where cmis:contentStreamLength>0 order by cmis:contentStreamLength desc JavaScript: Use search root object : search - org

Connection with alfresco cmis

依然范特西╮ 提交于 2019-12-02 09:25:51
I am trying to connect alfresco using config parameters but i am getting error: Config: sessionParameters.put(SessionParameter.USER, "admin"); sessionParameters.put(SessionParameter.PASSWORD, "admin"); sessionParameters.put(SessionParameter.ATOMPUB_URL, "http://localhost:8080/alfresco/service/cmis"); sessionParameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value()); sessionParameters.put(SessionParameter.REPOSITORY_ID, "CIPBASE"); sessionParameters.put(SessionParameter.AUTH_HTTP_BASIC, "true" ); sessionParameters.put(SessionParameter.COOKIES, "true" ); Error is: org.apache