Creato da pastuweb.com
Share My Page
My Social Accounts
Account FaceBook Account LinkedIn Account Twitter Account Google Plus Account Git Hub

 

MyLibrary Portlet view

 

With this portlet you can share the books you've read, you're reading.
For every book you can enter: Title, Description, Author, More Info, Notes, Read Status.
 
I have integrated PDF API: iText jar to export database entries.
 
Data is stored on a MySQL database; the structure is very simple:
service.xml
  <entity name = "MyLibrary" local-service = "true" remote-service = "true">
 
     <! - PK Fields ->
     <column name = "id_book" type = "long" primary = "true" />
 
     <! - Other Fields ->
     <column name = "title" type = "String" />
     <column name = "description" type = "String" />
     <column name = "authors" type = "String" />
     <column name = "status" type = "String" /> <! - In Progress || || bed Not Finished ->
     <column name = "link_more_info" type = "String" />
     <column name = "note" type = "String" />
    
    
     <order by = "desc">
       <order-column name = "id_book" />
     </ order>
 
     <! - Finder Methods ->
     <finder name = "Title" return-type = "Collection">
       <finder-column name = "title" />
     </ finder>
     <finder name = "Authors" return-type = "Collection">
       <finder-column name = "author" />
     </ finder>
     <finder name = "State" return-type = "Collection">
       <finder-column name = "status" />
     </ finder>
    
</ entity>
 
You can find this project on my GitHub Repository at this repository URL: https://github.com/pastuweb/library-liferay-6-1