Class ObjectValidationRuleWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ObjectValidationRule>
com.liferay.object.model.ObjectValidationRuleWrapper
All Implemented Interfaces:
ObjectValidationRule, ObjectValidationRuleModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<ObjectValidationRule>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.ExternalReferenceCodeModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<ObjectValidationRule>, 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, Serializable, Cloneable, Comparable<ObjectValidationRule>

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

This class is a wrapper for ObjectValidationRule.

See Also:
Generated:
  • Constructor Details

    • ObjectValidationRuleWrapper

      public ObjectValidationRuleWrapper(ObjectValidationRule objectValidationRule)
  • Method Details

    • getModelAttributes

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

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

      public ObjectValidationRule cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<ObjectValidationRule>
      Specified by:
      cloneWithOriginalValues in interface ObjectValidationRuleModel
    • compareOutputType

      public boolean compareOutputType(String outputType)
      Specified by:
      compareOutputType in interface ObjectValidationRule
    • getActive

      public boolean getActive()
      Returns the active of this object validation rule.
      Specified by:
      getActive in interface ObjectValidationRuleModel
      Returns:
      the active of this object validation rule
    • getAvailableLanguageIds

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

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

      public Date getCreateDate()
      Returns the create date of this object validation rule.
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      getCreateDate in interface ObjectValidationRuleModel
      Specified by:
      getCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the create date of this object validation rule
    • getDefaultLanguageId

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

      public String getEngine()
      Returns the engine of this object validation rule.
      Specified by:
      getEngine in interface ObjectValidationRuleModel
      Returns:
      the engine of this object validation rule
    • getErrorLabel

      public String getErrorLabel()
      Returns the error label of this object validation rule.
      Specified by:
      getErrorLabel in interface ObjectValidationRuleModel
      Returns:
      the error label of this object validation rule
    • getErrorLabel

      public String getErrorLabel(Locale locale)
      Returns the localized error label of this object validation rule in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getErrorLabel in interface ObjectValidationRuleModel
      Parameters:
      locale - the locale of the language
      Returns:
      the localized error label of this object validation rule
    • getErrorLabel

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

      public String getErrorLabel(String languageId)
      Returns the localized error label of this object validation rule in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getErrorLabel in interface ObjectValidationRuleModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized error label of this object validation rule
    • getErrorLabel

      public String getErrorLabel(String languageId, boolean useDefault)
      Returns the localized error label of this object validation rule in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getErrorLabel in interface ObjectValidationRuleModel
      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 error label of this object validation rule
    • getErrorLabelCurrentLanguageId

      public String getErrorLabelCurrentLanguageId()
      Specified by:
      getErrorLabelCurrentLanguageId in interface ObjectValidationRuleModel
    • getErrorLabelCurrentValue

      public String getErrorLabelCurrentValue()
      Specified by:
      getErrorLabelCurrentValue in interface ObjectValidationRuleModel
    • getErrorLabelMap

      public Map<Locale,String> getErrorLabelMap()
      Returns a map of the locales and localized error labels of this object validation rule.
      Specified by:
      getErrorLabelMap in interface ObjectValidationRuleModel
      Returns:
      the locales and localized error labels of this object validation rule
    • getExternalReferenceCode

      public String getExternalReferenceCode()
      Returns the external reference code of this object validation rule.
      Specified by:
      getExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Specified by:
      getExternalReferenceCode in interface ObjectValidationRuleModel
      Returns:
      the external reference code of this object validation rule
    • getModifiedDate

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

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

      public String getName()
      Returns the name of this object validation rule.
      Specified by:
      getName in interface ObjectValidationRuleModel
      Returns:
      the name of this object validation rule
    • getName

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

      public String getName(Locale locale, boolean useDefault)
      Returns the localized name of this object validation rule in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface ObjectValidationRuleModel
      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 object validation rule. 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 object validation rule in the language. Uses the default language if no localization exists for the requested language.
      Specified by:
      getName in interface ObjectValidationRuleModel
      Parameters:
      languageId - the ID of the language
      Returns:
      the localized name of this object validation rule
    • getName

      public String getName(String languageId, boolean useDefault)
      Returns the localized name of this object validation rule in the language, optionally using the default language if no localization exists for the requested language.
      Specified by:
      getName in interface ObjectValidationRuleModel
      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 object validation rule
    • getNameCurrentLanguageId

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

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

      public Map<Locale,String> getNameMap()
      Returns a map of the locales and localized names of this object validation rule.
      Specified by:
      getNameMap in interface ObjectValidationRuleModel
      Returns:
      the locales and localized names of this object validation rule
    • getObjectDefinitionId

      public long getObjectDefinitionId()
      Returns the object definition ID of this object validation rule.
      Specified by:
      getObjectDefinitionId in interface ObjectValidationRuleModel
      Returns:
      the object definition ID of this object validation rule
    • getObjectValidationRuleId

      public long getObjectValidationRuleId()
      Returns the object validation rule ID of this object validation rule.
      Specified by:
      getObjectValidationRuleId in interface ObjectValidationRuleModel
      Returns:
      the object validation rule ID of this object validation rule
    • getObjectValidationRuleSettings

      public List<ObjectValidationRuleSetting> getObjectValidationRuleSettings()
      Specified by:
      getObjectValidationRuleSettings in interface ObjectValidationRule
    • getOutputType

      public String getOutputType()
      Returns the output type of this object validation rule.
      Specified by:
      getOutputType in interface ObjectValidationRuleModel
      Returns:
      the output type of this object validation rule
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this object validation rule.
      Specified by:
      getPrimaryKey in interface ObjectValidationRuleModel
      Returns:
      the primary key of this object validation rule
    • getScript

      public String getScript()
      Returns the script of this object validation rule.
      Specified by:
      getScript in interface ObjectValidationRuleModel
      Returns:
      the script of this object validation rule
    • getSystem

      public boolean getSystem()
      Returns the system of this object validation rule.
      Specified by:
      getSystem in interface ObjectValidationRuleModel
      Returns:
      the system of this object validation rule
    • getUserId

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

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

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

      public String getUuid()
      Returns the uuid of this object validation rule.
      Specified by:
      getUuid in interface ObjectValidationRuleModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this object validation rule
    • isActive

      public boolean isActive()
      Returns true if this object validation rule is active.
      Specified by:
      isActive in interface ObjectValidationRuleModel
      Returns:
      true if this object validation rule is active; false otherwise
    • isSystem

      public boolean isSystem()
      Returns true if this object validation rule is system.
      Specified by:
      isSystem in interface ObjectValidationRuleModel
      Returns:
      true if this object validation rule is system; 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 com.liferay.portal.kernel.model.LocalizedModel
      Specified by:
      prepareLocalizedFieldsForImport in interface ObjectValidationRuleModel
      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 com.liferay.portal.kernel.model.LocalizedModel
      Specified by:
      prepareLocalizedFieldsForImport in interface ObjectValidationRuleModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setActive

      public void setActive(boolean active)
      Sets whether this object validation rule is active.
      Specified by:
      setActive in interface ObjectValidationRuleModel
      Parameters:
      active - the active of this object validation rule
    • setCompanyId

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

      public void setCreateDate(Date createDate)
      Sets the create date of this object validation rule.
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.AuditedModel
      Specified by:
      setCreateDate in interface ObjectValidationRuleModel
      Specified by:
      setCreateDate in interface com.liferay.portal.kernel.model.StagedModel
      Parameters:
      createDate - the create date of this object validation rule
    • setEngine

      public void setEngine(String engine)
      Sets the engine of this object validation rule.
      Specified by:
      setEngine in interface ObjectValidationRuleModel
      Parameters:
      engine - the engine of this object validation rule
    • setErrorLabel

      public void setErrorLabel(String errorLabel)
      Sets the error label of this object validation rule.
      Specified by:
      setErrorLabel in interface ObjectValidationRuleModel
      Parameters:
      errorLabel - the error label of this object validation rule
    • setErrorLabel

      public void setErrorLabel(String errorLabel, Locale locale)
      Sets the localized error label of this object validation rule in the language.
      Specified by:
      setErrorLabel in interface ObjectValidationRuleModel
      Parameters:
      errorLabel - the localized error label of this object validation rule
      locale - the locale of the language
    • setErrorLabel

      public void setErrorLabel(String errorLabel, Locale locale, Locale defaultLocale)
      Sets the localized error label of this object validation rule in the language, and sets the default locale.
      Specified by:
      setErrorLabel in interface ObjectValidationRuleModel
      Parameters:
      errorLabel - the localized error label of this object validation rule
      locale - the locale of the language
      defaultLocale - the default locale
    • setErrorLabelCurrentLanguageId

      public void setErrorLabelCurrentLanguageId(String languageId)
      Specified by:
      setErrorLabelCurrentLanguageId in interface ObjectValidationRuleModel
    • setErrorLabelMap

      public void setErrorLabelMap(Map<Locale,String> errorLabelMap)
      Sets the localized error labels of this object validation rule from the map of locales and localized error labels.
      Specified by:
      setErrorLabelMap in interface ObjectValidationRuleModel
      Parameters:
      errorLabelMap - the locales and localized error labels of this object validation rule
    • setErrorLabelMap

      public void setErrorLabelMap(Map<Locale,String> errorLabelMap, Locale defaultLocale)
      Sets the localized error labels of this object validation rule from the map of locales and localized error labels, and sets the default locale.
      Specified by:
      setErrorLabelMap in interface ObjectValidationRuleModel
      Parameters:
      errorLabelMap - the locales and localized error labels of this object validation rule
      defaultLocale - the default locale
    • setExternalReferenceCode

      public void setExternalReferenceCode(String externalReferenceCode)
      Sets the external reference code of this object validation rule.
      Specified by:
      setExternalReferenceCode in interface com.liferay.portal.kernel.model.ExternalReferenceCodeModel
      Specified by:
      setExternalReferenceCode in interface ObjectValidationRuleModel
      Parameters:
      externalReferenceCode - the external reference code of this object validation rule
    • setModifiedDate

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

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

      public void setName(String name)
      Sets the name of this object validation rule.
      Specified by:
      setName in interface ObjectValidationRuleModel
      Parameters:
      name - the name of this object validation rule
    • setName

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

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

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

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

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

      public void setObjectDefinitionId(long objectDefinitionId)
      Sets the object definition ID of this object validation rule.
      Specified by:
      setObjectDefinitionId in interface ObjectValidationRuleModel
      Parameters:
      objectDefinitionId - the object definition ID of this object validation rule
    • setObjectValidationRuleId

      public void setObjectValidationRuleId(long objectValidationRuleId)
      Sets the object validation rule ID of this object validation rule.
      Specified by:
      setObjectValidationRuleId in interface ObjectValidationRuleModel
      Parameters:
      objectValidationRuleId - the object validation rule ID of this object validation rule
    • setObjectValidationRuleSettings

      public void setObjectValidationRuleSettings(List<ObjectValidationRuleSetting> objectValidationRuleSettings)
      Specified by:
      setObjectValidationRuleSettings in interface ObjectValidationRule
    • setOutputType

      public void setOutputType(String outputType)
      Sets the output type of this object validation rule.
      Specified by:
      setOutputType in interface ObjectValidationRuleModel
      Parameters:
      outputType - the output type of this object validation rule
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this object validation rule.
      Specified by:
      setPrimaryKey in interface ObjectValidationRuleModel
      Parameters:
      primaryKey - the primary key of this object validation rule
    • setScript

      public void setScript(String script)
      Sets the script of this object validation rule.
      Specified by:
      setScript in interface ObjectValidationRuleModel
      Parameters:
      script - the script of this object validation rule
    • setSystem

      public void setSystem(boolean system)
      Sets whether this object validation rule is system.
      Specified by:
      setSystem in interface ObjectValidationRuleModel
      Parameters:
      system - the system of this object validation rule
    • setUserId

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

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

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

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

      public String toXmlString()
      Specified by:
      toXmlString in interface ObjectValidationRuleModel
    • getStagedModelType

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

      protected ObjectValidationRuleWrapper wrap(ObjectValidationRule objectValidationRule)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ObjectValidationRule>