public class KaleoDefinitionWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<KaleoDefinition> implements KaleoDefinition, com.liferay.portal.kernel.model.ModelWrapper<KaleoDefinition>
This class is a wrapper for KaleoDefinition
.
KaleoDefinition
,
Serialized FormKALEO_DEFINITION_ID_ACCESSOR
Constructor and Description |
---|
KaleoDefinitionWrapper(KaleoDefinition kaleoDefinition) |
Modifier and Type | Method and Description |
---|---|
boolean |
getActive()
Returns the active of this kaleo definition.
|
java.lang.String[] |
getAvailableLanguageIds() |
long |
getCompanyId()
Returns the company ID of this kaleo definition.
|
java.lang.String |
getContent()
Returns the content of this kaleo definition.
|
java.util.Date |
getCreateDate()
Returns the create date of this kaleo definition.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getDescription()
Returns the description of this kaleo definition.
|
long |
getGroupId()
Returns the group ID of this kaleo definition.
|
long |
getKaleoDefinitionId()
Returns the kaleo definition ID of this kaleo definition.
|
java.util.List<KaleoDefinitionVersion> |
getKaleoDefinitionVersions() |
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this kaleo definition.
|
long |
getMvccVersion()
Returns the mvcc version of this kaleo definition.
|
java.lang.String |
getName()
Returns the name of this kaleo definition.
|
long |
getPrimaryKey()
Returns the primary key of this kaleo definition.
|
java.lang.String |
getScope()
Returns the scope of this kaleo definition.
|
java.lang.String |
getTitle()
Returns the title of this kaleo definition.
|
java.lang.String |
getTitle(java.util.Locale locale)
Returns the localized title of this kaleo definition in the language.
|
java.lang.String |
getTitle(java.util.Locale locale,
boolean useDefault)
Returns the localized title of this kaleo definition in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getTitle(java.lang.String languageId)
Returns the localized title of this kaleo definition in the language.
|
java.lang.String |
getTitle(java.lang.String languageId,
boolean useDefault)
Returns the localized title of this kaleo definition in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getTitleCurrentLanguageId() |
java.lang.String |
getTitleCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getTitleMap()
Returns a map of the locales and localized titles of this kaleo definition.
|
long |
getUserId()
Returns the user ID of this kaleo definition.
|
java.lang.String |
getUserName()
Returns the user name of this kaleo definition.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this kaleo definition.
|
int |
getVersion()
Returns the version of this kaleo definition.
|
boolean |
isActive()
Returns
true if this kaleo definition is active. |
void |
persist() |
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setActive(boolean active)
Sets whether this kaleo definition is active.
|
void |
setCompanyId(long companyId)
Sets the company ID of this kaleo definition.
|
void |
setContent(java.lang.String content)
Sets the content of this kaleo definition.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this kaleo definition.
|
void |
setDescription(java.lang.String description)
Sets the description of this kaleo definition.
|
void |
setGroupId(long groupId)
Sets the group ID of this kaleo definition.
|
void |
setKaleoDefinitionId(long kaleoDefinitionId)
Sets the kaleo definition ID of this kaleo 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 kaleo definition.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this kaleo definition.
|
void |
setName(java.lang.String name)
Sets the name of this kaleo definition.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this kaleo definition.
|
void |
setScope(java.lang.String scope)
Sets the scope of this kaleo definition.
|
void |
setTitle(java.lang.String title)
Sets the title of this kaleo definition.
|
void |
setTitle(java.lang.String title,
java.util.Locale locale)
Sets the localized title of this kaleo definition in the language.
|
void |
setTitle(java.lang.String title,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized title of this kaleo definition in the language, and sets the default locale.
|
void |
setTitleCurrentLanguageId(java.lang.String languageId) |
void |
setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap)
Sets the localized titles of this kaleo definition from the map of locales and localized titles.
|
void |
setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Locale defaultLocale)
Sets the localized titles of this kaleo definition from the map of locales and localized titles, and sets the default locale.
|
void |
setUserId(long userId)
Sets the user ID of this kaleo definition.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this kaleo definition.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this kaleo definition.
|
void |
setVersion(int version)
Sets the version of this kaleo definition.
|
protected KaleoDefinitionWrapper |
wrap(KaleoDefinition kaleoDefinition) |
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, toXmlString
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, toXmlString
public KaleoDefinitionWrapper(KaleoDefinition kaleoDefinition)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<KaleoDefinition>
public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes
in interface com.liferay.portal.kernel.model.BaseModel<KaleoDefinition>
public boolean getActive()
getActive
in interface KaleoDefinitionModel
public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface com.liferay.portal.kernel.model.LocalizedModel
getAvailableLanguageIds
in interface KaleoDefinitionModel
public long getCompanyId()
getCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
getCompanyId
in interface KaleoDefinitionModel
public java.lang.String getContent()
getContent
in interface KaleoDefinitionModel
public java.util.Date getCreateDate()
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
getCreateDate
in interface KaleoDefinitionModel
public java.lang.String getDefaultLanguageId()
getDefaultLanguageId
in interface com.liferay.portal.kernel.model.LocalizedModel
getDefaultLanguageId
in interface KaleoDefinitionModel
public java.lang.String getDescription()
getDescription
in interface KaleoDefinitionModel
public long getGroupId()
getGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
getGroupId
in interface KaleoDefinitionModel
public long getKaleoDefinitionId()
getKaleoDefinitionId
in interface KaleoDefinitionModel
public java.util.List<KaleoDefinitionVersion> getKaleoDefinitionVersions() throws com.liferay.portal.kernel.exception.PortalException
getKaleoDefinitionVersions
in interface KaleoDefinition
com.liferay.portal.kernel.exception.PortalException
public java.util.Date getModifiedDate()
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
getModifiedDate
in interface KaleoDefinitionModel
public long getMvccVersion()
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
getMvccVersion
in interface KaleoDefinitionModel
public java.lang.String getName()
getName
in interface KaleoDefinitionModel
public long getPrimaryKey()
getPrimaryKey
in interface KaleoDefinitionModel
public java.lang.String getScope()
getScope
in interface KaleoDefinitionModel
public java.lang.String getTitle()
getTitle
in interface KaleoDefinitionModel
public java.lang.String getTitle(java.util.Locale locale)
getTitle
in interface KaleoDefinitionModel
locale
- the locale of the languagepublic java.lang.String getTitle(java.util.Locale locale, boolean useDefault)
getTitle
in interface KaleoDefinitionModel
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 getTitle(java.lang.String languageId)
getTitle
in interface KaleoDefinitionModel
languageId
- the ID of the languagepublic java.lang.String getTitle(java.lang.String languageId, boolean useDefault)
getTitle
in interface KaleoDefinitionModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested languagepublic java.lang.String getTitleCurrentLanguageId()
getTitleCurrentLanguageId
in interface KaleoDefinitionModel
public java.lang.String getTitleCurrentValue()
getTitleCurrentValue
in interface KaleoDefinitionModel
public java.util.Map<java.util.Locale,java.lang.String> getTitleMap()
getTitleMap
in interface KaleoDefinitionModel
public long getUserId()
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
getUserId
in interface KaleoDefinitionModel
public java.lang.String getUserName()
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
getUserName
in interface KaleoDefinitionModel
public java.lang.String getUserUuid()
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
getUserUuid
in interface KaleoDefinitionModel
public int getVersion()
getVersion
in interface KaleoDefinitionModel
public boolean isActive()
true
if this kaleo definition is active.isActive
in interface KaleoDefinitionModel
true
if this kaleo definition is active; false
otherwisepublic 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 KaleoDefinitionModel
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 KaleoDefinitionModel
com.liferay.portal.kernel.exception.LocaleException
public void setActive(boolean active)
setActive
in interface KaleoDefinitionModel
active
- the active of this kaleo definitionpublic 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 KaleoDefinitionModel
companyId
- the company ID of this kaleo definitionpublic void setContent(java.lang.String content)
setContent
in interface KaleoDefinitionModel
content
- the content of this kaleo definitionpublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
setCreateDate
in interface KaleoDefinitionModel
createDate
- the create date of this kaleo definitionpublic void setDescription(java.lang.String description)
setDescription
in interface KaleoDefinitionModel
description
- the description of this kaleo definitionpublic void setGroupId(long groupId)
setGroupId
in interface com.liferay.portal.kernel.model.GroupedModel
setGroupId
in interface KaleoDefinitionModel
groupId
- the group ID of this kaleo definitionpublic void setKaleoDefinitionId(long kaleoDefinitionId)
setKaleoDefinitionId
in interface KaleoDefinitionModel
kaleoDefinitionId
- the kaleo definition ID of this kaleo definitionpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
setModifiedDate
in interface KaleoDefinitionModel
modifiedDate
- the modified date of this kaleo definitionpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
setMvccVersion
in interface KaleoDefinitionModel
mvccVersion
- the mvcc version of this kaleo definitionpublic void setName(java.lang.String name)
setName
in interface KaleoDefinitionModel
name
- the name of this kaleo definitionpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface KaleoDefinitionModel
primaryKey
- the primary key of this kaleo definitionpublic void setScope(java.lang.String scope)
setScope
in interface KaleoDefinitionModel
scope
- the scope of this kaleo definitionpublic void setTitle(java.lang.String title)
setTitle
in interface KaleoDefinitionModel
title
- the title of this kaleo definitionpublic void setTitle(java.lang.String title, java.util.Locale locale)
setTitle
in interface KaleoDefinitionModel
title
- the localized title of this kaleo definitionlocale
- the locale of the languagepublic void setTitle(java.lang.String title, java.util.Locale locale, java.util.Locale defaultLocale)
setTitle
in interface KaleoDefinitionModel
title
- the localized title of this kaleo definitionlocale
- the locale of the languagedefaultLocale
- the default localepublic void setTitleCurrentLanguageId(java.lang.String languageId)
setTitleCurrentLanguageId
in interface KaleoDefinitionModel
public void setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap)
setTitleMap
in interface KaleoDefinitionModel
titleMap
- the locales and localized titles of this kaleo definitionpublic void setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Locale defaultLocale)
setTitleMap
in interface KaleoDefinitionModel
titleMap
- the locales and localized titles of this kaleo definitiondefaultLocale
- the default localepublic void setUserId(long userId)
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
setUserId
in interface KaleoDefinitionModel
userId
- the user ID of this kaleo definitionpublic void setUserName(java.lang.String userName)
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
setUserName
in interface KaleoDefinitionModel
userName
- the user name of this kaleo definitionpublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
setUserUuid
in interface KaleoDefinitionModel
userUuid
- the user uuid of this kaleo definitionpublic void setVersion(int version)
setVersion
in interface KaleoDefinitionModel
version
- the version of this kaleo definitionprotected KaleoDefinitionWrapper wrap(KaleoDefinition kaleoDefinition)
wrap
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<KaleoDefinition>