Class PluginSettingImpl

Object
com.liferay.portal.kernel.model.impl.BaseModelImpl<com.liferay.portal.kernel.model.PluginSetting>
All Implemented Interfaces:
com.liferay.portal.kernel.model.BaseModel<com.liferay.portal.kernel.model.PluginSetting>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.PluginSetting, com.liferay.portal.kernel.model.PluginSettingModel, com.liferay.portal.kernel.model.ShardedModel, Serializable, Cloneable, Comparable<com.liferay.portal.kernel.model.PluginSetting>

public class PluginSettingImpl extends PluginSettingBaseImpl
Author:
Brian Wing Shun Chan
See Also:
  • Constructor Details

    • PluginSettingImpl

      public PluginSettingImpl()
    • PluginSettingImpl

      public PluginSettingImpl(com.liferay.portal.kernel.model.PluginSetting pluginSetting)
  • Method Details

    • 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
    • hasPermission

      public boolean hasPermission(long userId, long groupId)
      Returns true if the user has permission to use this plugin
      Parameters:
      userId - the primary key of the user
      groupId - the primary key of the group
      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 com.liferay.portal.kernel.model.PluginSettingModel
      Overrides:
      setRoles in class PluginSettingModelImpl
    • setRolesArray

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