Changed the way a playlist is updated: receiving the contents to remove and the contents to add.
Using a new Class to pass Contents from controller to Persist operations and vice versa.
Changed the way a playlist is updated: receiving the contents to remove and the contents to add. A new playlist is saved receiving just the contents to add.
Added a new utility method and a new utility interface to allow the transformation of an object into another, evaluating a predicate.
Passing to the server just the added contents and the removed contents when updating a play list. This way we can avoid that an unchanged play list can be saved. Comparing the current play list contents with the contents received when the play list was loaded from the server. Start using object oriented paradigm for better organization of the functions.
New methods: find a content and save it if don't exists in the data storage; Delete from the data storage all the contents that are not in any play list.
Testing the update play list method of the PersistencePlaylist class.
Disable fork of the JVM to be able to debug tests.
Missing the orphanRemoval attribute. Without this it's not possible to automatically delete the PlaylistsContents that were removed from the play list.