public class DefinitionWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Definition> implements Definition, com.liferay.portal.kernel.model.ModelWrapper<Definition>
This class is a wrapper for Definition
.
Definition
,
Serialized FormDEFINITION_ID_ACCESSOR
Constructor and Description |
---|
DefinitionWrapper(Definition definition) |
Modifier and Type | Method and Description |
---|---|
Definition |
cloneWithOriginalValues() |
java.lang.String |
getAttachmentsDir() |
java.lang.String[] |
getAttachmentsFiles() |
java.lang.String[] |
getAvailableLanguageIds() |
long |
getCompanyId()
Returns the company ID of this definition.
|
java.util.Date |
getCreateDate()
Returns the create date of this definition.
|
java.lang.String |
getDefaultLanguageId() |
long |
getDefinitionId()
Returns the definition ID of this definition.
|
java.lang.String |
getDescription()
Returns the description of this definition.
|
java.lang.String |
getDescription(java.util.Locale locale)
Returns the localized description of this definition in the language.
|
java.lang.String |
getDescription(java.util.Locale locale,
boolean useDefault)
Returns the localized description of this definition in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescription(java.lang.String languageId)
Returns the localized description of this definition in the language.
|
java.lang.String |
getDescription(java.lang.String languageId,
boolean useDefault)
Returns the localized description of this definition in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescriptionCurrentLanguageId() |
java.lang.String |
getDescriptionCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this definition.
|
long |
getGroupId()
Returns the group ID of this definition.
|
java.util.Date |
getLastPublishDate()
Returns the last publish date of this definition.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this definition.
|
java.lang.String |
getName()
Returns the name of this definition.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the localized name of this definition in the language.
|
java.lang.String |
getName(java.util.Locale locale,
boolean useDefault)
Returns the localized name of this definition in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getName(java.lang.String languageId)
Returns the localized name of this definition in the language.
|
java.lang.String |
getName(java.lang.String languageId,
boolean useDefault)
Returns the localized name of this definition in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getNameCurrentLanguageId() |
java.lang.String |
getNameCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getNameMap()
Returns a map of the locales and localized names of this definition.
|
long |
getPrimaryKey()
Returns the primary key of this definition.
|
java.lang.String |
getReportName()
Returns the report name of this definition.
|
java.lang.String |
getReportParameters()
Returns the report parameters of this definition.
|
long |
getSourceId()
Returns the source ID of this definition.
|
com.liferay.exportimport.kernel.lar.StagedModelType |
getStagedModelType() |
long |
getUserId()
Returns the user ID of this definition.
|
java.lang.String |
getUserName()
Returns the user name of this definition.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this definition.
|
java.lang.String |
getUuid()
Returns the uuid of this definition.
|
void |
persist() |
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setCompanyId(long companyId)
Sets the company ID of this definition.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this definition.
|
void |
setDefinitionId(long definitionId)
Sets the definition ID of this definition.
|
void |
setDescription(java.lang.String description)
Sets the description of this definition.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale)
Sets the localized description of this definition in the language.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized description of this definition in the language, and sets the default locale.
|
void |
setDescriptionCurrentLanguageId(java.lang.String languageId) |
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
Sets the localized descriptions of this definition from the map of locales and localized descriptions.
|
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Locale defaultLocale)
Sets the localized descriptions of this definition from the map of locales and localized descriptions, and sets the default locale.
|
void |
setGroupId(long groupId)
Sets the group ID of this definition.
|
void |
setLastPublishDate(java.util.Date lastPublishDate)
Sets the last publish date of this definition.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this definition.
|
void |
setName(java.lang.String name)
Sets the name of this definition.
|
void |
setName(java.lang.String name,
java.util.Locale locale)
Sets the localized name of this definition in the language.
|
void |
setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized name of this definition in the language, and sets the default locale.
|
void |
setNameCurrentLanguageId(java.lang.String languageId) |
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
Sets the localized names of this definition from the map of locales and localized names.
|
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
Sets the localized names of this definition from the map of locales and localized names, and sets the default locale.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this definition.
|
void |
setReportName(java.lang.String reportName)
Sets the report name of this definition.
|
void |
setReportParameters(java.lang.String reportParameters)
Sets the report parameters of this definition.
|
void |
setSourceId(long sourceId)
Sets the source ID of this definition.
|
void |
setUserId(long userId)
Sets the user ID of this definition.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this definition.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this definition.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this definition.
|
java.lang.String |
toXmlString() |
protected DefinitionWrapper |
wrap(Definition definition) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
public DefinitionWrapper(Definition definition)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<Definition>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<Definition>
public Definition cloneWithOriginalValues()
cloneWithOriginalValues
in interface com.liferay.portal.kernel.model.BaseModel<Definition>
cloneWithOriginalValues
in interface DefinitionModel
public java.lang.String getAttachmentsDir()
getAttachmentsDir
in interface Definition
public java.lang.String[] getAttachmentsFiles() throws com.liferay.portal.kernel.exception.PortalException
getAttachmentsFiles
in interface Definition
com.liferay.portal.kernel.exception.PortalException
public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface com.liferay.portal.kernel.model.LocalizedModel
getAvailableLanguageIds
in interface DefinitionModel
public long getCompanyId()
getCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
getCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
getCompanyId
in interface DefinitionModel
public java.util.Date getCreateDate()
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
getCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
getCreateDate
in interface DefinitionModel
public java.lang.String getDefaultLanguageId()
getDefaultLanguageId
in interface com.liferay.portal.kernel.model.LocalizedModel
getDefaultLanguageId
in interface DefinitionModel
public long getDefinitionId()
getDefinitionId
in interface DefinitionModel
public java.lang.String getDescription()
getDescription
in interface DefinitionModel
public java.lang.String getDescription(java.util.Locale locale)
getDescription
in interface DefinitionModel
locale
- the locale of the languagepublic java.lang.String getDescription(java.util.Locale locale, boolean useDefault)
getDescription
in interface DefinitionModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested languageuseDefault
is false
and no localization exists for the requested language, an empty string will be returned.public java.lang.String getDescription(java.lang.String languageId)
getDescription
in interface DefinitionModel
languageId
- the ID of the languagepublic java.lang.String getDescription(java.lang.String languageId, boolean useDefault)
getDescription
in interface DefinitionModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic java.lang.String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId
in interface DefinitionModel
public java.lang.String getDescriptionCurrentValue()
getDescriptionCurrentValue
in interface DefinitionModel
public java.util.Map<java.util.Locale,java.lang.String> getDescriptionMap()
getDescriptionMap
in interface DefinitionModel
public long getGroupId()
getGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
getGroupId
in interface DefinitionModel
public java.util.Date getLastPublishDate()
getLastPublishDate
in interface com.liferay.portal.kernel.model.StagedGroupedModel
getLastPublishDate
in interface DefinitionModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
getModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
getModifiedDate
in interface DefinitionModel
public java.lang.String getName()
getName
in interface DefinitionModel
public java.lang.String getName(java.util.Locale locale)
getName
in interface DefinitionModel
locale
- the locale of the languagepublic java.lang.String getName(java.util.Locale locale, boolean useDefault)
getName
in interface DefinitionModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested languageuseDefault
is false
and no localization exists for the requested language, an empty string will be returned.public java.lang.String getName(java.lang.String languageId)
getName
in interface DefinitionModel
languageId
- the ID of the languagepublic java.lang.String getName(java.lang.String languageId, boolean useDefault)
getName
in interface DefinitionModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic java.lang.String getNameCurrentLanguageId()
getNameCurrentLanguageId
in interface DefinitionModel
public java.lang.String getNameCurrentValue()
getNameCurrentValue
in interface DefinitionModel
public java.util.Map<java.util.Locale,java.lang.String> getNameMap()
getNameMap
in interface DefinitionModel
public long getPrimaryKey()
getPrimaryKey
in interface DefinitionModel
public java.lang.String getReportName()
getReportName
in interface DefinitionModel
public java.lang.String getReportParameters()
getReportParameters
in interface DefinitionModel
public long getSourceId()
getSourceId
in interface DefinitionModel
public long getUserId()
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
getUserId
in interface DefinitionModel
public java.lang.String getUserName()
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
getUserName
in interface DefinitionModel
public java.lang.String getUserUuid()
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
getUserUuid
in interface DefinitionModel
public java.lang.String getUuid()
getUuid
in interface com.liferay.portal.kernel.model.StagedModel
getUuid
in interface DefinitionModel
public void persist()
persist
in interface com.liferay.portal.kernel.model.PersistedModel
public void prepareLocalizedFieldsForImport() throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
prepareLocalizedFieldsForImport
in interface DefinitionModel
com.liferay.portal.kernel.exception.LocaleException
public void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
prepareLocalizedFieldsForImport
in interface DefinitionModel
com.liferay.portal.kernel.exception.LocaleException
public void setCompanyId(long companyId)
setCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
setCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
setCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
setCompanyId
in interface DefinitionModel
companyId
- the company ID of this definitionpublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
setCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
setCreateDate
in interface DefinitionModel
createDate
- the create date of this definitionpublic void setDefinitionId(long definitionId)
setDefinitionId
in interface DefinitionModel
definitionId
- the definition ID of this definitionpublic void setDescription(java.lang.String description)
setDescription
in interface DefinitionModel
description
- the description of this definitionpublic void setDescription(java.lang.String description, java.util.Locale locale)
setDescription
in interface DefinitionModel
description
- the localized description of this definitionlocale
- the locale of the languagepublic void setDescription(java.lang.String description, java.util.Locale locale, java.util.Locale defaultLocale)
setDescription
in interface DefinitionModel
description
- the localized description of this definitionlocale
- the locale of the languagedefaultLocale
- the default localepublic void setDescriptionCurrentLanguageId(java.lang.String languageId)
setDescriptionCurrentLanguageId
in interface DefinitionModel
public void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
setDescriptionMap
in interface DefinitionModel
descriptionMap
- the locales and localized descriptions of this definitionpublic void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.util.Locale defaultLocale)
setDescriptionMap
in interface DefinitionModel
descriptionMap
- the locales and localized descriptions of this definitiondefaultLocale
- the default localepublic void setGroupId(long groupId)
setGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
setGroupId
in interface DefinitionModel
groupId
- the group ID of this definitionpublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate
in interface com.liferay.portal.kernel.model.StagedGroupedModel
setLastPublishDate
in interface DefinitionModel
lastPublishDate
- the last publish date of this definitionpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
setModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
setModifiedDate
in interface DefinitionModel
modifiedDate
- the modified date of this definitionpublic void setName(java.lang.String name)
setName
in interface DefinitionModel
name
- the name of this definitionpublic void setName(java.lang.String name, java.util.Locale locale)
setName
in interface DefinitionModel
name
- the localized name of this definitionlocale
- the locale of the languagepublic void setName(java.lang.String name, java.util.Locale locale, java.util.Locale defaultLocale)
setName
in interface DefinitionModel
name
- the localized name of this definitionlocale
- the locale of the languagedefaultLocale
- the default localepublic void setNameCurrentLanguageId(java.lang.String languageId)
setNameCurrentLanguageId
in interface DefinitionModel
public void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
setNameMap
in interface DefinitionModel
nameMap
- the locales and localized names of this definitionpublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Locale defaultLocale)
setNameMap
in interface DefinitionModel
nameMap
- the locales and localized names of this definitiondefaultLocale
- the default localepublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface DefinitionModel
primaryKey
- the primary key of this definitionpublic void setReportName(java.lang.String reportName)
setReportName
in interface DefinitionModel
reportName
- the report name of this definitionpublic void setReportParameters(java.lang.String reportParameters)
setReportParameters
in interface DefinitionModel
reportParameters
- the report parameters of this definitionpublic void setSourceId(long sourceId)
setSourceId
in interface DefinitionModel
sourceId
- the source ID of this definitionpublic void setUserId(long userId)
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
setUserId
in interface DefinitionModel
userId
- the user ID of this definitionpublic void setUserName(java.lang.String userName)
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
setUserName
in interface DefinitionModel
userName
- the user name of this definitionpublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
setUserUuid
in interface DefinitionModel
userUuid
- the user uuid of this definitionpublic void setUuid(java.lang.String uuid)
setUuid
in interface com.liferay.portal.kernel.model.StagedModel
setUuid
in interface DefinitionModel
uuid
- the uuid of this definitionpublic java.lang.String toXmlString()
toXmlString
in interface DefinitionModel
public com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType
in interface com.liferay.portal.kernel.model.StagedModel
protected DefinitionWrapper wrap(Definition definition)
wrap
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Definition>