Is there any way to access archived documents via CMIS?
Background:
In Alfresco Explorer I am able to delete a document which before I delete it is accessible by workspace://SpacesStore/<id> in the node browser. After the document is deleted, it is then accessible by archive://SpacesStore/<id> in the node browser. It is the same document which as been archived and I can restore it if I like.
When a document is archived, it gets an archived aspect (sys:archived I believe), which I tried to query in CMIS with no success.
What I'd like to do:
I'd like to be able to access archived documents via CMIS and the Alfresco CMIS extension. I've had success with queries like the following which produce CMIS output which contains aspect data.
select * from cmis:document d join cm:titled t on d.cmisbjectid=t.cmisbjectid select * from cmis:document d join cm:author a on d.cmisbjectid=a.cmisbjectid select * from cmis:document d join exif:exif x on d.cmisbjectid=x.cmisbjectid select * from cmis:document d join rn:renditioned r on d.cmisbjectid=r.cmisbjectid (or combinations or the above joins)
This query trying to access documents with the archived aspect does not return any results: select * from cmis:document d join sys:archived sa on d.cmisbjectid=sa.cmisbjectid
I suspect it is because the archived documents are no longer in the same store and in a separate archived store.
Can anyone shed some light on how can I access these archived documents?
It seams to me that the archive store should be accessible from CMIS given the right creds (admin). I wouldn't think that would require any addition to the CMIS API. Of course, I'm making the assumption that the archive store is just basically another store. The node browser is able to browse it.