Interface LayoutContentVersionModel

All Superinterfaces:
com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<LayoutContentVersion>, com.liferay.portal.kernel.model.ClassedModel, Cloneable, Comparable<LayoutContentVersion>, com.liferay.portal.kernel.model.ExternalReferenceCodeModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.MVCCModel, Serializable, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.WorkflowedModel
All Known Subinterfaces:
LayoutContentVersion
All Known Implementing Classes:
LayoutContentVersionWrapper

@ProviderType public interface LayoutContentVersionModel extends com.liferay.portal.kernel.model.BaseModel<LayoutContentVersion>, com.liferay.portal.kernel.model.ExternalReferenceCodeModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.WorkflowedModel
The base model interface for the LayoutContentVersion service. Represents a row in the "LayoutContentVersion" database table, with each column mapped to a property of this class.

This interface and its corresponding implementation com.liferay.layout.content.model.impl.LayoutContentVersionModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.layout.content.model.impl.LayoutContentVersionImpl.

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    long
    Returns the company ID of this layout content version.
    Returns the create date of this layout content version.
    Returns the data of this layout content version.
    Returns the data hash of this layout content version.
     
    Returns the external reference code of this layout content version.
    long
    Returns the group ID of this layout content version.
    long
    Returns the layout content version ID of this layout content version.
    Returns the modified date of this layout content version.
    long
    Returns the mvcc version of this layout content version.
    Returns the name of this layout content version.
    getName(String languageId)
    Returns the localized name of this layout content version in the language.
    getName(String languageId, boolean useDefault)
    Returns the localized name of this layout content version in the language, optionally using the default language if no localization exists for the requested language.
    getName(Locale locale)
    Returns the localized name of this layout content version in the language.
    getName(Locale locale, boolean useDefault)
    Returns the localized name of this layout content version in the language, optionally using the default language if no localization exists for the requested language.
     
     
    Returns a map of the locales and localized names of this layout content version.
    long
    Returns the plid of this layout content version.
    long
    Returns the primary key of this layout content version.
    Returns the spec schema version of this layout content version.
    int
    Returns the status of this layout content version.
    long
    Returns the status by user ID of this layout content version.
    Returns the status by user name of this layout content version.
    Returns the status by user uuid of this layout content version.
    Returns the status date of this layout content version.
    long
    Returns the user ID of this layout content version.
    Returns the user name of this layout content version.
    Returns the user uuid of this layout content version.
    int
    Returns the version of this layout content version.
    boolean
    Returns true if this layout content version is approved.
    boolean
    Returns true if this layout content version is denied.
    boolean
    Returns true if this layout content version is a draft.
    boolean
    Returns true if this layout content version is expired.
    boolean
    Returns true if this layout content version is inactive.
    boolean
    Returns true if this layout content version is incomplete.
    boolean
    Returns true if this layout content version is pending.
    boolean
    Returns true if this layout content version is scheduled.
    void
     
    void
     
    void
    setCompanyId(long companyId)
    Sets the company ID of this layout content version.
    void
    setCreateDate(Date createDate)
    Sets the create date of this layout content version.
    void
    Sets the data of this layout content version.
    void
    setDataHash(String dataHash)
    Sets the data hash of this layout content version.
    void
    setExternalReferenceCode(String externalReferenceCode)
    Sets the external reference code of this layout content version.
    void
    setGroupId(long groupId)
    Sets the group ID of this layout content version.
    void
    setLayoutContentVersionId(long layoutContentVersionId)
    Sets the layout content version ID of this layout content version.
    void
    setModifiedDate(Date modifiedDate)
    Sets the modified date of this layout content version.
    void
    setMvccVersion(long mvccVersion)
    Sets the mvcc version of this layout content version.
    void
    Sets the name of this layout content version.
    void
    setName(String name, Locale locale)
    Sets the localized name of this layout content version in the language.
    void
    setName(String name, Locale locale, Locale defaultLocale)
    Sets the localized name of this layout content version in the language, and sets the default locale.
    void
     
    void
    Sets the localized names of this layout content version from the map of locales and localized names.
    void
    setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
    Sets the localized names of this layout content version from the map of locales and localized names, and sets the default locale.
    void
    setPlid(long plid)
    Sets the plid of this layout content version.
    void
    setPrimaryKey(long primaryKey)
    Sets the primary key of this layout content version.
    void
    setSpecSchemaVersion(String specSchemaVersion)
    Sets the spec schema version of this layout content version.
    void
    setStatus(int status)
    Sets the status of this layout content version.
    void
    setStatusByUserId(long statusByUserId)
    Sets the status by user ID of this layout content version.
    void
    setStatusByUserName(String statusByUserName)
    Sets the status by user name of this layout content version.
    void
    setStatusByUserUuid(String statusByUserUuid)
    Sets the status by user uuid of this layout content version.
    void
    setStatusDate(Date statusDate)
    Sets the status date of this layout content version.
    void
    setUserId(long userId)
    Sets the user ID of this layout content version.
    void
    setUserName(String userName)
    Sets the user name of this layout content version.
    void
    setUserUuid(String userUuid)
    Sets the user uuid of this layout content version.
    void
    setVersion(int version)
    Sets the version of this layout content version.
    default String
     

    Methods inherited from interface com.liferay.portal.kernel.model.BaseModel

    clone, copyCacheFields, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel

    Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel

    getModelClass, getModelClassName

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • getPrimaryKey

      long getPrimaryKey()
      Returns the primary key of this layout content version.
      Returns:
      the primary key of this layout content version
    • setPrimaryKey

      void setPrimaryKey(long primaryKey)
      Sets the primary key of this layout content version.
      Parameters:
      primaryKey - the primary key of this layout content version
    • getMvccVersion

      long getMvccVersion()
      Returns the mvcc version of this layout content version.
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this layout content version
    • setMvccVersion

      void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this layout content version.
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this layout content version
    • getExternalReferenceCode

      @AutoEscape String getExternalReferenceCode()
      Returns the external reference code of this layout content version.
      Specified by:
      getExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Returns:
      the external reference code of this layout content version
    • setExternalReferenceCode

      void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this layout content version.
      Specified by:
      setExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Parameters:
      externalReferenceCode - the external reference code of this layout content version
    • getLayoutContentVersionId

      long getLayoutContentVersionId()
      Returns the layout content version ID of this layout content version.
      Returns:
      the layout content version ID of this layout content version
    • setLayoutContentVersionId

      void setLayoutContentVersionId(long layoutContentVersionId)
      Sets the layout content version ID of this layout content version.
      Parameters:
      layoutContentVersionId - the layout content version ID of this layout content version
    • getGroupId

      long getGroupId()
      Returns the group ID of this layout content version.
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Returns:
      the group ID of this layout content version
    • setGroupId

      void setGroupId(long groupId)
      Sets the group ID of this layout content version.
      Specified by:
      setGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Parameters:
      groupId - the group ID of this layout content version
    • getCompanyId

      long getCompanyId()
      Returns the company ID of this layout content version.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Returns:
      the company ID of this layout content version
    • setCompanyId

      void setCompanyId(long companyId)
      Sets the company ID of this layout content version.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Parameters:
      companyId - the company ID of this layout content version
    • getUserId

      long getUserId()
      Returns the user ID of this layout content version.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Returns:
      the user ID of this layout content version
    • setUserId

      void setUserId(long userId)
      Sets the user ID of this layout content version.
      Specified by:
      setUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Parameters:
      userId - the user ID of this layout content version
    • getUserUuid

      String getUserUuid()
      Returns the user uuid of this layout content version.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Returns:
      the user uuid of this layout content version
    • setUserUuid

      void setUserUuid(String userUuid)
      Sets the user uuid of this layout content version.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Parameters:
      userUuid - the user uuid of this layout content version
    • getUserName

      @AutoEscape String getUserName()
      Returns the user name of this layout content version.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Returns:
      the user name of this layout content version
    • setUserName

      void setUserName(String userName)
      Sets the user name of this layout content version.
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Parameters:
      userName - the user name of this layout content version
    • getCreateDate

      Date getCreateDate()
      Returns the create date of this layout content version.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Returns:
      the create date of this layout content version
    • setCreateDate

      void setCreateDate(Date createDate)
      Sets the create date of this layout content version.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Parameters:
      createDate - the create date of this layout content version
    • getModifiedDate

      Date getModifiedDate()
      Returns the modified date of this layout content version.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Returns:
      the modified date of this layout content version
    • setModifiedDate

      void setModifiedDate(Date modifiedDate)
      Sets the modified date of this layout content version.
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Parameters:
      modifiedDate - the modified date of this layout content version
    • getData

      @AutoEscape String getData()
      Returns the data of this layout content version.
      Returns:
      the data of this layout content version
    • setData

      void setData(String data)
      Sets the data of this layout content version.
      Parameters:
      data - the data of this layout content version
    • getDataHash

      @AutoEscape String getDataHash()
      Returns the data hash of this layout content version.
      Returns:
      the data hash of this layout content version
    • setDataHash

      void setDataHash(String dataHash)
      Sets the data hash of this layout content version.
      Parameters:
      dataHash - the data hash of this layout content version
    • getName

      String getName()
      Returns the name of this layout content version.
      Returns:
      the name of this layout content version
    • getName

      @AutoEscape String getName(Locale locale)
      Returns the localized name of this layout content version in the language. Uses the default language if no localization exists for the requested language.
      Parameters:
      locale - the locale of the language
      Returns:
      the localized name of this layout content version
    • getName

      @AutoEscape String getName(Locale locale, boolean useDefault)
      Returns the localized name of this layout content version in the language, optionally using the default language if no localization exists for the requested language.
      Parameters:
      locale - the local of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized name of this layout content version. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getName

      @AutoEscape String getName(String languageId)
      Returns the localized name of this layout content version in the language. Uses the default language if no localization exists for the requested language.
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized name of this layout content version
    • getName

      @AutoEscape String getName(String languageId, boolean useDefault)
      Returns the localized name of this layout content version in the language, optionally using the default language if no localization exists for the requested language.
      Parameters:
      languageId - the ID of the language
      useDefault - whether to use the default language if no localization exists for the requested language
      Returns:
      the localized name of this layout content version
    • getNameCurrentLanguageId

      @AutoEscape String getNameCurrentLanguageId()
    • getNameCurrentValue

      @AutoEscape String getNameCurrentValue()
    • getNameMap

      Map<Locale,String> getNameMap()
      Returns a map of the locales and localized names of this layout content version.
      Returns:
      the locales and localized names of this layout content version
    • setName

      void setName(String name)
      Sets the name of this layout content version.
      Parameters:
      name - the name of this layout content version
    • setName

      void setName(String name, Locale locale)
      Sets the localized name of this layout content version in the language.
      Parameters:
      name - the localized name of this layout content version
      locale - the locale of the language
    • setName

      void setName(String name, Locale locale, Locale defaultLocale)
      Sets the localized name of this layout content version in the language, and sets the default locale.
      Parameters:
      name - the localized name of this layout content version
      locale - the locale of the language
      defaultLocale - the default locale
    • setNameCurrentLanguageId

      void setNameCurrentLanguageId(String languageId)
    • setNameMap

      void setNameMap(Map<Locale,String> nameMap)
      Sets the localized names of this layout content version from the map of locales and localized names.
      Parameters:
      nameMap - the locales and localized names of this layout content version
    • setNameMap

      void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
      Sets the localized names of this layout content version from the map of locales and localized names, and sets the default locale.
      Parameters:
      nameMap - the locales and localized names of this layout content version
      defaultLocale - the default locale
    • getPlid

      long getPlid()
      Returns the plid of this layout content version.
      Returns:
      the plid of this layout content version
    • setPlid

      void setPlid(long plid)
      Sets the plid of this layout content version.
      Parameters:
      plid - the plid of this layout content version
    • getSpecSchemaVersion

      @AutoEscape String getSpecSchemaVersion()
      Returns the spec schema version of this layout content version.
      Returns:
      the spec schema version of this layout content version
    • setSpecSchemaVersion

      void setSpecSchemaVersion(String specSchemaVersion)
      Sets the spec schema version of this layout content version.
      Parameters:
      specSchemaVersion - the spec schema version of this layout content version
    • getVersion

      int getVersion()
      Returns the version of this layout content version.
      Returns:
      the version of this layout content version
    • setVersion

      void setVersion(int version)
      Sets the version of this layout content version.
      Parameters:
      version - the version of this layout content version
    • getStatus

      int getStatus()
      Returns the status of this layout content version.
      Specified by:
      getStatus in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status of this layout content version
    • setStatus

      void setStatus(int status)
      Sets the status of this layout content version.
      Specified by:
      setStatus in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      status - the status of this layout content version
    • getStatusByUserId

      long getStatusByUserId()
      Returns the status by user ID of this layout content version.
      Specified by:
      getStatusByUserId in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status by user ID of this layout content version
    • setStatusByUserId

      void setStatusByUserId(long statusByUserId)
      Sets the status by user ID of this layout content version.
      Specified by:
      setStatusByUserId in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusByUserId - the status by user ID of this layout content version
    • getStatusByUserUuid

      String getStatusByUserUuid()
      Returns the status by user uuid of this layout content version.
      Specified by:
      getStatusByUserUuid in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status by user uuid of this layout content version
    • setStatusByUserUuid

      void setStatusByUserUuid(String statusByUserUuid)
      Sets the status by user uuid of this layout content version.
      Specified by:
      setStatusByUserUuid in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusByUserUuid - the status by user uuid of this layout content version
    • getStatusByUserName

      @AutoEscape String getStatusByUserName()
      Returns the status by user name of this layout content version.
      Specified by:
      getStatusByUserName in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status by user name of this layout content version
    • setStatusByUserName

      void setStatusByUserName(String statusByUserName)
      Sets the status by user name of this layout content version.
      Specified by:
      setStatusByUserName in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusByUserName - the status by user name of this layout content version
    • getStatusDate

      Date getStatusDate()
      Returns the status date of this layout content version.
      Specified by:
      getStatusDate in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      the status date of this layout content version
    • setStatusDate

      void setStatusDate(Date statusDate)
      Sets the status date of this layout content version.
      Specified by:
      setStatusDate in interface com.liferay.portal.kernel.model.WorkflowedModel
      Parameters:
      statusDate - the status date of this layout content version
    • isApproved

      boolean isApproved()
      Returns true if this layout content version is approved.
      Specified by:
      isApproved in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this layout content version is approved; false otherwise
    • isDenied

      boolean isDenied()
      Returns true if this layout content version is denied.
      Specified by:
      isDenied in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this layout content version is denied; false otherwise
    • isDraft

      boolean isDraft()
      Returns true if this layout content version is a draft.
      Specified by:
      isDraft in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this layout content version is a draft; false otherwise
    • isExpired

      boolean isExpired()
      Returns true if this layout content version is expired.
      Specified by:
      isExpired in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this layout content version is expired; false otherwise
    • isInactive

      boolean isInactive()
      Returns true if this layout content version is inactive.
      Specified by:
      isInactive in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this layout content version is inactive; false otherwise
    • isIncomplete

      boolean isIncomplete()
      Returns true if this layout content version is incomplete.
      Specified by:
      isIncomplete in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this layout content version is incomplete; false otherwise
    • isPending

      boolean isPending()
      Returns true if this layout content version is pending.
      Specified by:
      isPending in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this layout content version is pending; false otherwise
    • isScheduled

      boolean isScheduled()
      Returns true if this layout content version is scheduled.
      Specified by:
      isScheduled in interface com.liferay.portal.kernel.model.WorkflowedModel
      Returns:
      true if this layout content version is scheduled; false otherwise
    • getAvailableLanguageIds

      String[] getAvailableLanguageIds()
      Specified by:
      getAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModel
    • getDefaultLanguageId

      String getDefaultLanguageId()
      Specified by:
      getDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModel
    • prepareLocalizedFieldsForImport

      void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • prepareLocalizedFieldsForImport

      void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • cloneWithOriginalValues

      LayoutContentVersion cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<LayoutContentVersion>
    • toXmlString

      default String toXmlString()