Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-15948

BaseModel.getModelClassName() / getModelClass(), AuditedModel, and GroupedModel

    Details

    • Branch Version/s:
      6.0.x, 5.2.x
    • Backported to Branch:
      Committed

      Description

      Add getModelClassName() and getModelClass() to BaseModel. Since all classes have that data anyways, just expose it as a friendly method.

      For example, MBMessage.getModelClassName() -> com.liferay.portlet.messageboards.model.MBMessage

      Added AuditedModel interface. Most of our base models have companyId, createDate / modifiedDate, userId / userName. If a model has those fields, then it will also implement the AuditedModel interface.

      If a base model is an AuditedModel, and also has a groupId, then it is also a GroupedModel - meaning, its data can be "grouped" into sites / communities.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  8 years, 34 weeks, 6 days ago

                  Packages

                  Version Package
                  --Sprint - SP
                  6.1.0 CE RC1