@ProviderType public interface CPDefinitionVirtualSettingModel extends com.liferay.portal.kernel.model.AttachedModel, com.liferay.portal.kernel.model.BaseModel<CPDefinitionVirtualSetting>, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedGroupedModel
This interface and its corresponding implementation com.liferay.commerce.product.type.virtual.model.impl.CPDefinitionVirtualSettingModelImpl 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.commerce.product.type.virtual.model.impl.CPDefinitionVirtualSettingImpl.
CPDefinitionVirtualSetting| Modifier and Type | Method and Description |
|---|---|
CPDefinitionVirtualSetting |
cloneWithOriginalValues() |
int |
getActivationStatus()
Returns the activation status of this cp definition virtual setting.
|
java.lang.String[] |
getAvailableLanguageIds() |
java.lang.String |
getClassName()
Returns the fully qualified class name of this cp definition virtual setting.
|
long |
getClassNameId()
Returns the class name ID of this cp definition virtual setting.
|
long |
getClassPK()
Returns the class pk of this cp definition virtual setting.
|
long |
getCompanyId()
Returns the company ID of this cp definition virtual setting.
|
long |
getCPDefinitionVirtualSettingId()
Returns the cp definition virtual setting ID of this cp definition virtual setting.
|
java.util.Date |
getCreateDate()
Returns the create date of this cp definition virtual setting.
|
java.lang.String |
getDefaultLanguageId() |
long |
getDuration()
Returns the duration of this cp definition virtual setting.
|
long |
getGroupId()
Returns the group ID of this cp definition virtual setting.
|
java.util.Date |
getLastPublishDate()
Returns the last publish date of this cp definition virtual setting.
|
int |
getMaxUsages()
Returns the max usages of this cp definition virtual setting.
|
java.util.Date |
getModifiedDate()
Returns the modified date of this cp definition virtual setting.
|
long |
getMvccVersion()
Returns the mvcc version of this cp definition virtual setting.
|
boolean |
getOverride()
Returns the override of this cp definition virtual setting.
|
long |
getPrimaryKey()
Returns the primary key of this cp definition virtual setting.
|
long |
getSampleFileEntryId()
Returns the sample file entry ID of this cp definition virtual setting.
|
java.lang.String |
getSampleURL()
Returns the sample url of this cp definition virtual setting.
|
java.lang.String |
getTermsOfUseContent()
Returns the terms of use content of this cp definition virtual setting.
|
java.lang.String |
getTermsOfUseContent(java.util.Locale locale)
Returns the localized terms of use content of this cp definition virtual setting in the language.
|
java.lang.String |
getTermsOfUseContent(java.util.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.
|
java.lang.String |
getTermsOfUseContent(java.lang.String languageId)
Returns the localized terms of use content of this cp definition virtual setting in the language.
|
java.lang.String |
getTermsOfUseContent(java.lang.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.
|
java.lang.String |
getTermsOfUseContentCurrentLanguageId() |
java.lang.String |
getTermsOfUseContentCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getTermsOfUseContentMap()
Returns a map of the locales and localized terms of use contents of this cp definition virtual setting.
|
long |
getTermsOfUseJournalArticleResourcePrimKey()
Returns the terms of use journal article resource prim key of this cp definition virtual setting.
|
boolean |
getTermsOfUseRequired()
Returns the terms of use required of this cp definition virtual setting.
|
long |
getUserId()
Returns the user ID of this cp definition virtual setting.
|
java.lang.String |
getUserName()
Returns the user name of this cp definition virtual setting.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this cp definition virtual setting.
|
boolean |
getUseSample()
Returns the use sample of this cp definition virtual setting.
|
java.lang.String |
getUuid()
Returns the uuid of this cp definition virtual setting.
|
boolean |
isOverride()
Returns
true if this cp definition virtual setting is override. |
boolean |
isTermsOfUseRequired()
Returns
true if this cp definition virtual setting is terms of use required. |
boolean |
isUseSample()
Returns
true if this cp definition virtual setting is use sample. |
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setActivationStatus(int activationStatus)
Sets the activation status of this cp definition virtual setting.
|
void |
setClassName(java.lang.String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this cp definition virtual setting.
|
void |
setClassPK(long classPK)
Sets the class pk of this cp definition virtual setting.
|
void |
setCompanyId(long companyId)
Sets the company ID of this cp definition virtual setting.
|
void |
setCPDefinitionVirtualSettingId(long CPDefinitionVirtualSettingId)
Sets the cp definition virtual setting ID of this cp definition virtual setting.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this cp definition virtual setting.
|
void |
setDuration(long duration)
Sets the duration of this cp definition virtual setting.
|
void |
setGroupId(long groupId)
Sets the group ID of this cp definition virtual setting.
|
void |
setLastPublishDate(java.util.Date lastPublishDate)
Sets the last publish date of this cp definition virtual setting.
|
void |
setMaxUsages(int maxUsages)
Sets the max usages of this cp definition virtual setting.
|
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this cp definition virtual setting.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this cp definition virtual setting.
|
void |
setOverride(boolean override)
Sets whether this cp definition virtual setting is override.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this cp definition virtual setting.
|
void |
setSampleFileEntryId(long sampleFileEntryId)
Sets the sample file entry ID of this cp definition virtual setting.
|
void |
setSampleURL(java.lang.String sampleURL)
Sets the sample url of this cp definition virtual setting.
|
void |
setTermsOfUseContent(java.lang.String termsOfUseContent)
Sets the terms of use content of this cp definition virtual setting.
|
void |
setTermsOfUseContent(java.lang.String termsOfUseContent,
java.util.Locale locale)
Sets the localized terms of use content of this cp definition virtual setting in the language.
|
void |
setTermsOfUseContent(java.lang.String termsOfUseContent,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized terms of use content of this cp definition virtual setting in the language, and sets the default locale.
|
void |
setTermsOfUseContentCurrentLanguageId(java.lang.String languageId) |
void |
setTermsOfUseContentMap(java.util.Map<java.util.Locale,java.lang.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.
|
void |
setTermsOfUseContentMap(java.util.Map<java.util.Locale,java.lang.String> termsOfUseContentMap,
java.util.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.
|
void |
setTermsOfUseJournalArticleResourcePrimKey(long termsOfUseJournalArticleResourcePrimKey)
Sets the terms of use journal article resource prim key of this cp definition virtual setting.
|
void |
setTermsOfUseRequired(boolean termsOfUseRequired)
Sets whether this cp definition virtual setting is terms of use required.
|
void |
setUserId(long userId)
Sets the user ID of this cp definition virtual setting.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this cp definition virtual setting.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this cp definition virtual setting.
|
void |
setUseSample(boolean useSample)
Sets whether this cp definition virtual setting is use sample.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this cp definition virtual setting.
|
default java.lang.String |
toXmlString() |
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModellong getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey - the primary key of this cp definition virtual settinglong getMvccVersion()
getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelvoid setMvccVersion(long mvccVersion)
setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelmvccVersion - the mvcc version of this cp definition virtual setting@AutoEscape java.lang.String getUuid()
getUuid in interface com.liferay.portal.kernel.model.StagedModelvoid setUuid(java.lang.String uuid)
setUuid in interface com.liferay.portal.kernel.model.StagedModeluuid - the uuid of this cp definition virtual settinglong getCPDefinitionVirtualSettingId()
void setCPDefinitionVirtualSettingId(long CPDefinitionVirtualSettingId)
CPDefinitionVirtualSettingId - the cp definition virtual setting ID of this cp definition virtual settinglong getGroupId()
getGroupId in interface com.liferay.portal.kernel.model.GroupedModelvoid setGroupId(long groupId)
setGroupId in interface com.liferay.portal.kernel.model.GroupedModelgroupId - the group ID of this cp definition virtual settinglong getCompanyId()
getCompanyId in interface com.liferay.portal.kernel.model.AuditedModelgetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelgetCompanyId in interface com.liferay.portal.kernel.model.StagedModelvoid setCompanyId(long companyId)
setCompanyId in interface com.liferay.portal.kernel.model.AuditedModelsetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelsetCompanyId in interface com.liferay.portal.kernel.model.StagedModelcompanyId - the company ID of this cp definition virtual settinglong getUserId()
getUserId in interface com.liferay.portal.kernel.model.AuditedModelvoid setUserId(long userId)
setUserId in interface com.liferay.portal.kernel.model.AuditedModeluserId - the user ID of this cp definition virtual settingjava.lang.String getUserUuid()
getUserUuid in interface com.liferay.portal.kernel.model.AuditedModelvoid setUserUuid(java.lang.String userUuid)
setUserUuid in interface com.liferay.portal.kernel.model.AuditedModeluserUuid - the user uuid of this cp definition virtual setting@AutoEscape java.lang.String getUserName()
getUserName in interface com.liferay.portal.kernel.model.AuditedModelvoid setUserName(java.lang.String userName)
setUserName in interface com.liferay.portal.kernel.model.AuditedModeluserName - the user name of this cp definition virtual settingjava.util.Date getCreateDate()
getCreateDate in interface com.liferay.portal.kernel.model.AuditedModelgetCreateDate in interface com.liferay.portal.kernel.model.StagedModelvoid setCreateDate(java.util.Date createDate)
setCreateDate in interface com.liferay.portal.kernel.model.AuditedModelsetCreateDate in interface com.liferay.portal.kernel.model.StagedModelcreateDate - the create date of this cp definition virtual settingjava.util.Date getModifiedDate()
getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelgetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelvoid setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelsetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelmodifiedDate - the modified date of this cp definition virtual settingjava.lang.String getClassName()
getClassName in interface com.liferay.portal.kernel.model.TypedModelvoid setClassName(java.lang.String className)
long getClassNameId()
getClassNameId in interface com.liferay.portal.kernel.model.TypedModelvoid setClassNameId(long classNameId)
setClassNameId in interface com.liferay.portal.kernel.model.TypedModelclassNameId - the class name ID of this cp definition virtual settinglong getClassPK()
getClassPK in interface com.liferay.portal.kernel.model.AttachedModelvoid setClassPK(long classPK)
setClassPK in interface com.liferay.portal.kernel.model.AttachedModelclassPK - the class pk of this cp definition virtual settingint getActivationStatus()
void setActivationStatus(int activationStatus)
activationStatus - the activation status of this cp definition virtual settinglong getDuration()
void setDuration(long duration)
duration - the duration of this cp definition virtual settingint getMaxUsages()
void setMaxUsages(int maxUsages)
maxUsages - the max usages of this cp definition virtual settingboolean getUseSample()
boolean isUseSample()
true if this cp definition virtual setting is use sample.true if this cp definition virtual setting is use sample; false otherwisevoid setUseSample(boolean useSample)
useSample - the use sample of this cp definition virtual settinglong getSampleFileEntryId()
void setSampleFileEntryId(long sampleFileEntryId)
sampleFileEntryId - the sample file entry ID of this cp definition virtual setting@AutoEscape java.lang.String getSampleURL()
void setSampleURL(java.lang.String sampleURL)
sampleURL - the sample url of this cp definition virtual settingboolean getTermsOfUseRequired()
boolean isTermsOfUseRequired()
true if this cp definition virtual setting is terms of use required.true if this cp definition virtual setting is terms of use required; false otherwisevoid setTermsOfUseRequired(boolean termsOfUseRequired)
termsOfUseRequired - the terms of use required of this cp definition virtual settingjava.lang.String getTermsOfUseContent()
@AutoEscape java.lang.String getTermsOfUseContent(java.util.Locale locale)
locale - the locale of the language@AutoEscape
java.lang.String getTermsOfUseContent(java.util.Locale locale,
boolean useDefault)
locale - the local of the languageuseDefault - whether to use the default language if no localization exists for the requested languageuseDefault is false and no localization exists for the requested language, an empty string will be returned.@AutoEscape java.lang.String getTermsOfUseContent(java.lang.String languageId)
languageId - the ID of the language@AutoEscape
java.lang.String getTermsOfUseContent(java.lang.String languageId,
boolean useDefault)
languageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested language@AutoEscape java.lang.String getTermsOfUseContentCurrentLanguageId()
@AutoEscape java.lang.String getTermsOfUseContentCurrentValue()
java.util.Map<java.util.Locale,java.lang.String> getTermsOfUseContentMap()
void setTermsOfUseContent(java.lang.String termsOfUseContent)
termsOfUseContent - the terms of use content of this cp definition virtual settingvoid setTermsOfUseContent(java.lang.String termsOfUseContent,
java.util.Locale locale)
termsOfUseContent - the localized terms of use content of this cp definition virtual settinglocale - the locale of the languagevoid setTermsOfUseContent(java.lang.String termsOfUseContent,
java.util.Locale locale,
java.util.Locale defaultLocale)
termsOfUseContent - the localized terms of use content of this cp definition virtual settinglocale - the locale of the languagedefaultLocale - the default localevoid setTermsOfUseContentCurrentLanguageId(java.lang.String languageId)
void setTermsOfUseContentMap(java.util.Map<java.util.Locale,java.lang.String> termsOfUseContentMap)
termsOfUseContentMap - the locales and localized terms of use contents of this cp definition virtual settingvoid setTermsOfUseContentMap(java.util.Map<java.util.Locale,java.lang.String> termsOfUseContentMap,
java.util.Locale defaultLocale)
termsOfUseContentMap - the locales and localized terms of use contents of this cp definition virtual settingdefaultLocale - the default localelong getTermsOfUseJournalArticleResourcePrimKey()
void setTermsOfUseJournalArticleResourcePrimKey(long termsOfUseJournalArticleResourcePrimKey)
termsOfUseJournalArticleResourcePrimKey - the terms of use journal article resource prim key of this cp definition virtual settingboolean getOverride()
boolean isOverride()
true if this cp definition virtual setting is override.true if this cp definition virtual setting is override; false otherwisevoid setOverride(boolean override)
override - the override of this cp definition virtual settingjava.util.Date getLastPublishDate()
getLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModelvoid setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModellastPublishDate - the last publish date of this cp definition virtual settingjava.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModeljava.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModelvoid prepareLocalizedFieldsForImport()
throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModelcom.liferay.portal.kernel.exception.LocaleExceptionvoid prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModelcom.liferay.portal.kernel.exception.LocaleExceptionCPDefinitionVirtualSetting cloneWithOriginalValues()
cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CPDefinitionVirtualSetting>default java.lang.String toXmlString()