Liferay 6.1.2-ce-ga3

com.liferay.portal.model
Interface PluginSetting

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

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 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.
 
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, setNew, setPluginId, setPluginSettingId, setPluginType, setPrimaryKey, setPrimaryKeyObj, 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

setRoles

void setRoles(String roles)
Sets a string of ordered comma delimited plugin IDs.

Specified by:
setRoles in interface PluginSettingModel
Parameters:
roles - the roles of this plugin setting

setRolesArray

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


Liferay 6.1.2-ce-ga3