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[] |
getAttachmentsFileNames() |
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, toUnescapedModelfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModelpublic 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 DefinitionModelpublic java.lang.String getAttachmentsDir()
getAttachmentsDir in interface Definitionpublic java.lang.String[] getAttachmentsFileNames()
throws com.liferay.portal.kernel.exception.PortalException
getAttachmentsFileNames in interface Definitioncom.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface com.liferay.portal.kernel.model.LocalizedModelgetAvailableLanguageIds in interface DefinitionModelpublic long getCompanyId()
getCompanyId in interface com.liferay.portal.kernel.model.AuditedModelgetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelgetCompanyId in interface com.liferay.portal.kernel.model.StagedModelgetCompanyId in interface DefinitionModelpublic java.util.Date getCreateDate()
getCreateDate in interface com.liferay.portal.kernel.model.AuditedModelgetCreateDate in interface com.liferay.portal.kernel.model.StagedModelgetCreateDate in interface DefinitionModelpublic java.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface com.liferay.portal.kernel.model.LocalizedModelgetDefaultLanguageId in interface DefinitionModelpublic long getDefinitionId()
getDefinitionId in interface DefinitionModelpublic java.lang.String getDescription()
getDescription in interface DefinitionModelpublic java.lang.String getDescription(java.util.Locale locale)
getDescription in interface DefinitionModellocale - the locale of the languagepublic java.lang.String getDescription(java.util.Locale locale,
boolean useDefault)
getDescription in interface DefinitionModellocale - 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 DefinitionModellanguageId - the ID of the languagepublic java.lang.String getDescription(java.lang.String languageId,
boolean useDefault)
getDescription in interface DefinitionModellanguageId - 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 DefinitionModelpublic java.lang.String getDescriptionCurrentValue()
getDescriptionCurrentValue in interface DefinitionModelpublic java.util.Map<java.util.Locale,java.lang.String> getDescriptionMap()
getDescriptionMap in interface DefinitionModelpublic long getGroupId()
getGroupId in interface com.liferay.portal.kernel.model.GroupedModelgetGroupId in interface DefinitionModelpublic java.util.Date getLastPublishDate()
getLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModelgetLastPublishDate in interface DefinitionModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelgetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelgetModifiedDate in interface DefinitionModelpublic java.lang.String getName()
getName in interface DefinitionModelpublic java.lang.String getName(java.util.Locale locale)
getName in interface DefinitionModellocale - the locale of the languagepublic java.lang.String getName(java.util.Locale locale,
boolean useDefault)
getName in interface DefinitionModellocale - 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 DefinitionModellanguageId - the ID of the languagepublic java.lang.String getName(java.lang.String languageId,
boolean useDefault)
getName in interface DefinitionModellanguageId - 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 DefinitionModelpublic java.lang.String getNameCurrentValue()
getNameCurrentValue in interface DefinitionModelpublic java.util.Map<java.util.Locale,java.lang.String> getNameMap()
getNameMap in interface DefinitionModelpublic long getPrimaryKey()
getPrimaryKey in interface DefinitionModelpublic java.lang.String getReportName()
getReportName in interface DefinitionModelpublic java.lang.String getReportParameters()
getReportParameters in interface DefinitionModelpublic long getSourceId()
getSourceId in interface DefinitionModelpublic long getUserId()
getUserId in interface com.liferay.portal.kernel.model.AuditedModelgetUserId in interface DefinitionModelpublic java.lang.String getUserName()
getUserName in interface com.liferay.portal.kernel.model.AuditedModelgetUserName in interface DefinitionModelpublic java.lang.String getUserUuid()
getUserUuid in interface com.liferay.portal.kernel.model.AuditedModelgetUserUuid in interface DefinitionModelpublic java.lang.String getUuid()
getUuid in interface com.liferay.portal.kernel.model.StagedModelgetUuid in interface DefinitionModelpublic void persist()
persist in interface com.liferay.portal.kernel.model.PersistedModelpublic void prepareLocalizedFieldsForImport()
throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModelprepareLocalizedFieldsForImport in interface DefinitionModelcom.liferay.portal.kernel.exception.LocaleExceptionpublic void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport in interface com.liferay.portal.kernel.model.LocalizedModelprepareLocalizedFieldsForImport in interface DefinitionModelcom.liferay.portal.kernel.exception.LocaleExceptionpublic void setCompanyId(long companyId)
setCompanyId in interface com.liferay.portal.kernel.model.AuditedModelsetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelsetCompanyId in interface com.liferay.portal.kernel.model.StagedModelsetCompanyId in interface DefinitionModelcompanyId - the company ID of this definitionpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface com.liferay.portal.kernel.model.AuditedModelsetCreateDate in interface com.liferay.portal.kernel.model.StagedModelsetCreateDate in interface DefinitionModelcreateDate - the create date of this definitionpublic void setDefinitionId(long definitionId)
setDefinitionId in interface DefinitionModeldefinitionId - the definition ID of this definitionpublic void setDescription(java.lang.String description)
setDescription in interface DefinitionModeldescription - the description of this definitionpublic void setDescription(java.lang.String description,
java.util.Locale locale)
setDescription in interface DefinitionModeldescription - 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 DefinitionModeldescription - the localized description of this definitionlocale - the locale of the languagedefaultLocale - the default localepublic void setDescriptionCurrentLanguageId(java.lang.String languageId)
setDescriptionCurrentLanguageId in interface DefinitionModelpublic void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
setDescriptionMap in interface DefinitionModeldescriptionMap - 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 DefinitionModeldescriptionMap - the locales and localized descriptions of this definitiondefaultLocale - the default localepublic void setGroupId(long groupId)
setGroupId in interface com.liferay.portal.kernel.model.GroupedModelsetGroupId in interface DefinitionModelgroupId - the group ID of this definitionpublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate in interface com.liferay.portal.kernel.model.StagedGroupedModelsetLastPublishDate in interface DefinitionModellastPublishDate - the last publish date of this definitionpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelsetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelsetModifiedDate in interface DefinitionModelmodifiedDate - the modified date of this definitionpublic void setName(java.lang.String name)
setName in interface DefinitionModelname - the name of this definitionpublic void setName(java.lang.String name,
java.util.Locale locale)
setName in interface DefinitionModelname - 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 DefinitionModelname - the localized name of this definitionlocale - the locale of the languagedefaultLocale - the default localepublic void setNameCurrentLanguageId(java.lang.String languageId)
setNameCurrentLanguageId in interface DefinitionModelpublic void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
setNameMap in interface DefinitionModelnameMap - 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 DefinitionModelnameMap - the locales and localized names of this definitiondefaultLocale - the default localepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface DefinitionModelprimaryKey - the primary key of this definitionpublic void setReportName(java.lang.String reportName)
setReportName in interface DefinitionModelreportName - the report name of this definitionpublic void setReportParameters(java.lang.String reportParameters)
setReportParameters in interface DefinitionModelreportParameters - the report parameters of this definitionpublic void setSourceId(long sourceId)
setSourceId in interface DefinitionModelsourceId - the source ID of this definitionpublic void setUserId(long userId)
setUserId in interface com.liferay.portal.kernel.model.AuditedModelsetUserId in interface DefinitionModeluserId - the user ID of this definitionpublic void setUserName(java.lang.String userName)
setUserName in interface com.liferay.portal.kernel.model.AuditedModelsetUserName in interface DefinitionModeluserName - the user name of this definitionpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface com.liferay.portal.kernel.model.AuditedModelsetUserUuid in interface DefinitionModeluserUuid - the user uuid of this definitionpublic void setUuid(java.lang.String uuid)
setUuid in interface com.liferay.portal.kernel.model.StagedModelsetUuid in interface DefinitionModeluuid - the uuid of this definitionpublic java.lang.String toXmlString()
toXmlString in interface DefinitionModelpublic com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType in interface com.liferay.portal.kernel.model.StagedModelprotected DefinitionWrapper wrap(Definition definition)
wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Definition>