Class ObjectLayoutWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ObjectLayout>
com.liferay.object.model.ObjectLayoutWrapper
All Implemented Interfaces:
ObjectLayout, ObjectLayoutModel, com.liferay.portal.kernel.model.AuditedModel, com.liferay.portal.kernel.model.BaseModel<ObjectLayout>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.LocalizedModel, com.liferay.portal.kernel.model.ModelWrapper<ObjectLayout>, 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<ObjectLayout>

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

This class is a wrapper for ObjectLayout.

See Also:
Generated:
  • Constructor Details

    • ObjectLayoutWrapper

      public ObjectLayoutWrapper(ObjectLayout objectLayout)
  • Method Details

    • getModelAttributes

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

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

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

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

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

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

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

      public boolean getDefaultObjectLayout()
      Returns the default object layout of this object layout.
      Specified by:
      getDefaultObjectLayout in interface ObjectLayoutModel
      Returns:
      the default object layout of this object layout
    • getModifiedDate

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

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

      public String getName()
      Returns the name of this object layout.
      Specified by:
      getName in interface ObjectLayoutModel
      Returns:
      the name of this object layout
    • getName

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

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

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

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

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

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

      public long getObjectDefinitionId()
      Returns the object definition ID of this object layout.
      Specified by:
      getObjectDefinitionId in interface ObjectLayoutModel
      Returns:
      the object definition ID of this object layout
    • getObjectLayoutId

      public long getObjectLayoutId()
      Returns the object layout ID of this object layout.
      Specified by:
      getObjectLayoutId in interface ObjectLayoutModel
      Returns:
      the object layout ID of this object layout
    • getObjectLayoutTabs

      public List<ObjectLayoutTab> getObjectLayoutTabs()
      Specified by:
      getObjectLayoutTabs in interface ObjectLayout
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this object layout.
      Specified by:
      getPrimaryKey in interface ObjectLayoutModel
      Returns:
      the primary key of this object layout
    • getUserId

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

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

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

      public String getUuid()
      Returns the uuid of this object layout.
      Specified by:
      getUuid in interface ObjectLayoutModel
      Specified by:
      getUuid in interface com.liferay.portal.kernel.model.StagedModel
      Returns:
      the uuid of this object layout
    • isDefaultObjectLayout

      public boolean isDefaultObjectLayout()
      Returns true if this object layout is default object layout.
      Specified by:
      isDefaultObjectLayout in interface ObjectLayoutModel
      Returns:
      true if this object layout is default object layout; 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 ObjectLayoutModel
      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 ObjectLayoutModel
      Throws:
      com.liferay.portal.kernel.exception.LocaleException
    • setCompanyId

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

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

      public void setDefaultObjectLayout(boolean defaultObjectLayout)
      Sets whether this object layout is default object layout.
      Specified by:
      setDefaultObjectLayout in interface ObjectLayoutModel
      Parameters:
      defaultObjectLayout - the default object layout of this object layout
    • setModifiedDate

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

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

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

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

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

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

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

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

      public void setObjectDefinitionId(long objectDefinitionId)
      Sets the object definition ID of this object layout.
      Specified by:
      setObjectDefinitionId in interface ObjectLayoutModel
      Parameters:
      objectDefinitionId - the object definition ID of this object layout
    • setObjectLayoutId

      public void setObjectLayoutId(long objectLayoutId)
      Sets the object layout ID of this object layout.
      Specified by:
      setObjectLayoutId in interface ObjectLayoutModel
      Parameters:
      objectLayoutId - the object layout ID of this object layout
    • setObjectLayoutTabs

      public void setObjectLayoutTabs(List<ObjectLayoutTab> objectLayoutTabs)
      Specified by:
      setObjectLayoutTabs in interface ObjectLayout
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this object layout.
      Specified by:
      setPrimaryKey in interface ObjectLayoutModel
      Parameters:
      primaryKey - the primary key of this object layout
    • setUserId

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

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

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

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

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

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

      protected ObjectLayoutWrapper wrap(ObjectLayout objectLayout)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<ObjectLayout>