public class PluginSettingImpl extends PluginSettingBaseImpl
COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, DATA_SOURCE, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, LOCK_EXPIRATION_TIME, ORDER_BY_JPQL, ORDER_BY_SQL, PLUGINID_COLUMN_BITMASK, PLUGINSETTINGID_COLUMN_BITMASK, PLUGINTYPE_COLUMN_BITMASK, SESSION_FACTORY, TABLE_COLUMNS, TABLE_COLUMNS_MAP, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER| Constructor and Description |
|---|
PluginSettingImpl() |
PluginSettingImpl(com.liferay.portal.kernel.model.PluginSetting pluginSetting) |
| 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 |
setRoles(String roles)
Sets a string of ordered comma delimited plugin IDs.
|
void |
setRolesArray(String[] rolesArray)
Sets an array of required roles of the plugin.
|
persistclone, compareTo, equals, getActive, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getColumnBitmask, getCompanyId, getExpandoBridge, getModelAttributes, getModelClass, getModelClassName, getMvccVersion, getOriginalCompanyId, getOriginalPluginId, getOriginalPluginType, getPluginId, getPluginSettingId, getPluginType, getPrimaryKey, getPrimaryKeyObj, getRoles, hashCode, isActive, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setActive, setCompanyId, setExpandoBridgeAttributes, setModelAttributes, setMvccVersion, setPluginId, setPluginSettingId, setPluginType, setPrimaryKey, setPrimaryKeyObj, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlStringgetLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModelgetActive, getCompanyId, getMvccVersion, getPluginId, getPluginSettingId, getPluginType, getPrimaryKey, getRoles, isActive, setActive, setCompanyId, setMvccVersion, setPluginId, setPluginSettingId, setPluginType, setPrimaryKeyclone, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringpublic PluginSettingImpl()
public PluginSettingImpl(com.liferay.portal.kernel.model.PluginSetting pluginSetting)
public void addRole(String role)
public String[] getRolesArray()
public 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 pluginpublic boolean 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
namepublic void setRoles(String roles)
setRoles in interface com.liferay.portal.kernel.model.PluginSettingModelsetRoles in class PluginSettingModelImplpublic void setRolesArray(String[] rolesArray)