apache-chemistry

CmisUnauthorizedException: Unauthorized - error using Apache Chemistry library interfacing to Sharepoint 2013

▼魔方 西西 提交于 2020-01-14 03:30:09
问题 I'm having concern connecting to Sharepoint 2013 via CMIS using Apache Chemistry library. I am receiving Unauthorized error , but the credentials (U/P) I used are correct. I used it to login to the Sharepoint Online so it should be working on my code. Hope someone could help me solving this. Thanks! See my code below I am using to create a session to Sharepoint: public Session fillParams() {//define some values for the connection string String rest_base = "http://<server>/sites/_api/web/";

How to get case insensitive cmis:folder search query

女生的网名这么多〃 提交于 2020-01-06 18:47:50
问题 stmt = session.createQueryStatement("SELECT * FROM cmis:folder WHERE IN_TREE(?) and cmis:name=?"); stmt.setString(1,'sites/test/documentLibrary'); stmt.setString(2,'Test'); I got result with exact folder name(Test) case senstive, but If i gave foldername test or TEST result not found. Could you please help me on case insenstive folder search. 回答1: The CMIS QL does not support case insensitive queries because many repositories can't provide it. Depending on the repository and the repository

How to create custom property on object using Apache Chemistry

☆樱花仙子☆ 提交于 2019-12-13 19:03:57
问题 I'm working with a local instance of Alfresco CMS and I'm using the Apache Chemistry Java CMIS. Everything works well for browsing and creating objects, however I'm having a hard time adding metadata on documents. There is an example on their source page code saying that you need to call updateProperties on the CmisObject . Unfortunately, this doesn't work, the exception I got stating: Property 'my:property' is not valid for this type or one of the secondary types Do you know how can I add a

Download Document from alfresco using opencmis

守給你的承諾、 提交于 2019-12-12 01:22:04
问题 I want to download document from alfresco using path but i am getting content length null and image can be downloaded in browser but nothing is displaying. Can anybody point out what i am doing wrong. import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.DataInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.io.PrintWriter; import java.util.HashMap; import java.util.Map; import javax.servlet

Create shortcut of Folder or Document in Alfresco

烈酒焚心 提交于 2019-12-12 01:08:59
问题 My requirement is to create shortcut of one folder or document into another folder. For example lets say I have a folder called A and in this folder I have many documents. Now I want to create shortcut of this folder into another folder name B. So basically I don't want to store same content in folder B, it's contains link or reference of folder A. Whatever change made in folder A, it has to be reflected to folder B also. So any one please help me how to do it alfresco using apache chemistry.

What is OpenCMIS Bridge?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 01:14:47
问题 I just noticed this project at Apache OpenCMIS: https://svn.apache.org/repos/asf/chemistry/opencmis/trunk/chemistry-opencmis-bridge There is no description, no documentation, and reading the code does not give many hints about what it is supposed to do. Apache OpenCMIS sometimes releases great software silently, with little communication, so we might be missing another great piece of software here. A Google Search for "OpenCMIS Bridge" returns only source code and the bare download page. 回答1:

Apache CMIS: Paging query result

China☆狼群 提交于 2019-11-28 13:01:29
Recently I've started using Apache CMIS and read the official documentation and examples. I haven't noticed anything about paging query results. There is an example showing how to list folder items, setting maxItemsPerPage using operationContext, but it seems that operationContext can be used inside getChilder method: int maxItemsPerPage = 5; int skipCount = 10; CmisObject object = session.getObject(session.createObjectId(folderId)); Folder folder = (Folder) object; OperationContext operationContext = session.createOperationContext(); operationContext.setMaxItemsPerPage(maxItemsPerPage);