@ProviderType public interface PluginSetting extends PersistedModel, PluginSettingModel
PluginSettingModel
Modifier and Type | Field and Description |
---|---|
static Accessor<PluginSetting,Long> |
PLUGIN_SETTING_ID_ACCESSOR
NOTE FOR DEVELOPERS:
Never modify this interface directly.
|
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.
|
persist
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
static final Accessor<PluginSetting,Long> PLUGIN_SETTING_ID_ACCESSOR
com.liferay.portal.model.impl.PluginSettingImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.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)