Class DLFileEntryTypeWrapper

Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<DLFileEntryType>
com.liferay.document.library.kernel.model.DLFileEntryTypeWrapper
All Implemented Interfaces:
DLFileEntryType, DLFileEntryTypeModel, AuditedModel, BaseModel<DLFileEntryType>, CTModel<DLFileEntryType>, ClassedModel, ExternalReferenceCodeModel, GroupedModel, LocalizedModel, ModelWrapper<DLFileEntryType>, MVCCModel, PersistedModel, ShardedModel, StagedGroupedModel, StagedModel, Serializable, Cloneable, Comparable<DLFileEntryType>

public class DLFileEntryTypeWrapper extends BaseModelWrapper<DLFileEntryType> implements DLFileEntryType, ModelWrapper<DLFileEntryType>

This class is a wrapper for DLFileEntryType.

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • DLFileEntryTypeWrapper

      public DLFileEntryTypeWrapper(DLFileEntryType dlFileEntryType)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface BaseModel<DLFileEntryType>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface BaseModel<DLFileEntryType>
    • cloneWithOriginalValues

      public DLFileEntryType cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface BaseModel<DLFileEntryType>
      Specified by:
      cloneWithOriginalValues in interface DLFileEntryTypeModel
    • getAvailableLanguageIds

      public String[] getAvailableLanguageIds()
      Specified by:
      getAvailableLanguageIds in interface DLFileEntryTypeModel
      Specified by:
      getAvailableLanguageIds in interface LocalizedModel
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this document library file entry type.
      Specified by:
      getCompanyId in interface AuditedModel
      Specified by:
      getCompanyId in interface DLFileEntryTypeModel
      Specified by:
      getCompanyId in interface ShardedModel
      Specified by:
      getCompanyId in interface StagedModel
      Returns:
      the company ID of this document library file entry type
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this document library file entry type.
      Specified by:
      getCreateDate in interface AuditedModel
      Specified by:
      getCreateDate in interface DLFileEntryTypeModel
      Specified by:
      getCreateDate in interface StagedModel
      Returns:
      the create date of this document library file entry type
    • getCtCollectionId

      public long getCtCollectionId()
      Returns the ct collection ID of this document library file entry type.
      Specified by:
      getCtCollectionId in interface CTModel<DLFileEntryType>
      Specified by:
      getCtCollectionId in interface DLFileEntryTypeModel
      Returns:
      the ct collection ID of this document library file entry type
    • getDataDefinitionId

      public long getDataDefinitionId()
      Returns the data definition ID of this document library file entry type.
      Specified by:
      getDataDefinitionId in interface DLFileEntryTypeModel
      Returns:
      the data definition ID of this document library file entry type
    • getDDMStructures

      @Deprecated public List<DDMStructure> getDDMStructures()
      Deprecated.
      As of Cavanaugh (7.4.x), replaced by DLFileEntryTypeUtil#getDDMStructures(DLFileEntryType)
      Specified by:
      getDDMStructures in interface DLFileEntryType
    • getDefaultLanguageId

      public String getDefaultLanguageId()
      Specified by:
      getDefaultLanguageId in interface DLFileEntryTypeModel
      Specified by:
      getDefaultLanguageId in interface LocalizedModel
    • getDescription

      public String getDescription()
      Returns the description of this document library file entry type.
      Specified by:
      getDescription in interface DLFileEntryTypeModel
      Returns:
      the description of this document library file entry type
    • getDescription

      public String getDescription(Locale locale)
      Returns the localized description of this document library file entry type in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface DLFileEntryTypeModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized description of this document library file entry type
    • getDescription

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

      public String getDescription(String languageId)
      Returns the localized description of this document library file entry type in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface DLFileEntryTypeModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized description of this document library file entry type
    • getDescription

      public String getDescription(String languageId, boolean useDefault)
      Returns the localized description of this document library file entry type in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface DLFileEntryTypeModel
      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 description of this document library file entry type
    • getDescriptionCurrentLanguageId

      public String getDescriptionCurrentLanguageId()
      Specified by:
      getDescriptionCurrentLanguageId in interface DLFileEntryTypeModel
    • getDescriptionCurrentValue

      public String getDescriptionCurrentValue()
      Specified by:
      getDescriptionCurrentValue in interface DLFileEntryTypeModel
    • getDescriptionMap

      public Map<Locale,String> getDescriptionMap()
      Returns a map of the locales and localized descriptions of this document library file entry type.
      Specified by:
      getDescriptionMap in interface DLFileEntryTypeModel
      Returns:
      the locales and localized descriptions of this document library file entry type
    • getExternalReferenceCode

      public String getExternalReferenceCode()
      Returns the external reference code of this document library file entry type.
      Specified by:
      getExternalReferenceCode in interface DLFileEntryTypeModel
      Specified by:
      getExternalReferenceCode in interface ExternalReferenceCodeModel
      Returns:
      the external reference code of this document library file entry type
    • getFileEntryTypeId

      public long getFileEntryTypeId()
      Returns the file entry type ID of this document library file entry type.
      Specified by:
      getFileEntryTypeId in interface DLFileEntryTypeModel
      Returns:
      the file entry type ID of this document library file entry type
    • getFileEntryTypeKey

      public String getFileEntryTypeKey()
      Returns the file entry type key of this document library file entry type.
      Specified by:
      getFileEntryTypeKey in interface DLFileEntryTypeModel
      Returns:
      the file entry type key of this document library file entry type
    • getGroupId

      public long getGroupId()
      Returns the group ID of this document library file entry type.
      Specified by:
      getGroupId in interface DLFileEntryTypeModel
      Specified by:
      getGroupId in interface GroupedModel
      Returns:
      the group ID of this document library file entry type
    • getLastPublishDate

      public Date getLastPublishDate()
      Returns the last publish date of this document library file entry type.
      Specified by:
      getLastPublishDate in interface DLFileEntryTypeModel
      Specified by:
      getLastPublishDate in interface StagedGroupedModel
      Returns:
      the last publish date of this document library file entry type
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this document library file entry type.
      Specified by:
      getModifiedDate in interface AuditedModel
      Specified by:
      getModifiedDate in interface DLFileEntryTypeModel
      Specified by:
      getModifiedDate in interface StagedModel
      Returns:
      the modified date of this document library file entry type
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this document library file entry type.
      Specified by:
      getMvccVersion in interface DLFileEntryTypeModel
      Specified by:
      getMvccVersion in interface MVCCModel
      Returns:
      the mvcc version of this document library file entry type
    • getName

      public String getName()
      Returns the name of this document library file entry type.
      Specified by:
      getName in interface DLFileEntryTypeModel
      Returns:
      the name of this document library file entry type
    • getName

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

      public String getName(Locale locale, boolean useDefault)
      Returns the localized name of this document library file entry type in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface DLFileEntryTypeModel
      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 document library file entry type. 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 document library file entry type in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface DLFileEntryTypeModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized name of this document library file entry type
    • getName

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

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

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

      public Map<Locale,String> getNameMap()
      Returns a map of the locales and localized names of this document library file entry type.
      Specified by:
      getNameMap in interface DLFileEntryTypeModel
      Returns:
      the locales and localized names of this document library file entry type
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this document library file entry type.
      Specified by:
      getPrimaryKey in interface CTModel<DLFileEntryType>
      Specified by:
      getPrimaryKey in interface DLFileEntryTypeModel
      Returns:
      the primary key of this document library file entry type
    • getScope

      public int getScope()
      Returns the scope of this document library file entry type.
      Specified by:
      getScope in interface DLFileEntryTypeModel
      Returns:
      the scope of this document library file entry type
    • getUnambiguousName

      public String getUnambiguousName(List<DLFileEntryType> dlFileEntryTypes, long groupId, Locale locale) throws PortalException
      Specified by:
      getUnambiguousName in interface DLFileEntryType
      Throws:
      PortalException
    • getUserId

      public long getUserId()
      Returns the user ID of this document library file entry type.
      Specified by:
      getUserId in interface AuditedModel
      Specified by:
      getUserId in interface DLFileEntryTypeModel
      Returns:
      the user ID of this document library file entry type
    • getUserName

      public String getUserName()
      Returns the user name of this document library file entry type.
      Specified by:
      getUserName in interface AuditedModel
      Specified by:
      getUserName in interface DLFileEntryTypeModel
      Returns:
      the user name of this document library file entry type
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this document library file entry type.
      Specified by:
      getUserUuid in interface AuditedModel
      Specified by:
      getUserUuid in interface DLFileEntryTypeModel
      Returns:
      the user uuid of this document library file entry type
    • getUuid

      public String getUuid()
      Returns the uuid of this document library file entry type.
      Specified by:
      getUuid in interface DLFileEntryTypeModel
      Specified by:
      getUuid in interface StagedModel
      Returns:
      the uuid of this document library file entry type
    • isExportable

      public boolean isExportable()
      Specified by:
      isExportable in interface DLFileEntryType
    • persist

      public void persist()
      Description copied from interface: PersistedModel
      Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
      Specified by:
      persist in interface PersistedModel
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport() throws LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface DLFileEntryTypeModel
      Specified by:
      prepareLocalizedFieldsForImport in interface LocalizedModel
      Throws:
      LocaleException
    • prepareLocalizedFieldsForImport

      public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
      Specified by:
      prepareLocalizedFieldsForImport in interface DLFileEntryTypeModel
      Specified by:
      prepareLocalizedFieldsForImport in interface LocalizedModel
      Throws:
      LocaleException
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this document library file entry type.
      Specified by:
      setCompanyId in interface AuditedModel
      Specified by:
      setCompanyId in interface DLFileEntryTypeModel
      Specified by:
      setCompanyId in interface ShardedModel
      Specified by:
      setCompanyId in interface StagedModel
      Parameters:
      companyId - the company ID of this document library file entry type
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this document library file entry type.
      Specified by:
      setCreateDate in interface AuditedModel
      Specified by:
      setCreateDate in interface DLFileEntryTypeModel
      Specified by:
      setCreateDate in interface StagedModel
      Parameters:
      createDate - the create date of this document library file entry type
    • setCtCollectionId

      public void setCtCollectionId(long ctCollectionId)
      Sets the ct collection ID of this document library file entry type.
      Specified by:
      setCtCollectionId in interface CTModel<DLFileEntryType>
      Specified by:
      setCtCollectionId in interface DLFileEntryTypeModel
      Parameters:
      ctCollectionId - the ct collection ID of this document library file entry type
    • setDataDefinitionId

      public void setDataDefinitionId(long dataDefinitionId)
      Sets the data definition ID of this document library file entry type.
      Specified by:
      setDataDefinitionId in interface DLFileEntryTypeModel
      Parameters:
      dataDefinitionId - the data definition ID of this document library file entry type
    • setDescription

      public void setDescription(String description)
      Sets the description of this document library file entry type.
      Specified by:
      setDescription in interface DLFileEntryTypeModel
      Parameters:
      description - the description of this document library file entry type
    • setDescription

      public void setDescription(String description, Locale locale)
      Sets the localized description of this document library file entry type in the language.
      Specified by:
      setDescription in interface DLFileEntryTypeModel
      Parameters:
      description - the localized description of this document library file entry type
      locale - the locale of the language
    • setDescription

      public void setDescription(String description, Locale locale, Locale defaultLocale)
      Sets the localized description of this document library file entry type in the language, and sets the default locale.
      Specified by:
      setDescription in interface DLFileEntryTypeModel
      Parameters:
      description - the localized description of this document library file entry type
      locale - the locale of the language
      defaultLocale - the default locale
    • setDescriptionCurrentLanguageId

      public void setDescriptionCurrentLanguageId(String languageId)
      Specified by:
      setDescriptionCurrentLanguageId in interface DLFileEntryTypeModel
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap)
      Sets the localized descriptions of this document library file entry type from the map of locales and localized descriptions.
      Specified by:
      setDescriptionMap in interface DLFileEntryTypeModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this document library file entry type
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
      Sets the localized descriptions of this document library file entry type from the map of locales and localized descriptions, and sets the default locale.
      Specified by:
      setDescriptionMap in interface DLFileEntryTypeModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this document library file entry type
      defaultLocale - the default locale
    • setExternalReferenceCode

      public void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this document library file entry type.
      Specified by:
      setExternalReferenceCode in interface DLFileEntryTypeModel
      Specified by:
      setExternalReferenceCode in interface ExternalReferenceCodeModel
      Parameters:
      externalReferenceCode - the external reference code of this document library file entry type
    • setFileEntryTypeId

      public void setFileEntryTypeId(long fileEntryTypeId)
      Sets the file entry type ID of this document library file entry type.
      Specified by:
      setFileEntryTypeId in interface DLFileEntryTypeModel
      Parameters:
      fileEntryTypeId - the file entry type ID of this document library file entry type
    • setFileEntryTypeKey

      public void setFileEntryTypeKey(String fileEntryTypeKey)
      Sets the file entry type key of this document library file entry type.
      Specified by:
      setFileEntryTypeKey in interface DLFileEntryTypeModel
      Parameters:
      fileEntryTypeKey - the file entry type key of this document library file entry type
    • setGroupId

      public void setGroupId(long groupId)
      Sets the group ID of this document library file entry type.
      Specified by:
      setGroupId in interface DLFileEntryTypeModel
      Specified by:
      setGroupId in interface GroupedModel
      Parameters:
      groupId - the group ID of this document library file entry type
    • setLastPublishDate

      public void setLastPublishDate(Date lastPublishDate)
      Sets the last publish date of this document library file entry type.
      Specified by:
      setLastPublishDate in interface DLFileEntryTypeModel
      Specified by:
      setLastPublishDate in interface StagedGroupedModel
      Parameters:
      lastPublishDate - the last publish date of this document library file entry type
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this document library file entry type.
      Specified by:
      setModifiedDate in interface AuditedModel
      Specified by:
      setModifiedDate in interface DLFileEntryTypeModel
      Specified by:
      setModifiedDate in interface StagedModel
      Parameters:
      modifiedDate - the modified date of this document library file entry type
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this document library file entry type.
      Specified by:
      setMvccVersion in interface DLFileEntryTypeModel
      Specified by:
      setMvccVersion in interface MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this document library file entry type
    • setName

      public void setName(String name)
      Sets the name of this document library file entry type.
      Specified by:
      setName in interface DLFileEntryTypeModel
      Parameters:
      name - the name of this document library file entry type
    • setName

      public void setName(String name, Locale locale)
      Sets the localized name of this document library file entry type in the language.
      Specified by:
      setName in interface DLFileEntryTypeModel
      Parameters:
      name - the localized name of this document library file entry type
      locale - the locale of the language
    • setName

      public void setName(String name, Locale locale, Locale defaultLocale)
      Sets the localized name of this document library file entry type in the language, and sets the default locale.
      Specified by:
      setName in interface DLFileEntryTypeModel
      Parameters:
      name - the localized name of this document library file entry type
      locale - the locale of the language
      defaultLocale - the default locale
    • setNameCurrentLanguageId

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

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

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

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this document library file entry type.
      Specified by:
      setPrimaryKey in interface CTModel<DLFileEntryType>
      Specified by:
      setPrimaryKey in interface DLFileEntryTypeModel
      Parameters:
      primaryKey - the primary key of this document library file entry type
    • setScope

      public void setScope(int scope)
      Sets the scope of this document library file entry type.
      Specified by:
      setScope in interface DLFileEntryTypeModel
      Parameters:
      scope - the scope of this document library file entry type
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this document library file entry type.
      Specified by:
      setUserId in interface AuditedModel
      Specified by:
      setUserId in interface DLFileEntryTypeModel
      Parameters:
      userId - the user ID of this document library file entry type
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this document library file entry type.
      Specified by:
      setUserName in interface AuditedModel
      Specified by:
      setUserName in interface DLFileEntryTypeModel
      Parameters:
      userName - the user name of this document library file entry type
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this document library file entry type.
      Specified by:
      setUserUuid in interface AuditedModel
      Specified by:
      setUserUuid in interface DLFileEntryTypeModel
      Parameters:
      userUuid - the user uuid of this document library file entry type
    • setUuid

      public void setUuid(String uuid)
      Sets the uuid of this document library file entry type.
      Specified by:
      setUuid in interface DLFileEntryTypeModel
      Specified by:
      setUuid in interface StagedModel
      Parameters:
      uuid - the uuid of this document library file entry type
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface DLFileEntryTypeModel
    • getAttributeGetterFunctions

      public Map<String,Function<DLFileEntryType,Object>> getAttributeGetterFunctions()
      Specified by:
      getAttributeGetterFunctions in interface BaseModel<DLFileEntryType>
    • getAttributeSetterBiConsumers

      public Map<String,BiConsumer<DLFileEntryType,Object>> getAttributeSetterBiConsumers()
      Specified by:
      getAttributeSetterBiConsumers in interface BaseModel<DLFileEntryType>
    • getStagedModelType

      public StagedModelType getStagedModelType()
      Specified by:
      getStagedModelType in interface StagedModel
    • wrap

      protected DLFileEntryTypeWrapper wrap(DLFileEntryType dlFileEntryType)
      Specified by:
      wrap in class BaseModelWrapper<DLFileEntryType>