@ProviderType public interface PortletModel extends BaseModel<Portlet>, MVCCModel, ShardedModel
This interface and its corresponding implementation com.liferay.portal.model.impl.PortletModelImpl
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.portal.model.impl.PortletImpl
.
Portlet
Modifier and Type | Method and Description |
---|---|
boolean |
getActive()
Returns the active of this portlet.
|
long |
getCompanyId()
Returns the company ID of this portlet.
|
long |
getId()
Returns the ID of this portlet.
|
long |
getMvccVersion()
Returns the mvcc version of this portlet.
|
java.lang.String |
getPortletId()
Returns the portlet ID of this portlet.
|
long |
getPrimaryKey()
Returns the primary key of this portlet.
|
java.lang.String |
getRoles()
Returns the roles of this portlet.
|
boolean |
isActive()
Returns
true if this portlet is active. |
void |
setActive(boolean active)
Sets whether this portlet is active.
|
void |
setCompanyId(long companyId)
Sets the company ID of this portlet.
|
void |
setId(long id)
Sets the ID of this portlet.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this portlet.
|
void |
setPortletId(java.lang.String portletId)
Sets the portlet ID of this portlet.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this portlet.
|
void |
setRoles(java.lang.String roles)
Sets the roles of this portlet.
|
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
getModelClass, getModelClassName
long getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey
- the primary key of this portletlong getMvccVersion()
getMvccVersion
in interface MVCCModel
void setMvccVersion(long mvccVersion)
setMvccVersion
in interface MVCCModel
mvccVersion
- the mvcc version of this portletlong getId()
void setId(long id)
id
- the ID of this portletlong getCompanyId()
getCompanyId
in interface ShardedModel
void setCompanyId(long companyId)
setCompanyId
in interface ShardedModel
companyId
- the company ID of this portlet@AutoEscape java.lang.String getPortletId()
void setPortletId(java.lang.String portletId)
portletId
- the portlet ID of this portlet@AutoEscape java.lang.String getRoles()
void setRoles(java.lang.String roles)
roles
- the roles of this portletboolean getActive()
boolean isActive()
true
if this portlet is active.true
if this portlet is active; false
otherwisevoid setActive(boolean active)
active
- the active of this portlet