|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.PortletPreferencesWrapper
public class PortletPreferencesWrapper
This class is a wrapper for PortletPreferences
.
PortletPreferences
,
Serialized FormConstructor Summary | |
---|---|
PortletPreferencesWrapper(PortletPreferences portletPreferences)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(PortletPreferences portletPreferences)
|
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
long |
getOwnerId()
Gets the owner id of this portlet preferences. |
int |
getOwnerType()
Gets the owner type of this portlet preferences. |
long |
getPlid()
Gets the plid of this portlet preferences. |
String |
getPortletId()
Gets the portlet id of this portlet preferences. |
long |
getPortletPreferencesId()
Gets the portlet preferences id of this portlet preferences. |
String |
getPreferences()
Gets the preferences of this portlet preferences. |
long |
getPrimaryKey()
Gets the primary key of this portlet preferences. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
PortletPreferences |
getWrappedPortletPreferences()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setOwnerId(long ownerId)
Sets the owner id of this portlet preferences. |
void |
setOwnerType(int ownerType)
Sets the owner type of this portlet preferences. |
void |
setPlid(long plid)
Sets the plid of this portlet preferences. |
void |
setPortletId(String portletId)
Sets the portlet id of this portlet preferences. |
void |
setPortletPreferencesId(long portletPreferencesId)
Sets the portlet preferences id of this portlet preferences. |
void |
setPreferences(String preferences)
Sets the preferences of this portlet preferences. |
void |
setPrimaryKey(long pk)
Sets the primary key of this portlet preferences |
PortletPreferences |
toEscapedModel()
Gets a copy of this portlet preferences as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PortletPreferencesWrapper(PortletPreferences portletPreferences)
Method Detail |
---|
public long getPrimaryKey()
PortletPreferencesModel
getPrimaryKey
in interface PortletPreferencesModel
public void setPrimaryKey(long pk)
PortletPreferencesModel
setPrimaryKey
in interface PortletPreferencesModel
pk
- the primary key of this portlet preferencespublic long getPortletPreferencesId()
PortletPreferencesModel
getPortletPreferencesId
in interface PortletPreferencesModel
public void setPortletPreferencesId(long portletPreferencesId)
PortletPreferencesModel
setPortletPreferencesId
in interface PortletPreferencesModel
portletPreferencesId
- the portlet preferences id of this portlet preferencespublic long getOwnerId()
PortletPreferencesModel
getOwnerId
in interface PortletPreferencesModel
public void setOwnerId(long ownerId)
PortletPreferencesModel
setOwnerId
in interface PortletPreferencesModel
ownerId
- the owner id of this portlet preferencespublic int getOwnerType()
PortletPreferencesModel
getOwnerType
in interface PortletPreferencesModel
public void setOwnerType(int ownerType)
PortletPreferencesModel
setOwnerType
in interface PortletPreferencesModel
ownerType
- the owner type of this portlet preferencespublic long getPlid()
PortletPreferencesModel
getPlid
in interface PortletPreferencesModel
public void setPlid(long plid)
PortletPreferencesModel
setPlid
in interface PortletPreferencesModel
plid
- the plid of this portlet preferencespublic String getPortletId()
PortletPreferencesModel
getPortletId
in interface PortletPreferencesModel
public void setPortletId(String portletId)
PortletPreferencesModel
setPortletId
in interface PortletPreferencesModel
portletId
- the portlet id of this portlet preferencespublic String getPreferences()
PortletPreferencesModel
getPreferences
in interface PortletPreferencesModel
public void setPreferences(String preferences)
PortletPreferencesModel
setPreferences
in interface PortletPreferencesModel
preferences
- the preferences of this portlet preferencespublic PortletPreferences toEscapedModel()
PortletPreferencesModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface PortletPreferencesModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<PortletPreferences>
isNew
in interface PortletPreferencesModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<PortletPreferences>
setNew
in interface PortletPreferencesModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<PortletPreferences>
isCachedModel
in interface PortletPreferencesModel
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<PortletPreferences>
setCachedModel
in interface PortletPreferencesModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<PortletPreferences>
isEscapedModel
in interface PortletPreferencesModel
true
if this model instance is escaped;
false
otherwiseBaseModel.setEscapedModel(boolean)
public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel
method. For example,
UserModel.toEscapedModel()
.
setEscapedModel
in interface BaseModel<PortletPreferences>
setEscapedModel
in interface PortletPreferencesModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<PortletPreferences>
getPrimaryKeyObj
in interface PortletPreferencesModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<PortletPreferences>
getExpandoBridge
in interface PortletPreferencesModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<PortletPreferences>
setExpandoBridgeAttributes
in interface PortletPreferencesModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<PortletPreferences>
clone
in interface PortletPreferencesModel
clone
in class Object
public int compareTo(PortletPreferences portletPreferences)
compareTo
in interface PortletPreferencesModel
compareTo
in interface Comparable<PortletPreferences>
public int hashCode()
hashCode
in interface PortletPreferencesModel
hashCode
in class Object
public String toString()
toString
in interface PortletPreferencesModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<PortletPreferences>
toXmlString
in interface PortletPreferencesModel
public PortletPreferences getWrappedPortletPreferences()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |