public class CalendarWrapper extends BaseModelWrapper<Calendar> implements Calendar, ModelWrapper<Calendar>
This class is a wrapper for Calendar.
Calendar,
Serialized FormmodelCALENDAR_ID_ACCESSOR| Constructor and Description |
|---|
CalendarWrapper(Calendar calendar) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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()
Updates this model instance in the database or adds it if it does not yet
exist.
|
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 |
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, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNameclonegetWrappedModelpublic CalendarWrapper(Calendar calendar)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<Calendar>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<Calendar>public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface CalendarModelgetAvailableLanguageIds in interface LocalizedModelpublic long getCalendarId()
getCalendarId in interface CalendarModelpublic CalendarResource getCalendarResource() throws PortalException
getCalendarResource in interface CalendarPortalExceptionpublic long getCalendarResourceId()
getCalendarResourceId in interface CalendarModelpublic int getColor()
getColor in interface CalendarModelpublic long getCompanyId()
getCompanyId in interface CalendarModelgetCompanyId in interface AuditedModelgetCompanyId in interface ShardedModelgetCompanyId in interface StagedModelpublic java.util.Date getCreateDate()
getCreateDate in interface CalendarModelgetCreateDate in interface AuditedModelgetCreateDate in interface StagedModelpublic boolean getDefaultCalendar()
getDefaultCalendar in interface CalendarModelpublic java.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface CalendarModelgetDefaultLanguageId in interface 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 GroupedModelpublic java.util.Date getLastPublishDate()
getLastPublishDate in interface CalendarModelgetLastPublishDate in interface StagedGroupedModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface CalendarModelgetModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelpublic long getMvccVersion()
getMvccVersion in interface CalendarModelgetMvccVersion in interface 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 CalendarModelpublic java.util.TimeZone getTimeZone()
getTimeZone in interface Calendarpublic java.lang.String getTimeZoneId()
getTimeZoneId in interface CalendarModelpublic long getUserId()
getUserId in interface CalendarModelgetUserId in interface AuditedModelpublic java.lang.String getUserName()
getUserName in interface CalendarModelgetUserName in interface AuditedModelpublic java.lang.String getUserUuid()
getUserUuid in interface CalendarModelgetUserUuid in interface AuditedModelpublic java.lang.String getUuid()
getUuid in interface CalendarModelgetUuid in interface 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()
PersistedModelpersist in interface PersistedModelpublic void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface CalendarModelprepareLocalizedFieldsForImport in interface LocalizedModelLocaleExceptionpublic void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface CalendarModelprepareLocalizedFieldsForImport in interface LocalizedModelLocaleExceptionpublic 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 AuditedModelsetCompanyId in interface ShardedModelsetCompanyId in interface StagedModelcompanyId - the company ID of this calendarpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface CalendarModelsetCreateDate in interface AuditedModelsetCreateDate in interface StagedModelcreateDate - the create date 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 GroupedModelgroupId - the group ID of this calendarpublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate in interface CalendarModelsetLastPublishDate in interface StagedGroupedModellastPublishDate - the last publish date of this calendarpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface CalendarModelsetModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this calendarpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface CalendarModelsetMvccVersion in interface 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 CalendarModelprimaryKey - 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 AuditedModeluserId - the user ID of this calendarpublic void setUserName(java.lang.String userName)
setUserName in interface CalendarModelsetUserName in interface AuditedModeluserName - the user name of this calendarpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface CalendarModelsetUserUuid in interface AuditedModeluserUuid - the user uuid of this calendarpublic void setUuid(java.lang.String uuid)
setUuid in interface CalendarModelsetUuid in interface StagedModeluuid - the uuid of this calendarpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelprotected CalendarWrapper wrap(Calendar calendar)
wrap in class BaseModelWrapper<Calendar>