opencmis

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

How to filter folder children using cmis query?

爱⌒轻易说出口 提交于 2019-12-02 11:35:13
I would like to filter the children of folders from a cmis 1.0 compliant repository with one query. So far that doesn't seem to be possible so I have settled to execute two queries to retrieve the children (i.e. folders and documents), however would still like to filter children by custom types so I have the following query: SELECT cmis:objectTypeId, cmis:objectId FROM cmis:folder WHERE cmis:objectTypeId = 'my:custom1' OR cmis:objectTypeId = 'my:custom2' OR cmis:objectTypeId = 'cmis:folder' IN_FOLDER('workspace://SpacesStore/fhj738tw-45hW-659u-9DS1-9cX3Nh95r089') Which doesn't work as I keep

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

CmisObjectNotFoundException when trying to access my Alfresco repository

六眼飞鱼酱① 提交于 2019-12-01 23:28:06
I'm new with CMIS and Alfresco and I got this error when in try to connect to my Alfresco's repository using AtomPUB binding. I have no idea about the source of my problem. Is it unless a functionality ? Is it my Credential ? When I install it, I choose only : - Alfresco community - Solr4 How should I do if I want to use web services ? Should I install a specific plugin in my Alfresco ? I got with error : SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/ME%2ME/.m2/repository/org/slf4j/slf4j-simple/1.7.9/slf4j-simple-1.7.9.jar!/org/slf4j/impl

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);