com.raritantechnologies.security
Class DBUserPermission

java.lang.Object
  extended bycom.raritantechnologies.security.DBUserPermission
All Implemented Interfaces:
IUserPermission

public class DBUserPermission
extends java.lang.Object
implements IUserPermission

Reads in the user levels from a database then fills an orderd list of levels that can be checked against for user permissions.


Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
DBUserPermission()
           
 
Method Summary
 boolean hasPermission(java.lang.String minAccessLevel, ILoginInfo li)
          returns true if the user represented by the login information object has the permission described by the accessLevelDescription parameter.
 void initialize()
          Read in the levels and put them in the userLevels ordered high to low
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBUserPermission

public DBUserPermission()
Method Detail

initialize

public void initialize()
Read in the levels and put them in the userLevels ordered high to low

Specified by:
initialize in interface IUserPermission

hasPermission

public boolean hasPermission(java.lang.String minAccessLevel,
                             ILoginInfo li)
Description copied from interface: IUserPermission
returns true if the user represented by the login information object has the permission described by the accessLevelDescription parameter.

Specified by:
hasPermission in interface IUserPermission
Parameters:
minAccessLevel - Describes the permission requested.
li - LoginInfo containing identification credentials of the user.