Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
Description
Many CMS frontend plugins contain code which is not directly related to rendering/controlling the view and so should be in model classes instead. Examples: interpretation of JCR node types, finding an hippo:document's associated hippo:handle, etc.
A number of NodeModelWrapper subclasses already exist for these purposes, these should be further extended to contain this logic. They also should be made "type safe", i.e. they can only wrap nodes of certain types so this should be checked inside their constructors.
See discussion on mailing list [1].