@ProviderType public interface PluginSetting extends PersistedModel, PluginSettingModel
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 |
hasPermission(long userId,
long groupId)
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.
|
persistcloneWithOriginalValues, getActive, getCompanyId, getMvccVersion, getPluginId, getPluginSettingId, getPluginType, getPrimaryKey, getRoles, isActive, setActive, setCompanyId, setMvccVersion, setPluginId, setPluginSettingId, setPluginType, setPrimaryKey, setRolesclone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNamestatic 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 hasPermission(long userId,
long groupId)
true if the user has permission to use this pluginuserId - the primary key of the usergroupId - the primary key of the grouptrue 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)