|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.PluginSettingWrapper
public class PluginSettingWrapper
This class is a wrapper for PluginSetting.
PluginSetting,
Serialized Form| Constructor Summary | |
|---|---|
PluginSettingWrapper(PluginSetting pluginSetting)
|
|
| Method Summary | |
|---|---|
void |
addRole(String role)
Adds a role to the list of roles. |
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(PluginSetting pluginSetting)
|
boolean |
getActive()
Gets the active of this plugin setting. |
long |
getCompanyId()
Gets the company id of this plugin setting. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getPluginId()
Gets the plugin id of this plugin setting. |
long |
getPluginSettingId()
Gets the plugin setting id of this plugin setting. |
String |
getPluginType()
Gets the plugin type of this plugin setting. |
long |
getPrimaryKey()
Gets the primary key of this plugin setting. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
String |
getRoles()
Gets the roles of this plugin setting. |
String[] |
getRolesArray()
Gets an array of required roles of the plugin. |
PluginSetting |
getWrappedPluginSetting()
|
int |
hashCode()
|
boolean |
hasPermission(long userId)
Returns true if the user has permission to use this plugin |
boolean |
hasRoleWithName(String roleName)
Returns true if the plugin has a role with the specified
name. |
boolean |
isActive()
Determines whether this plugin setting is active. |
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 |
setActive(boolean active)
Sets whether this {$entity.humanName} 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 plugin setting. |
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 |
setPluginId(String pluginId)
Sets the plugin id of this plugin setting. |
void |
setPluginSettingId(long pluginSettingId)
Sets the plugin setting id of this plugin setting. |
void |
setPluginType(String pluginType)
Sets the plugin type of this plugin setting. |
void |
setPrimaryKey(long pk)
Sets the primary key of this plugin setting |
void |
setRoles(String roles)
Sets a string of ordered comma delimited plugin ids. |
void |
setRolesArray(String[] rolesArray)
Sets an array of required roles of the plugin. |
PluginSetting |
toEscapedModel()
Gets a copy of this plugin setting 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 PluginSettingWrapper(PluginSetting pluginSetting)
| Method Detail |
|---|
public long getPrimaryKey()
PluginSettingModel
getPrimaryKey in interface PluginSettingModelpublic void setPrimaryKey(long pk)
PluginSettingModel
setPrimaryKey in interface PluginSettingModelpk - the primary key of this plugin settingpublic long getPluginSettingId()
PluginSettingModel
getPluginSettingId in interface PluginSettingModelpublic void setPluginSettingId(long pluginSettingId)
PluginSettingModel
setPluginSettingId in interface PluginSettingModelpluginSettingId - the plugin setting id of this plugin settingpublic long getCompanyId()
PluginSettingModel
getCompanyId in interface PluginSettingModelpublic void setCompanyId(long companyId)
PluginSettingModel
setCompanyId in interface PluginSettingModelcompanyId - the company id of this plugin settingpublic String getPluginId()
PluginSettingModel
getPluginId in interface PluginSettingModelpublic void setPluginId(String pluginId)
PluginSettingModel
setPluginId in interface PluginSettingModelpluginId - the plugin id of this plugin settingpublic String getPluginType()
PluginSettingModel
getPluginType in interface PluginSettingModelpublic void setPluginType(String pluginType)
PluginSettingModel
setPluginType in interface PluginSettingModelpluginType - the plugin type of this plugin settingpublic String getRoles()
PluginSettingModel
getRoles in interface PluginSettingModelpublic void setRoles(String roles)
PluginSetting
setRoles in interface PluginSettingsetRoles in interface PluginSettingModelroles - the roles of this plugin settingpublic boolean getActive()
PluginSettingModel
getActive in interface PluginSettingModelpublic boolean isActive()
PluginSettingModel
isActive in interface PluginSettingModelpublic void setActive(boolean active)
PluginSettingModel
setActive in interface PluginSettingModelactive - the active of this plugin settingpublic PluginSetting toEscapedModel()
PluginSettingModelAutoEscapeBeanHandler.
toEscapedModel in interface PluginSettingModelAutoEscapeBeanHandlerpublic boolean isNew()
BaseModel
isNew in interface BaseModel<PluginSetting>isNew in interface PluginSettingModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<PluginSetting>setNew in interface PluginSettingModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel in interface BaseModel<PluginSetting>isCachedModel in interface PluginSettingModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<PluginSetting>setCachedModel in interface PluginSettingModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModel
isEscapedModel in interface BaseModel<PluginSetting>isEscapedModel in interface PluginSettingModeltrue 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<PluginSetting>setEscapedModel in interface PluginSettingModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<PluginSetting>getPrimaryKeyObj in interface PluginSettingModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<PluginSetting>getExpandoBridge in interface PluginSettingModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<PluginSetting>setExpandoBridgeAttributes in interface PluginSettingModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<PluginSetting>clone in interface PluginSettingModelclone in class Objectpublic int compareTo(PluginSetting pluginSetting)
compareTo in interface PluginSettingModelcompareTo in interface Comparable<PluginSetting>public int hashCode()
hashCode in interface PluginSettingModelhashCode in class Objectpublic String toString()
toString in interface PluginSettingModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<PluginSetting>toXmlString in interface PluginSettingModelpublic void addRole(String role)
PluginSetting
addRole in interface PluginSettingpublic String[] getRolesArray()
PluginSetting
getRolesArray in interface PluginSettingpublic void setRolesArray(String[] rolesArray)
PluginSetting
setRolesArray in interface PluginSettingpublic boolean hasRoleWithName(String roleName)
PluginSettingtrue if the plugin has a role with the specified
name.
hasRoleWithName in interface PluginSettingtrue if the plugin has a role with the specified
namepublic boolean hasPermission(long userId)
PluginSettingtrue if the user has permission to use this plugin
hasPermission in interface PluginSettingtrue if the user has permission to use this pluginpublic PluginSetting getWrappedPluginSetting()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||