Package com.liferay.portal.kernel.model
Class PluginSettingWrapper
Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<PluginSetting>
com.liferay.portal.kernel.model.PluginSettingWrapper
- All Implemented Interfaces:
BaseModel<PluginSetting>,ClassedModel,ModelWrapper<PluginSetting>,MVCCModel,PersistedModel,PluginSetting,PluginSettingModel,ShardedModel,Serializable,Cloneable,Comparable<PluginSetting>
public class PluginSettingWrapper
extends BaseModelWrapper<PluginSetting>
implements ModelWrapper<PluginSetting>, PluginSetting
This class is a wrapper for PluginSetting.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
modelFields inherited from interface com.liferay.portal.kernel.model.PluginSetting
PLUGIN_SETTING_ID_ACCESSOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a role to the list of roles.booleanReturns the active of this plugin setting.longReturns the company ID of this plugin setting.longReturns the mvcc version of this plugin setting.Returns the plugin ID of this plugin setting.longReturns the plugin setting ID of this plugin setting.Returns the plugin type of this plugin setting.longReturns the primary key of this plugin setting.getRoles()Returns the roles of this plugin setting.String[]Returns an array of required roles of the plugin.booleanhasPermission(long userId) Returnstrueif the user has permission to use this pluginbooleanhasPermission(long userId, long groupId) Returnstrueif the user has permission to use this pluginbooleanhasRoleWithName(String roleName) Returnstrueif the plugin has a role with the specified name.booleanisActive()Returnstrueif this plugin setting is active.voidpersist()Updates this model instance in the database or adds it if it does not yet exist.voidsetActive(boolean active) Sets whether this plugin setting is active.voidsetCompanyId(long companyId) Sets the company ID of this plugin setting.voidsetModelAttributes(Map<String, Object> attributes) voidsetMvccVersion(long mvccVersion) Sets the mvcc version of this plugin setting.voidsetPluginId(String pluginId) Sets the plugin ID of this plugin setting.voidsetPluginSettingId(long pluginSettingId) Sets the plugin setting ID of this plugin setting.voidsetPluginType(String pluginType) Sets the plugin type of this plugin setting.voidsetPrimaryKey(long primaryKey) Sets the primary key of this plugin setting.voidSets the roles of this plugin setting.voidsetRolesArray(String[] rolesArray) Sets an array of required roles of the plugin.protected PluginSettingWrapperwrap(PluginSetting pluginSetting) Methods inherited from class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModelMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModelMethods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassNameMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.liferay.portal.kernel.model.ModelWrapper
getWrappedModel
-
Constructor Details
-
PluginSettingWrapper
-
-
Method Details
-
getModelAttributes
- Specified by:
getModelAttributesin interfaceBaseModel<PluginSetting>
-
setModelAttributes
- Specified by:
setModelAttributesin interfaceBaseModel<PluginSetting>
-
addRole
Adds a role to the list of roles.- Specified by:
addRolein interfacePluginSetting
-
cloneWithOriginalValues
- Specified by:
cloneWithOriginalValuesin interfaceBaseModel<PluginSetting>- Specified by:
cloneWithOriginalValuesin interfacePluginSettingModel
-
getActive
public boolean getActive()Returns the active of this plugin setting.- Specified by:
getActivein interfacePluginSettingModel- Returns:
- the active of this plugin setting
-
getCompanyId
public long getCompanyId()Returns the company ID of this plugin setting.- Specified by:
getCompanyIdin interfacePluginSettingModel- Specified by:
getCompanyIdin interfaceShardedModel- Returns:
- the company ID of this plugin setting
-
getMvccVersion
public long getMvccVersion()Returns the mvcc version of this plugin setting.- Specified by:
getMvccVersionin interfaceMVCCModel- Specified by:
getMvccVersionin interfacePluginSettingModel- Returns:
- the mvcc version of this plugin setting
-
getPluginId
Returns the plugin ID of this plugin setting.- Specified by:
getPluginIdin interfacePluginSettingModel- Returns:
- the plugin ID of this plugin setting
-
getPluginSettingId
public long getPluginSettingId()Returns the plugin setting ID of this plugin setting.- Specified by:
getPluginSettingIdin interfacePluginSettingModel- Returns:
- the plugin setting ID of this plugin setting
-
getPluginType
Returns the plugin type of this plugin setting.- Specified by:
getPluginTypein interfacePluginSettingModel- Returns:
- the plugin type of this plugin setting
-
getPrimaryKey
public long getPrimaryKey()Returns the primary key of this plugin setting.- Specified by:
getPrimaryKeyin interfacePluginSettingModel- Returns:
- the primary key of this plugin setting
-
getRoles
Returns the roles of this plugin setting.- Specified by:
getRolesin interfacePluginSettingModel- Returns:
- the roles of this plugin setting
-
getRolesArray
Returns an array of required roles of the plugin.- Specified by:
getRolesArrayin interfacePluginSetting- Returns:
- an array of required roles of the plugin
-
hasPermission
public boolean hasPermission(long userId) Returnstrueif the user has permission to use this plugin- Specified by:
hasPermissionin interfacePluginSetting- Parameters:
userId- the primary key of the user- Returns:
trueif the user has permission to use this plugin
-
hasPermission
public boolean hasPermission(long userId, long groupId) Returnstrueif the user has permission to use this plugin- Specified by:
hasPermissionin interfacePluginSetting- Parameters:
userId- the primary key of the usergroupId- the primary key of the group- Returns:
trueif the user has permission to use this plugin
-
hasRoleWithName
Returnstrueif the plugin has a role with the specified name.- Specified by:
hasRoleWithNamein interfacePluginSetting- Parameters:
roleName- the role name- Returns:
trueif the plugin has a role with the specified name
-
isActive
public boolean isActive()Returnstrueif this plugin setting is active.- Specified by:
isActivein interfacePluginSettingModel- Returns:
trueif this plugin setting is active;falseotherwise
-
persist
public void persist()Description copied from interface:PersistedModelUpdates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.- Specified by:
persistin interfacePersistedModel
-
setActive
public void setActive(boolean active) Sets whether this plugin setting is active.- Specified by:
setActivein interfacePluginSettingModel- Parameters:
active- the active of this plugin setting
-
setCompanyId
public void setCompanyId(long companyId) Sets the company ID of this plugin setting.- Specified by:
setCompanyIdin interfacePluginSettingModel- Specified by:
setCompanyIdin interfaceShardedModel- Parameters:
companyId- the company ID of this plugin setting
-
setMvccVersion
public void setMvccVersion(long mvccVersion) Sets the mvcc version of this plugin setting.- Specified by:
setMvccVersionin interfaceMVCCModel- Specified by:
setMvccVersionin interfacePluginSettingModel- Parameters:
mvccVersion- the mvcc version of this plugin setting
-
setPluginId
Sets the plugin ID of this plugin setting.- Specified by:
setPluginIdin interfacePluginSettingModel- Parameters:
pluginId- the plugin ID of this plugin setting
-
setPluginSettingId
public void setPluginSettingId(long pluginSettingId) Sets the plugin setting ID of this plugin setting.- Specified by:
setPluginSettingIdin interfacePluginSettingModel- Parameters:
pluginSettingId- the plugin setting ID of this plugin setting
-
setPluginType
Sets the plugin type of this plugin setting.- Specified by:
setPluginTypein interfacePluginSettingModel- Parameters:
pluginType- the plugin type of this plugin setting
-
setPrimaryKey
public void setPrimaryKey(long primaryKey) Sets the primary key of this plugin setting.- Specified by:
setPrimaryKeyin interfacePluginSettingModel- Parameters:
primaryKey- the primary key of this plugin setting
-
setRoles
Sets the roles of this plugin setting.- Specified by:
setRolesin interfacePluginSettingModel- Parameters:
roles- the roles of this plugin setting
-
setRolesArray
Sets an array of required roles of the plugin.- Specified by:
setRolesArrayin interfacePluginSetting
-
toXmlString
- Specified by:
toXmlStringin interfacePluginSettingModel
-
wrap
- Specified by:
wrapin classBaseModelWrapper<PluginSetting>
-