Liferay 6.2-ce-ga5

com.liferay.portal.model.impl
Class PluginSettingImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<PluginSetting>
      extended by com.liferay.portal.model.impl.PluginSettingModelImpl
          extended by com.liferay.portal.model.impl.PluginSettingBaseImpl
              extended by com.liferay.portal.model.impl.PluginSettingImpl
All Implemented Interfaces:
BaseModel<PluginSetting>, ClassedModel, PersistedModel, PluginSetting, PluginSettingModel, Serializable, Cloneable, Comparable<PluginSetting>

public class PluginSettingImpl
extends PluginSettingBaseImpl

See Also:
Serialized Form

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_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER
 
Constructor Summary
PluginSettingImpl()
           
PluginSettingImpl(PluginSetting pluginSetting)
           
 
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 class com.liferay.portal.model.impl.PluginSettingBaseImpl
persist
 
Methods inherited from class com.liferay.portal.model.impl.PluginSettingModelImpl
clone, compareTo, equals, getActive, getColumnBitmask, getCompanyId, getExpandoBridge, getModelAttributes, getModelClass, getModelClassName, getOriginalCompanyId, getOriginalPluginId, getOriginalPluginType, getPluginId, getPluginSettingId, getPluginType, getPrimaryKey, getPrimaryKeyObj, getRoles, hashCode, isActive, resetOriginalValues, setActive, setCompanyId, setExpandoBridgeAttributes, setModelAttributes, setPluginId, setPluginSettingId, setPluginType, setPrimaryKey, setPrimaryKeyObj, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString
 
Methods inherited from class com.liferay.portal.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.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, 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
 

Constructor Detail

PluginSettingImpl

public PluginSettingImpl()

PluginSettingImpl

public PluginSettingImpl(PluginSetting pluginSetting)
Method Detail

addRole

public void addRole(String role)
Adds a role to the list of roles.


getRolesArray

public String[] 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)
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

public 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

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

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

setRolesArray

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


Liferay 6.2-ce-ga5