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.
| ID | Entity | Module | Class Name | Description | Copy |
|---|---|---|---|---|---|
| 1 | AssetEntry | asset-kernel | com.liferay.asset.kernel.model.AssetEntry | Base content asset tracking entity | |
| 2 | AssetCategory | asset-kernel | com.liferay.asset.kernel.model.AssetCategory | Asset categorization entity | |
| 3 | AssetTag | asset-kernel | com.liferay.asset.kernel.model.AssetTag | Asset tagging entity | |
| 4 | JournalArticle | journal | com.liferay.journal.model.JournalArticle | Web content article entity | |
| 5 | JournalFolder | journal | com.liferay.journal.model.JournalFolder | Web content folder entity | |
| 6 | BlogsEntry | blogs | com.liferay.blogs.model.BlogsEntry | Blog entry entity | |
| 7 | DLFolder | document-library-kernel | com.liferay.document.library.kernel.model.DLFolder | Document library folder entity | |
| 8 | DLFileEntry | document-library-kernel | com.liferay.document.library.kernel.model.DLFileEntry | Document library file entry entity | |
| 9 | User | portal-kernel | com.liferay.portal.kernel.model.User | Portal user entity | |
| 10 | Group | portal-kernel | com.liferay.portal.kernel.model.Group | Portal group/site entity | |
| 11 | Organization | portal-kernel | com.liferay.portal.kernel.model.Organization | Portal organization entity | |
| 12 | Role | portal-kernel | com.liferay.portal.kernel.model.Role | Portal role entity | |
| 13 | UserGroup | portal-kernel | com.liferay.portal.kernel.model.UserGroup | Portal user group entity | |
| 14 | Company | portal-kernel | com.liferay.portal.kernel.model.Company | Portal company/instance entity | |
| 15 | MBMessage | message-boards | com.liferay.message.boards.model.MBMessage | Message boards message entity | |
| 16 | MBThread | message-boards | com.liferay.message.boards.model.MBThread | Message boards thread entity | |
| 17 | MBCategory | message-boards | com.liferay.message.boards.model.MBCategory | Message boards category entity | |
| 18 | WikiPage | wiki | com.liferay.wiki.model.WikiPage | Wiki page entity | |
| 19 | WikiNode | wiki | com.liferay.wiki.model.WikiNode | Wiki node entity | |
| 20 | Comment | comment-api | com.liferay.comment.api.model.Comment | Generic comment entity | |
| 21 | RatingsEntry | ratings-kernel | com.liferay.ratings.kernel.model.RatingsEntry | Ratings entry entity | |
| 22 | RatingsStats | ratings-kernel | com.liferay.ratings.kernel.model.RatingsStats | Ratings statistics entity | |
| 23 | ExpandoValue | expando-kernel | com.liferay.expando.kernel.model.ExpandoValue | Expando custom field value entity | |
| 24 | ExpandoColumn | expando-kernel | com.liferay.expando.kernel.model.ExpandoColumn | Expando custom field column entity | |
| 25 | TrashEntry | trash-kernel | com.liferay.trash.kernel.model.TrashEntry | Trash/recycle bin entry entity | |
| 26 | SocialActivity | social-kernel | com.liferay.social.kernel.model.SocialActivity | Social activity entity | |
| 27 | SocialActivitySet | social-kernel | com.liferay.social.kernel.model.SocialActivitySet | Social activity set entity | |
| 28 | BookmarksEntry | bookmarks | com.liferay.bookmarks.model.BookmarksEntry | Bookmarks entry entity | |
| 29 | BookmarksFolder | bookmarks | com.liferay.bookmarks.model.BookmarksFolder | Bookmarks folder entity | |
| 30 | CalendarEvent | calendar | com.liferay.calendar.model.CalendarEvent | Calendar event entity | |
| 31 | Calendar | calendar | com.liferay.calendar.model.Calendar | Calendar entity | |
| 32 | ShoppingItem | shopping | com.liferay.shopping.model.ShoppingItem | Shopping item entity | |
| 33 | ShoppingCategory | shopping | com.liferay.shopping.model.ShoppingCategory | Shopping category entity | |
| 34 | KBArticle | knowledge-base | com.liferay.knowledgebase.model.KBArticle | Knowledge base article entity | |
| 35 | KBFolder | knowledge-base | com.liferay.knowledgebase.model.KBFolder | Knowledge base folder entity | |
| 36 | AnnouncementsEntry | announcements-kernel | com.liferay.announcements.kernel.model.AnnouncementsEntry | Announcements entry entity | |
| 37 | AnnouncementsFeed | announcements-kernel | com.liferay.announcements.kernel.model.AnnouncementsFeed | Announcements feed entity | |
| 38 | DLFileVersion | document-library | com.liferay.documentlibrary.model.DLFileVersion | Document library file version entity | |
| 39 | DDLRecord | dynamic-data-lists | com.liferay.dynamic.data.lists.model.DDLRecord | Dynamic data list record entity | |
| 40 | DDLRecordSet | dynamic-data-lists | com.liferay.dynamic.data.lists.model.DDLRecordSet | Dynamic data list record set entity | |
| 41 | FormInstance | forms | com.liferay.forms.model.FormInstance | Forms form instance entity | |
| 42 | FormInstanceRecord | forms | com.liferay.forms.model.FormInstanceRecord | Forms form instance record entity | |
| 43 | ResourcePermission | portal-kernel | com.liferay.portal.kernel.model.ResourcePermission | Resource permission entity | |
| 44 | Permission | portal-kernel | com.liferay.portal.kernel.model.Permission | Portal 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:
How to Use This Lookup Table
- Search: Type an entity name (e.g., JournalArticle, User, DLFileEntry) or module name (e.g., journal, asset, blogs) into the search box.
- Review: The table shows the numeric
classNameId, the full Java class name, the module, and a description. - Copy: Click the Copy button to copy the full class name to your clipboard.
- 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:
This tool displays the standard core entity mappings. Custom plugins and third-party modules may have additional classNameId entries in your instance.