Package com.liferay.portal.model.impl
Class PluginSettingImpl
Object
com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.PluginSetting>
com.liferay.portal.model.impl.PluginSettingModelImpl
com.liferay.portal.model.impl.PluginSettingBaseImpl
com.liferay.portal.model.impl.PluginSettingImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.PluginSetting>
,com.liferay.portal.kernel.model.ClassedModel
,com.liferay.portal.kernel.model.MVCCModel
,com.liferay.portal.kernel.model.PersistedModel
,com.liferay.portal.kernel.model.PluginSetting
,com.liferay.portal.kernel.model.PluginSettingModel
,com.liferay.portal.kernel.model.ShardedModel
,Serializable
,Cloneable
,Comparable<com.liferay.portal.kernel.model.PluginSetting>
- Author:
- Brian Wing Shun Chan
- See Also:
-
Field Summary
Fields inherited from class com.liferay.portal.model.impl.PluginSettingModelImpl
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
Fields inherited from interface com.liferay.portal.kernel.model.PluginSetting
PLUGIN_SETTING_ID_ACCESSOR
-
Constructor Summary
ConstructorsConstructorDescriptionPluginSettingImpl
(com.liferay.portal.kernel.model.PluginSetting pluginSetting) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a role to the list of roles.String[]
Returns an array of required roles of the plugin.boolean
hasPermission
(long userId) Returnstrue
if the user has permission to use this pluginboolean
hasPermission
(long userId, long groupId) Returnstrue
if the user has permission to use this pluginboolean
hasRoleWithName
(String roleName) Returnstrue
if the plugin has a role with the specified name.void
Sets a string of ordered comma delimited plugin IDs.void
setRolesArray
(String[] rolesArray) Sets an array of required roles of the plugin.Methods inherited from class com.liferay.portal.model.impl.PluginSettingBaseImpl
persist
Methods inherited from class com.liferay.portal.model.impl.PluginSettingModelImpl
clone, cloneWithOriginalValues, compareTo, equals, getActive, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getColumnBitmask, getColumnBitmask, getColumnOriginalValue, getColumnValue, 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, toString
Methods inherited from class com.liferay.portal.kernel.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.PluginSettingModel
cloneWithOriginalValues, getActive, getCompanyId, getMvccVersion, getPluginId, getPluginSettingId, getPluginType, getPrimaryKey, getRoles, isActive, setActive, setCompanyId, setMvccVersion, setPluginId, setPluginSettingId, setPluginType, setPrimaryKey, toXmlString
-
Constructor Details
-
PluginSettingImpl
public PluginSettingImpl() -
PluginSettingImpl
public PluginSettingImpl(com.liferay.portal.kernel.model.PluginSetting pluginSetting)
-
-
Method Details
-
addRole
Adds a role to the list of roles. -
getRolesArray
Returns an array of required roles of the plugin.- Returns:
- an array of required roles of the plugin
-
hasPermission
public boolean hasPermission(long userId) Returnstrue
if the user has permission to use this plugin- Parameters:
userId
- the primary key of the user- Returns:
true
if the user has permission to use this plugin
-
hasPermission
public boolean hasPermission(long userId, long groupId) Returnstrue
if the user has permission to use this plugin- Parameters:
userId
- the primary key of the usergroupId
- the primary key of the group- Returns:
true
if the user has permission to use this plugin
-
hasRoleWithName
Returnstrue
if the plugin has a role with the specified name.- Parameters:
roleName
- the role name- Returns:
true
if the plugin has a role with the specified name
-
setRoles
Sets a string of ordered comma delimited plugin IDs.- Specified by:
setRoles
in interfacecom.liferay.portal.kernel.model.PluginSettingModel
- Overrides:
setRoles
in classPluginSettingModelImpl
-
setRolesArray
Sets an array of required roles of the plugin.
-