@ProviderType public interface PluginSetting extends PluginSettingModel, PersistedModel
PluginSettingModel
,
PluginSettingImpl
,
PluginSettingModelImpl
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.
|
clone, compareTo, getActive, getCompanyId, getExpandoBridge, getMvccVersion, getPluginId, getPluginSettingId, getPluginType, getPrimaryKey, getPrimaryKeyObj, getRoles, hashCode, isActive, isCachedModel, isEscapedModel, isNew, setActive, setCachedModel, setCompanyId, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setMvccVersion, setNew, setPluginId, setPluginSettingId, setPluginType, setPrimaryKey, setPrimaryKeyObj, setRoles, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
getModelAttributes, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setModelAttributes
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)