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_MANAGERFields 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 TypeMethodDescriptionvoidAdds a role to the list of roles.String[]Returns an array of required roles of the plugin.booleanhasPermission(long userId) Returnstrueif the user has permission to use this pluginbooleanhasPermission(long userId, long groupId) Returnstrueif the user has permission to use this pluginbooleanhasRoleWithName(String roleName) Returnstrueif the plugin has a role with the specified name.voidSets a string of ordered comma delimited plugin IDs.voidsetRolesArray(String[] rolesArray) Sets an array of required roles of the plugin.Methods inherited from class com.liferay.portal.model.impl.PluginSettingBaseImpl
persistMethods 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, toStringMethods inherited from class com.liferay.portal.kernel.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModelMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, toUnescapedModelMethods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassNameMethods inherited from interface java.lang.Comparable
compareToMethods 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) Returnstrueif the user has permission to use this plugin- Parameters:
userId- the primary key of the user- Returns:
trueif the user has permission to use this plugin
-
hasPermission
public boolean hasPermission(long userId, long groupId) Returnstrueif the user has permission to use this plugin- Parameters:
userId- the primary key of the usergroupId- the primary key of the group- Returns:
trueif the user has permission to use this plugin
-
hasRoleWithName
Returnstrueif the plugin has a role with the specified name.- Parameters:
roleName- the role name- Returns:
trueif the plugin has a role with the specified name
-
setRoles
Sets a string of ordered comma delimited plugin IDs.- Specified by:
setRolesin interfacecom.liferay.portal.kernel.model.PluginSettingModel- Overrides:
setRolesin classPluginSettingModelImpl
-
setRolesArray
Sets an array of required roles of the plugin.
-