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.
|
persist
clone, compareTo, equals, getActive, 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, toXmlString
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
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, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
public 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.PluginSettingModel
setRoles
in class PluginSettingModelImpl
public void setRolesArray(String[] rolesArray)