Class ListTypeDefinitionWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ListTypeDefinition>
com.liferay.list.type.model.ListTypeDefinitionWrapper
All Implemented Interfaces:
ListTypeDefinition, ListTypeDefinitionModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<ListTypeDefinition>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.ExternalReferenceCodeModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<ListTypeDefinition>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedAuditedModel, com.liferay.portal.kernel.model.StagedModel, Serializable, Cloneable, Comparable<ListTypeDefinition>

public class ListTypeDefinitionWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ListTypeDefinition> implements ListTypeDefinition, com.liferay.portal.kernel.model.ModelWrapper<ListTypeDefinition>

This class is a wrapper for ListTypeDefinition.

See Also:
Generated:
  • Field Summary

    Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper

    model

    Fields inherited from interface com.liferay.list.type.model.ListTypeDefinition

    LIST_TYPE_DEFINITION_ID_ACCESSOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    long
    Returns the company ID of this list type definition.
    Returns the create date of this list type definition.
     
    Returns the external reference code of this list type definition.
    long
    Returns the list type definition ID of this list type definition.
     
    Returns the modified date of this list type definition.
    long
    Returns the mvcc version of this list type definition.
    Returns the name of this list type definition.
    getName(String languageId)
    Returns the localized name of this list type definition in the language.
    getName(String languageId, boolean useDefault)
    Returns the localized name of this list type definition 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 list type definition in the language.
    getName(Locale locale, boolean useDefault)
    Returns the localized name of this list type definition 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 list type definition.
    long
    Returns the primary key of this list type definition.
    com.liferay.exportimport.kernel.lar.StagedModelType
     
    boolean
    Returns the system of this list type definition.
    long
    Returns the user ID of this list type definition.
    Returns the user name of this list type definition.
    Returns the user uuid of this list type definition.
    Returns the uuid of this list type definition.
    boolean
    Returns true if this list type definition is system.
    void
     
    void
     
    void
     
    void
    setCompanyId(long companyId)
    Sets the company ID of this list type definition.
    void
    setCreateDate(Date createDate)
    Sets the create date of this list type definition.
    void
    setExternalReferenceCode(String externalReferenceCode)
    Sets the external reference code of this list type definition.
    void
    setListTypeDefinitionId(long listTypeDefinitionId)
    Sets the list type definition ID of this list type definition.
    void
     
    void
    setModifiedDate(Date modifiedDate)
    Sets the modified date of this list type definition.
    void
    setMvccVersion(long mvccVersion)
    Sets the mvcc version of this list type definition.
    void
    Sets the name of this list type definition.
    void
    setName(String name, Locale locale)
    Sets the localized name of this list type definition in the language.
    void
    setName(String name, Locale locale, Locale defaultLocale)
    Sets the localized name of this list type definition in the language, and sets the default locale.
    void
     
    void
    Sets the localized names of this list type definition from the map of locales and localized names.
    void
    setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
    Sets the localized names of this list type definition from the map of locales and localized names, and sets the default locale.
    void
    setPrimaryKey(long primaryKey)
    Sets the primary key of this list type definition.
    void
    setSystem(boolean system)
    Sets whether this list type definition is system.
    void
    setUserId(long userId)
    Sets the user ID of this list type definition.
    void
    setUserName(String userName)
    Sets the user name of this list type definition.
    void
    setUserUuid(String userUuid)
    Sets the user uuid of this list type definition.
    void
    Sets the uuid of this list type definition.
     
    wrap(ListTypeDefinition listTypeDefinition)
     

    Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper

    clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

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

    clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, 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

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

    getWrappedModel

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

    clone
  • Constructor Details

    • ListTypeDefinitionWrapper

      public ListTypeDefinitionWrapper(ListTypeDefinition listTypeDefinition)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<ListTypeDefinition>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<ListTypeDefinition>
    • cloneWithOriginalValues

      public ListTypeDefinition cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<ListTypeDefinition>
      Specified by:
      cloneWithOriginalValues in interface ListTypeDefinitionModel
    • getAvailableLanguageIds

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

      public long getCompanyId()
      Returns the company ID of this list type definition.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface ListTypeDefinitionModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the company ID of this list type definition
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this list type definition.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface ListTypeDefinitionModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this list type definition
    • getDefaultLanguageId

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

      public String getExternalReferenceCode()
      Returns the external reference code of this list type definition.
      Specified by:
      getExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Specified by:
      getExternalReferenceCode in interface ListTypeDefinitionModel
      Returns:
      the external reference code of this list type definition
    • getListTypeDefinitionId

      public long getListTypeDefinitionId()
      Returns the list type definition ID of this list type definition.
      Specified by:
      getListTypeDefinitionId in interface ListTypeDefinitionModel
      Returns:
      the list type definition ID of this list type definition
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this list type definition.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface ListTypeDefinitionModel
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the modified date of this list type definition
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this list type definition.
      Specified by:
      getMvccVersion in interface ListTypeDefinitionModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this list type definition
    • getName

      public String getName()
      Returns the name of this list type definition.
      Specified by:
      getName in interface ListTypeDefinitionModel
      Returns:
      the name of this list type definition
    • getName

      public String getName(Locale locale)
      Returns the localized name of this list type definition in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface ListTypeDefinitionModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized name of this list type definition
    • getName

      public String getName(Locale locale, boolean useDefault)
      Returns the localized name of this list type definition in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface ListTypeDefinitionModel
      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 list type definition. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getName

      public String getName(String languageId)
      Returns the localized name of this list type definition in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface ListTypeDefinitionModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized name of this list type definition
    • getName

      public String getName(String languageId, boolean useDefault)
      Returns the localized name of this list type definition in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface ListTypeDefinitionModel
      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 list type definition
    • getNameCurrentLanguageId

      public String getNameCurrentLanguageId()
      Specified by:
      getNameCurrentLanguageId in interface ListTypeDefinitionModel
    • getNameCurrentValue

      public String getNameCurrentValue()
      Specified by:
      getNameCurrentValue in interface ListTypeDefinitionModel
    • getNameMap

      public Map<Locale,String> getNameMap()
      Returns a map of the locales and localized names of this list type definition.
      Specified by:
      getNameMap in interface ListTypeDefinitionModel
      Returns:
      the locales and localized names of this list type definition
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this list type definition.
      Specified by:
      getPrimaryKey in interface ListTypeDefinitionModel
      Returns:
      the primary key of this list type definition
    • getSystem

      public boolean getSystem()
      Returns the system of this list type definition.
      Specified by:
      getSystem in interface ListTypeDefinitionModel
      Returns:
      the system of this list type definition
    • getUserId

      public long getUserId()
      Returns the user ID of this list type definition.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface ListTypeDefinitionModel
      Returns:
      the user ID of this list type definition
    • getUserName

      public String getUserName()
      Returns the user name of this list type definition.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface ListTypeDefinitionModel
      Returns:
      the user name of this list type definition
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this list type definition.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface ListTypeDefinitionModel
      Returns:
      the user uuid of this list type definition
    • getUuid

      public String getUuid()
      Returns the uuid of this list type definition.
      Specified by:
      getUuid in interface ListTypeDefinitionModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this list type definition
    • isSystem

      public boolean isSystem()
      Returns true if this list type definition is system.
      Specified by:
      isSystem in interface ListTypeDefinitionModel
      Returns:
      true if this list type definition is system; false otherwise
    • persist

      public void persist()
      Specified by:
      persist in interface com.liferay.portal.kernel.model.PersistedModel
    • prepareLocalizedFieldsForImport

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

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

      public void setCompanyId(long companyId)
      Sets the company ID of this list type definition.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface ListTypeDefinitionModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      companyId - the company ID of this list type definition
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this list type definition.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface ListTypeDefinitionModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      createDate - the create date of this list type definition
    • setExternalReferenceCode

      public void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this list type definition.
      Specified by:
      setExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Specified by:
      setExternalReferenceCode in interface ListTypeDefinitionModel
      Parameters:
      externalReferenceCode - the external reference code of this list type definition
    • setListTypeDefinitionId

      public void setListTypeDefinitionId(long listTypeDefinitionId)
      Sets the list type definition ID of this list type definition.
      Specified by:
      setListTypeDefinitionId in interface ListTypeDefinitionModel
      Parameters:
      listTypeDefinitionId - the list type definition ID of this list type definition
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this list type definition.
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setModifiedDate in interface ListTypeDefinitionModel
      Specified by:
      setModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      modifiedDate - the modified date of this list type definition
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this list type definition.
      Specified by:
      setMvccVersion in interface ListTypeDefinitionModel
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this list type definition
    • setName

      public void setName(String name)
      Sets the name of this list type definition.
      Specified by:
      setName in interface ListTypeDefinitionModel
      Parameters:
      name - the name of this list type definition
    • setName

      public void setName(String name, Locale locale)
      Sets the localized name of this list type definition in the language.
      Specified by:
      setName in interface ListTypeDefinitionModel
      Parameters:
      name - the localized name of this list type definition
      locale - the locale of the language
    • setName

      public void setName(String name, Locale locale, Locale defaultLocale)
      Sets the localized name of this list type definition in the language, and sets the default locale.
      Specified by:
      setName in interface ListTypeDefinitionModel
      Parameters:
      name - the localized name of this list type definition
      locale - the locale of the language
      defaultLocale - the default locale
    • setNameCurrentLanguageId

      public void setNameCurrentLanguageId(String languageId)
      Specified by:
      setNameCurrentLanguageId in interface ListTypeDefinitionModel
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap)
      Sets the localized names of this list type definition from the map of locales and localized names.
      Specified by:
      setNameMap in interface ListTypeDefinitionModel
      Parameters:
      nameMap - the locales and localized names of this list type definition
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
      Sets the localized names of this list type definition from the map of locales and localized names, and sets the default locale.
      Specified by:
      setNameMap in interface ListTypeDefinitionModel
      Parameters:
      nameMap - the locales and localized names of this list type definition
      defaultLocale - the default locale
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this list type definition.
      Specified by:
      setPrimaryKey in interface ListTypeDefinitionModel
      Parameters:
      primaryKey - the primary key of this list type definition
    • setSystem

      public void setSystem(boolean system)
      Sets whether this list type definition is system.
      Specified by:
      setSystem in interface ListTypeDefinitionModel
      Parameters:
      system - the system of this list type definition
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this list type definition.
      Specified by:
      setUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserId in interface ListTypeDefinitionModel
      Parameters:
      userId - the user ID of this list type definition
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this list type definition.
      Specified by:
      setUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserName in interface ListTypeDefinitionModel
      Parameters:
      userName - the user name of this list type definition
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this list type definition.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserUuid in interface ListTypeDefinitionModel
      Parameters:
      userUuid - the user uuid of this list type definition
    • setUuid

      public void setUuid(String uuid)
      Sets the uuid of this list type definition.
      Specified by:
      setUuid in interface ListTypeDefinitionModel
      Specified by:
      setUuid in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      uuid - the uuid of this list type definition
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface ListTypeDefinitionModel
    • getStagedModelType

      public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
      Specified by:
      getStagedModelType in interface com.liferay.portal.kernel.model.StagedModel
    • wrap

      protected ListTypeDefinitionWrapper wrap(ListTypeDefinition listTypeDefinition)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ListTypeDefinition>