%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
Using the Recycle Bin Framework in Liferay 6.2
1. LIFERAY DEVELOPER CONFERENCE
Using the Recycle Bin in
your applications
Giving a second chance to your content
Julio Camarero @juliocamarero
Sergio González @sgonzalezortiz
#LRDevCon2013
25. LIFERAY DEVELOPER CONFERENCE 2013DEV
CON
LIFERAY
trashRenderer
Implement your own and define it in in liferay-portlet.xml
OR
Reuse AssetRenderer
demo
34. LIFERAY DEVELOPER CONFERENCE 2013DEV
CON
LIFERAY
Apply to trashHandler
Implement restoreTrashEntry method by calling to the new
service method
demo
45. LIFERAY DEVELOPER CONFERENCE 2013DEV
CON
LIFERAY
Special care with containers
Methods moveDependentsToTrash and
restoreDependentsFromTrash
1. Update status of the song
2. Add trashVersion entity (instead of trashEntry)
3. Update asset visibility
4. Reindex the new entity
demo
49. LIFERAY DEVELOPER CONFERENCE 2013DEV
CON
LIFERAY
1. Rename on removal (TrashUtil.getTrashTitle)
2. Restore name on restoral (TrashUtil.getOriginalTitle)
50. LIFERAY DEVELOPER CONFERENCE 2013DEV
CON
LIFERAY
1. Rename on removal (TrashUtil.getTrashTitle)
2. Restore name on restoral (TrashUtil.getOriginalTitle)
51. LIFERAY DEVELOPER CONFERENCE 2013DEV
CON
LIFERAY
1. Rename on removal (TrashUtil.getTrashTitle)
2. Restore name on restoral (TrashUtil.getOriginalTitle)
3. Put the name logic on the trashRenderer
52. LIFERAY DEVELOPER CONFERENCE 2013DEV
CON
LIFERAY
1. Rename on removal (TrashUtil.getTrashTitle)
2. Restore name on restoral (TrashUtil.getOriginalTitle)
3. Put the name logic on the trashRenderer
4. Implement 2 methods in the trashHandler:
checkDuplicateTrashEntry / updateTitle
demo
53. LIFERAY DEVELOPER CONFERENCE 2013DEV
CON
LIFERAY
Thank you!
@juliocamarero
@sergiogonzalez
julio.camarero@liferay.com
sergio.gonzalez@liferay.com
if you liked it, vote in the app :)