Interface PluginSetting

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

@ProviderType public interface PluginSetting extends PersistedModel, PluginSettingModel
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.
Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Field Details

  • Method Details

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

      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

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

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