Package com.liferay.portal.kernel.model
Interface PluginSetting
- All Superinterfaces:
BaseModel<PluginSetting>,ClassedModel,Cloneable,Comparable<PluginSetting>,MVCCModel,PersistedModel,PluginSettingModel,Serializable,ShardedModel
- All Known Implementing Classes:
PluginSettingWrapper
The extended model interface for the PluginSetting service. Represents a row in the "PluginSetting" database table, with each column mapped to a property of this class.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
Fields -
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.voidsetRolesArray(String[] rolesArray) Sets an array of required roles of the plugin.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, 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.PersistedModel
persistMethods 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, setRoles, toXmlString
-
Field Details
-
PLUGIN_SETTING_ID_ACCESSOR
-
-
Method Details
-
addRole
Adds a role to the list of roles. -
getRolesArray
String[] getRolesArray()Returns an array of required roles of the plugin.- Returns:
- an array of required roles of the plugin
-
hasPermission
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
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
-
setRolesArray
Sets an array of required roles of the plugin.
-