|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.journal.model.JournalTemplateWrapper
public class JournalTemplateWrapper
This class is a wrapper for JournalTemplate
.
JournalTemplate
,
Serialized FormConstructor Summary | |
---|---|
JournalTemplateWrapper(JournalTemplate journalTemplate)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(JournalTemplate journalTemplate)
|
boolean |
equals(Object obj)
|
boolean |
getCacheable()
Returns the cacheable of this journal template. |
long |
getCompanyId()
Returns the company ID of this journal template. |
Date |
getCreateDate()
Returns the create date of this journal template. |
String |
getDescription()
Returns the description of this journal template. |
String |
getDescription(Locale locale)
Returns the localized description of this journal template in the language. |
String |
getDescription(Locale locale,
boolean useDefault)
Returns the localized description of this journal template in the language, optionally using the default language if no localization exists for the requested language. |
String |
getDescription(String languageId)
Returns the localized description of this journal template in the language. |
String |
getDescription(String languageId,
boolean useDefault)
Returns the localized description of this journal template in the language, optionally using the default language if no localization exists for the requested language. |
String |
getDescriptionCurrentLanguageId()
|
String |
getDescriptionCurrentValue()
|
Map<Locale,String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this journal template. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getGroupId()
Returns the group ID of this journal template. |
long |
getId()
Returns the ID of this journal template. |
String |
getLangType()
Returns the lang type of this journal template. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this journal template. |
String |
getName()
Returns the name of this journal template. |
String |
getName(Locale locale)
Returns the localized name of this journal template in the language. |
String |
getName(Locale locale,
boolean useDefault)
Returns the localized name of this journal template in the language, optionally using the default language if no localization exists for the requested language. |
String |
getName(String languageId)
Returns the localized name of this journal template in the language. |
String |
getName(String languageId,
boolean useDefault)
Returns the localized name of this journal template in the language, optionally using the default language if no localization exists for the requested language. |
String |
getNameCurrentLanguageId()
|
String |
getNameCurrentValue()
|
Map<Locale,String> |
getNameMap()
Returns a map of the locales and localized names of this journal template. |
long |
getPrimaryKey()
Returns the primary key of this journal template. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
boolean |
getSmallImage()
Returns the small image of this journal template. |
long |
getSmallImageId()
Returns the small image ID of this journal template. |
String |
getSmallImageType()
|
String |
getSmallImageURL()
Returns the small image u r l of this journal template. |
String |
getStructureId()
Returns the structure ID of this journal template. |
String |
getTemplateId()
Returns the template ID of this journal template. |
long |
getUserId()
Returns the user ID of this journal template. |
String |
getUserName()
Returns the user name of this journal template. |
String |
getUserUuid()
Returns the user uuid of this journal template. |
String |
getUuid()
Returns the uuid of this journal template. |
JournalTemplate |
getWrappedJournalTemplate()
Deprecated. Renamed to getWrappedModel() |
JournalTemplate |
getWrappedModel()
|
String |
getXsl()
Returns the xsl of this journal template. |
int |
hashCode()
|
boolean |
isCacheable()
Returns true if this journal template is cacheable. |
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
boolean |
isSmallImage()
Returns true if this journal template is small image. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet exist. |
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale)
|
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setCacheable(boolean cacheable)
Sets whether this journal template is cacheable. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCompanyId(long companyId)
Sets the company ID of this journal template. |
void |
setCreateDate(Date createDate)
Sets the create date of this journal template. |
void |
setDescription(String description)
Sets the description of this journal template. |
void |
setDescription(String description,
Locale locale)
Sets the localized description of this journal template in the language. |
void |
setDescription(String description,
Locale locale,
Locale defaultLocale)
Sets the localized description of this journal template in the language, and sets the default locale. |
void |
setDescriptionCurrentLanguageId(String languageId)
|
void |
setDescriptionMap(Map<Locale,String> descriptionMap)
Sets the localized descriptions of this journal template from the map of locales and localized descriptions. |
void |
setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
Sets the localized descriptions of this journal template from the map of locales and localized descriptions, and sets the default locale. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setGroupId(long groupId)
Sets the group ID of this journal template. |
void |
setId(long id)
Sets the ID of this journal template. |
void |
setLangType(String langType)
Sets the lang type of this journal template. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this journal template. |
void |
setName(String name)
Sets the name of this journal template. |
void |
setName(String name,
Locale locale)
Sets the localized name of this journal template in the language. |
void |
setName(String name,
Locale locale,
Locale defaultLocale)
Sets the localized name of this journal template in the language, and sets the default locale. |
void |
setNameCurrentLanguageId(String languageId)
|
void |
setNameMap(Map<Locale,String> nameMap)
Sets the localized names of this journal template from the map of locales and localized names. |
void |
setNameMap(Map<Locale,String> nameMap,
Locale defaultLocale)
Sets the localized names of this journal template from the map of locales and localized names, and sets the default locale. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this journal template. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setSmallImage(boolean smallImage)
Sets whether this journal template is small image. |
void |
setSmallImageId(long smallImageId)
Sets the small image ID of this journal template. |
void |
setSmallImageType(String smallImageType)
|
void |
setSmallImageURL(String smallImageURL)
Sets the small image u r l of this journal template. |
void |
setStructureId(String structureId)
Sets the structure ID of this journal template. |
void |
setTemplateId(String templateId)
Sets the template ID of this journal template. |
void |
setUserId(long userId)
Sets the user ID of this journal template. |
void |
setUserName(String userName)
Sets the user name of this journal template. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this journal template. |
void |
setUuid(String uuid)
Sets the uuid of this journal template. |
void |
setXsl(String xsl)
Sets the xsl of this journal template. |
CacheModel<JournalTemplate> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
JournalTemplate |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
JournalTemplate |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JournalTemplateWrapper(JournalTemplate journalTemplate)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<JournalTemplate>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<JournalTemplate>
public long getPrimaryKey()
getPrimaryKey
in interface JournalTemplateModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface JournalTemplateModel
primaryKey
- the primary key of this journal templatepublic String getUuid()
getUuid
in interface JournalTemplateModel
public void setUuid(String uuid)
setUuid
in interface JournalTemplateModel
uuid
- the uuid of this journal templatepublic long getId()
getId
in interface JournalTemplateModel
public void setId(long id)
setId
in interface JournalTemplateModel
id
- the ID of this journal templatepublic long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface JournalTemplateModel
public void setGroupId(long groupId)
setGroupId
in interface GroupedModel
setGroupId
in interface JournalTemplateModel
groupId
- the group ID of this journal templatepublic long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface JournalTemplateModel
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface JournalTemplateModel
companyId
- the company ID of this journal templatepublic long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface JournalTemplateModel
public void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface JournalTemplateModel
userId
- the user ID of this journal templatepublic String getUserUuid() throws SystemException
getUserUuid
in interface AuditedModel
getUserUuid
in interface JournalTemplateModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface JournalTemplateModel
userUuid
- the user uuid of this journal templatepublic String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface JournalTemplateModel
public void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface JournalTemplateModel
userName
- the user name of this journal templatepublic Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface JournalTemplateModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface JournalTemplateModel
createDate
- the create date of this journal templatepublic Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface JournalTemplateModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface JournalTemplateModel
modifiedDate
- the modified date of this journal templatepublic String getTemplateId()
getTemplateId
in interface JournalTemplateModel
public void setTemplateId(String templateId)
setTemplateId
in interface JournalTemplateModel
templateId
- the template ID of this journal templatepublic String getStructureId()
getStructureId
in interface JournalTemplateModel
public void setStructureId(String structureId)
setStructureId
in interface JournalTemplateModel
structureId
- the structure ID of this journal templatepublic String getName()
getName
in interface JournalTemplateModel
public String getName(Locale locale)
getName
in interface JournalTemplateModel
locale
- the locale of the language
public String getName(Locale locale, boolean useDefault)
getName
in interface JournalTemplateModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
useDefault
is false
and no localization exists for the requested language, an empty string will be returned.public String getName(String languageId)
getName
in interface JournalTemplateModel
languageId
- the ID of the language
public String getName(String languageId, boolean useDefault)
getName
in interface JournalTemplateModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
public String getNameCurrentLanguageId()
getNameCurrentLanguageId
in interface JournalTemplateModel
public String getNameCurrentValue()
getNameCurrentValue
in interface JournalTemplateModel
public Map<Locale,String> getNameMap()
getNameMap
in interface JournalTemplateModel
public void setName(String name)
setName
in interface JournalTemplateModel
name
- the name of this journal templatepublic void setName(String name, Locale locale)
setName
in interface JournalTemplateModel
name
- the localized name of this journal templatelocale
- the locale of the languagepublic void setName(String name, Locale locale, Locale defaultLocale)
setName
in interface JournalTemplateModel
name
- the localized name of this journal templatelocale
- the locale of the languagedefaultLocale
- the default localepublic void setNameCurrentLanguageId(String languageId)
setNameCurrentLanguageId
in interface JournalTemplateModel
public void setNameMap(Map<Locale,String> nameMap)
setNameMap
in interface JournalTemplateModel
nameMap
- the locales and localized names of this journal templatepublic void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
setNameMap
in interface JournalTemplateModel
nameMap
- the locales and localized names of this journal templatedefaultLocale
- the default localepublic String getDescription()
getDescription
in interface JournalTemplateModel
public String getDescription(Locale locale)
getDescription
in interface JournalTemplateModel
locale
- the locale of the language
public String getDescription(Locale locale, boolean useDefault)
getDescription
in interface JournalTemplateModel
locale
- the local of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
useDefault
is false
and no localization exists for the requested language, an empty string will be returned.public String getDescription(String languageId)
getDescription
in interface JournalTemplateModel
languageId
- the ID of the language
public String getDescription(String languageId, boolean useDefault)
getDescription
in interface JournalTemplateModel
languageId
- the ID of the languageuseDefault
- whether to use the default language if no localization exists for the requested language
public String getDescriptionCurrentLanguageId()
getDescriptionCurrentLanguageId
in interface JournalTemplateModel
public String getDescriptionCurrentValue()
getDescriptionCurrentValue
in interface JournalTemplateModel
public Map<Locale,String> getDescriptionMap()
getDescriptionMap
in interface JournalTemplateModel
public void setDescription(String description)
setDescription
in interface JournalTemplateModel
description
- the description of this journal templatepublic void setDescription(String description, Locale locale)
setDescription
in interface JournalTemplateModel
description
- the localized description of this journal templatelocale
- the locale of the languagepublic void setDescription(String description, Locale locale, Locale defaultLocale)
setDescription
in interface JournalTemplateModel
description
- the localized description of this journal templatelocale
- the locale of the languagedefaultLocale
- the default localepublic void setDescriptionCurrentLanguageId(String languageId)
setDescriptionCurrentLanguageId
in interface JournalTemplateModel
public void setDescriptionMap(Map<Locale,String> descriptionMap)
setDescriptionMap
in interface JournalTemplateModel
descriptionMap
- the locales and localized descriptions of this journal templatepublic void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
setDescriptionMap
in interface JournalTemplateModel
descriptionMap
- the locales and localized descriptions of this journal templatedefaultLocale
- the default localepublic String getXsl()
getXsl
in interface JournalTemplateModel
public void setXsl(String xsl)
setXsl
in interface JournalTemplateModel
xsl
- the xsl of this journal templatepublic String getLangType()
getLangType
in interface JournalTemplateModel
public void setLangType(String langType)
setLangType
in interface JournalTemplateModel
langType
- the lang type of this journal templatepublic boolean getCacheable()
getCacheable
in interface JournalTemplateModel
public boolean isCacheable()
true
if this journal template is cacheable.
isCacheable
in interface JournalTemplateModel
true
if this journal template is cacheable; false
otherwisepublic void setCacheable(boolean cacheable)
setCacheable
in interface JournalTemplateModel
cacheable
- the cacheable of this journal templatepublic boolean getSmallImage()
getSmallImage
in interface JournalTemplateModel
public boolean isSmallImage()
true
if this journal template is small image.
isSmallImage
in interface JournalTemplateModel
true
if this journal template is small image; false
otherwisepublic void setSmallImage(boolean smallImage)
setSmallImage
in interface JournalTemplateModel
smallImage
- the small image of this journal templatepublic long getSmallImageId()
getSmallImageId
in interface JournalTemplateModel
public void setSmallImageId(long smallImageId)
setSmallImageId
in interface JournalTemplateModel
smallImageId
- the small image ID of this journal templatepublic String getSmallImageURL()
getSmallImageURL
in interface JournalTemplateModel
public void setSmallImageURL(String smallImageURL)
setSmallImageURL
in interface JournalTemplateModel
smallImageURL
- the small image u r l of this journal templatepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<JournalTemplate>
isNew
in interface JournalTemplateModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<JournalTemplate>
setNew
in interface JournalTemplateModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<JournalTemplate>
isCachedModel
in interface JournalTemplateModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<JournalTemplate>
setCachedModel
in interface JournalTemplateModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<JournalTemplate>
isEscapedModel
in interface JournalTemplateModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<JournalTemplate>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface JournalTemplateModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<JournalTemplate>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface JournalTemplateModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<JournalTemplate>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface JournalTemplateModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<JournalTemplate>
setExpandoBridgeAttributes
in interface JournalTemplateModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException
prepareLocalizedFieldsForImport
in interface JournalTemplateModel
LocaleException
public Object clone()
BaseModel
clone
in interface BaseModel<JournalTemplate>
clone
in interface JournalTemplateModel
clone
in class Object
public int compareTo(JournalTemplate journalTemplate)
compareTo
in interface JournalTemplateModel
compareTo
in interface Comparable<JournalTemplate>
public int hashCode()
hashCode
in interface JournalTemplateModel
hashCode
in class Object
public CacheModel<JournalTemplate> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<JournalTemplate>
toCacheModel
in interface JournalTemplateModel
public JournalTemplate toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<JournalTemplate>
toEscapedModel
in interface JournalTemplateModel
AutoEscapeBeanHandler
public JournalTemplate toUnescapedModel()
toUnescapedModel
in interface BaseModel<JournalTemplate>
toUnescapedModel
in interface JournalTemplateModel
public String toString()
toString
in interface JournalTemplateModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<JournalTemplate>
toXmlString
in interface JournalTemplateModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic String getSmallImageType() throws PortalException, SystemException
getSmallImageType
in interface JournalTemplate
PortalException
SystemException
public void setSmallImageType(String smallImageType)
setSmallImageType
in interface JournalTemplate
public boolean equals(Object obj)
equals
in class Object
public JournalTemplate getWrappedJournalTemplate()
getWrappedModel()
public JournalTemplate getWrappedModel()
getWrappedModel
in interface ModelWrapper<JournalTemplate>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<JournalTemplate>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |