public class AssetEntryWrapper extends BaseModelWrapper<AssetEntry> implements AssetEntry, ModelWrapper<AssetEntry>
This class is a wrapper for AssetEntry
.
AssetEntry
,
Serialized Formmodel
ENTRY_ID_ACCESSOR
Constructor and Description |
---|
AssetEntryWrapper(AssetEntry assetEntry) |
Modifier and Type | Method and Description |
---|---|
AssetRenderer<?> |
getAssetRenderer() |
AssetRendererFactory<?> |
getAssetRendererFactory() |
String[] |
getAvailableLanguageIds() |
List<AssetCategory> |
getCategories() |
long[] |
getCategoryIds() |
String |
getClassName()
Returns the fully qualified class name of this asset entry.
|
long |
getClassNameId()
Returns the class name ID of this asset entry.
|
long |
getClassPK()
Returns the class pk of this asset entry.
|
long |
getClassTypeId()
Returns the class type ID of this asset entry.
|
String |
getClassUuid()
Returns the class uuid of this asset entry.
|
long |
getCompanyId()
Returns the company ID of this asset entry.
|
Date |
getCreateDate()
Returns the create date of this asset entry.
|
String |
getDefaultLanguageId() |
String |
getDescription()
Returns the description of this asset entry.
|
String |
getDescription(Locale locale)
Returns the localized description of this asset entry in the language.
|
String |
getDescription(Locale locale,
boolean useDefault)
Returns the localized description of this asset entry in the language, optionally using the default language if no localization exists for the requested language.
|
String |
getDescription(String languageId)
Returns the localized description of this asset entry in the language.
|
String |
getDescription(String languageId,
boolean useDefault)
Returns the localized description of this asset entry in the language, optionally using the default language if no localization exists for the requested language.
|
String |
getDescriptionCurrentLanguageId() |
String |
getDescriptionCurrentValue() |
Map<Locale,String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this asset entry.
|
Date |
getEndDate()
Returns the end date of this asset entry.
|
long |
getEntryId()
Returns the entry ID of this asset entry.
|
Date |
getExpirationDate()
Returns the expiration date of this asset entry.
|
long |
getGroupId()
Returns the group ID of this asset entry.
|
int |
getHeight()
Returns the height of this asset entry.
|
String |
getLayoutUuid()
Returns the layout uuid of this asset entry.
|
boolean |
getListable()
Returns the listable of this asset entry.
|
String |
getMimeType()
Returns the mime type of this asset entry.
|
Map<String,Object> |
getModelAttributes() |
Date |
getModifiedDate()
Returns the modified date of this asset entry.
|
long |
getPrimaryKey()
Returns the primary key of this asset entry.
|
double |
getPriority()
Returns the priority of this asset entry.
|
Date |
getPublishDate()
Returns the publish date of this asset entry.
|
Date |
getStartDate()
Returns the start date of this asset entry.
|
String |
getSummary()
Returns the summary of this asset entry.
|
String |
getSummary(Locale locale)
Returns the localized summary of this asset entry in the language.
|
String |
getSummary(Locale locale,
boolean useDefault)
Returns the localized summary of this asset entry in the language, optionally using the default language if no localization exists for the requested language.
|
String |
getSummary(String languageId)
Returns the localized summary of this asset entry in the language.
|
String |
getSummary(String languageId,
boolean useDefault)
Returns the localized summary of this asset entry in the language, optionally using the default language if no localization exists for the requested language.
|
String |
getSummaryCurrentLanguageId() |
String |
getSummaryCurrentValue() |
Map<Locale,String> |
getSummaryMap()
Returns a map of the locales and localized summaries of this asset entry.
|
String[] |
getTagNames() |
List<AssetTag> |
getTags() |
String |
getTitle()
Returns the title of this asset entry.
|
String |
getTitle(Locale locale)
Returns the localized title of this asset entry in the language.
|
String |
getTitle(Locale locale,
boolean useDefault)
Returns the localized title of this asset entry in the language, optionally using the default language if no localization exists for the requested language.
|
String |
getTitle(String languageId)
Returns the localized title of this asset entry in the language.
|
String |
getTitle(String languageId,
boolean useDefault)
Returns the localized title of this asset entry in the language, optionally using the default language if no localization exists for the requested language.
|
String |
getTitleCurrentLanguageId() |
String |
getTitleCurrentValue() |
Map<Locale,String> |
getTitleMap()
Returns a map of the locales and localized titles of this asset entry.
|
String |
getUrl()
Returns the url of this asset entry.
|
long |
getUserId()
Returns the user ID of this asset entry.
|
String |
getUserName()
Returns the user name of this asset entry.
|
String |
getUserUuid()
Returns the user uuid of this asset entry.
|
int |
getViewCount()
Returns the view count of this asset entry.
|
boolean |
getVisible()
Returns the visible of this asset entry.
|
int |
getWidth()
Returns the width of this asset entry.
|
boolean |
isListable()
Returns
true if this asset entry is listable. |
boolean |
isVisible()
Returns
true if this asset entry is visible. |
void |
persist()
NOTE FOR DEVELOPERS:
Never modify or reference this class directly.
|
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale) |
void |
setClassName(String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this asset entry.
|
void |
setClassPK(long classPK)
Sets the class pk of this asset entry.
|
void |
setClassTypeId(long classTypeId)
Sets the class type ID of this asset entry.
|
void |
setClassUuid(String classUuid)
Sets the class uuid of this asset entry.
|
void |
setCompanyId(long companyId)
Sets the company ID of this asset entry.
|
void |
setCreateDate(Date createDate)
Sets the create date of this asset entry.
|
void |
setDescription(String description)
Sets the description of this asset entry.
|
void |
setDescription(String description,
Locale locale)
Sets the localized description of this asset entry in the language.
|
void |
setDescription(String description,
Locale locale,
Locale defaultLocale)
Sets the localized description of this asset entry in the language, and sets the default locale.
|
void |
setDescriptionCurrentLanguageId(String languageId) |
void |
setDescriptionMap(Map<Locale,String> descriptionMap)
Sets the localized descriptions of this asset entry from the map of locales and localized descriptions.
|
void |
setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
Sets the localized descriptions of this asset entry from the map of locales and localized descriptions, and sets the default locale.
|
void |
setEndDate(Date endDate)
Sets the end date of this asset entry.
|
void |
setEntryId(long entryId)
Sets the entry ID of this asset entry.
|
void |
setExpirationDate(Date expirationDate)
Sets the expiration date of this asset entry.
|
void |
setGroupId(long groupId)
Sets the group ID of this asset entry.
|
void |
setHeight(int height)
Sets the height of this asset entry.
|
void |
setLayoutUuid(String layoutUuid)
Sets the layout uuid of this asset entry.
|
void |
setListable(boolean listable)
Sets whether this asset entry is listable.
|
void |
setMimeType(String mimeType)
Sets the mime type of this asset entry.
|
void |
setModelAttributes(Map<String,Object> attributes) |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this asset entry.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this asset entry.
|
void |
setPriority(double priority)
Sets the priority of this asset entry.
|
void |
setPublishDate(Date publishDate)
Sets the publish date of this asset entry.
|
void |
setStartDate(Date startDate)
Sets the start date of this asset entry.
|
void |
setSummary(String summary)
Sets the summary of this asset entry.
|
void |
setSummary(String summary,
Locale locale)
Sets the localized summary of this asset entry in the language.
|
void |
setSummary(String summary,
Locale locale,
Locale defaultLocale)
Sets the localized summary of this asset entry in the language, and sets the default locale.
|
void |
setSummaryCurrentLanguageId(String languageId) |
void |
setSummaryMap(Map<Locale,String> summaryMap)
Sets the localized summaries of this asset entry from the map of locales and localized summaries.
|
void |
setSummaryMap(Map<Locale,String> summaryMap,
Locale defaultLocale)
Sets the localized summaries of this asset entry from the map of locales and localized summaries, and sets the default locale.
|
void |
setTitle(String title)
Sets the title of this asset entry.
|
void |
setTitle(String title,
Locale locale)
Sets the localized title of this asset entry in the language.
|
void |
setTitle(String title,
Locale locale,
Locale defaultLocale)
Sets the localized title of this asset entry in the language, and sets the default locale.
|
void |
setTitleCurrentLanguageId(String languageId) |
void |
setTitleMap(Map<Locale,String> titleMap)
Sets the localized titles of this asset entry from the map of locales and localized titles.
|
void |
setTitleMap(Map<Locale,String> titleMap,
Locale defaultLocale)
Sets the localized titles of this asset entry from the map of locales and localized titles, and sets the default locale.
|
void |
setUrl(String url)
Sets the url of this asset entry.
|
void |
setUserId(long userId)
Sets the user ID of this asset entry.
|
void |
setUserName(String userName)
Sets the user name of this asset entry.
|
void |
setUserUuid(String userUuid)
Sets the user uuid of this asset entry.
|
void |
setViewCount(int viewCount)
Sets the view count of this asset entry.
|
void |
setVisible(boolean visible)
Sets whether this asset entry is visible.
|
void |
setWidth(int width)
Sets the width of this asset entry.
|
protected AssetEntryWrapper |
wrap(AssetEntry assetEntry) |
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, toXmlString
clone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
getModelClass, getModelClassName
getWrappedModel
public AssetEntryWrapper(AssetEntry assetEntry)
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<AssetEntry>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<AssetEntry>
public AssetRenderer<?> getAssetRenderer()
getAssetRenderer
in interface AssetEntry
public AssetRendererFactory<?> getAssetRendererFactory()
getAssetRendererFactory
in interface AssetEntry
public String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface AssetEntryModel
getAvailableLanguageIds
in interface LocalizedModel
public List<AssetCategory> getCategories()
getCategories
in interface AssetEntry
public long[] getCategoryIds()
getCategoryIds
in interface AssetEntry
public String getClassName()
getClassName
in interface AssetEntryModel
getClassName
in interface TypedModel
public long getClassNameId()
getClassNameId
in interface AssetEntryModel
getClassNameId
in interface TypedModel
public long getClassPK()
getClassPK
in interface AssetEntryModel
getClassPK
in interface AttachedModel
public long getClassTypeId()
getClassTypeId
in interface AssetEntryModel
public String getClassUuid()
getClassUuid
in interface AssetEntryModel
public long getCompanyId()
getCompanyId
in interface AssetEntryModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShardedModel
public Date getCreateDate()
getCreateDate
in interface AssetEntryModel
getCreateDate
in interface AuditedModel
public String getDefaultLanguageId()
getDefaultLanguageId
in interface AssetEntryModel
getDefaultLanguageId
in interface LocalizedModel
public String getDescription()
getDescription
in interface AssetEntryModel
public String getDescription(Locale locale)
getDescription
in interface AssetEntryModel
locale
- the locale of the languagepublic String getDescription(Locale locale, boolean useDefault)
getDescription
in interface AssetEntryModel
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.public String getDescription(String languageId)
getDescription
in interface AssetEntryModel
languageId
- the ID of the languagepublic String getDescription(String languageId, boolean useDefault)
getDescription
in interface AssetEntryModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId
in interface AssetEntryModel
public String getDescriptionCurrentValue()
getDescriptionCurrentValue
in interface AssetEntryModel
public Map<Locale,String> getDescriptionMap()
getDescriptionMap
in interface AssetEntryModel
public Date getEndDate()
getEndDate
in interface AssetEntryModel
public long getEntryId()
getEntryId
in interface AssetEntryModel
public Date getExpirationDate()
getExpirationDate
in interface AssetEntryModel
public long getGroupId()
getGroupId
in interface AssetEntryModel
getGroupId
in interface GroupedModel
public int getHeight()
getHeight
in interface AssetEntryModel
public String getLayoutUuid()
getLayoutUuid
in interface AssetEntryModel
public boolean getListable()
getListable
in interface AssetEntryModel
public String getMimeType()
getMimeType
in interface AssetEntryModel
public Date getModifiedDate()
getModifiedDate
in interface AssetEntryModel
getModifiedDate
in interface AuditedModel
public long getPrimaryKey()
getPrimaryKey
in interface AssetEntryModel
public double getPriority()
getPriority
in interface AssetEntryModel
public Date getPublishDate()
getPublishDate
in interface AssetEntryModel
public Date getStartDate()
getStartDate
in interface AssetEntryModel
public String getSummary()
getSummary
in interface AssetEntryModel
public String getSummary(Locale locale)
getSummary
in interface AssetEntryModel
locale
- the locale of the languagepublic String getSummary(Locale locale, boolean useDefault)
getSummary
in interface AssetEntryModel
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.public String getSummary(String languageId)
getSummary
in interface AssetEntryModel
languageId
- the ID of the languagepublic String getSummary(String languageId, boolean useDefault)
getSummary
in interface AssetEntryModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic String getSummaryCurrentLanguageId()
getSummaryCurrentLanguageId
in interface AssetEntryModel
public String getSummaryCurrentValue()
getSummaryCurrentValue
in interface AssetEntryModel
public Map<Locale,String> getSummaryMap()
getSummaryMap
in interface AssetEntryModel
public String[] getTagNames()
getTagNames
in interface AssetEntry
public List<AssetTag> getTags()
getTags
in interface AssetEntry
public String getTitle()
getTitle
in interface AssetEntryModel
public String getTitle(Locale locale)
getTitle
in interface AssetEntryModel
locale
- the locale of the languagepublic String getTitle(Locale locale, boolean useDefault)
getTitle
in interface AssetEntryModel
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.public String getTitle(String languageId)
getTitle
in interface AssetEntryModel
languageId
- the ID of the languagepublic String getTitle(String languageId, boolean useDefault)
getTitle
in interface AssetEntryModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic String getTitleCurrentLanguageId()
getTitleCurrentLanguageId
in interface AssetEntryModel
public String getTitleCurrentValue()
getTitleCurrentValue
in interface AssetEntryModel
public Map<Locale,String> getTitleMap()
getTitleMap
in interface AssetEntryModel
public String getUrl()
getUrl
in interface AssetEntryModel
public long getUserId()
getUserId
in interface AssetEntryModel
getUserId
in interface AuditedModel
public String getUserName()
getUserName
in interface AssetEntryModel
getUserName
in interface AuditedModel
public String getUserUuid()
getUserUuid
in interface AssetEntryModel
getUserUuid
in interface AuditedModel
public int getViewCount()
getViewCount
in interface AssetEntryModel
public boolean getVisible()
getVisible
in interface AssetEntryModel
public int getWidth()
getWidth
in interface AssetEntryModel
public boolean isListable()
true
if this asset entry is listable.isListable
in interface AssetEntryModel
true
if this asset entry is listable; false
otherwisepublic boolean isVisible()
true
if this asset entry is visible.isVisible
in interface AssetEntryModel
true
if this asset entry is visible; false
otherwisepublic void persist()
AssetEntry
interface instead.persist
in interface PersistedModel
public void prepareLocalizedFieldsForImport() throws LocaleException
prepareLocalizedFieldsForImport
in interface AssetEntryModel
prepareLocalizedFieldsForImport
in interface LocalizedModel
LocaleException
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
prepareLocalizedFieldsForImport
in interface AssetEntryModel
prepareLocalizedFieldsForImport
in interface LocalizedModel
LocaleException
public void setClassName(String className)
setClassName
in interface AssetEntryModel
public void setClassNameId(long classNameId)
setClassNameId
in interface AssetEntryModel
setClassNameId
in interface TypedModel
classNameId
- the class name ID of this asset entrypublic void setClassPK(long classPK)
setClassPK
in interface AssetEntryModel
setClassPK
in interface AttachedModel
classPK
- the class pk of this asset entrypublic void setClassTypeId(long classTypeId)
setClassTypeId
in interface AssetEntryModel
classTypeId
- the class type ID of this asset entrypublic void setClassUuid(String classUuid)
setClassUuid
in interface AssetEntryModel
classUuid
- the class uuid of this asset entrypublic void setCompanyId(long companyId)
setCompanyId
in interface AssetEntryModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShardedModel
companyId
- the company ID of this asset entrypublic void setCreateDate(Date createDate)
setCreateDate
in interface AssetEntryModel
setCreateDate
in interface AuditedModel
createDate
- the create date of this asset entrypublic void setDescription(String description)
setDescription
in interface AssetEntryModel
description
- the description of this asset entrypublic void setDescription(String description, Locale locale)
setDescription
in interface AssetEntryModel
description
- the localized description of this asset entrylocale
- the locale of the languagepublic void setDescription(String description, Locale locale, Locale defaultLocale)
setDescription
in interface AssetEntryModel
description
- the localized description of this asset entrylocale
- the locale of the languagedefaultLocale
- the default localepublic void setDescriptionCurrentLanguageId(String languageId)
setDescriptionCurrentLanguageId
in interface AssetEntryModel
public void setDescriptionMap(Map<Locale,String> descriptionMap)
setDescriptionMap
in interface AssetEntryModel
descriptionMap
- the locales and localized descriptions of this asset entrypublic void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
setDescriptionMap
in interface AssetEntryModel
descriptionMap
- the locales and localized descriptions of this asset entrydefaultLocale
- the default localepublic void setEndDate(Date endDate)
setEndDate
in interface AssetEntryModel
endDate
- the end date of this asset entrypublic void setEntryId(long entryId)
setEntryId
in interface AssetEntryModel
entryId
- the entry ID of this asset entrypublic void setExpirationDate(Date expirationDate)
setExpirationDate
in interface AssetEntryModel
expirationDate
- the expiration date of this asset entrypublic void setGroupId(long groupId)
setGroupId
in interface AssetEntryModel
setGroupId
in interface GroupedModel
groupId
- the group ID of this asset entrypublic void setHeight(int height)
setHeight
in interface AssetEntryModel
height
- the height of this asset entrypublic void setLayoutUuid(String layoutUuid)
setLayoutUuid
in interface AssetEntryModel
layoutUuid
- the layout uuid of this asset entrypublic void setListable(boolean listable)
setListable
in interface AssetEntryModel
listable
- the listable of this asset entrypublic void setMimeType(String mimeType)
setMimeType
in interface AssetEntryModel
mimeType
- the mime type of this asset entrypublic void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AssetEntryModel
setModifiedDate
in interface AuditedModel
modifiedDate
- the modified date of this asset entrypublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface AssetEntryModel
primaryKey
- the primary key of this asset entrypublic void setPriority(double priority)
setPriority
in interface AssetEntryModel
priority
- the priority of this asset entrypublic void setPublishDate(Date publishDate)
setPublishDate
in interface AssetEntryModel
publishDate
- the publish date of this asset entrypublic void setStartDate(Date startDate)
setStartDate
in interface AssetEntryModel
startDate
- the start date of this asset entrypublic void setSummary(String summary)
setSummary
in interface AssetEntryModel
summary
- the summary of this asset entrypublic void setSummary(String summary, Locale locale)
setSummary
in interface AssetEntryModel
summary
- the localized summary of this asset entrylocale
- the locale of the languagepublic void setSummary(String summary, Locale locale, Locale defaultLocale)
setSummary
in interface AssetEntryModel
summary
- the localized summary of this asset entrylocale
- the locale of the languagedefaultLocale
- the default localepublic void setSummaryCurrentLanguageId(String languageId)
setSummaryCurrentLanguageId
in interface AssetEntryModel
public void setSummaryMap(Map<Locale,String> summaryMap)
setSummaryMap
in interface AssetEntryModel
summaryMap
- the locales and localized summaries of this asset entrypublic void setSummaryMap(Map<Locale,String> summaryMap, Locale defaultLocale)
setSummaryMap
in interface AssetEntryModel
summaryMap
- the locales and localized summaries of this asset entrydefaultLocale
- the default localepublic void setTitle(String title)
setTitle
in interface AssetEntryModel
title
- the title of this asset entrypublic void setTitle(String title, Locale locale)
setTitle
in interface AssetEntryModel
title
- the localized title of this asset entrylocale
- the locale of the languagepublic void setTitle(String title, Locale locale, Locale defaultLocale)
setTitle
in interface AssetEntryModel
title
- the localized title of this asset entrylocale
- the locale of the languagedefaultLocale
- the default localepublic void setTitleCurrentLanguageId(String languageId)
setTitleCurrentLanguageId
in interface AssetEntryModel
public void setTitleMap(Map<Locale,String> titleMap)
setTitleMap
in interface AssetEntryModel
titleMap
- the locales and localized titles of this asset entrypublic void setTitleMap(Map<Locale,String> titleMap, Locale defaultLocale)
setTitleMap
in interface AssetEntryModel
titleMap
- the locales and localized titles of this asset entrydefaultLocale
- the default localepublic void setUrl(String url)
setUrl
in interface AssetEntryModel
url
- the url of this asset entrypublic void setUserId(long userId)
setUserId
in interface AssetEntryModel
setUserId
in interface AuditedModel
userId
- the user ID of this asset entrypublic void setUserName(String userName)
setUserName
in interface AssetEntryModel
setUserName
in interface AuditedModel
userName
- the user name of this asset entrypublic void setUserUuid(String userUuid)
setUserUuid
in interface AssetEntryModel
setUserUuid
in interface AuditedModel
userUuid
- the user uuid of this asset entrypublic void setViewCount(int viewCount)
setViewCount
in interface AssetEntryModel
viewCount
- the view count of this asset entrypublic void setVisible(boolean visible)
setVisible
in interface AssetEntryModel
visible
- the visible of this asset entrypublic void setWidth(int width)
setWidth
in interface AssetEntryModel
width
- the width of this asset entryprotected AssetEntryWrapper wrap(AssetEntry assetEntry)
wrap
in class BaseModelWrapper<AssetEntry>