@ProviderType public interface PluginSetting extends PluginSettingModel, PersistedModel
PluginSettingModel
Modifier and Type | Field and Description |
---|---|
static Accessor<PluginSetting,Long> |
PLUGIN_SETTING_ID_ACCESSOR |
Modifier and Type | Method and Description |
---|---|
void |
addRole(String role)
Adds a role to the list of roles.
|
String[] |
getRolesArray()
Returns an array of required roles of the plugin.
|
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. |
void |
setRolesArray(String[] rolesArray)
Sets an array of required roles of the plugin.
|
getActive, getCompanyId, getMvccVersion, getPluginId, getPluginSettingId, getPluginType, getPrimaryKey, getRoles, isActive, setActive, setCompanyId, setMvccVersion, setPluginId, setPluginSettingId, setPluginType, setPrimaryKey, setRoles
clone, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
getModelClass, getModelClassName
persist
static final Accessor<PluginSetting,Long> PLUGIN_SETTING_ID_ACCESSOR
void addRole(String role)
String[] getRolesArray()
boolean hasPermission(long userId)
true
if the user has permission to use this pluginuserId
- the primary key of the usertrue
if the user has permission to use this pluginboolean hasRoleWithName(String roleName)
true
if the plugin has a role with the specified
name.roleName
- the role nametrue
if the plugin has a role with the specified
namevoid setRolesArray(String[] rolesArray)