Asset enabling Custom Entities

*Asset framework : 여러 타입의 컨텐츠에 대해서 동일하게 갖고있는 여러 feature들을 제공한다. Web content articles, blog posts, wiki articles, document가 모두 LIferay asset의 예이다. 개발자는 custom asset type을 정의하여 라이프레이가 이미 제공하고 있는 기능들을 다시 구현할 필요가 없다. Asset framework가 갖고 있는 feature들은 다음과 같다.

  • Tags and categories
  • Comments and ratings
  • Related assets (a.k.a. asset links)
  • Faceted search
  • Integration with Liferay’s Asset Publisher portlet
  • Integration with Liferay’s Search portlet
  • Integration with Liferay’s Tags Navigation portlet, Tag Cloud portlet, and Categories Navigation portlets

more about Asset framework

목표 : 앞서 만든 Guestbook, Guestbook entry를 Liferay asset framework와 통합한다. Guestbook과 Entry에 대한 tags, categories, comments, rating, related assets를 구현할 것이다. 그리고 asset-enable된 guestbook과 entry가 Asset Publisher, Tags Navigation, Tag Cloud, Categories Navigation portlet들과 어떻게 통합되는지를 배운다.

Liferay의 Asset 은 Liferay DB의 AssetEntry table에 표현된다.

  • entryId (primary key)

  • classNameId : specifies the type of asset (ex, The value 'JournalArticle' means web content article)

  • classPK (foreign key) : represents the primary key of the entity

results matching ""

    No results matching ""