Class PluginKeys

    • Field Detail

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