Liferay 6.2-ce-ga5

com.liferay.portal.model
Interface PluginSetting

All Superinterfaces:
BaseModel<PluginSetting>, ClassedModel, Cloneable, Comparable<PluginSetting>, PersistedModel, PluginSettingModel, Serializable
All Known Implementing Classes:
PluginSettingWrapper

@ProviderType
public interface PluginSetting
extends PluginSettingModel, PersistedModel

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.

See Also:
PluginSettingModel, PluginSettingImpl, PluginSettingModelImpl

Method Summary
 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 setRolesArray(String[] rolesArray)
          Sets an array of required roles of the plugin.
 
Methods inherited from interface com.liferay.portal.model.PluginSettingModel
clone, compareTo, getActive, getCompanyId, getExpandoBridge, getPluginId, getPluginSettingId, getPluginType, getPrimaryKey, getPrimaryKeyObj, getRoles, hashCode, isActive, isCachedModel, isEscapedModel, isNew, setActive, setCachedModel, setCompanyId, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPluginId, setPluginSettingId, setPluginType, setPrimaryKey, setPrimaryKeyObj, setRoles, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
 
Methods inherited from interface com.liferay.portal.model.BaseModel
getModelAttributes, resetOriginalValues, setModelAttributes
 
Methods inherited from interface com.liferay.portal.model.ClassedModel
getModelClass, getModelClassName
 
Methods inherited from interface com.liferay.portal.model.PersistedModel
persist
 

Method Detail

addRole

void addRole(String role)
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)
Returns true 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

hasRoleWithName

boolean hasRoleWithName(String roleName)
Returns true 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

setRolesArray

void setRolesArray(String[] rolesArray)
Sets an array of required roles of the plugin.


Liferay 6.2-ce-ga5