Package com.liferay.portal.kernel.model
Interface PluginSetting
- All Superinterfaces:
BaseModel<PluginSetting>
,ClassedModel
,Cloneable
,Comparable<PluginSetting>
,MVCCModel
,PersistedModel
,PluginSettingModel
,Serializable
,ShardedModel
- All Known Implementing Classes:
PluginSettingWrapper
The extended model interface for the PluginSetting service. Represents a row in the "PluginSetting" database table, with each column mapped to a property of this class.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a role to the list of roles.String[]
Returns an array of required roles of the plugin.boolean
hasPermission
(long userId) Returnstrue
if the user has permission to use this pluginboolean
hasPermission
(long userId, long groupId) Returnstrue
if the user has permission to use this pluginboolean
hasRoleWithName
(String roleName) Returnstrue
if the plugin has a role with the specified name.void
setRolesArray
(String[] rolesArray) Sets an array of required roles of the plugin.Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.PersistedModel
persist
Methods inherited from interface com.liferay.portal.kernel.model.PluginSettingModel
cloneWithOriginalValues, getActive, getCompanyId, getMvccVersion, getPluginId, getPluginSettingId, getPluginType, getPrimaryKey, getRoles, isActive, setActive, setCompanyId, setMvccVersion, setPluginId, setPluginSettingId, setPluginType, setPrimaryKey, setRoles, toXmlString
-
Field Details
-
PLUGIN_SETTING_ID_ACCESSOR
-
-
Method Details
-
addRole
Adds a role to the list of roles. -
getRolesArray
String[] getRolesArray()Returns an array of required roles of the plugin.- Returns:
- an array of required roles of the plugin
-
hasPermission
boolean hasPermission(long userId) Returnstrue
if the user has permission to use this plugin- Parameters:
userId
- the primary key of the user- Returns:
true
if the user has permission to use this plugin
-
hasPermission
boolean hasPermission(long userId, long groupId) Returnstrue
if the user has permission to use this plugin- Parameters:
userId
- the primary key of the usergroupId
- the primary key of the group- Returns:
true
if the user has permission to use this plugin
-
hasRoleWithName
Returnstrue
if the plugin has a role with the specified name.- Parameters:
roleName
- the role name- Returns:
true
if the plugin has a role with the specified name
-
setRolesArray
Sets an array of required roles of the plugin.
-