|
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.PluginSettingWrapper
public class PluginSettingWrapper
This class is a wrapper for PluginSetting
.
PluginSetting
,
Serialized FormConstructor 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 PluginSettingModel
public void setPrimaryKey(long pk)
PluginSettingModel
setPrimaryKey
in interface PluginSettingModel
pk
- the primary key of this plugin settingpublic long getPluginSettingId()
PluginSettingModel
getPluginSettingId
in interface PluginSettingModel
public void setPluginSettingId(long pluginSettingId)
PluginSettingModel
setPluginSettingId
in interface PluginSettingModel
pluginSettingId
- the plugin setting id of this plugin settingpublic long getCompanyId()
PluginSettingModel
getCompanyId
in interface PluginSettingModel
public void setCompanyId(long companyId)
PluginSettingModel
setCompanyId
in interface PluginSettingModel
companyId
- the company id of this plugin settingpublic String getPluginId()
PluginSettingModel
getPluginId
in interface PluginSettingModel
public void setPluginId(String pluginId)
PluginSettingModel
setPluginId
in interface PluginSettingModel
pluginId
- the plugin id of this plugin settingpublic String getPluginType()
PluginSettingModel
getPluginType
in interface PluginSettingModel
public void setPluginType(String pluginType)
PluginSettingModel
setPluginType
in interface PluginSettingModel
pluginType
- the plugin type of this plugin settingpublic String getRoles()
PluginSettingModel
getRoles
in interface PluginSettingModel
public void setRoles(String roles)
PluginSetting
setRoles
in interface PluginSetting
setRoles
in interface PluginSettingModel
roles
- the roles of this plugin settingpublic boolean getActive()
PluginSettingModel
getActive
in interface PluginSettingModel
public boolean isActive()
PluginSettingModel
isActive
in interface PluginSettingModel
public void setActive(boolean active)
PluginSettingModel
setActive
in interface PluginSettingModel
active
- the active of this plugin settingpublic PluginSetting toEscapedModel()
PluginSettingModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface PluginSettingModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<PluginSetting>
isNew
in interface PluginSettingModel
true
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 PluginSettingModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<PluginSetting>
isCachedModel
in interface PluginSettingModel
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<PluginSetting>
setCachedModel
in interface PluginSettingModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<PluginSetting>
isEscapedModel
in interface PluginSettingModel
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<PluginSetting>
setEscapedModel
in interface PluginSettingModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<PluginSetting>
getPrimaryKeyObj
in interface PluginSettingModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<PluginSetting>
getExpandoBridge
in interface PluginSettingModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<PluginSetting>
setExpandoBridgeAttributes
in interface PluginSettingModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<PluginSetting>
clone
in interface PluginSettingModel
clone
in class Object
public int compareTo(PluginSetting pluginSetting)
compareTo
in interface PluginSettingModel
compareTo
in interface Comparable<PluginSetting>
public int hashCode()
hashCode
in interface PluginSettingModel
hashCode
in class Object
public String toString()
toString
in interface PluginSettingModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<PluginSetting>
toXmlString
in interface PluginSettingModel
public void addRole(String role)
PluginSetting
addRole
in interface PluginSetting
public String[] getRolesArray()
PluginSetting
getRolesArray
in interface PluginSetting
public void setRolesArray(String[] rolesArray)
PluginSetting
setRolesArray
in interface PluginSetting
public boolean hasRoleWithName(String roleName)
PluginSetting
true
if the plugin has a role with the specified
name.
hasRoleWithName
in interface PluginSetting
true
if the plugin has a role with the specified
namepublic boolean hasPermission(long userId)
PluginSetting
true
if the user has permission to use this plugin
hasPermission
in interface PluginSetting
true
if the user has permission to use this pluginpublic PluginSetting getWrappedPluginSetting()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |