2.17.2: 2011-06-17

net.sf.basedb.core.data.keyring
Class PluginKeys

java.lang.Object
  extended by 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:
Serialized Form
Last modified
$Date: 2006-09-13 09:37:00Z $

Field Summary
private  int denied
           
private  int granted
           
private  int keyId
           
private  int pluginDefinitionId
           
private static long serialVersionUID
           
 
Constructor Summary
PluginKeys()
          Create new PluginKeys object
 
Method Summary
 int compareTo(PluginKeys other)
          Compare the keyId of this object to the keyId of another PluginKeys object.
 boolean equals(Object o)
          Check if this object is equal to another RoleKeys object.
 int getDenied()
          Get the denied permissions.
 int getGranted()
          Get the granted permissions.
 int getKeyId()
          Gets the id of the RoleKey
 int getPluginDefinitionId()
          Gets the id of the plugin
 int hashCode()
          Calculate the hash code for the object.
 void setDenied(int denied)
          Set the denied permissions.
 void setGranted(int granted)
          Set the granted permissions.
 void setKeyId(int keyId)
          Sets the id of the RoleKey
 void setPluginDefinitionId(int pluginDefinitionId)
          Sets the PluginDefinition:s ID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

pluginDefinitionId

private int pluginDefinitionId

keyId

private int keyId

granted

private int granted

denied

private int denied
Constructor Detail

PluginKeys

public PluginKeys()
Create new PluginKeys object

Method Detail

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

Parameters:
keyId -

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>

2.17.2: 2011-06-17