Hi all,
Proxy support was implemented in NXCore.
This means publication support can be started.
How the proxy is implemented:
As discussed with Florent a document proxy refers to a
frozen document
version (frozen node in jcr).
This means a proxy is a read-only pointer to a document
version.
Also, proxies cannot points to folder documents. (folder
documents are
not versionable)
A proxy is exposed as a normal document. Operations not
supported by
proxies (like getChildren(), setPropertyValue() etc)
are throwing UnsupportedOperationException exceptions.
Methods used to retrieve proxy properties (including doc
type) are
delegated to the referred document.
Methods that are used to identify the proxy object inside
the repository
tree (name, path, UUID etc) are implemented by the proxy
itself
(and not delegated to the ref doc)
Also from a proxy object you can retrive the referred
document version
and also the last version of the referred document.
The public API is exposing a method
public DocumentModel createProxy(DocumentRef parentRef,
DocumentRef
docRef,
VersionModel version) throws ClientException;
to create new proxies to a given version of a given document
in the
given parent folder
I hope this is enough for now to start publication
implementation.
If more functionality need to be added I will make needed
modifications
on the proxy impl.
You need to remove the repository database after updating
the sources
since internal mapping between schemas -> jcr types was
updated
Bogdan
_______________________________________________
ECM mailing list
ECM lists.nuxeo.com
http://li
sts.nuxeo.com/mailman/listinfo/ecm
|