Wasim's Site

Liferay classNameId Lookup

Search and reference all Liferay built-in classNameId values. Find the numeric ID and full class name for any core entity (JournalArticle, User, DLFileEntry, and 40+ others) to use in SQL queries, permissions checks, and asset lookups.

Liferay classNameId Lookup

Search and reference all Liferay built-in classNameId values. Find entity IDs for JournalArticle, DLFileEntry, User, and 40+ core entities.

Found 44 of 44 entries
IDEntityModuleClass NameDescriptionCopy
1AssetEntryasset-kernelcom.liferay.asset.kernel.model.AssetEntryBase content asset tracking entity
2AssetCategoryasset-kernelcom.liferay.asset.kernel.model.AssetCategoryAsset categorization entity
3AssetTagasset-kernelcom.liferay.asset.kernel.model.AssetTagAsset tagging entity
4JournalArticlejournalcom.liferay.journal.model.JournalArticleWeb content article entity
5JournalFolderjournalcom.liferay.journal.model.JournalFolderWeb content folder entity
6BlogsEntryblogscom.liferay.blogs.model.BlogsEntryBlog entry entity
7DLFolderdocument-library-kernelcom.liferay.document.library.kernel.model.DLFolderDocument library folder entity
8DLFileEntrydocument-library-kernelcom.liferay.document.library.kernel.model.DLFileEntryDocument library file entry entity
9Userportal-kernelcom.liferay.portal.kernel.model.UserPortal user entity
10Groupportal-kernelcom.liferay.portal.kernel.model.GroupPortal group/site entity
11Organizationportal-kernelcom.liferay.portal.kernel.model.OrganizationPortal organization entity
12Roleportal-kernelcom.liferay.portal.kernel.model.RolePortal role entity
13UserGroupportal-kernelcom.liferay.portal.kernel.model.UserGroupPortal user group entity
14Companyportal-kernelcom.liferay.portal.kernel.model.CompanyPortal company/instance entity
15MBMessagemessage-boardscom.liferay.message.boards.model.MBMessageMessage boards message entity
16MBThreadmessage-boardscom.liferay.message.boards.model.MBThreadMessage boards thread entity
17MBCategorymessage-boardscom.liferay.message.boards.model.MBCategoryMessage boards category entity
18WikiPagewikicom.liferay.wiki.model.WikiPageWiki page entity
19WikiNodewikicom.liferay.wiki.model.WikiNodeWiki node entity
20Commentcomment-apicom.liferay.comment.api.model.CommentGeneric comment entity
21RatingsEntryratings-kernelcom.liferay.ratings.kernel.model.RatingsEntryRatings entry entity
22RatingsStatsratings-kernelcom.liferay.ratings.kernel.model.RatingsStatsRatings statistics entity
23ExpandoValueexpando-kernelcom.liferay.expando.kernel.model.ExpandoValueExpando custom field value entity
24ExpandoColumnexpando-kernelcom.liferay.expando.kernel.model.ExpandoColumnExpando custom field column entity
25TrashEntrytrash-kernelcom.liferay.trash.kernel.model.TrashEntryTrash/recycle bin entry entity
26SocialActivitysocial-kernelcom.liferay.social.kernel.model.SocialActivitySocial activity entity
27SocialActivitySetsocial-kernelcom.liferay.social.kernel.model.SocialActivitySetSocial activity set entity
28BookmarksEntrybookmarkscom.liferay.bookmarks.model.BookmarksEntryBookmarks entry entity
29BookmarksFolderbookmarkscom.liferay.bookmarks.model.BookmarksFolderBookmarks folder entity
30CalendarEventcalendarcom.liferay.calendar.model.CalendarEventCalendar event entity
31Calendarcalendarcom.liferay.calendar.model.CalendarCalendar entity
32ShoppingItemshoppingcom.liferay.shopping.model.ShoppingItemShopping item entity
33ShoppingCategoryshoppingcom.liferay.shopping.model.ShoppingCategoryShopping category entity
34KBArticleknowledge-basecom.liferay.knowledgebase.model.KBArticleKnowledge base article entity
35KBFolderknowledge-basecom.liferay.knowledgebase.model.KBFolderKnowledge base folder entity
36AnnouncementsEntryannouncements-kernelcom.liferay.announcements.kernel.model.AnnouncementsEntryAnnouncements entry entity
37AnnouncementsFeedannouncements-kernelcom.liferay.announcements.kernel.model.AnnouncementsFeedAnnouncements feed entity
38DLFileVersiondocument-librarycom.liferay.documentlibrary.model.DLFileVersionDocument library file version entity
39DDLRecorddynamic-data-listscom.liferay.dynamic.data.lists.model.DDLRecordDynamic data list record entity
40DDLRecordSetdynamic-data-listscom.liferay.dynamic.data.lists.model.DDLRecordSetDynamic data list record set entity
41FormInstanceformscom.liferay.forms.model.FormInstanceForms form instance entity
42FormInstanceRecordformscom.liferay.forms.model.FormInstanceRecordForms form instance record entity
43ResourcePermissionportal-kernelcom.liferay.portal.kernel.model.ResourcePermissionResource permission entity
44Permissionportal-kernelcom.liferay.portal.kernel.model.PermissionPortal permission entity

Tip: Click the Copy button next to any entry to copy the full className. Use these IDs and class names in SQL queries, permission checks, asset lookups, and custom module development.

About Liferay classNameId

Every core Liferay entity (JournalArticle, Document, User, Group, Blog, etc.) has a unique numeric identifier called a classNameId. This ID is stored in Liferay's portal database and used throughout the system for asset tracking, permissions, workflows, and custom module development.

Why classNameId Matters

  • SQL Queries: Query the AssetEntry table to find all assets of a specific type.
  • Permissions API: Check user permissions on specific entity types using classNameId.
  • Asset API: Fetch, update, or delete assets by type using the Liferay Asset framework.
  • Workflow Integration: Route workflow tasks based on entity type classNameId.
  • Custom Modules: Reference entity types in your own Liferay module development.

How classNameId is Used

When you create or publish an asset in Liferay (a blog post, web content article, document, etc.), the system records it in the AssetEntry table with the entity's classNameId. This allows the Asset framework to:

  • Track all publishable content across the entire portal in one table
  • Apply permissions, categories, tags, ratings, and comments uniformly across all entity types
  • Enable unified search, feeds, and content discovery

Example: Query Assets by Type

To find all web content articles in your portal, you could query:

SELECT * FROM assetentry WHERE classpk IN (SELECT id_ FROM journalarticle) AND classnameid = 4;

How to Use This Lookup Table

  1. Search: Type an entity name (e.g., JournalArticle, User, DLFileEntry) or module name (e.g., journal, asset, blogs) into the search box.
  2. Review: The table shows the numeric classNameId, the full Java class name, the module, and a description.
  3. Copy: Click the Copy button to copy the full class name to your clipboard.
  4. Use: Use the classNameId in your SQL queries, Java code, REST API calls, or configuration files.

Frequently Asked Questions

What is a classNameId in Liferay?
A classNameId is a unique numeric identifier for each core Liferay entity type (JournalArticle, DLFileEntry, User, etc.). Used in database queries, asset lookups, and permission checks.
Where do I use classNameId?
Common uses: SQL queries on AssetEntry table, Permissions API (checkPermission), Asset API lookups, custom module development, workflow integration, and dynamic queries.
Is this tool official?
No. This is a community reference tool. The classNameId values are from Liferay's open-source codebase and are consistent across versions, but always verify in your own Liferay instance.
How do I find the classNameId in my running portal?
Query the portal_classname table: SELECT classnameid, value FROM classname_ WHERE value = 'com.liferay.journal.model.JournalArticle'
Why do some classNameIds not match my portal?
Custom entities or third-party plugins may have different IDs. Always check your portal's classname_ table for the authoritative ID in your instance.

Database Reference

In your Liferay database, the classname_ table contains the authoritative mapping:

SELECT classnameid, value FROM classname_ ORDER BY classnameid;

This tool displays the standard core entity mappings. Custom plugins and third-party modules may have additional classNameId entries in your instance.