|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.PluginSetting>
com.liferay.portal.model.impl.PluginSettingModelImpl
com.liferay.portal.model.impl.PluginSettingImpl
public class PluginSettingImpl
Field Summary |
---|
Fields inherited from class com.liferay.portal.model.impl.PluginSettingModelImpl |
---|
DATA_SOURCE, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, LOCK_EXPIRATION_TIME, SESSION_FACTORY, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER |
Constructor Summary | |
---|---|
PluginSettingImpl()
|
|
PluginSettingImpl(com.liferay.portal.model.PluginSetting pluginSetting)
|
Method Summary | |
---|---|
void |
addRole(java.lang.String role)
Adds a role to the list of roles. |
java.lang.String[] |
getRolesArray()
Gets 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(java.lang.String roleName)
Returns true if the plugin has a role with the specified name. |
void |
setRoles(java.lang.String roles)
Sets a string of ordered comma delimited plugin ids. |
void |
setRolesArray(java.lang.String[] rolesArray)
Sets an array of required roles of the plugin. |
Methods inherited from class com.liferay.portal.model.impl.PluginSettingModelImpl |
---|
clone, compareTo, equals, getActive, getCompanyId, getExpandoBridge, getOriginalCompanyId, getOriginalPluginId, getOriginalPluginType, getPluginId, getPluginSettingId, getPluginType, getPrimaryKey, getPrimaryKeyObj, getRoles, hashCode, isActive, setActive, setCompanyId, setExpandoBridgeAttributes, setPluginId, setPluginSettingId, setPluginType, setPrimaryKey, toEscapedModel, toModel, toModels, toString, toXmlString |
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, 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, setEscapedModel, setExpandoBridgeAttributes, setNew, setPluginId, setPluginSettingId, setPluginType, setPrimaryKey, toEscapedModel, toString, toXmlString |
Constructor Detail |
---|
public PluginSettingImpl()
public PluginSettingImpl(com.liferay.portal.model.PluginSetting pluginSetting)
Method Detail |
---|
public void addRole(java.lang.String role)
addRole
in interface com.liferay.portal.model.PluginSetting
public void setRoles(java.lang.String roles)
setRoles
in interface com.liferay.portal.model.PluginSetting
setRoles
in interface com.liferay.portal.model.PluginSettingModel
setRoles
in class PluginSettingModelImpl
public java.lang.String[] getRolesArray()
getRolesArray
in interface com.liferay.portal.model.PluginSetting
public void setRolesArray(java.lang.String[] rolesArray)
setRolesArray
in interface com.liferay.portal.model.PluginSetting
public boolean hasRoleWithName(java.lang.String roleName)
hasRoleWithName
in interface com.liferay.portal.model.PluginSetting
public boolean hasPermission(long userId)
hasPermission
in interface com.liferay.portal.model.PluginSetting
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |