Class CPDefinitionVirtualSettingWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinitionVirtualSetting>
com.liferay.commerce.product.type.virtual.model.CPDefinitionVirtualSettingWrapper
All Implemented Interfaces:
CPDefinitionVirtualSetting, CPDefinitionVirtualSettingModel, com.liferay.portal.kernel.model.AttachedModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<CPDefinitionVirtualSetting>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<CPDefinitionVirtualSetting>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedGroupedModel, com.liferay.portal.kernel.model.StagedModel, com.liferay.portal.kernel.model.TypedModel, Serializable, Cloneable, Comparable<CPDefinitionVirtualSetting>

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

This class is a wrapper for CPDefinitionVirtualSetting.

See Also:
Generated:
  • Constructor Details

    • CPDefinitionVirtualSettingWrapper

      public CPDefinitionVirtualSettingWrapper(CPDefinitionVirtualSetting cpDefinitionVirtualSetting)
  • Method Details

    • getModelAttributes

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

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

      public CPDefinitionVirtualSetting cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CPDefinitionVirtualSetting>
      Specified by:
      cloneWithOriginalValues in interface CPDefinitionVirtualSettingModel
    • getActivationStatus

      public int getActivationStatus()
      Returns the activation status of this cp definition virtual setting.
      Specified by:
      getActivationStatus in interface CPDefinitionVirtualSettingModel
      Returns:
      the activation status of this cp definition virtual setting
    • getAvailableLanguageIds

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

      public String getClassName()
      Returns the fully qualified class name of this cp definition virtual setting.
      Specified by:
      getClassName in interface CPDefinitionVirtualSettingModel
      Specified by:
      getClassName in interface com.liferay.portal.kernel.model.TypedModel
      Returns:
      the fully qualified class name of this cp definition virtual setting
    • getClassNameId

      public long getClassNameId()
      Returns the class name ID of this cp definition virtual setting.
      Specified by:
      getClassNameId in interface CPDefinitionVirtualSettingModel
      Specified by:
      getClassNameId in interface com.liferay.portal.kernel.model.TypedModel
      Returns:
      the class name ID of this cp definition virtual setting
    • getClassPK

      public long getClassPK()
      Returns the class pk of this cp definition virtual setting.
      Specified by:
      getClassPK in interface com.liferay.portal.kernel.model.AttachedModel
      Specified by:
      getClassPK in interface CPDefinitionVirtualSettingModel
      Returns:
      the class pk of this cp definition virtual setting
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this cp definition virtual setting.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface CPDefinitionVirtualSettingModel
      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 cp definition virtual setting
    • getCPDefinitionVirtualSettingId

      public long getCPDefinitionVirtualSettingId()
      Returns the cp definition virtual setting ID of this cp definition virtual setting.
      Specified by:
      getCPDefinitionVirtualSettingId in interface CPDefinitionVirtualSettingModel
      Returns:
      the cp definition virtual setting ID of this cp definition virtual setting
    • getCPDVirtualSettingFileEntries

      public List<CPDVirtualSettingFileEntry> getCPDVirtualSettingFileEntries()
      Specified by:
      getCPDVirtualSettingFileEntries in interface CPDefinitionVirtualSetting
    • getCPDVirtualSettingFileEntries

      public List<CPDVirtualSettingFileEntry> getCPDVirtualSettingFileEntries(int start, int end)
      Specified by:
      getCPDVirtualSettingFileEntries in interface CPDefinitionVirtualSetting
    • getCPDVirtualSettingFileEntriesCount

      public int getCPDVirtualSettingFileEntriesCount()
      Specified by:
      getCPDVirtualSettingFileEntriesCount in interface CPDefinitionVirtualSetting
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this cp definition virtual setting.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface CPDefinitionVirtualSettingModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this cp definition virtual setting
    • getDefaultLanguageId

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

      public long getDuration()
      Returns the duration of this cp definition virtual setting.
      Specified by:
      getDuration in interface CPDefinitionVirtualSettingModel
      Returns:
      the duration of this cp definition virtual setting
    • getGroupId

      public long getGroupId()
      Returns the group ID of this cp definition virtual setting.
      Specified by:
      getGroupId in interface CPDefinitionVirtualSettingModel
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Returns:
      the group ID of this cp definition virtual setting
    • getLastPublishDate

      public Date getLastPublishDate()
      Returns the last publish date of this cp definition virtual setting.
      Specified by:
      getLastPublishDate in interface CPDefinitionVirtualSettingModel
      Specified by:
      getLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Returns:
      the last publish date of this cp definition virtual setting
    • getMaxUsages

      public int getMaxUsages()
      Returns the max usages of this cp definition virtual setting.
      Specified by:
      getMaxUsages in interface CPDefinitionVirtualSettingModel
      Returns:
      the max usages of this cp definition virtual setting
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this cp definition virtual setting.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface CPDefinitionVirtualSettingModel
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the modified date of this cp definition virtual setting
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this cp definition virtual setting.
      Specified by:
      getMvccVersion in interface CPDefinitionVirtualSettingModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this cp definition virtual setting
    • getOverride

      public boolean getOverride()
      Returns the override of this cp definition virtual setting.
      Specified by:
      getOverride in interface CPDefinitionVirtualSettingModel
      Returns:
      the override of this cp definition virtual setting
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this cp definition virtual setting.
      Specified by:
      getPrimaryKey in interface CPDefinitionVirtualSettingModel
      Returns:
      the primary key of this cp definition virtual setting
    • getSampleFileEntry

      public com.liferay.portal.kernel.repository.model.FileEntry getSampleFileEntry() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getSampleFileEntry in interface CPDefinitionVirtualSetting
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getSampleFileEntryId

      public long getSampleFileEntryId()
      Returns the sample file entry ID of this cp definition virtual setting.
      Specified by:
      getSampleFileEntryId in interface CPDefinitionVirtualSettingModel
      Returns:
      the sample file entry ID of this cp definition virtual setting
    • getSampleURL

      public String getSampleURL()
      Returns the sample url of this cp definition virtual setting.
      Specified by:
      getSampleURL in interface CPDefinitionVirtualSettingModel
      Returns:
      the sample url of this cp definition virtual setting
    • getTermsOfUseContent

      public String getTermsOfUseContent()
      Returns the terms of use content of this cp definition virtual setting.
      Specified by:
      getTermsOfUseContent in interface CPDefinitionVirtualSettingModel
      Returns:
      the terms of use content of this cp definition virtual setting
    • getTermsOfUseContent

      public String getTermsOfUseContent(Locale locale)
      Returns the localized terms of use content of this cp definition virtual setting in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getTermsOfUseContent in interface CPDefinitionVirtualSettingModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized terms of use content of this cp definition virtual setting
    • getTermsOfUseContent

      public String getTermsOfUseContent(Locale locale, boolean useDefault)
      Returns the localized terms of use content of this cp definition virtual setting in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getTermsOfUseContent in interface CPDefinitionVirtualSettingModel
      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 terms of use content of this cp definition virtual setting. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getTermsOfUseContent

      public String getTermsOfUseContent(String languageId)
      Returns the localized terms of use content of this cp definition virtual setting in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getTermsOfUseContent in interface CPDefinitionVirtualSettingModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized terms of use content of this cp definition virtual setting
    • getTermsOfUseContent

      public String getTermsOfUseContent(String languageId, boolean useDefault)
      Returns the localized terms of use content of this cp definition virtual setting in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getTermsOfUseContent in interface CPDefinitionVirtualSettingModel
      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 terms of use content of this cp definition virtual setting
    • getTermsOfUseContentCurrentLanguageId

      public String getTermsOfUseContentCurrentLanguageId()
      Specified by:
      getTermsOfUseContentCurrentLanguageId in interface CPDefinitionVirtualSettingModel
    • getTermsOfUseContentCurrentValue

      public String getTermsOfUseContentCurrentValue()
      Specified by:
      getTermsOfUseContentCurrentValue in interface CPDefinitionVirtualSettingModel
    • getTermsOfUseContentMap

      public Map<Locale,String> getTermsOfUseContentMap()
      Returns a map of the locales and localized terms of use contents of this cp definition virtual setting.
      Specified by:
      getTermsOfUseContentMap in interface CPDefinitionVirtualSettingModel
      Returns:
      the locales and localized terms of use contents of this cp definition virtual setting
    • getTermsOfUseJournalArticle

      public com.liferay.journal.model.JournalArticle getTermsOfUseJournalArticle() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getTermsOfUseJournalArticle in interface CPDefinitionVirtualSetting
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getTermsOfUseJournalArticleResourcePrimKey

      public long getTermsOfUseJournalArticleResourcePrimKey()
      Returns the terms of use journal article resource prim key of this cp definition virtual setting.
      Specified by:
      getTermsOfUseJournalArticleResourcePrimKey in interface CPDefinitionVirtualSettingModel
      Returns:
      the terms of use journal article resource prim key of this cp definition virtual setting
    • getTermsOfUseRequired

      public boolean getTermsOfUseRequired()
      Returns the terms of use required of this cp definition virtual setting.
      Specified by:
      getTermsOfUseRequired in interface CPDefinitionVirtualSettingModel
      Returns:
      the terms of use required of this cp definition virtual setting
    • getUserId

      public long getUserId()
      Returns the user ID of this cp definition virtual setting.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface CPDefinitionVirtualSettingModel
      Returns:
      the user ID of this cp definition virtual setting
    • getUserName

      public String getUserName()
      Returns the user name of this cp definition virtual setting.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface CPDefinitionVirtualSettingModel
      Returns:
      the user name of this cp definition virtual setting
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this cp definition virtual setting.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface CPDefinitionVirtualSettingModel
      Returns:
      the user uuid of this cp definition virtual setting
    • getUseSample

      public boolean getUseSample()
      Returns the use sample of this cp definition virtual setting.
      Specified by:
      getUseSample in interface CPDefinitionVirtualSettingModel
      Returns:
      the use sample of this cp definition virtual setting
    • getUuid

      public String getUuid()
      Returns the uuid of this cp definition virtual setting.
      Specified by:
      getUuid in interface CPDefinitionVirtualSettingModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this cp definition virtual setting
    • isOverride

      public boolean isOverride()
      Returns true if this cp definition virtual setting is override.
      Specified by:
      isOverride in interface CPDefinitionVirtualSettingModel
      Returns:
      true if this cp definition virtual setting is override; false otherwise
    • isTermsOfUseRequired

      public boolean isTermsOfUseRequired()
      Returns true if this cp definition virtual setting is terms of use required.
      Specified by:
      isTermsOfUseRequired in interface CPDefinitionVirtualSettingModel
      Returns:
      true if this cp definition virtual setting is terms of use required; false otherwise
    • isUseSample

      public boolean isUseSample()
      Returns true if this cp definition virtual setting is use sample.
      Specified by:
      isUseSample in interface CPDefinitionVirtualSettingModel
      Returns:
      true if this cp definition virtual setting is use sample; false otherwise
    • isUseSampleURL

      public boolean isUseSampleURL()
      Specified by:
      isUseSampleURL in interface CPDefinitionVirtualSetting
    • isUseTermsOfUseJournal

      public boolean isUseTermsOfUseJournal()
      Specified by:
      isUseTermsOfUseJournal in interface CPDefinitionVirtualSetting
    • 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 CPDefinitionVirtualSettingModel
      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 CPDefinitionVirtualSettingModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setActivationStatus

      public void setActivationStatus(int activationStatus)
      Sets the activation status of this cp definition virtual setting.
      Specified by:
      setActivationStatus in interface CPDefinitionVirtualSettingModel
      Parameters:
      activationStatus - the activation status of this cp definition virtual setting
    • setClassName

      public void setClassName(String className)
      Specified by:
      setClassName in interface CPDefinitionVirtualSettingModel
    • setClassNameId

      public void setClassNameId(long classNameId)
      Sets the class name ID of this cp definition virtual setting.
      Specified by:
      setClassNameId in interface CPDefinitionVirtualSettingModel
      Specified by:
      setClassNameId in interface com.liferay.portal.kernel.model.TypedModel
      Parameters:
      classNameId - the class name ID of this cp definition virtual setting
    • setClassPK

      public void setClassPK(long classPK)
      Sets the class pk of this cp definition virtual setting.
      Specified by:
      setClassPK in interface com.liferay.portal.kernel.model.AttachedModel
      Specified by:
      setClassPK in interface CPDefinitionVirtualSettingModel
      Parameters:
      classPK - the class pk of this cp definition virtual setting
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this cp definition virtual setting.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface CPDefinitionVirtualSettingModel
      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 cp definition virtual setting
    • setCPDefinitionVirtualSettingId

      public void setCPDefinitionVirtualSettingId(long CPDefinitionVirtualSettingId)
      Sets the cp definition virtual setting ID of this cp definition virtual setting.
      Specified by:
      setCPDefinitionVirtualSettingId in interface CPDefinitionVirtualSettingModel
      Parameters:
      CPDefinitionVirtualSettingId - the cp definition virtual setting ID of this cp definition virtual setting
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this cp definition virtual setting.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface CPDefinitionVirtualSettingModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      createDate - the create date of this cp definition virtual setting
    • setDuration

      public void setDuration(long duration)
      Sets the duration of this cp definition virtual setting.
      Specified by:
      setDuration in interface CPDefinitionVirtualSettingModel
      Parameters:
      duration - the duration of this cp definition virtual setting
    • setGroupId

      public void setGroupId(long groupId)
      Sets the group ID of this cp definition virtual setting.
      Specified by:
      setGroupId in interface CPDefinitionVirtualSettingModel
      Specified by:
      setGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Parameters:
      groupId - the group ID of this cp definition virtual setting
    • setLastPublishDate

      public void setLastPublishDate(Date lastPublishDate)
      Sets the last publish date of this cp definition virtual setting.
      Specified by:
      setLastPublishDate in interface CPDefinitionVirtualSettingModel
      Specified by:
      setLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Parameters:
      lastPublishDate - the last publish date of this cp definition virtual setting
    • setMaxUsages

      public void setMaxUsages(int maxUsages)
      Sets the max usages of this cp definition virtual setting.
      Specified by:
      setMaxUsages in interface CPDefinitionVirtualSettingModel
      Parameters:
      maxUsages - the max usages of this cp definition virtual setting
    • setModifiedDate

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

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this cp definition virtual setting.
      Specified by:
      setMvccVersion in interface CPDefinitionVirtualSettingModel
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this cp definition virtual setting
    • setOverride

      public void setOverride(boolean override)
      Sets whether this cp definition virtual setting is override.
      Specified by:
      setOverride in interface CPDefinitionVirtualSettingModel
      Parameters:
      override - the override of this cp definition virtual setting
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this cp definition virtual setting.
      Specified by:
      setPrimaryKey in interface CPDefinitionVirtualSettingModel
      Parameters:
      primaryKey - the primary key of this cp definition virtual setting
    • setSampleFileEntryId

      public void setSampleFileEntryId(long sampleFileEntryId)
      Sets the sample file entry ID of this cp definition virtual setting.
      Specified by:
      setSampleFileEntryId in interface CPDefinitionVirtualSettingModel
      Parameters:
      sampleFileEntryId - the sample file entry ID of this cp definition virtual setting
    • setSampleURL

      public void setSampleURL(String sampleURL)
      Sets the sample url of this cp definition virtual setting.
      Specified by:
      setSampleURL in interface CPDefinitionVirtualSettingModel
      Parameters:
      sampleURL - the sample url of this cp definition virtual setting
    • setTermsOfUseContent

      public void setTermsOfUseContent(String termsOfUseContent)
      Sets the terms of use content of this cp definition virtual setting.
      Specified by:
      setTermsOfUseContent in interface CPDefinitionVirtualSettingModel
      Parameters:
      termsOfUseContent - the terms of use content of this cp definition virtual setting
    • setTermsOfUseContent

      public void setTermsOfUseContent(String termsOfUseContent, Locale locale)
      Sets the localized terms of use content of this cp definition virtual setting in the language.
      Specified by:
      setTermsOfUseContent in interface CPDefinitionVirtualSettingModel
      Parameters:
      termsOfUseContent - the localized terms of use content of this cp definition virtual setting
      locale - the locale of the language
    • setTermsOfUseContent

      public void setTermsOfUseContent(String termsOfUseContent, Locale locale, Locale defaultLocale)
      Sets the localized terms of use content of this cp definition virtual setting in the language, and sets the default locale.
      Specified by:
      setTermsOfUseContent in interface CPDefinitionVirtualSettingModel
      Parameters:
      termsOfUseContent - the localized terms of use content of this cp definition virtual setting
      locale - the locale of the language
      defaultLocale - the default locale
    • setTermsOfUseContentCurrentLanguageId

      public void setTermsOfUseContentCurrentLanguageId(String languageId)
      Specified by:
      setTermsOfUseContentCurrentLanguageId in interface CPDefinitionVirtualSettingModel
    • setTermsOfUseContentMap

      public void setTermsOfUseContentMap(Map<Locale,String> termsOfUseContentMap)
      Sets the localized terms of use contents of this cp definition virtual setting from the map of locales and localized terms of use contents.
      Specified by:
      setTermsOfUseContentMap in interface CPDefinitionVirtualSettingModel
      Parameters:
      termsOfUseContentMap - the locales and localized terms of use contents of this cp definition virtual setting
    • setTermsOfUseContentMap

      public void setTermsOfUseContentMap(Map<Locale,String> termsOfUseContentMap, Locale defaultLocale)
      Sets the localized terms of use contents of this cp definition virtual setting from the map of locales and localized terms of use contents, and sets the default locale.
      Specified by:
      setTermsOfUseContentMap in interface CPDefinitionVirtualSettingModel
      Parameters:
      termsOfUseContentMap - the locales and localized terms of use contents of this cp definition virtual setting
      defaultLocale - the default locale
    • setTermsOfUseJournalArticleResourcePrimKey

      public void setTermsOfUseJournalArticleResourcePrimKey(long termsOfUseJournalArticleResourcePrimKey)
      Sets the terms of use journal article resource prim key of this cp definition virtual setting.
      Specified by:
      setTermsOfUseJournalArticleResourcePrimKey in interface CPDefinitionVirtualSettingModel
      Parameters:
      termsOfUseJournalArticleResourcePrimKey - the terms of use journal article resource prim key of this cp definition virtual setting
    • setTermsOfUseRequired

      public void setTermsOfUseRequired(boolean termsOfUseRequired)
      Sets whether this cp definition virtual setting is terms of use required.
      Specified by:
      setTermsOfUseRequired in interface CPDefinitionVirtualSettingModel
      Parameters:
      termsOfUseRequired - the terms of use required of this cp definition virtual setting
    • setUserId

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

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

      public void setUserUuid(String userUuid)
      Sets the user uuid of this cp definition virtual setting.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserUuid in interface CPDefinitionVirtualSettingModel
      Parameters:
      userUuid - the user uuid of this cp definition virtual setting
    • setUseSample

      public void setUseSample(boolean useSample)
      Sets whether this cp definition virtual setting is use sample.
      Specified by:
      setUseSample in interface CPDefinitionVirtualSettingModel
      Parameters:
      useSample - the use sample of this cp definition virtual setting
    • setUuid

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

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

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

      protected CPDefinitionVirtualSettingWrapper wrap(CPDefinitionVirtualSetting cpDefinitionVirtualSetting)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CPDefinitionVirtualSetting>