|
Liferay 7.0-ga1 portal-impl | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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
public class PluginSettingImpl
| 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_MANAGER |
| Fields inherited from interface com.liferay.portal.kernel.model.PluginSetting |
|---|
PLUGIN_SETTING_ID_ACCESSOR |
| Constructor Summary | |
|---|---|
PluginSettingImpl()
|
|
PluginSettingImpl(com.liferay.portal.kernel.model.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.kernel.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.kernel.model.PluginSettingModel |
|---|
clone, compareTo, getActive, getCompanyId, getExpandoBridge, getMvccVersion, getPluginId, getPluginSettingId, getPluginType, getPrimaryKey, getPrimaryKeyObj, getRoles, hashCode, isActive, isCachedModel, isEscapedModel, isNew, setActive, setCachedModel, setCompanyId, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setMvccVersion, setNew, setPluginId, setPluginSettingId, setPluginType, setPrimaryKey, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString |
| Methods inherited from interface com.liferay.portal.kernel.model.BaseModel |
|---|
getModelAttributes, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setModelAttributes |
| Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel |
|---|
getModelClass, getModelClassName |
| Constructor Detail |
|---|
public PluginSettingImpl()
public PluginSettingImpl(com.liferay.portal.kernel.model.PluginSetting pluginSetting)
| Method Detail |
|---|
public void addRole(String role)
public String[] getRolesArray()
public boolean hasPermission(long userId)
true if the user has permission to use this plugin
userId - the primary key of the user
true if the user has permission to use this pluginpublic boolean hasRoleWithName(String roleName)
true if the plugin has a role with the specified
name.
roleName - the role name
true if the plugin has a role with the specified
namepublic void setRoles(String roles)
setRoles in interface com.liferay.portal.kernel.model.PluginSettingModelsetRoles in class PluginSettingModelImplpublic void setRolesArray(String[] rolesArray)
|
Liferay 7.0-ga1 portal-impl | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||