Class KaleoDefinitionWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<KaleoDefinition>
com.liferay.portal.workflow.kaleo.model.KaleoDefinitionWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<KaleoDefinition>, com.liferay.portal.kernel.model.change.tracking.CTModel<KaleoDefinition>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.ExternalReferenceCodeModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<KaleoDefinition>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedAuditedModel, com.liferay.portal.kernel.model.StagedModel, KaleoDefinition, KaleoDefinitionModel, Serializable, Cloneable, Comparable<KaleoDefinition>

public class KaleoDefinitionWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<KaleoDefinition> implements KaleoDefinition, com.liferay.portal.kernel.model.ModelWrapper<KaleoDefinition>

This class is a wrapper for KaleoDefinition.

See Also:
Generated:
  • Constructor Details

    • KaleoDefinitionWrapper

      public KaleoDefinitionWrapper(KaleoDefinition kaleoDefinition)
  • Method Details

    • getModelAttributes

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

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

      public KaleoDefinition cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<KaleoDefinition>
      Specified by:
      cloneWithOriginalValues in interface KaleoDefinitionModel
    • getActive

      public boolean getActive()
      Returns the active of this kaleo definition.
      Specified by:
      getActive in interface KaleoDefinitionModel
      Returns:
      the active of this kaleo definition
    • getAvailableLanguageIds

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

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

      public String getContent()
      Returns the content of this kaleo definition.
      Specified by:
      getContent in interface KaleoDefinitionModel
      Returns:
      the content of this kaleo definition
    • getContentAsXML

      public String getContentAsXML()
      Specified by:
      getContentAsXML in interface KaleoDefinition
    • getCreateDate

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

      public long getCtCollectionId()
      Returns the ct collection ID of this kaleo definition.
      Specified by:
      getCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<KaleoDefinition>
      Specified by:
      getCtCollectionId in interface KaleoDefinitionModel
      Returns:
      the ct collection ID of this kaleo definition
    • getDefaultLanguageId

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

      public String getDescription()
      Returns the description of this kaleo definition.
      Specified by:
      getDescription in interface KaleoDefinitionModel
      Returns:
      the description of this kaleo definition
    • getExternalReferenceCode

      public String getExternalReferenceCode()
      Returns the external reference code of this kaleo definition.
      Specified by:
      getExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Specified by:
      getExternalReferenceCode in interface KaleoDefinitionModel
      Returns:
      the external reference code of this kaleo definition
    • getGroupId

      public long getGroupId()
      Returns the group ID of this kaleo definition.
      Specified by:
      getGroupId in interface com.liferay.portal.kernel.model.GroupedModel
      Specified by:
      getGroupId in interface KaleoDefinitionModel
      Returns:
      the group ID of this kaleo definition
    • getKaleoDefinitionId

      public long getKaleoDefinitionId()
      Returns the kaleo definition ID of this kaleo definition.
      Specified by:
      getKaleoDefinitionId in interface KaleoDefinitionModel
      Returns:
      the kaleo definition ID of this kaleo definition
    • getKaleoDefinitionVersions

      public List<KaleoDefinitionVersion> getKaleoDefinitionVersions() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKaleoDefinitionVersions in interface KaleoDefinition
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getModifiedDate

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

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

      public String getName()
      Returns the name of this kaleo definition.
      Specified by:
      getName in interface KaleoDefinitionModel
      Returns:
      the name of this kaleo definition
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this kaleo definition.
      Specified by:
      getPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<KaleoDefinition>
      Specified by:
      getPrimaryKey in interface KaleoDefinitionModel
      Returns:
      the primary key of this kaleo definition
    • getScope

      public String getScope()
      Returns the scope of this kaleo definition.
      Specified by:
      getScope in interface KaleoDefinitionModel
      Returns:
      the scope of this kaleo definition
    • getTitle

      public String getTitle()
      Returns the title of this kaleo definition.
      Specified by:
      getTitle in interface KaleoDefinitionModel
      Returns:
      the title of this kaleo definition
    • getTitle

      public String getTitle(Locale locale)
      Returns the localized title of this kaleo definition in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getTitle in interface KaleoDefinitionModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized title of this kaleo definition
    • getTitle

      public String getTitle(Locale locale, boolean useDefault)
      Returns the localized title of this kaleo definition in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getTitle in interface KaleoDefinitionModel
      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 title of this kaleo definition. If useDefault is false and no localization exists for the requested language, an empty string will be returned.
    • getTitle

      public String getTitle(String languageId)
      Returns the localized title of this kaleo definition in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getTitle in interface KaleoDefinitionModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized title of this kaleo definition
    • getTitle

      public String getTitle(String languageId, boolean useDefault)
      Returns the localized title of this kaleo definition in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getTitle in interface KaleoDefinitionModel
      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 title of this kaleo definition
    • getTitleCurrentLanguageId

      public String getTitleCurrentLanguageId()
      Specified by:
      getTitleCurrentLanguageId in interface KaleoDefinitionModel
    • getTitleCurrentValue

      public String getTitleCurrentValue()
      Specified by:
      getTitleCurrentValue in interface KaleoDefinitionModel
    • getTitleMap

      public Map<Locale,String> getTitleMap()
      Returns a map of the locales and localized titles of this kaleo definition.
      Specified by:
      getTitleMap in interface KaleoDefinitionModel
      Returns:
      the locales and localized titles of this kaleo definition
    • getUserId

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

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

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

      public String getUuid()
      Returns the uuid of this kaleo definition.
      Specified by:
      getUuid in interface KaleoDefinitionModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this kaleo definition
    • getVersion

      public int getVersion()
      Returns the version of this kaleo definition.
      Specified by:
      getVersion in interface KaleoDefinitionModel
      Returns:
      the version of this kaleo definition
    • isActive

      public boolean isActive()
      Returns true if this kaleo definition is active.
      Specified by:
      isActive in interface KaleoDefinitionModel
      Returns:
      true if this kaleo definition is active; 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 KaleoDefinitionModel
      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 KaleoDefinitionModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setActive

      public void setActive(boolean active)
      Sets whether this kaleo definition is active.
      Specified by:
      setActive in interface KaleoDefinitionModel
      Parameters:
      active - the active of this kaleo definition
    • setCompanyId

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

      public void setContent(String content)
      Sets the content of this kaleo definition.
      Specified by:
      setContent in interface KaleoDefinitionModel
      Parameters:
      content - the content of this kaleo definition
    • setCreateDate

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

      public void setCtCollectionId(long ctCollectionId)
      Sets the ct collection ID of this kaleo definition.
      Specified by:
      setCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<KaleoDefinition>
      Specified by:
      setCtCollectionId in interface KaleoDefinitionModel
      Parameters:
      ctCollectionId - the ct collection ID of this kaleo definition
    • setDescription

      public void setDescription(String description)
      Sets the description of this kaleo definition.
      Specified by:
      setDescription in interface KaleoDefinitionModel
      Parameters:
      description - the description of this kaleo definition
    • setExternalReferenceCode

      public void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this kaleo definition.
      Specified by:
      setExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Specified by:
      setExternalReferenceCode in interface KaleoDefinitionModel
      Parameters:
      externalReferenceCode - the external reference code of this kaleo definition
    • setGroupId

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

      public void setKaleoDefinitionId(long kaleoDefinitionId)
      Sets the kaleo definition ID of this kaleo definition.
      Specified by:
      setKaleoDefinitionId in interface KaleoDefinitionModel
      Parameters:
      kaleoDefinitionId - the kaleo definition ID of this kaleo definition
    • setModifiedDate

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

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

      public void setName(String name)
      Sets the name of this kaleo definition.
      Specified by:
      setName in interface KaleoDefinitionModel
      Parameters:
      name - the name of this kaleo definition
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this kaleo definition.
      Specified by:
      setPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<KaleoDefinition>
      Specified by:
      setPrimaryKey in interface KaleoDefinitionModel
      Parameters:
      primaryKey - the primary key of this kaleo definition
    • setScope

      public void setScope(String scope)
      Sets the scope of this kaleo definition.
      Specified by:
      setScope in interface KaleoDefinitionModel
      Parameters:
      scope - the scope of this kaleo definition
    • setTitle

      public void setTitle(String title)
      Sets the title of this kaleo definition.
      Specified by:
      setTitle in interface KaleoDefinitionModel
      Parameters:
      title - the title of this kaleo definition
    • setTitle

      public void setTitle(String title, Locale locale)
      Sets the localized title of this kaleo definition in the language.
      Specified by:
      setTitle in interface KaleoDefinitionModel
      Parameters:
      title - the localized title of this kaleo definition
      locale - the locale of the language
    • setTitle

      public void setTitle(String title, Locale locale, Locale defaultLocale)
      Sets the localized title of this kaleo definition in the language, and sets the default locale.
      Specified by:
      setTitle in interface KaleoDefinitionModel
      Parameters:
      title - the localized title of this kaleo definition
      locale - the locale of the language
      defaultLocale - the default locale
    • setTitleCurrentLanguageId

      public void setTitleCurrentLanguageId(String languageId)
      Specified by:
      setTitleCurrentLanguageId in interface KaleoDefinitionModel
    • setTitleMap

      public void setTitleMap(Map<Locale,String> titleMap)
      Sets the localized titles of this kaleo definition from the map of locales and localized titles.
      Specified by:
      setTitleMap in interface KaleoDefinitionModel
      Parameters:
      titleMap - the locales and localized titles of this kaleo definition
    • setTitleMap

      public void setTitleMap(Map<Locale,String> titleMap, Locale defaultLocale)
      Sets the localized titles of this kaleo definition from the map of locales and localized titles, and sets the default locale.
      Specified by:
      setTitleMap in interface KaleoDefinitionModel
      Parameters:
      titleMap - the locales and localized titles of this kaleo definition
      defaultLocale - the default locale
    • setUserId

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

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

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

      public void setUuid(String uuid)
      Sets the uuid of this kaleo definition.
      Specified by:
      setUuid in interface KaleoDefinitionModel
      Specified by:
      setUuid in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      uuid - the uuid of this kaleo definition
    • setVersion

      public void setVersion(int version)
      Sets the version of this kaleo definition.
      Specified by:
      setVersion in interface KaleoDefinitionModel
      Parameters:
      version - the version of this kaleo definition
    • toXmlString

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

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

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

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

      protected KaleoDefinitionWrapper wrap(KaleoDefinition kaleoDefinition)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<KaleoDefinition>