|
Liferay 6.2.0-ce-b2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.dynamicdatamapping.model.DDMTemplateWrapper
public class DDMTemplateWrapper
This class is a wrapper for DDMTemplate.
DDMTemplate,
Serialized Form| Constructor Summary | |
|---|---|
DDMTemplateWrapper(DDMTemplate ddmTemplate)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(DDMTemplate ddmTemplate)
|
boolean |
equals(Object obj)
|
String[] |
getAvailableLanguageIds()
|
boolean |
getCacheable()
Returns the cacheable of this d d m template. |
String |
getClassName()
Returns the fully qualified class name of this d d m template. |
long |
getClassNameId()
Returns the class name ID of this d d m template. |
long |
getClassPK()
Returns the class p k of this d d m template. |
long |
getCompanyId()
Returns the company ID of this d d m template. |
Date |
getCreateDate()
Returns the create date of this d d m template. |
String |
getDefaultLanguageId()
|
String |
getDescription()
Returns the description of this d d m template. |
String |
getDescription(Locale locale)
Returns the localized description of this d d m template in the language. |
String |
getDescription(Locale locale,
boolean useDefault)
Returns the localized description of this d d m 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 d d m template in the language. |
String |
getDescription(String languageId,
boolean useDefault)
Returns the localized description of this d d m 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 d d m template. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getGroupId()
Returns the group ID of this d d m template. |
String |
getLanguage()
Returns the language of this d d m template. |
String |
getMode()
Returns the mode of this d d m template. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this d d m template. |
String |
getName()
Returns the name of this d d m template. |
String |
getName(Locale locale)
Returns the localized name of this d d m template in the language. |
String |
getName(Locale locale,
boolean useDefault)
Returns the localized name of this d d m 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 d d m template in the language. |
String |
getName(String languageId,
boolean useDefault)
Returns the localized name of this d d m 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 d d m template. |
long |
getPrimaryKey()
Returns the primary key of this d d m template. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
String |
getScript()
Returns the script of this d d m template. |
boolean |
getSmallImage()
Returns the small image of this d d m template. |
long |
getSmallImageId()
Returns the small image ID of this d d m template. |
String |
getSmallImageType()
|
String |
getSmallImageURL()
Returns the small image u r l of this d d m template. |
StagedModelType |
getStagedModelType()
|
long |
getTemplateId()
Returns the template ID of this d d m template. |
String |
getTemplateKey()
Returns the template key of this d d m template. |
String |
getType()
Returns the type of this d d m template. |
long |
getUserId()
Returns the user ID of this d d m template. |
String |
getUserName()
Returns the user name of this d d m template. |
String |
getUserUuid()
Returns the user uuid of this d d m template. |
String |
getUuid()
Returns the uuid of this d d m template. |
String |
getWebDavURL(ThemeDisplay themeDisplay,
String webDAVToken)
Returns the WebDAV URL to access the template. |
DDMTemplate |
getWrappedDDMTemplate()
Deprecated. As of 6.1.0, replaced by getWrappedModel() |
DDMTemplate |
getWrappedModel()
|
int |
hashCode()
|
boolean |
isCacheable()
Returns true if this d d m 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 d d m template is small image. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet exist. |
void |
prepareLocalizedFieldsForImport()
|
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale)
|
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setCacheable(boolean cacheable)
Sets whether this d d m template is cacheable. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setClassName(String className)
|
void |
setClassNameId(long classNameId)
Sets the class name ID of this d d m template. |
void |
setClassPK(long classPK)
Sets the class p k of this d d m template. |
void |
setCompanyId(long companyId)
Sets the company ID of this d d m template. |
void |
setCreateDate(Date createDate)
Sets the create date of this d d m template. |
void |
setDescription(String description)
Sets the description of this d d m template. |
void |
setDescription(String description,
Locale locale)
Sets the localized description of this d d m template in the language. |
void |
setDescription(String description,
Locale locale,
Locale defaultLocale)
Sets the localized description of this d d m 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 d d m template from the map of locales and localized descriptions. |
void |
setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
Sets the localized descriptions of this d d m template from the map of locales and localized descriptions, and sets the default locale. |
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel)
|
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
|
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 d d m template. |
void |
setLanguage(String language)
Sets the language of this d d m template. |
void |
setMode(String mode)
Sets the mode of this d d m template. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this d d m template. |
void |
setName(String name)
Sets the name of this d d m template. |
void |
setName(String name,
Locale locale)
Sets the localized name of this d d m template in the language. |
void |
setName(String name,
Locale locale,
Locale defaultLocale)
Sets the localized name of this d d m 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 d d m template from the map of locales and localized names. |
void |
setNameMap(Map<Locale,String> nameMap,
Locale defaultLocale)
Sets the localized names of this d d m 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 d d m template. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setScript(String script)
Sets the script of this d d m template. |
void |
setSmallImage(boolean smallImage)
Sets whether this d d m template is small image. |
void |
setSmallImageId(long smallImageId)
Sets the small image ID of this d d m template. |
void |
setSmallImageType(String smallImageType)
|
void |
setSmallImageURL(String smallImageURL)
Sets the small image u r l of this d d m template. |
void |
setTemplateId(long templateId)
Sets the template ID of this d d m template. |
void |
setTemplateKey(String templateKey)
Sets the template key of this d d m template. |
void |
setType(String type)
Sets the type of this d d m template. |
void |
setUserId(long userId)
Sets the user ID of this d d m template. |
void |
setUserName(String userName)
Sets the user name of this d d m template. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this d d m template. |
void |
setUuid(String uuid)
Sets the uuid of this d d m template. |
CacheModel<DDMTemplate> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
DDMTemplate |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
DDMTemplate |
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 DDMTemplateWrapper(DDMTemplate ddmTemplate)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<DDMTemplate>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<DDMTemplate>public long getPrimaryKey()
getPrimaryKey in interface DDMTemplateModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface DDMTemplateModelprimaryKey - the primary key of this d d m templatepublic String getUuid()
getUuid in interface StagedModelgetUuid in interface DDMTemplateModelpublic void setUuid(String uuid)
setUuid in interface StagedModelsetUuid in interface DDMTemplateModeluuid - the uuid of this d d m templatepublic long getTemplateId()
getTemplateId in interface DDMTemplateModelpublic void setTemplateId(long templateId)
setTemplateId in interface DDMTemplateModeltemplateId - the template ID of this d d m templatepublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface DDMTemplateModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface DDMTemplateModelgroupId - the group ID of this d d m templatepublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface StagedModelgetCompanyId in interface DDMTemplateModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface StagedModelsetCompanyId in interface DDMTemplateModelcompanyId - the company ID of this d d m templatepublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface DDMTemplateModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface DDMTemplateModeluserId - the user ID of this d d m template
public String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface DDMTemplateModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface DDMTemplateModeluserUuid - the user uuid of this d d m templatepublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface DDMTemplateModelpublic void setUserName(String userName)
setUserName in interface AuditedModelsetUserName in interface DDMTemplateModeluserName - the user name of this d d m templatepublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface StagedModelgetCreateDate in interface DDMTemplateModelpublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface StagedModelsetCreateDate in interface DDMTemplateModelcreateDate - the create date of this d d m templatepublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface StagedModelgetModifiedDate in interface DDMTemplateModelpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface StagedModelsetModifiedDate in interface DDMTemplateModelmodifiedDate - the modified date of this d d m templatepublic String getClassName()
getClassName in interface TypedModelgetClassName in interface DDMTemplateModelpublic void setClassName(String className)
setClassName in interface DDMTemplateModelpublic long getClassNameId()
getClassNameId in interface TypedModelgetClassNameId in interface DDMTemplateModelpublic void setClassNameId(long classNameId)
setClassNameId in interface TypedModelsetClassNameId in interface DDMTemplateModelclassNameId - the class name ID of this d d m templatepublic long getClassPK()
getClassPK in interface AttachedModelgetClassPK in interface DDMTemplateModelpublic void setClassPK(long classPK)
setClassPK in interface AttachedModelsetClassPK in interface DDMTemplateModelclassPK - the class p k of this d d m templatepublic String getTemplateKey()
getTemplateKey in interface DDMTemplateModelpublic void setTemplateKey(String templateKey)
setTemplateKey in interface DDMTemplateModeltemplateKey - the template key of this d d m templatepublic String getName()
getName in interface DDMTemplateModelpublic String getName(Locale locale)
getName in interface DDMTemplateModellocale - the locale of the language
public String getName(Locale locale,
boolean useDefault)
getName in interface DDMTemplateModellocale - 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 DDMTemplateModellanguageId - the ID of the language
public String getName(String languageId,
boolean useDefault)
getName in interface DDMTemplateModellanguageId - 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 DDMTemplateModelpublic String getNameCurrentValue()
getNameCurrentValue in interface DDMTemplateModelpublic Map<Locale,String> getNameMap()
getNameMap in interface DDMTemplateModelpublic void setName(String name)
setName in interface DDMTemplateModelname - the name of this d d m template
public void setName(String name,
Locale locale)
setName in interface DDMTemplateModelname - the localized name of this d d m templatelocale - the locale of the language
public void setName(String name,
Locale locale,
Locale defaultLocale)
setName in interface DDMTemplateModelname - the localized name of this d d m templatelocale - the locale of the languagedefaultLocale - the default localepublic void setNameCurrentLanguageId(String languageId)
setNameCurrentLanguageId in interface DDMTemplateModelpublic void setNameMap(Map<Locale,String> nameMap)
setNameMap in interface DDMTemplateModelnameMap - the locales and localized names of this d d m template
public void setNameMap(Map<Locale,String> nameMap,
Locale defaultLocale)
setNameMap in interface DDMTemplateModelnameMap - the locales and localized names of this d d m templatedefaultLocale - the default localepublic String getDescription()
getDescription in interface DDMTemplateModelpublic String getDescription(Locale locale)
getDescription in interface DDMTemplateModellocale - the locale of the language
public String getDescription(Locale locale,
boolean useDefault)
getDescription in interface DDMTemplateModellocale - 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 DDMTemplateModellanguageId - the ID of the language
public String getDescription(String languageId,
boolean useDefault)
getDescription in interface DDMTemplateModellanguageId - 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 DDMTemplateModelpublic String getDescriptionCurrentValue()
getDescriptionCurrentValue in interface DDMTemplateModelpublic Map<Locale,String> getDescriptionMap()
getDescriptionMap in interface DDMTemplateModelpublic void setDescription(String description)
setDescription in interface DDMTemplateModeldescription - the description of this d d m template
public void setDescription(String description,
Locale locale)
setDescription in interface DDMTemplateModeldescription - the localized description of this d d m templatelocale - the locale of the language
public void setDescription(String description,
Locale locale,
Locale defaultLocale)
setDescription in interface DDMTemplateModeldescription - the localized description of this d d m templatelocale - the locale of the languagedefaultLocale - the default localepublic void setDescriptionCurrentLanguageId(String languageId)
setDescriptionCurrentLanguageId in interface DDMTemplateModelpublic void setDescriptionMap(Map<Locale,String> descriptionMap)
setDescriptionMap in interface DDMTemplateModeldescriptionMap - the locales and localized descriptions of this d d m template
public void setDescriptionMap(Map<Locale,String> descriptionMap,
Locale defaultLocale)
setDescriptionMap in interface DDMTemplateModeldescriptionMap - the locales and localized descriptions of this d d m templatedefaultLocale - the default localepublic String getType()
getType in interface DDMTemplateModelpublic void setType(String type)
setType in interface DDMTemplateModeltype - the type of this d d m templatepublic String getMode()
getMode in interface DDMTemplateModelpublic void setMode(String mode)
setMode in interface DDMTemplateModelmode - the mode of this d d m templatepublic String getLanguage()
getLanguage in interface DDMTemplateModelpublic void setLanguage(String language)
setLanguage in interface DDMTemplateModellanguage - the language of this d d m templatepublic String getScript()
getScript in interface DDMTemplateModelpublic void setScript(String script)
setScript in interface DDMTemplateModelscript - the script of this d d m templatepublic boolean getCacheable()
getCacheable in interface DDMTemplateModelpublic boolean isCacheable()
true if this d d m template is cacheable.
isCacheable in interface DDMTemplateModeltrue if this d d m template is cacheable; false otherwisepublic void setCacheable(boolean cacheable)
setCacheable in interface DDMTemplateModelcacheable - the cacheable of this d d m templatepublic boolean getSmallImage()
getSmallImage in interface DDMTemplateModelpublic boolean isSmallImage()
true if this d d m template is small image.
isSmallImage in interface DDMTemplateModeltrue if this d d m template is small image; false otherwisepublic void setSmallImage(boolean smallImage)
setSmallImage in interface DDMTemplateModelsmallImage - the small image of this d d m templatepublic long getSmallImageId()
getSmallImageId in interface DDMTemplateModelpublic void setSmallImageId(long smallImageId)
setSmallImageId in interface DDMTemplateModelsmallImageId - the small image ID of this d d m templatepublic String getSmallImageURL()
getSmallImageURL in interface DDMTemplateModelpublic void setSmallImageURL(String smallImageURL)
setSmallImageURL in interface DDMTemplateModelsmallImageURL - the small image u r l of this d d m templatepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<DDMTemplate>isNew in interface DDMTemplateModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<DDMTemplate>setNew in interface DDMTemplateModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<DDMTemplate>isCachedModel in interface DDMTemplateModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<DDMTemplate>setCachedModel in interface DDMTemplateModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<DDMTemplate>isEscapedModel in interface DDMTemplateModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<DDMTemplate>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface DDMTemplateModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<DDMTemplate>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface DDMTemplateModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<DDMTemplate>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface DDMTemplateModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<DDMTemplate>setExpandoBridgeAttributes in interface DDMTemplateModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<DDMTemplate>setExpandoBridgeAttributes in interface DDMTemplateModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<DDMTemplate>setExpandoBridgeAttributes in interface DDMTemplateModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface DDMTemplateModelpublic String getDefaultLanguageId()
getDefaultLanguageId in interface DDMTemplateModel
public void prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface DDMTemplateModelLocaleException
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface DDMTemplateModelLocaleExceptionpublic Object clone()
BaseModel
clone in interface BaseModel<DDMTemplate>clone in interface StagedModelclone in interface DDMTemplateModelclone in class Objectpublic int compareTo(DDMTemplate ddmTemplate)
compareTo in interface DDMTemplateModelcompareTo in interface Comparable<DDMTemplate>public int hashCode()
hashCode in interface DDMTemplateModelhashCode in class Objectpublic CacheModel<DDMTemplate> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<DDMTemplate>toCacheModel in interface DDMTemplateModelpublic DDMTemplate toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<DDMTemplate>toEscapedModel in interface DDMTemplateModelAutoEscapeBeanHandlerpublic DDMTemplate toUnescapedModel()
toUnescapedModel in interface BaseModel<DDMTemplate>toUnescapedModel in interface DDMTemplateModelpublic String toString()
toString in interface DDMTemplateModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<DDMTemplate>toXmlString in interface DDMTemplateModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurred
public String getSmallImageType()
throws PortalException,
SystemException
getSmallImageType in interface DDMTemplatePortalException
SystemException
public String getWebDavURL(ThemeDisplay themeDisplay,
String webDAVToken)
getWebDavURL in interface DDMTemplatethemeDisplay - the theme display needed to build the URL. It can
set HTTPS access, the server name, the server port, the path
context, and the scope group.webDAVToken - the WebDAV token for the URL
public void setSmallImageType(String smallImageType)
setSmallImageType in interface DDMTemplatepublic boolean equals(Object obj)
equals in class Objectpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModelpublic DDMTemplate getWrappedDDMTemplate()
getWrappedModel()
public DDMTemplate getWrappedModel()
getWrappedModel in interface ModelWrapper<DDMTemplate>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<DDMTemplate>
|
Liferay 6.2.0-ce-b2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||