Menu
  • HOME
  • TAGS

Alfresco Java backed web-script lookup by cmis:objectId

alfresco,cmis,opencmis

Well, the answer is a little ugly, but hopefully this helps someone... A good way to look up the NodeRef using an 'opaque' objectId should be to use CMISServices, obtained from the registry in your java backed web script, i.e. docRef = registry.getCMISService().getLatestVersion(docIdStr, false); Unfortunately, there's a bug in the...

Retrieving a Document from a QueryResult with OpenCMIS

java,opencmis

Try the Session.queryObjects() method.

How to close OpenCMIS connections

alfresco,opencmis

Not quite sure what you have in mind when you say close, but I assume you mean releasing resources. The session is a stateful thing which amongst other things caches and holds authentication. It does not require any special clean up. If you want to get rid of it, just...

Alresco CMIS multi aspect with same properties name

alfresco,cmis,opencmis

I'm not sure why it's not giving an error on start-up. But in Alfresco a property must be unique in it's model. So your my:companyId is used twice in different aspects. The best practice is to create 1 aspect called my:company which has a property my:companyId. You can just define...

Exporting documents from Ephesoft Comunity to Alfresco via CMIS Plugin

alfresco,cmis,opencmis,ephesoft

Finally I found out the problem. Ephesoft Community (at least on Windows) uses a very old version of opencmis. Indeed it uses a 0.2 incubation version. I don't know if the version of that library is directly related whit the error, but for avoid it, you need to configure Ephesoft...

Alfresco permissions see list of node content but deny download

alfresco,opencmis

Yes, according to the documentation here When modifying access control, do not try to split ReadProperties and ReadContent. This does not make sense for search. A node and all of its properties, including content, are indexed as one entity. Splitting the evaluation of access for content and properties is not...

Apache Chemistry CMIS session.createDocument vs folder.createDocument

cmis,opencmis,apache-chemistry

Session.createDocument() creates a document and returns the document ID. Folder.createDocument() creates a document and returns a complete Document object. To do that, Folder.createDocument() needs one more round-trip to the server. If you just want to create a document and you are not interested in the document properties, or the document...

GetContentChanges returns “Unauthorized”

alfresco,cmis,opencmis,dotcmis

The problem was that the old CMIS URL http://[host]:[port]/alfresco/cmisatom was used. Solution: Replacing that URL in the configuration with the new CMIS URL http://[host]:[port]/alfresco/api/-default-/public/cmis/versions/1.0/atom solved the problem....