ResourceViewBinding
(this was a question sent into the SDK email alias for D2 Smart View SDK partner challenge. It might help others, so I am reposting)
… I was wondering if you could explain me a bit how to use the @ResourceViewBinding.
I understand the concept of it. (Deserializing the return object to the JSON structure required ?)
But I can’t figure out how it works.
—
Kyle Pettit
Documentum D2 Product manager
Answers
-
@ResourceViewBinding : is a custom annotation which is used as wrapper for the serialization of the DataViews with Types(this is used to represent the response representation if not mentioned in the model POJO's).
Each of the DataVIews is just a custom class which will have a reference to the POJO's which is attached to the DataViews class using the @DataViewBinding. This dataview class is mainly used to attach the linkrels and other custom logic for the response apart from the POJO's data.
DataView class needs to extend from LinkableView<POJO class>
So for further help.. i am attaching the REST servic
es development guide for reference
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 150 General Questions
- 148 Thrust Services
- 57 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 186 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 8 XM Fax
- Follow Categories