Class CalendarWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Calendar>
com.liferay.calendar.model.CalendarWrapper
All Implemented Interfaces:
Calendar, CalendarModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<Calendar>, com.liferay.portal.kernel.model.change.tracking.CTModel<Calendar>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<Calendar>, 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, Serializable, Cloneable, Comparable<Calendar>

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.

See Also:
Generated:
  • Constructor Details

    • CalendarWrapper

      public CalendarWrapper(Calendar calendar)
  • Method Details

    • getModelAttributes

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

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

      public Calendar cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<Calendar>
      Specified by:
      cloneWithOriginalValues in interface CalendarModel
    • getAvailableLanguageIds

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

      public long getCalendarId()
      Returns the calendar ID of this calendar.
      Specified by:
      getCalendarId in interface CalendarModel
      Returns:
      the calendar ID of this calendar
    • getCalendarResource

      public CalendarResource getCalendarResource() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCalendarResource in interface Calendar
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCalendarResourceId

      public long getCalendarResourceId()
      Returns the calendar resource ID of this calendar.
      Specified by:
      getCalendarResourceId in interface CalendarModel
      Returns:
      the calendar resource ID of this calendar
    • getColor

      public int getColor()
      Returns the color of this calendar.
      Specified by:
      getColor in interface CalendarModel
      Returns:
      the color of this calendar
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this calendar.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface CalendarModel
      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 calendar
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this calendar.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface CalendarModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this calendar
    • getCtCollectionId

      public long getCtCollectionId()
      Returns the ct collection ID of this calendar.
      Specified by:
      getCtCollectionId in interface CalendarModel
      Specified by:
      getCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<Calendar>
      Returns:
      the ct collection ID of this calendar
    • getDefaultCalendar

      public boolean getDefaultCalendar()
      Returns the default calendar of this calendar.
      Specified by:
      getDefaultCalendar in interface CalendarModel
      Returns:
      the default calendar of this calendar
    • getDefaultLanguageId

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

      public String getDescription()
      Returns the description of this calendar.
      Specified by:
      getDescription in interface CalendarModel
      Returns:
      the description of this calendar
    • getDescription

      public String getDescription(Locale locale)
      Returns the localized description of this calendar in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface CalendarModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized description of this calendar
    • getDescription

      public String getDescription(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.
      Specified by:
      getDescription in interface CalendarModel
      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 description of this calendar. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getDescription

      public String getDescription(String languageId)
      Returns the localized description of this calendar in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getDescription in interface CalendarModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized description of this calendar
    • getDescription

      public String getDescription(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.
      Specified by:
      getDescription in interface CalendarModel
      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 description of this calendar
    • getDescriptionCurrentLanguageId

      public String getDescriptionCurrentLanguageId()
      Specified by:
      getDescriptionCurrentLanguageId in interface CalendarModel
    • getDescriptionCurrentValue

      public String getDescriptionCurrentValue()
      Specified by:
      getDescriptionCurrentValue in interface CalendarModel
    • getDescriptionMap

      public Map<Locale,String> getDescriptionMap()
      Returns a map of the locales and localized descriptions of this calendar.
      Specified by:
      getDescriptionMap in interface CalendarModel
      Returns:
      the locales and localized descriptions of this calendar
    • getEnableComments

      public boolean getEnableComments()
      Returns the enable comments of this calendar.
      Specified by:
      getEnableComments in interface CalendarModel
      Returns:
      the enable comments of this calendar
    • getEnableRatings

      public boolean getEnableRatings()
      Returns the enable ratings of this calendar.
      Specified by:
      getEnableRatings in interface CalendarModel
      Returns:
      the enable ratings of this calendar
    • getGroupId

      public long getGroupId()
      Returns the group ID of this calendar.
      Specified by:
      getGroupId in interface CalendarModel
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Returns:
      the group ID of this calendar
    • getLastPublishDate

      public Date getLastPublishDate()
      Returns the last publish date of this calendar.
      Specified by:
      getLastPublishDate in interface CalendarModel
      Specified by:
      getLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Returns:
      the last publish date of this calendar
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this calendar.
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getModifiedDate in interface CalendarModel
      Specified by:
      getModifiedDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the modified date of this calendar
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this calendar.
      Specified by:
      getMvccVersion in interface CalendarModel
      Specified by:
      getMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Returns:
      the mvcc version of this calendar
    • getName

      public String getName()
      Returns the name of this calendar.
      Specified by:
      getName in interface CalendarModel
      Returns:
      the name of this calendar
    • getName

      public String getName(Locale locale)
      Returns the localized name of this calendar in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CalendarModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized name of this calendar
    • getName

      public String getName(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.
      Specified by:
      getName in interface CalendarModel
      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 name of this calendar. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getName

      public String getName(String languageId)
      Returns the localized name of this calendar in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface CalendarModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized name of this calendar
    • getName

      public String getName(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.
      Specified by:
      getName in interface CalendarModel
      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 name of this calendar
    • getNameCurrentLanguageId

      public String getNameCurrentLanguageId()
      Specified by:
      getNameCurrentLanguageId in interface CalendarModel
    • getNameCurrentValue

      public String getNameCurrentValue()
      Specified by:
      getNameCurrentValue in interface CalendarModel
    • getNameMap

      public Map<Locale,String> getNameMap()
      Returns a map of the locales and localized names of this calendar.
      Specified by:
      getNameMap in interface CalendarModel
      Returns:
      the locales and localized names of this calendar
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this calendar.
      Specified by:
      getPrimaryKey in interface CalendarModel
      Specified by:
      getPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<Calendar>
      Returns:
      the primary key of this calendar
    • getTimeZone

      public TimeZone getTimeZone()
      Specified by:
      getTimeZone in interface Calendar
    • getTimeZoneId

      public String getTimeZoneId()
      Returns the time zone ID of this calendar.
      Specified by:
      getTimeZoneId in interface CalendarModel
      Returns:
      the time zone ID of this calendar
    • getUserId

      public long getUserId()
      Returns the user ID of this calendar.
      Specified by:
      getUserId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserId in interface CalendarModel
      Returns:
      the user ID of this calendar
    • getUserName

      public String getUserName()
      Returns the user name of this calendar.
      Specified by:
      getUserName in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserName in interface CalendarModel
      Returns:
      the user name of this calendar
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this calendar.
      Specified by:
      getUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getUserUuid in interface CalendarModel
      Returns:
      the user uuid of this calendar
    • getUuid

      public String getUuid()
      Returns the uuid of this calendar.
      Specified by:
      getUuid in interface CalendarModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this calendar
    • isDefaultCalendar

      public boolean isDefaultCalendar()
      Returns true if this calendar is default calendar.
      Specified by:
      isDefaultCalendar in interface CalendarModel
      Returns:
      true if this calendar is default calendar; false otherwise
    • isEnableComments

      public boolean isEnableComments()
      Returns true if this calendar is enable comments.
      Specified by:
      isEnableComments in interface CalendarModel
      Returns:
      true if this calendar is enable comments; false otherwise
    • isEnableRatings

      public boolean isEnableRatings()
      Returns true if this calendar is enable ratings.
      Specified by:
      isEnableRatings in interface CalendarModel
      Returns:
      true if this calendar is enable ratings; false otherwise
    • 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 CalendarModel
      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 CalendarModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setCalendarId

      public void setCalendarId(long calendarId)
      Sets the calendar ID of this calendar.
      Specified by:
      setCalendarId in interface CalendarModel
      Parameters:
      calendarId - the calendar ID of this calendar
    • setCalendarResourceId

      public void setCalendarResourceId(long calendarResourceId)
      Sets the calendar resource ID of this calendar.
      Specified by:
      setCalendarResourceId in interface CalendarModel
      Parameters:
      calendarResourceId - the calendar resource ID of this calendar
    • setColor

      public void setColor(int color)
      Sets the color of this calendar.
      Specified by:
      setColor in interface CalendarModel
      Parameters:
      color - the color of this calendar
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this calendar.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface CalendarModel
      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 calendar
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this calendar.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface CalendarModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      createDate - the create date of this calendar
    • setCtCollectionId

      public void setCtCollectionId(long ctCollectionId)
      Sets the ct collection ID of this calendar.
      Specified by:
      setCtCollectionId in interface CalendarModel
      Specified by:
      setCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<Calendar>
      Parameters:
      ctCollectionId - the ct collection ID of this calendar
    • setDefaultCalendar

      public void setDefaultCalendar(boolean defaultCalendar)
      Sets whether this calendar is default calendar.
      Specified by:
      setDefaultCalendar in interface CalendarModel
      Parameters:
      defaultCalendar - the default calendar of this calendar
    • setDescription

      public void setDescription(String description)
      Sets the description of this calendar.
      Specified by:
      setDescription in interface CalendarModel
      Parameters:
      description - the description of this calendar
    • setDescription

      public void setDescription(String description, Locale locale)
      Sets the localized description of this calendar in the language.
      Specified by:
      setDescription in interface CalendarModel
      Parameters:
      description - the localized description of this calendar
      locale - the locale of the language
    • setDescription

      public void setDescription(String description, Locale locale, Locale defaultLocale)
      Sets the localized description of this calendar in the language, and sets the default locale.
      Specified by:
      setDescription in interface CalendarModel
      Parameters:
      description - the localized description of this calendar
      locale - the locale of the language
      defaultLocale - the default locale
    • setDescriptionCurrentLanguageId

      public void setDescriptionCurrentLanguageId(String languageId)
      Specified by:
      setDescriptionCurrentLanguageId in interface CalendarModel
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap)
      Sets the localized descriptions of this calendar from the map of locales and localized descriptions.
      Specified by:
      setDescriptionMap in interface CalendarModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this calendar
    • setDescriptionMap

      public void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
      Sets the localized descriptions of this calendar from the map of locales and localized descriptions, and sets the default locale.
      Specified by:
      setDescriptionMap in interface CalendarModel
      Parameters:
      descriptionMap - the locales and localized descriptions of this calendar
      defaultLocale - the default locale
    • setEnableComments

      public void setEnableComments(boolean enableComments)
      Sets whether this calendar is enable comments.
      Specified by:
      setEnableComments in interface CalendarModel
      Parameters:
      enableComments - the enable comments of this calendar
    • setEnableRatings

      public void setEnableRatings(boolean enableRatings)
      Sets whether this calendar is enable ratings.
      Specified by:
      setEnableRatings in interface CalendarModel
      Parameters:
      enableRatings - the enable ratings of this calendar
    • setGroupId

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

      public void setLastPublishDate(Date lastPublishDate)
      Sets the last publish date of this calendar.
      Specified by:
      setLastPublishDate in interface CalendarModel
      Specified by:
      setLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModel
      Parameters:
      lastPublishDate - the last publish date of this calendar
    • setModifiedDate

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

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this calendar.
      Specified by:
      setMvccVersion in interface CalendarModel
      Specified by:
      setMvccVersion in interface com.liferay.portal.kernel.model.MVCCModel
      Parameters:
      mvccVersion - the mvcc version of this calendar
    • setName

      public void setName(String name)
      Sets the name of this calendar.
      Specified by:
      setName in interface CalendarModel
      Parameters:
      name - the name of this calendar
    • setName

      public void setName(String name, Locale locale)
      Sets the localized name of this calendar in the language.
      Specified by:
      setName in interface CalendarModel
      Parameters:
      name - the localized name of this calendar
      locale - the locale of the language
    • setName

      public void setName(String name, Locale locale, Locale defaultLocale)
      Sets the localized name of this calendar in the language, and sets the default locale.
      Specified by:
      setName in interface CalendarModel
      Parameters:
      name - the localized name of this calendar
      locale - the locale of the language
      defaultLocale - the default locale
    • setNameCurrentLanguageId

      public void setNameCurrentLanguageId(String languageId)
      Specified by:
      setNameCurrentLanguageId in interface CalendarModel
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap)
      Sets the localized names of this calendar from the map of locales and localized names.
      Specified by:
      setNameMap in interface CalendarModel
      Parameters:
      nameMap - the locales and localized names of this calendar
    • setNameMap

      public void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
      Sets the localized names of this calendar from the map of locales and localized names, and sets the default locale.
      Specified by:
      setNameMap in interface CalendarModel
      Parameters:
      nameMap - the locales and localized names of this calendar
      defaultLocale - the default locale
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this calendar.
      Specified by:
      setPrimaryKey in interface CalendarModel
      Specified by:
      setPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<Calendar>
      Parameters:
      primaryKey - the primary key of this calendar
    • setTimeZoneId

      public void setTimeZoneId(String timeZoneId)
      Sets the time zone ID of this calendar.
      Specified by:
      setTimeZoneId in interface CalendarModel
      Parameters:
      timeZoneId - the time zone ID of this calendar
    • setUserId

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

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

      public void setUserUuid(String userUuid)
      Sets the user uuid of this calendar.
      Specified by:
      setUserUuid in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setUserUuid in interface CalendarModel
      Parameters:
      userUuid - the user uuid of this calendar
    • setUuid

      public void setUuid(String uuid)
      Sets the uuid of this calendar.
      Specified by:
      setUuid in interface CalendarModel
      Specified by:
      setUuid in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      uuid - the uuid of this calendar
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface CalendarModel
    • getAttributeGetterFunctions

      public Map<String,Function<Calendar,Object>> getAttributeGetterFunctions()
      Specified by:
      getAttributeGetterFunctions in interface com.liferay.portal.kernel.model.BaseModel<Calendar>
    • getAttributeSetterBiConsumers

      public Map<String,BiConsumer<Calendar,Object>> getAttributeSetterBiConsumers()
      Specified by:
      getAttributeSetterBiConsumers in interface com.liferay.portal.kernel.model.BaseModel<Calendar>
    • getStagedModelType

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

      protected CalendarWrapper wrap(Calendar calendar)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Calendar>