|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.PluginSettingWrapper
@ProviderType public class PluginSettingWrapper
This class is a wrapper for PluginSetting.
PluginSetting,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface com.liferay.portal.model.PluginSetting |
|---|
PLUGIN_SETTING_ID_ACCESSOR |
| 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 |
equals(Object obj)
|
boolean |
getActive()
Returns the active of this plugin setting. |
long |
getCompanyId()
Returns the company ID of this plugin setting. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
long |
getMvccVersion()
Returns the mvcc version of this plugin setting. |
String |
getPluginId()
Returns the plugin ID of this plugin setting. |
long |
getPluginSettingId()
Returns the plugin setting ID of this plugin setting. |
String |
getPluginType()
Returns the plugin type of this plugin setting. |
long |
getPrimaryKey()
Returns the primary key of this plugin setting. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
String |
getRoles()
Returns the roles of this plugin setting. |
String[] |
getRolesArray()
Returns an array of required roles of the plugin. |
PluginSetting |
getWrappedModel()
|
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()
Returns true if this plugin setting is active. |
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns true if this model's finder cache is enabled. |
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 |
resetOriginalValues()
Reset all original fields to current values. |
void |
setActive(boolean active)
Sets whether this plugin setting 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 |
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 |
setModelAttributes(Map<String,Object> attributes)
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this plugin setting. |
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 primaryKey)
Sets the primary key of this plugin setting. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setRoles(String roles)
Sets the roles of this plugin setting. |
void |
setRolesArray(String[] rolesArray)
Sets an array of required roles of the plugin. |
CacheModel<PluginSetting> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
PluginSetting |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
PluginSetting |
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 |
|---|
public PluginSettingWrapper(PluginSetting pluginSetting)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<PluginSetting>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<PluginSetting>public void addRole(String role)
addRole in interface PluginSettingpublic 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 boolean getActive()
getActive in interface PluginSettingModelpublic long getCompanyId()
getCompanyId in interface PluginSettingModelgetCompanyId in interface ShardedModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<PluginSetting>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface PluginSettingModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface PluginSettingModelpublic String getPluginId()
getPluginId in interface PluginSettingModelpublic long getPluginSettingId()
getPluginSettingId in interface PluginSettingModelpublic String getPluginType()
getPluginType in interface PluginSettingModelpublic long getPrimaryKey()
getPrimaryKey in interface PluginSettingModelpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<PluginSetting>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface PluginSettingModelpublic String getRoles()
getRoles in interface PluginSettingModelpublic String[] getRolesArray()
getRolesArray in interface PluginSettingpublic boolean hasPermission(long userId)
true if the user has permission to use this plugin
hasPermission in interface PluginSettinguserId - the primary key of the user
true if the user has permission to use this pluginpublic boolean hasRoleWithName(String roleName)
true if the plugin has a role with the specified
name.
hasRoleWithName in interface PluginSettingroleName - the role name
true if the plugin has a role with the specified
namepublic int hashCode()
hashCode in interface PluginSettingModelhashCode in class Objectpublic boolean isActive()
true if this plugin setting is active.
isActive in interface PluginSettingModeltrue if this plugin setting is active; false otherwisepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<PluginSetting>isCachedModel in interface PluginSettingModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<PluginSetting>isEscapedModel in interface PluginSettingModeltrue if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<PluginSetting>isNew in interface PluginSettingModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void persist()
PersistedModel
persist in interface PersistedModelpublic void setActive(boolean active)
setActive in interface PluginSettingModelactive - the active of this plugin settingpublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<PluginSetting>setCachedModel in interface PluginSettingModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCompanyId(long companyId)
setCompanyId in interface PluginSettingModelsetCompanyId in interface ShardedModelcompanyId - the company ID of this plugin settingpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<PluginSetting>setExpandoBridgeAttributes in interface PluginSettingModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<PluginSetting>setExpandoBridgeAttributes in interface PluginSettingModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<PluginSetting>setExpandoBridgeAttributes in interface PluginSettingModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface PluginSettingModelmvccVersion - the mvcc version of this plugin settingpublic 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 void setPluginId(String pluginId)
setPluginId in interface PluginSettingModelpluginId - the plugin ID of this plugin settingpublic void setPluginSettingId(long pluginSettingId)
setPluginSettingId in interface PluginSettingModelpluginSettingId - the plugin setting ID of this plugin settingpublic void setPluginType(String pluginType)
setPluginType in interface PluginSettingModelpluginType - the plugin type of this plugin settingpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface PluginSettingModelprimaryKey - the primary key of this plugin settingpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<PluginSetting>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface PluginSettingModelprimaryKeyObj - the primary key of this model instancepublic void setRoles(String roles)
setRoles in interface PluginSettingModelroles - the roles of this plugin settingpublic void setRolesArray(String[] rolesArray)
setRolesArray in interface PluginSettingpublic CacheModel<PluginSetting> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<PluginSetting>toCacheModel in interface PluginSettingModelpublic PluginSetting toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<PluginSetting>toEscapedModel in interface PluginSettingModelAutoEscapeBeanHandlerpublic String toString()
toString in interface PluginSettingModeltoString in class Objectpublic PluginSetting toUnescapedModel()
toUnescapedModel in interface BaseModel<PluginSetting>toUnescapedModel in interface PluginSettingModelpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<PluginSetting>toXmlString in interface PluginSettingModelpublic boolean equals(Object obj)
equals in class Objectpublic PluginSetting getWrappedModel()
getWrappedModel in interface ModelWrapper<PluginSetting>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.
isEntityCacheEnabled in interface BaseModel<PluginSetting>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.
isFinderCacheEnabled in interface BaseModel<PluginSetting>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<PluginSetting>
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||