Class PluginKeys

java.lang.Object
net.sf.basedb.core.data.keyring.PluginKeys
All Implemented Interfaces:
Serializable, Comparable<PluginKeys>

public class PluginKeys extends Object implements Serializable, Comparable<PluginKeys>
Class for mapping the PluginKeys table.
Version:
2.0
Author:
Martin, Nicklas
See Also:
Last modified
$Date: 2006-09-13 09:37:00Z $
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • pluginDefinitionId

      private int pluginDefinitionId
    • keyId

      private int keyId
    • granted

      private int granted
    • denied

      private int denied
  • Constructor Details

    • PluginKeys

      public PluginKeys()
      Create new PluginKeys object
  • Method Details

    • getPluginDefinitionId

      public int getPluginDefinitionId()
      Gets the id of the plugin
    • setPluginDefinitionId

      public void setPluginDefinitionId(int pluginDefinitionId)
      Sets the PluginDefinition:s ID
      Parameters:
      pluginDefinitionId - The ID of PluginDefinition to be set.
    • getKeyId

      public int getKeyId()
      Gets the id of the RoleKey
    • setKeyId

      public void setKeyId(int keyId)
      Sets the id of the RoleKey
    • getGranted

      public final int getGranted()
      Get the granted permissions.
    • setGranted

      public final void setGranted(int granted)
      Set the granted permissions.
    • getDenied

      public final int getDenied()
      Get the denied permissions.
    • setDenied

      public final void setDenied(int denied)
      Set the denied permissions.
    • equals

      public boolean equals(Object o)
      Check if this object is equal to another RoleKeys object. They are considered to be the same if the role id and the key id are the same. The permissions may be different.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Calculate the hash code for the object.
      Overrides:
      hashCode in class Object
    • compareTo

      public final int compareTo(PluginKeys other)
      Compare the keyId of this object to the keyId of another PluginKeys object.
      Specified by:
      compareTo in interface Comparable<PluginKeys>