@ProviderType public class PluginSettingWrapper extends java.lang.Object implements PluginSetting, ModelWrapper<PluginSetting>
This class is a wrapper for PluginSetting.
PluginSetting,
Serialized Form| Constructor and Description |
|---|
PluginSettingWrapper(PluginSetting pluginSetting) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(java.lang.String role)
Adds a role to the list of roles.
|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(PluginSetting pluginSetting) |
boolean |
equals(java.lang.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.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.lang.String |
getPluginId()
Returns the plugin ID of this plugin setting.
|
long |
getPluginSettingId()
Returns the plugin setting ID of this plugin setting.
|
java.lang.String |
getPluginType()
Returns the plugin type of this plugin setting.
|
long |
getPrimaryKey()
Returns the primary key of this plugin setting.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
java.lang.String |
getRoles()
Returns the roles of this plugin setting.
|
java.lang.String[] |
getRolesArray()
Returns an array of required roles of the plugin.
|
PluginSetting |
getWrappedModel() |
PluginSetting |
getWrappedPluginSetting()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
int |
hashCode() |
boolean |
hasPermission(long userId)
Returns
true if the user has permission to use this plugin |
boolean |
hasRoleWithName(java.lang.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 |
isEscapedModel()
Returns
true if this model instance is escaped. |
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(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPluginId(java.lang.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(java.lang.String pluginType)
Sets the plugin type of this plugin setting.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this plugin setting.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setRoles(java.lang.String roles)
Sets the roles of this plugin setting.
|
void |
setRolesArray(java.lang.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. |
java.lang.String |
toString() |
PluginSetting |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public PluginSettingWrapper(PluginSetting pluginSetting)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<PluginSetting>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<PluginSetting>public long getPrimaryKey()
getPrimaryKey in interface PluginSettingModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface PluginSettingModelprimaryKey - the primary key of this plugin settingpublic long getPluginSettingId()
getPluginSettingId in interface PluginSettingModelpublic void setPluginSettingId(long pluginSettingId)
setPluginSettingId in interface PluginSettingModelpluginSettingId - the plugin setting ID of this plugin settingpublic long getCompanyId()
getCompanyId in interface PluginSettingModelpublic void setCompanyId(long companyId)
setCompanyId in interface PluginSettingModelcompanyId - the company ID of this plugin settingpublic java.lang.String getPluginId()
getPluginId in interface PluginSettingModelpublic void setPluginId(java.lang.String pluginId)
setPluginId in interface PluginSettingModelpluginId - the plugin ID of this plugin settingpublic java.lang.String getPluginType()
getPluginType in interface PluginSettingModelpublic void setPluginType(java.lang.String pluginType)
setPluginType in interface PluginSettingModelpluginType - the plugin type of this plugin settingpublic java.lang.String getRoles()
getRoles in interface PluginSettingModelpublic void setRoles(java.lang.String roles)
setRoles in interface PluginSettingModelroles - the roles of this plugin settingpublic boolean getActive()
getActive in interface PluginSettingModelpublic boolean isActive()
true if this plugin setting is active.isActive in interface PluginSettingModeltrue if this plugin setting is active; false otherwisepublic void setActive(boolean active)
setActive in interface PluginSettingModelactive - the active of this plugin settingpublic 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 setNew(boolean n)
BaseModelsetNew in interface BaseModel<PluginSetting>setNew in interface PluginSettingModeln - whether this model instance does not yet exist in the databasepublic 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 void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<PluginSetting>setCachedModel in interface PluginSettingModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic 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 java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<PluginSetting>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface PluginSettingModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<PluginSetting>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface PluginSettingModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<PluginSetting>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface PluginSettingModelpublic 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)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<PluginSetting>setExpandoBridgeAttributes in interface PluginSettingModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.Object clone()
BaseModelclone in interface BaseModel<PluginSetting>clone in interface PluginSettingModelclone in class java.lang.Objectpublic int compareTo(PluginSetting pluginSetting)
compareTo in interface PluginSettingModelcompareTo in interface java.lang.Comparable<PluginSetting>public int hashCode()
hashCode in interface PluginSettingModelhashCode in class java.lang.Objectpublic CacheModel<PluginSetting> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<PluginSetting>toCacheModel in interface PluginSettingModelpublic PluginSetting toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<PluginSetting>toEscapedModel in interface PluginSettingModelAutoEscapeBeanHandlerpublic PluginSetting toUnescapedModel()
toUnescapedModel in interface BaseModel<PluginSetting>toUnescapedModel in interface PluginSettingModelpublic java.lang.String toString()
toString in interface PluginSettingModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<PluginSetting>toXmlString in interface PluginSettingModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic void addRole(java.lang.String role)
addRole in interface PluginSettingpublic java.lang.String[] getRolesArray()
getRolesArray in interface PluginSettingpublic boolean hasPermission(long userId)
true if the user has permission to use this pluginhasPermission in interface PluginSettinguserId - the primary key of the usertrue if the user has permission to use this pluginpublic boolean hasRoleWithName(java.lang.String roleName)
true if the plugin has a role with the specified
name.hasRoleWithName in interface PluginSettingroleName - the role nametrue if the plugin has a role with the specified
namepublic void setRolesArray(java.lang.String[] rolesArray)
setRolesArray in interface PluginSettingpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic PluginSetting getWrappedPluginSetting()
getWrappedModel()public PluginSetting getWrappedModel()
getWrappedModel in interface ModelWrapper<PluginSetting>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<PluginSetting>