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>
Class for mapping the
PluginKeys
table.- Version:
- 2.0
- Author:
- Martin, Nicklas
- See Also:
- Last modified
- $Date: 2006-09-13 09:37:00Z $
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private int
private int
private static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal int
compareTo
(PluginKeys other) Compare the keyId of this object to the keyId of anotherPluginKeys
object.boolean
Check if this object is equal to anotherRoleKeys
object.final int
Get the denied permissions.final int
Get the granted permissions.int
getKeyId()
Gets the id of theRoleKey
int
Gets the id of the pluginint
hashCode()
Calculate the hash code for the object.final void
setDenied
(int denied) Set the denied permissions.final 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:
-
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>
-