Andi Huber created ISIS-3084:
--------------------------------

             Summary: [RO/Wrapper] Remove the Notion of mutable Collections 
(with associated Events)
                 Key: ISIS-3084
                 URL: https://issues.apache.org/jira/browse/ISIS-3084
             Project: Isis
          Issue Type: Improvement
          Components: Isis Core, Isis Viewer RO
            Reporter: Andi Huber
            Assignee: Andi Huber
             Fix For: 2.0.0-M8


Quoting Dan:

Collection changes have historically been supported, but they are mostly 
deprecated/removed for v2. Part of the rationale for that is the difficulty of 
defining what an "execution" would mean for them. 

Historically there was "addToXxx" and "removeFromXxx" prefixes for a collection 
"getXxx". When we moved to building web UIs, this was somewhat difficult to 
express.  In any case, it also makes sense to limit which objects can be added 
to or removed from a collection.

Thus, one would make the collection read only and then define actions that 
encapsulated the required business logic.

[... as] this stuff is only semi-deprecated, because you'll see that the RO 
viewer does define endpoints representing mutable collections, and the 
WrapperFactory also supports the notion.  All this code could be removed [...]



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to