Liferay 6.2-ce-ga5

com.liferay.portal.model
Class LayoutPrototypeWrapper

java.lang.Object
  extended by com.liferay.portal.model.LayoutPrototypeWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<LayoutPrototype>, ClassedModel, LayoutPrototype, LayoutPrototypeModel, ModelWrapper<LayoutPrototype>, PersistedModel, StagedAuditedModel, StagedModel, Serializable, Cloneable, Comparable<LayoutPrototype>

@ProviderType
public class LayoutPrototypeWrapper
extends Object
implements LayoutPrototype, ModelWrapper<LayoutPrototype>

This class is a wrapper for LayoutPrototype.

See Also:
LayoutPrototype, Serialized Form

Constructor Summary
LayoutPrototypeWrapper(LayoutPrototype layoutPrototype)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(LayoutPrototype layoutPrototype)
           
 boolean equals(Object obj)
           
 boolean getActive()
          Returns the active of this layout prototype.
 String[] getAvailableLanguageIds()
           
 long getCompanyId()
          Returns the company ID of this layout prototype.
 Date getCreateDate()
          Returns the create date of this layout prototype.
 String getDefaultLanguageId()
           
 String getDescription()
          Returns the description of this layout prototype.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Group getGroup()
           
 long getGroupId()
           
 Layout getLayout()
           
 long getLayoutPrototypeId()
          Returns the layout prototype ID of this layout prototype.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this layout prototype.
 String getName()
          Returns the name of this layout prototype.
 String getName(Locale locale)
          Returns the localized name of this layout prototype in the language.
 String getName(Locale locale, boolean useDefault)
          Returns the localized name of this layout prototype 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 layout prototype in the language.
 String getName(String languageId, boolean useDefault)
          Returns the localized name of this layout prototype 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 layout prototype.
 long getPrimaryKey()
          Returns the primary key of this layout prototype.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getSettings()
          Returns the settings of this layout prototype.
 StagedModelType getStagedModelType()
           
 long getUserId()
          Returns the user ID of this layout prototype.
 String getUserName()
          Returns the user name of this layout prototype.
 String getUserUuid()
          Returns the user uuid of this layout prototype.
 String getUuid()
          Returns the uuid of this layout prototype.
 LayoutPrototype getWrappedLayoutPrototype()
          Deprecated. As of 6.1.0, replaced by getWrappedModel()
 LayoutPrototype getWrappedModel()
           
 int hashCode()
           
 boolean isActive()
          Returns true if this layout prototype is active.
 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.
 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 setActive(boolean active)
          Sets whether this layout prototype is active.
 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 layout prototype.
 void setCreateDate(Date createDate)
          Sets the create date of this layout prototype.
 void setDescription(String description)
          Sets the description of this layout prototype.
 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 setLayoutPrototypeId(long layoutPrototypeId)
          Sets the layout prototype ID of this layout prototype.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this layout prototype.
 void setName(String name)
          Sets the name of this layout prototype.
 void setName(String name, Locale locale)
          Sets the localized name of this layout prototype in the language.
 void setName(String name, Locale locale, Locale defaultLocale)
          Sets the localized name of this layout prototype in the language, and sets the default locale.
 void setNameCurrentLanguageId(String languageId)
           
 void setNameMap(Map<Locale,String> nameMap)
          Sets the localized names of this layout prototype from the map of locales and localized names.
 void setNameMap(Map<Locale,String> nameMap, Locale defaultLocale)
          Sets the localized names of this layout prototype 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 layout prototype.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setSettings(String settings)
          Sets the settings of this layout prototype.
 void setUserId(long userId)
          Sets the user ID of this layout prototype.
 void setUserName(String userName)
          Sets the user name of this layout prototype.
 void setUserUuid(String userUuid)
          Sets the user uuid of this layout prototype.
 void setUuid(String uuid)
          Sets the uuid of this layout prototype.
 CacheModel<LayoutPrototype> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 LayoutPrototype toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 LayoutPrototype 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

LayoutPrototypeWrapper

public LayoutPrototypeWrapper(LayoutPrototype layoutPrototype)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<LayoutPrototype>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<LayoutPrototype>

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this layout prototype.

Specified by:
getPrimaryKey in interface LayoutPrototypeModel
Returns:
the primary key of this layout prototype

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this layout prototype.

Specified by:
setPrimaryKey in interface LayoutPrototypeModel
Parameters:
primaryKey - the primary key of this layout prototype

getUuid

public String getUuid()
Returns the uuid of this layout prototype.

Specified by:
getUuid in interface LayoutPrototypeModel
Specified by:
getUuid in interface StagedModel
Returns:
the uuid of this layout prototype

setUuid

public void setUuid(String uuid)
Sets the uuid of this layout prototype.

Specified by:
setUuid in interface LayoutPrototypeModel
Specified by:
setUuid in interface StagedModel
Parameters:
uuid - the uuid of this layout prototype

getLayoutPrototypeId

public long getLayoutPrototypeId()
Returns the layout prototype ID of this layout prototype.

Specified by:
getLayoutPrototypeId in interface LayoutPrototypeModel
Returns:
the layout prototype ID of this layout prototype

setLayoutPrototypeId

public void setLayoutPrototypeId(long layoutPrototypeId)
Sets the layout prototype ID of this layout prototype.

Specified by:
setLayoutPrototypeId in interface LayoutPrototypeModel
Parameters:
layoutPrototypeId - the layout prototype ID of this layout prototype

getCompanyId

public long getCompanyId()
Returns the company ID of this layout prototype.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface LayoutPrototypeModel
Specified by:
getCompanyId in interface StagedModel
Returns:
the company ID of this layout prototype

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this layout prototype.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface LayoutPrototypeModel
Specified by:
setCompanyId in interface StagedModel
Parameters:
companyId - the company ID of this layout prototype

getUserId

public long getUserId()
Returns the user ID of this layout prototype.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface LayoutPrototypeModel
Returns:
the user ID of this layout prototype

setUserId

public void setUserId(long userId)
Sets the user ID of this layout prototype.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface LayoutPrototypeModel
Parameters:
userId - the user ID of this layout prototype

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this layout prototype.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface LayoutPrototypeModel
Returns:
the user uuid of this layout prototype
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this layout prototype.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface LayoutPrototypeModel
Parameters:
userUuid - the user uuid of this layout prototype

getUserName

public String getUserName()
Returns the user name of this layout prototype.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface LayoutPrototypeModel
Returns:
the user name of this layout prototype

setUserName

public void setUserName(String userName)
Sets the user name of this layout prototype.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface LayoutPrototypeModel
Parameters:
userName - the user name of this layout prototype

getCreateDate

public Date getCreateDate()
Returns the create date of this layout prototype.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface LayoutPrototypeModel
Specified by:
getCreateDate in interface StagedModel
Returns:
the create date of this layout prototype

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this layout prototype.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface LayoutPrototypeModel
Specified by:
setCreateDate in interface StagedModel
Parameters:
createDate - the create date of this layout prototype

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this layout prototype.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface LayoutPrototypeModel
Specified by:
getModifiedDate in interface StagedModel
Returns:
the modified date of this layout prototype

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this layout prototype.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface LayoutPrototypeModel
Specified by:
setModifiedDate in interface StagedModel
Parameters:
modifiedDate - the modified date of this layout prototype

getName

public String getName()
Returns the name of this layout prototype.

Specified by:
getName in interface LayoutPrototypeModel
Returns:
the name of this layout prototype

getName

public String getName(Locale locale)
Returns the localized name of this layout prototype in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getName in interface LayoutPrototypeModel
Parameters:
locale - the locale of the language
Returns:
the localized name of this layout prototype

getName

public String getName(Locale locale,
                      boolean useDefault)
Returns the localized name of this layout prototype in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getName in interface LayoutPrototypeModel
Parameters:
locale - the local of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized name of this layout prototype. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getName

public String getName(String languageId)
Returns the localized name of this layout prototype in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getName in interface LayoutPrototypeModel
Parameters:
languageId - the ID of the language
Returns:
the localized name of this layout prototype

getName

public String getName(String languageId,
                      boolean useDefault)
Returns the localized name of this layout prototype in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getName in interface LayoutPrototypeModel
Parameters:
languageId - the ID of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized name of this layout prototype

getNameCurrentLanguageId

public String getNameCurrentLanguageId()
Specified by:
getNameCurrentLanguageId in interface LayoutPrototypeModel

getNameCurrentValue

public String getNameCurrentValue()
Specified by:
getNameCurrentValue in interface LayoutPrototypeModel

getNameMap

public Map<Locale,String> getNameMap()
Returns a map of the locales and localized names of this layout prototype.

Specified by:
getNameMap in interface LayoutPrototypeModel
Returns:
the locales and localized names of this layout prototype

setName

public void setName(String name)
Sets the name of this layout prototype.

Specified by:
setName in interface LayoutPrototypeModel
Parameters:
name - the name of this layout prototype

setName

public void setName(String name,
                    Locale locale)
Sets the localized name of this layout prototype in the language.

Specified by:
setName in interface LayoutPrototypeModel
Parameters:
name - the localized name of this layout prototype
locale - the locale of the language

setName

public void setName(String name,
                    Locale locale,
                    Locale defaultLocale)
Sets the localized name of this layout prototype in the language, and sets the default locale.

Specified by:
setName in interface LayoutPrototypeModel
Parameters:
name - the localized name of this layout prototype
locale - the locale of the language
defaultLocale - the default locale

setNameCurrentLanguageId

public void setNameCurrentLanguageId(String languageId)
Specified by:
setNameCurrentLanguageId in interface LayoutPrototypeModel

setNameMap

public void setNameMap(Map<Locale,String> nameMap)
Sets the localized names of this layout prototype from the map of locales and localized names.

Specified by:
setNameMap in interface LayoutPrototypeModel
Parameters:
nameMap - the locales and localized names of this layout prototype

setNameMap

public void setNameMap(Map<Locale,String> nameMap,
                       Locale defaultLocale)
Sets the localized names of this layout prototype from the map of locales and localized names, and sets the default locale.

Specified by:
setNameMap in interface LayoutPrototypeModel
Parameters:
nameMap - the locales and localized names of this layout prototype
defaultLocale - the default locale

getDescription

public String getDescription()
Returns the description of this layout prototype.

Specified by:
getDescription in interface LayoutPrototypeModel
Returns:
the description of this layout prototype

setDescription

public void setDescription(String description)
Sets the description of this layout prototype.

Specified by:
setDescription in interface LayoutPrototypeModel
Parameters:
description - the description of this layout prototype

getSettings

public String getSettings()
Returns the settings of this layout prototype.

Specified by:
getSettings in interface LayoutPrototypeModel
Returns:
the settings of this layout prototype

setSettings

public void setSettings(String settings)
Sets the settings of this layout prototype.

Specified by:
setSettings in interface LayoutPrototypeModel
Parameters:
settings - the settings of this layout prototype

getActive

public boolean getActive()
Returns the active of this layout prototype.

Specified by:
getActive in interface LayoutPrototypeModel
Returns:
the active of this layout prototype

isActive

public boolean isActive()
Returns true if this layout prototype is active.

Specified by:
isActive in interface LayoutPrototypeModel
Returns:
true if this layout prototype is active; false otherwise

setActive

public void setActive(boolean active)
Sets whether this layout prototype is active.

Specified by:
setActive in interface LayoutPrototypeModel
Parameters:
active - the active of this layout prototype

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<LayoutPrototype>
Specified by:
isNew in interface LayoutPrototypeModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<LayoutPrototype>
Specified by:
setNew in interface LayoutPrototypeModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<LayoutPrototype>
Specified by:
isCachedModel in interface LayoutPrototypeModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<LayoutPrototype>
Specified by:
setCachedModel in interface LayoutPrototypeModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<LayoutPrototype>
Specified by:
isEscapedModel in interface LayoutPrototypeModel
Returns:
true if this model instance is escaped; false otherwise

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<LayoutPrototype>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface LayoutPrototypeModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<LayoutPrototype>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface LayoutPrototypeModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<LayoutPrototype>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface LayoutPrototypeModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<LayoutPrototype>
Specified by:
setExpandoBridgeAttributes in interface LayoutPrototypeModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<LayoutPrototype>
Specified by:
setExpandoBridgeAttributes in interface LayoutPrototypeModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<LayoutPrototype>
Specified by:
setExpandoBridgeAttributes in interface LayoutPrototypeModel
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

getAvailableLanguageIds

public String[] getAvailableLanguageIds()
Specified by:
getAvailableLanguageIds in interface LayoutPrototypeModel

getDefaultLanguageId

public String getDefaultLanguageId()
Specified by:
getDefaultLanguageId in interface LayoutPrototypeModel

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport()
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface LayoutPrototypeModel
Throws:
LocaleException

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface LayoutPrototypeModel
Throws:
LocaleException

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<LayoutPrototype>
Specified by:
clone in interface LayoutPrototypeModel
Specified by:
clone in interface StagedModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(LayoutPrototype layoutPrototype)
Specified by:
compareTo in interface LayoutPrototypeModel
Specified by:
compareTo in interface Comparable<LayoutPrototype>

hashCode

public int hashCode()
Specified by:
hashCode in interface LayoutPrototypeModel
Overrides:
hashCode in class Object

toCacheModel

public CacheModel<LayoutPrototype> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<LayoutPrototype>
Specified by:
toCacheModel in interface LayoutPrototypeModel
Returns:
the cache model object

toEscapedModel

public LayoutPrototype toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<LayoutPrototype>
Specified by:
toEscapedModel in interface LayoutPrototypeModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public LayoutPrototype toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<LayoutPrototype>
Specified by:
toUnescapedModel in interface LayoutPrototypeModel

toString

public String toString()
Specified by:
toString in interface LayoutPrototypeModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<LayoutPrototype>
Specified by:
toXmlString in interface LayoutPrototypeModel
Returns:
the XML representation of this model instance

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

getGroup

public Group getGroup()
               throws PortalException,
                      SystemException
Specified by:
getGroup in interface LayoutPrototype
Throws:
PortalException
SystemException

getGroupId

public long getGroupId()
                throws PortalException,
                       SystemException
Specified by:
getGroupId in interface LayoutPrototype
Throws:
PortalException
SystemException

getLayout

public Layout getLayout()
                 throws PortalException,
                        SystemException
Specified by:
getLayout in interface LayoutPrototype
Throws:
PortalException
SystemException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel

getWrappedLayoutPrototype

public LayoutPrototype getWrappedLayoutPrototype()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

public LayoutPrototype getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<LayoutPrototype>

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<LayoutPrototype>

Liferay 6.2-ce-ga5