Package net.sf.basedb.core.data.keyring
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:
- Serialized Form
- Last modified
- $Date: 2006-09-13 09:37:00Z $
-
Field Summary
Fields Modifier and Type Field Description private int
denied
private int
granted
private int
keyId
private int
pluginDefinitionId
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description PluginKeys()
Create newPluginKeys
object -
Method Summary
Modifier and Type Method Description int
compareTo(PluginKeys other)
Compare the keyId of this object to the keyId of anotherPluginKeys
object.boolean
equals(Object o)
Check if this object is equal to anotherRoleKeys
object.int
getDenied()
Get the denied permissions.int
getGranted()
Get the granted permissions.int
getKeyId()
Gets the id of theRoleKey
int
getPluginDefinitionId()
Gets the id of the pluginint
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 theRoleKey
void
setPluginDefinitionId(int pluginDefinitionId)
Sets thePluginDefinition
:s ID
-
Field Details
-
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 Details
-
PluginKeys
public PluginKeys()Create newPluginKeys
object
-
-
Method Details
-
getPluginDefinitionId
public int getPluginDefinitionId()Gets the id of the plugin -
setPluginDefinitionId
public void setPluginDefinitionId(int pluginDefinitionId)Sets thePluginDefinition
:s ID- Parameters:
pluginDefinitionId
- The ID ofPluginDefinition
to be set.
-
getKeyId
public int getKeyId()Gets the id of theRoleKey
-
setKeyId
public void setKeyId(int keyId)Sets the id of theRoleKey
-
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
Check if this object is equal to anotherRoleKeys
object. They are considered to be the same if the role id and the key id are the same. The permissions may be different. -
hashCode
public int hashCode()Calculate the hash code for the object. -
compareTo
Compare the keyId of this object to the keyId of anotherPluginKeys
object.- Specified by:
compareTo
in interfaceComparable<PluginKeys>
-