public class CalendarWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Calendar> implements Calendar, com.liferay.portal.kernel.model.ModelWrapper<Calendar>
This class is a wrapper for Calendar.
Calendar,
Serialized FormCALENDAR_ID_ACCESSOR| Constructor and Description |
|---|
CalendarWrapper(Calendar calendar) |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
cloneWithOriginalValues() |
java.util.Map<java.lang.String,java.util.function.Function<Calendar,java.lang.Object>> |
getAttributeGetterFunctions() |
java.util.Map<java.lang.String,java.util.function.BiConsumer<Calendar,java.lang.Object>> |
getAttributeSetterBiConsumers() |
java.lang.String[] |
getAvailableLanguageIds() |
long |
getCalendarId()
Returns the calendar ID of this calendar.
|
CalendarResource |
getCalendarResource() |
long |
getCalendarResourceId()
Returns the calendar resource ID of this calendar.
|
int |
getColor()
Returns the color of this calendar.
|
long |
getCompanyId()
Returns the company ID of this calendar.
|
java.util.Date |
getCreateDate()
Returns the create date of this calendar.
|
long |
getCtCollectionId()
Returns the ct collection ID of this calendar.
|
boolean |
getDefaultCalendar()
Returns the default calendar of this calendar.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getDescription()
Returns the description of this calendar.
|
java.lang.String |
getDescription(java.util.Locale locale)
Returns the localized description of this calendar in the language.
|
java.lang.String |
getDescription(java.util.Locale locale,
boolean useDefault)
Returns the localized description of this calendar in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescription(java.lang.String languageId)
Returns the localized description of this calendar in the language.
|
java.lang.String |
getDescription(java.lang.String languageId,
boolean useDefault)
Returns the localized description of this calendar in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescriptionCurrentLanguageId() |
java.lang.String |
getDescriptionCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this calendar.
|
boolean |
getEnableComments()
Returns the enable comments of this calendar.
|
boolean |
getEnableRatings()
Returns the enable ratings of this calendar.
|
long |
getGroupId()
Returns the group ID of this calendar.
|
java.util.Date |
getLastPublishDate()
Returns the last publish date of this calendar.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this calendar.
|
long |
getMvccVersion()
Returns the mvcc version of this calendar.
|
java.lang.String |
getName()
Returns the name of this calendar.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the localized name of this calendar in the language.
|
java.lang.String |
getName(java.util.Locale locale,
boolean useDefault)
Returns the localized name of this calendar in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getName(java.lang.String languageId)
Returns the localized name of this calendar in the language.
|
java.lang.String |
getName(java.lang.String languageId,
boolean useDefault)
Returns the localized name of this calendar in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getNameCurrentLanguageId() |
java.lang.String |
getNameCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getNameMap()
Returns a map of the locales and localized names of this calendar.
|
long |
getPrimaryKey()
Returns the primary key of this calendar.
|
com.liferay.exportimport.kernel.lar.StagedModelType |
getStagedModelType() |
java.util.TimeZone |
getTimeZone() |
java.lang.String |
getTimeZoneId()
Returns the time zone ID of this calendar.
|
long |
getUserId()
Returns the user ID of this calendar.
|
java.lang.String |
getUserName()
Returns the user name of this calendar.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this calendar.
|
java.lang.String |
getUuid()
Returns the uuid of this calendar.
|
boolean |
isDefaultCalendar()
Returns
true if this calendar is default calendar. |
boolean |
isEnableComments()
Returns
true if this calendar is enable comments. |
boolean |
isEnableRatings()
Returns
true if this calendar is enable ratings. |
void |
persist() |
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setCalendarId(long calendarId)
Sets the calendar ID of this calendar.
|
void |
setCalendarResourceId(long calendarResourceId)
Sets the calendar resource ID of this calendar.
|
void |
setColor(int color)
Sets the color of this calendar.
|
void |
setCompanyId(long companyId)
Sets the company ID of this calendar.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this calendar.
|
void |
setCtCollectionId(long ctCollectionId)
Sets the ct collection ID of this calendar.
|
void |
setDefaultCalendar(boolean defaultCalendar)
Sets whether this calendar is default calendar.
|
void |
setDescription(java.lang.String description)
Sets the description of this calendar.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale)
Sets the localized description of this calendar in the language.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized description of this calendar in the language, and sets the default locale.
|
void |
setDescriptionCurrentLanguageId(java.lang.String languageId) |
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
Sets the localized descriptions of this calendar from the map of locales and localized descriptions.
|
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Locale defaultLocale)
Sets the localized descriptions of this calendar from the map of locales and localized descriptions, and sets the default locale.
|
void |
setEnableComments(boolean enableComments)
Sets whether this calendar is enable comments.
|
void |
setEnableRatings(boolean enableRatings)
Sets whether this calendar is enable ratings.
|
void |
setGroupId(long groupId)
Sets the group ID of this calendar.
|
void |
setLastPublishDate(java.util.Date lastPublishDate)
Sets the last publish date of this calendar.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this calendar.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this calendar.
|
void |
setName(java.lang.String name)
Sets the name of this calendar.
|
void |
setName(java.lang.String name,
java.util.Locale locale)
Sets the localized name of this calendar in the language.
|
void |
setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized name of this calendar in the language, and sets the default locale.
|
void |
setNameCurrentLanguageId(java.lang.String languageId) |
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
Sets the localized names of this calendar from the map of locales and localized names.
|
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
Sets the localized names of this calendar from the map of locales and localized names, and sets the default locale.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this calendar.
|
void |
setTimeZoneId(java.lang.String timeZoneId)
Sets the time zone ID of this calendar.
|
void |
setUserId(long userId)
Sets the user ID of this calendar.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this calendar.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this calendar.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this calendar.
|
protected CalendarWrapper |
wrap(Calendar calendar) |
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, toXmlStringfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringpublic CalendarWrapper(Calendar calendar)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<Calendar>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<Calendar>public Calendar cloneWithOriginalValues()
cloneWithOriginalValues in interface CalendarModelcloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<Calendar>public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface CalendarModelgetAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModelpublic long getCalendarId()
getCalendarId in interface CalendarModelpublic CalendarResource getCalendarResource() throws com.liferay.portal.kernel.exception.PortalException
getCalendarResource in interface Calendarcom.liferay.portal.kernel.exception.PortalExceptionpublic long getCalendarResourceId()
getCalendarResourceId in interface CalendarModelpublic int getColor()
getColor in interface CalendarModelpublic long getCompanyId()
getCompanyId in interface CalendarModelgetCompanyId in interface com.liferay.portal.kernel.model.AuditedModelgetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelgetCompanyId in interface com.liferay.portal.kernel.model.StagedModelpublic java.util.Date getCreateDate()
getCreateDate in interface CalendarModelgetCreateDate in interface com.liferay.portal.kernel.model.AuditedModelgetCreateDate in interface com.liferay.portal.kernel.model.StagedModelpublic long getCtCollectionId()
getCtCollectionId in interface CalendarModelgetCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<Calendar>public boolean getDefaultCalendar()
getDefaultCalendar in interface CalendarModelpublic java.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface CalendarModelgetDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModelpublic java.lang.String getDescription()
getDescription in interface CalendarModelpublic java.lang.String getDescription(java.util.Locale locale)
getDescription in interface CalendarModellocale - the locale of the languagepublic java.lang.String getDescription(java.util.Locale locale,
boolean useDefault)
getDescription in interface CalendarModellocale - 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 java.lang.String getDescription(java.lang.String languageId)
getDescription in interface CalendarModellanguageId - the ID of the languagepublic java.lang.String getDescription(java.lang.String languageId,
boolean useDefault)
getDescription in interface CalendarModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested languagepublic java.lang.String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId in interface CalendarModelpublic java.lang.String getDescriptionCurrentValue()
getDescriptionCurrentValue in interface CalendarModelpublic java.util.Map<java.util.Locale,java.lang.String> getDescriptionMap()
getDescriptionMap in interface CalendarModelpublic boolean getEnableComments()
getEnableComments in interface CalendarModelpublic boolean getEnableRatings()
getEnableRatings in interface CalendarModelpublic long getGroupId()
getGroupId in interface CalendarModelgetGroupId in interface com.liferay.portal.kernel.model.GroupedModelpublic java.util.Date getLastPublishDate()
getLastPublishDate in interface CalendarModelgetLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface CalendarModelgetModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelgetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelpublic long getMvccVersion()
getMvccVersion in interface CalendarModelgetMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelpublic java.lang.String getName()
getName in interface CalendarModelpublic java.lang.String getName(java.util.Locale locale)
getName in interface CalendarModellocale - the locale of the languagepublic java.lang.String getName(java.util.Locale locale,
boolean useDefault)
getName in interface CalendarModellocale - 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 java.lang.String getName(java.lang.String languageId)
getName in interface CalendarModellanguageId - the ID of the languagepublic java.lang.String getName(java.lang.String languageId,
boolean useDefault)
getName in interface CalendarModellanguageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested languagepublic java.lang.String getNameCurrentLanguageId()
getNameCurrentLanguageId in interface CalendarModelpublic java.lang.String getNameCurrentValue()
getNameCurrentValue in interface CalendarModelpublic java.util.Map<java.util.Locale,java.lang.String> getNameMap()
getNameMap in interface CalendarModelpublic long getPrimaryKey()
getPrimaryKey in interface CalendarModelgetPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<Calendar>public java.util.TimeZone getTimeZone()
getTimeZone in interface Calendarpublic java.lang.String getTimeZoneId()
getTimeZoneId in interface CalendarModelpublic long getUserId()
getUserId in interface CalendarModelgetUserId in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUserName()
getUserName in interface CalendarModelgetUserName in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUserUuid()
getUserUuid in interface CalendarModelgetUserUuid in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUuid()
getUuid in interface CalendarModelgetUuid in interface com.liferay.portal.kernel.model.StagedModelpublic boolean isDefaultCalendar()
true if this calendar is default calendar.isDefaultCalendar in interface CalendarModeltrue if this calendar is default calendar; false otherwisepublic boolean isEnableComments()
true if this calendar is enable comments.isEnableComments in interface CalendarModeltrue if this calendar is enable comments; false otherwisepublic boolean isEnableRatings()
true if this calendar is enable ratings.isEnableRatings in interface CalendarModeltrue if this calendar is enable ratings; false otherwisepublic void persist()
persist in interface com.liferay.portal.kernel.model.PersistedModelpublic void prepareLocalizedFieldsForImport()
throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport in interface CalendarModelprepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModelcom.liferay.portal.kernel.exception.LocaleExceptionpublic void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport in interface CalendarModelprepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModelcom.liferay.portal.kernel.exception.LocaleExceptionpublic void setCalendarId(long calendarId)
setCalendarId in interface CalendarModelcalendarId - the calendar ID of this calendarpublic void setCalendarResourceId(long calendarResourceId)
setCalendarResourceId in interface CalendarModelcalendarResourceId - the calendar resource ID of this calendarpublic void setColor(int color)
setColor in interface CalendarModelcolor - the color of this calendarpublic void setCompanyId(long companyId)
setCompanyId in interface CalendarModelsetCompanyId 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 calendarpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface CalendarModelsetCreateDate in interface com.liferay.portal.kernel.model.AuditedModelsetCreateDate in interface com.liferay.portal.kernel.model.StagedModelcreateDate - the create date of this calendarpublic void setCtCollectionId(long ctCollectionId)
setCtCollectionId in interface CalendarModelsetCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<Calendar>ctCollectionId - the ct collection ID of this calendarpublic void setDefaultCalendar(boolean defaultCalendar)
setDefaultCalendar in interface CalendarModeldefaultCalendar - the default calendar of this calendarpublic void setDescription(java.lang.String description)
setDescription in interface CalendarModeldescription - the description of this calendarpublic void setDescription(java.lang.String description,
java.util.Locale locale)
setDescription in interface CalendarModeldescription - the localized description of this calendarlocale - the locale of the languagepublic void setDescription(java.lang.String description,
java.util.Locale locale,
java.util.Locale defaultLocale)
setDescription in interface CalendarModeldescription - the localized description of this calendarlocale - the locale of the languagedefaultLocale - the default localepublic void setDescriptionCurrentLanguageId(java.lang.String languageId)
setDescriptionCurrentLanguageId in interface CalendarModelpublic void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
setDescriptionMap in interface CalendarModeldescriptionMap - the locales and localized descriptions of this calendarpublic void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Locale defaultLocale)
setDescriptionMap in interface CalendarModeldescriptionMap - the locales and localized descriptions of this calendardefaultLocale - the default localepublic void setEnableComments(boolean enableComments)
setEnableComments in interface CalendarModelenableComments - the enable comments of this calendarpublic void setEnableRatings(boolean enableRatings)
setEnableRatings in interface CalendarModelenableRatings - the enable ratings of this calendarpublic void setGroupId(long groupId)
setGroupId in interface CalendarModelsetGroupId in interface com.liferay.portal.kernel.model.GroupedModelgroupId - the group ID of this calendarpublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate in interface CalendarModelsetLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModellastPublishDate - the last publish date of this calendarpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface CalendarModelsetModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelsetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelmodifiedDate - the modified date of this calendarpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface CalendarModelsetMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelmvccVersion - the mvcc version of this calendarpublic void setName(java.lang.String name)
setName in interface CalendarModelname - the name of this calendarpublic void setName(java.lang.String name,
java.util.Locale locale)
setName in interface CalendarModelname - the localized name of this calendarlocale - the locale of the languagepublic void setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
setName in interface CalendarModelname - the localized name of this calendarlocale - the locale of the languagedefaultLocale - the default localepublic void setNameCurrentLanguageId(java.lang.String languageId)
setNameCurrentLanguageId in interface CalendarModelpublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
setNameMap in interface CalendarModelnameMap - the locales and localized names of this calendarpublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
setNameMap in interface CalendarModelnameMap - the locales and localized names of this calendardefaultLocale - the default localepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface CalendarModelsetPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<Calendar>primaryKey - the primary key of this calendarpublic void setTimeZoneId(java.lang.String timeZoneId)
setTimeZoneId in interface CalendarModeltimeZoneId - the time zone ID of this calendarpublic void setUserId(long userId)
setUserId in interface CalendarModelsetUserId in interface com.liferay.portal.kernel.model.AuditedModeluserId - the user ID of this calendarpublic void setUserName(java.lang.String userName)
setUserName in interface CalendarModelsetUserName in interface com.liferay.portal.kernel.model.AuditedModeluserName - the user name of this calendarpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface CalendarModelsetUserUuid in interface com.liferay.portal.kernel.model.AuditedModeluserUuid - the user uuid of this calendarpublic void setUuid(java.lang.String uuid)
setUuid in interface CalendarModelsetUuid in interface com.liferay.portal.kernel.model.StagedModeluuid - the uuid of this calendarpublic java.util.Map<java.lang.String,java.util.function.Function<Calendar,java.lang.Object>> getAttributeGetterFunctions()
getAttributeGetterFunctions in interface com.liferay.portal.kernel.model.BaseModel<Calendar>public java.util.Map<java.lang.String,java.util.function.BiConsumer<Calendar,java.lang.Object>> getAttributeSetterBiConsumers()
getAttributeSetterBiConsumers in interface com.liferay.portal.kernel.model.BaseModel<Calendar>public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType in interface com.liferay.portal.kernel.model.StagedModelprotected CalendarWrapper wrap(Calendar calendar)
wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Calendar>