net.datacrow.core.security
Class PluginPermission

java.lang.Object
  extended by net.datacrow.core.security.PluginPermission

public final class PluginPermission
extends java.lang.Object

Indicates which permissions the user has for a specific plugin.

Author:
Robert Jan van der Waals

Constructor Summary
protected PluginPermission(java.lang.String key)
          Creates a new instance
 
Method Summary
 java.lang.String getKey()
          The key of the plugin
 boolean isAuthorized()
          Checks if the user is authorized to use the plugin.
 void setAuthorized(boolean authorized)
          Set the permission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginPermission

protected PluginPermission(java.lang.String key)
Creates a new instance

Parameters:
key - The key of the plugin (class name)
Method Detail

getKey

public final java.lang.String getKey()
The key of the plugin


isAuthorized

public final boolean isAuthorized()
Checks if the user is authorized to use the plugin.


setAuthorized

public final void setAuthorized(boolean authorized)
Set the permission