Class KaleoNodeWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<KaleoNode>
com.liferay.portal.workflow.kaleo.model.KaleoNodeWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<KaleoNode>, com.liferay.portal.kernel.model.change.tracking.CTModel<KaleoNode>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.GroupedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<KaleoNode>, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, KaleoNode, KaleoNodeModel, Serializable, Cloneable, Comparable<KaleoNode>

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

This class is a wrapper for KaleoNode.

See Also:
Generated:
  • Constructor Details

    • KaleoNodeWrapper

      public KaleoNodeWrapper(KaleoNode kaleoNode)
  • Method Details

    • getModelAttributes

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

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

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

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

      public long getCompanyId()
      Returns the company ID of this kaleo node.
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCompanyId in interface KaleoNodeModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Returns:
      the company ID of this kaleo node
    • getCreateDate

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

      public long getCtCollectionId()
      Returns the ct collection ID of this kaleo node.
      Specified by:
      getCtCollectionId in interface com.liferay.portal.kernel.model.change.tracking.CTModel<KaleoNode>
      Specified by:
      getCtCollectionId in interface KaleoNodeModel
      Returns:
      the ct collection ID of this kaleo node
    • getDefaultKaleoTransition

      public KaleoTransition getDefaultKaleoTransition() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getDefaultKaleoTransition in interface KaleoNode
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDefaultLanguageId

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

      public String getDescription()
      Returns the description of this kaleo node.
      Specified by:
      getDescription in interface KaleoNodeModel
      Returns:
      the description of this kaleo node
    • getGroupId

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

      public boolean getInitial()
      Returns the initial of this kaleo node.
      Specified by:
      getInitial in interface KaleoNodeModel
      Returns:
      the initial of this kaleo node
    • getKaleoDefinitionId

      public long getKaleoDefinitionId()
      Returns the kaleo definition ID of this kaleo node.
      Specified by:
      getKaleoDefinitionId in interface KaleoNodeModel
      Returns:
      the kaleo definition ID of this kaleo node
    • getKaleoDefinitionVersionId

      public long getKaleoDefinitionVersionId()
      Returns the kaleo definition version ID of this kaleo node.
      Specified by:
      getKaleoDefinitionVersionId in interface KaleoNodeModel
      Returns:
      the kaleo definition version ID of this kaleo node
    • getKaleoNodeId

      public long getKaleoNodeId()
      Returns the kaleo node ID of this kaleo node.
      Specified by:
      getKaleoNodeId in interface KaleoNodeModel
      Returns:
      the kaleo node ID of this kaleo node
    • getKaleoTransition

      public KaleoTransition getKaleoTransition(String name) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKaleoTransition in interface KaleoNode
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKaleoTransitions

      public List<KaleoTransition> getKaleoTransitions()
      Specified by:
      getKaleoTransitions in interface KaleoNode
    • getLabel

      public String getLabel()
      Returns the label of this kaleo node.
      Specified by:
      getLabel in interface KaleoNodeModel
      Returns:
      the label of this kaleo node
    • getLabel

      public String getLabel(Locale locale)
      Returns the localized label of this kaleo node in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getLabel in interface KaleoNodeModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized label of this kaleo node
    • getLabel

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

      public String getLabel(String languageId)
      Returns the localized label of this kaleo node in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getLabel in interface KaleoNodeModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized label of this kaleo node
    • getLabel

      public String getLabel(String languageId, boolean useDefault)
      Returns the localized label of this kaleo node in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getLabel in interface KaleoNodeModel
      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 label of this kaleo node
    • getLabelCurrentLanguageId

      public String getLabelCurrentLanguageId()
      Specified by:
      getLabelCurrentLanguageId in interface KaleoNodeModel
    • getLabelCurrentValue

      public String getLabelCurrentValue()
      Specified by:
      getLabelCurrentValue in interface KaleoNodeModel
    • getLabelMap

      public Map<Locale,String> getLabelMap()
      Returns a map of the locales and localized labels of this kaleo node.
      Specified by:
      getLabelMap in interface KaleoNodeModel
      Returns:
      the locales and localized labels of this kaleo node
    • getMetadata

      public String getMetadata()
      Returns the metadata of this kaleo node.
      Specified by:
      getMetadata in interface KaleoNodeModel
      Returns:
      the metadata of this kaleo node
    • getModifiedDate

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

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

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

      public long getPrimaryKey()
      Returns the primary key of this kaleo node.
      Specified by:
      getPrimaryKey in interface com.liferay.portal.kernel.model.change.tracking.CTModel<KaleoNode>
      Specified by:
      getPrimaryKey in interface KaleoNodeModel
      Returns:
      the primary key of this kaleo node
    • getTerminal

      public boolean getTerminal()
      Returns the terminal of this kaleo node.
      Specified by:
      getTerminal in interface KaleoNodeModel
      Returns:
      the terminal of this kaleo node
    • getType

      public String getType()
      Returns the type of this kaleo node.
      Specified by:
      getType in interface KaleoNodeModel
      Returns:
      the type of this kaleo node
    • getUserId

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

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

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

      public boolean hasKaleoTransition()
      Specified by:
      hasKaleoTransition in interface KaleoNode
    • isInitial

      public boolean isInitial()
      Returns true if this kaleo node is initial.
      Specified by:
      isInitial in interface KaleoNodeModel
      Returns:
      true if this kaleo node is initial; false otherwise
    • isTerminal

      public boolean isTerminal()
      Returns true if this kaleo node is terminal.
      Specified by:
      isTerminal in interface KaleoNodeModel
      Returns:
      true if this kaleo node is terminal; 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 KaleoNodeModel
      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 KaleoNodeModel
      Specified by:
      prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this kaleo node.
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCompanyId in interface KaleoNodeModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Parameters:
      companyId - the company ID of this kaleo node
    • setCreateDate

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

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

      public void setDescription(String description)
      Sets the description of this kaleo node.
      Specified by:
      setDescription in interface KaleoNodeModel
      Parameters:
      description - the description of this kaleo node
    • setGroupId

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

      public void setInitial(boolean initial)
      Sets whether this kaleo node is initial.
      Specified by:
      setInitial in interface KaleoNodeModel
      Parameters:
      initial - the initial of this kaleo node
    • setKaleoDefinitionId

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

      public void setKaleoDefinitionVersionId(long kaleoDefinitionVersionId)
      Sets the kaleo definition version ID of this kaleo node.
      Specified by:
      setKaleoDefinitionVersionId in interface KaleoNodeModel
      Parameters:
      kaleoDefinitionVersionId - the kaleo definition version ID of this kaleo node
    • setKaleoNodeId

      public void setKaleoNodeId(long kaleoNodeId)
      Sets the kaleo node ID of this kaleo node.
      Specified by:
      setKaleoNodeId in interface KaleoNodeModel
      Parameters:
      kaleoNodeId - the kaleo node ID of this kaleo node
    • setLabel

      public void setLabel(String label)
      Sets the label of this kaleo node.
      Specified by:
      setLabel in interface KaleoNodeModel
      Parameters:
      label - the label of this kaleo node
    • setLabel

      public void setLabel(String label, Locale locale)
      Sets the localized label of this kaleo node in the language.
      Specified by:
      setLabel in interface KaleoNodeModel
      Parameters:
      label - the localized label of this kaleo node
      locale - the locale of the language
    • setLabel

      public void setLabel(String label, Locale locale, Locale defaultLocale)
      Sets the localized label of this kaleo node in the language, and sets the default locale.
      Specified by:
      setLabel in interface KaleoNodeModel
      Parameters:
      label - the localized label of this kaleo node
      locale - the locale of the language
      defaultLocale - the default locale
    • setLabelCurrentLanguageId

      public void setLabelCurrentLanguageId(String languageId)
      Specified by:
      setLabelCurrentLanguageId in interface KaleoNodeModel
    • setLabelMap

      public void setLabelMap(Map<Locale,String> labelMap)
      Sets the localized labels of this kaleo node from the map of locales and localized labels.
      Specified by:
      setLabelMap in interface KaleoNodeModel
      Parameters:
      labelMap - the locales and localized labels of this kaleo node
    • setLabelMap

      public void setLabelMap(Map<Locale,String> labelMap, Locale defaultLocale)
      Sets the localized labels of this kaleo node from the map of locales and localized labels, and sets the default locale.
      Specified by:
      setLabelMap in interface KaleoNodeModel
      Parameters:
      labelMap - the locales and localized labels of this kaleo node
      defaultLocale - the default locale
    • setMetadata

      public void setMetadata(String metadata)
      Sets the metadata of this kaleo node.
      Specified by:
      setMetadata in interface KaleoNodeModel
      Parameters:
      metadata - the metadata of this kaleo node
    • setModifiedDate

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

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

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

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

      public void setTerminal(boolean terminal)
      Sets whether this kaleo node is terminal.
      Specified by:
      setTerminal in interface KaleoNodeModel
      Parameters:
      terminal - the terminal of this kaleo node
    • setType

      public void setType(String type)
      Sets the type of this kaleo node.
      Specified by:
      setType in interface KaleoNodeModel
      Parameters:
      type - the type of this kaleo node
    • setUserId

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

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

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

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

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

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

      protected KaleoNodeWrapper wrap(KaleoNode kaleoNode)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<KaleoNode>