public class KaleoDefinitionWrapper extends BaseModelWrapper<KaleoDefinition> implements KaleoDefinition, ModelWrapper<KaleoDefinition>
This class is a wrapper for KaleoDefinition.
KaleoDefinition,
Serialized FormmodelKALEO_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()
Updates this model instance in the database or adds it if it does not yet
exist.
|
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, toXmlStringfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNamegetWrappedModelpublic KaleoDefinitionWrapper(KaleoDefinition kaleoDefinition)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<KaleoDefinition>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<KaleoDefinition>public boolean getActive()
getActive in interface KaleoDefinitionModelpublic java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface LocalizedModelgetAvailableLanguageIds in interface KaleoDefinitionModelpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface ShardedModelgetCompanyId in interface KaleoDefinitionModelpublic java.lang.String getContent()
getContent in interface KaleoDefinitionModelpublic java.util.Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface KaleoDefinitionModelpublic java.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface LocalizedModelgetDefaultLanguageId in interface KaleoDefinitionModelpublic java.lang.String getDescription()
getDescription in interface KaleoDefinitionModelpublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface KaleoDefinitionModelpublic long getKaleoDefinitionId()
getKaleoDefinitionId in interface KaleoDefinitionModelpublic java.util.List<KaleoDefinitionVersion> getKaleoDefinitionVersions() throws PortalException
getKaleoDefinitionVersions in interface KaleoDefinitionPortalExceptionpublic java.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface KaleoDefinitionModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface KaleoDefinitionModelpublic java.lang.String getName()
getName in interface KaleoDefinitionModelpublic long getPrimaryKey()
getPrimaryKey in interface KaleoDefinitionModelpublic java.lang.String getScope()
getScope in interface KaleoDefinitionModelpublic java.lang.String getTitle()
getTitle in interface KaleoDefinitionModelpublic java.lang.String getTitle(java.util.Locale locale)
getTitle in interface KaleoDefinitionModellocale - the locale of the languagepublic java.lang.String getTitle(java.util.Locale locale,
boolean useDefault)
getTitle in interface KaleoDefinitionModellocale - 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 KaleoDefinitionModellanguageId - the ID of the languagepublic java.lang.String getTitle(java.lang.String languageId,
boolean useDefault)
getTitle in interface KaleoDefinitionModellanguageId - 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 KaleoDefinitionModelpublic java.lang.String getTitleCurrentValue()
getTitleCurrentValue in interface KaleoDefinitionModelpublic java.util.Map<java.util.Locale,java.lang.String> getTitleMap()
getTitleMap in interface KaleoDefinitionModelpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface KaleoDefinitionModelpublic java.lang.String getUserName()
getUserName in interface AuditedModelgetUserName in interface KaleoDefinitionModelpublic java.lang.String getUserUuid()
getUserUuid in interface AuditedModelgetUserUuid in interface KaleoDefinitionModelpublic int getVersion()
getVersion in interface KaleoDefinitionModelpublic boolean isActive()
true if this kaleo definition is active.isActive in interface KaleoDefinitionModeltrue if this kaleo definition is active; false otherwisepublic void persist()
PersistedModelpersist in interface PersistedModelpublic void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface LocalizedModelprepareLocalizedFieldsForImport in interface KaleoDefinitionModelLocaleExceptionpublic void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface LocalizedModelprepareLocalizedFieldsForImport in interface KaleoDefinitionModelLocaleExceptionpublic void setActive(boolean active)
setActive in interface KaleoDefinitionModelactive - the active of this kaleo definitionpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface ShardedModelsetCompanyId in interface KaleoDefinitionModelcompanyId - the company ID of this kaleo definitionpublic void setContent(java.lang.String content)
setContent in interface KaleoDefinitionModelcontent - the content of this kaleo definitionpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface KaleoDefinitionModelcreateDate - the create date of this kaleo definitionpublic void setDescription(java.lang.String description)
setDescription in interface KaleoDefinitionModeldescription - the description of this kaleo definitionpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface KaleoDefinitionModelgroupId - the group ID of this kaleo definitionpublic void setKaleoDefinitionId(long kaleoDefinitionId)
setKaleoDefinitionId in interface KaleoDefinitionModelkaleoDefinitionId - the kaleo definition ID of this kaleo definitionpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface KaleoDefinitionModelmodifiedDate - the modified date of this kaleo definitionpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface KaleoDefinitionModelmvccVersion - the mvcc version of this kaleo definitionpublic void setName(java.lang.String name)
setName in interface KaleoDefinitionModelname - the name of this kaleo definitionpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface KaleoDefinitionModelprimaryKey - the primary key of this kaleo definitionpublic void setScope(java.lang.String scope)
setScope in interface KaleoDefinitionModelscope - the scope of this kaleo definitionpublic void setTitle(java.lang.String title)
setTitle in interface KaleoDefinitionModeltitle - the title of this kaleo definitionpublic void setTitle(java.lang.String title,
java.util.Locale locale)
setTitle in interface KaleoDefinitionModeltitle - 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 KaleoDefinitionModeltitle - the localized title of this kaleo definitionlocale - the locale of the languagedefaultLocale - the default localepublic void setTitleCurrentLanguageId(java.lang.String languageId)
setTitleCurrentLanguageId in interface KaleoDefinitionModelpublic void setTitleMap(java.util.Map<java.util.Locale,java.lang.String> titleMap)
setTitleMap in interface KaleoDefinitionModeltitleMap - 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 KaleoDefinitionModeltitleMap - the locales and localized titles of this kaleo definitiondefaultLocale - the default localepublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface KaleoDefinitionModeluserId - the user ID of this kaleo definitionpublic void setUserName(java.lang.String userName)
setUserName in interface AuditedModelsetUserName in interface KaleoDefinitionModeluserName - the user name of this kaleo definitionpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface KaleoDefinitionModeluserUuid - the user uuid of this kaleo definitionpublic void setVersion(int version)
setVersion in interface KaleoDefinitionModelversion - the version of this kaleo definitionprotected KaleoDefinitionWrapper wrap(KaleoDefinition kaleoDefinition)
wrap in class BaseModelWrapper<KaleoDefinition>