org.dbforms.config
Class GrantedPrivileges

java.lang.Object
  extended by org.dbforms.config.GrantedPrivileges
All Implemented Interfaces:
Serializable

public class GrantedPrivileges
extends Object
implements Serializable

This class represents a "granted-privileges"-tag in dbforms-config.xml

Author:
Joachim Peer
See Also:
Serialized Form

Field Summary
static int PRIVILEG_DELETE
          DOCUMENT ME!
static int PRIVILEG_INSERT
          DOCUMENT ME!
static int PRIVILEG_SELECT
          DOCUMENT ME!
static int PRIVILEG_UPDATE
          DOCUMENT ME!
 
Constructor Summary
GrantedPrivileges()
          Creates a new GrantedPrivileges object.
 
Method Summary
 boolean hasUserPrivileg(HttpServletRequest request, int privileg)
          DOCUMENT ME!
 void setDelete(String delete)
          DOCUMENT ME!
 void setInsert(String insert)
          DOCUMENT ME!
 void setSelect(String select)
          DOCUMENT ME!
 void setUpdate(String update)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIVILEG_SELECT

public static final int PRIVILEG_SELECT
DOCUMENT ME!

See Also:
Constant Field Values

PRIVILEG_INSERT

public static final int PRIVILEG_INSERT
DOCUMENT ME!

See Also:
Constant Field Values

PRIVILEG_UPDATE

public static final int PRIVILEG_UPDATE
DOCUMENT ME!

See Also:
Constant Field Values

PRIVILEG_DELETE

public static final int PRIVILEG_DELETE
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

GrantedPrivileges

public GrantedPrivileges()
Creates a new GrantedPrivileges object.

Method Detail

setDelete

public void setDelete(String delete)
DOCUMENT ME!

Parameters:
delete - DOCUMENT ME!

setInsert

public void setInsert(String insert)
DOCUMENT ME!

Parameters:
insert - DOCUMENT ME!

setSelect

public void setSelect(String select)
DOCUMENT ME!

Parameters:
select - DOCUMENT ME!

setUpdate

public void setUpdate(String update)
DOCUMENT ME!

Parameters:
update - DOCUMENT ME!

hasUserPrivileg

public boolean hasUserPrivileg(HttpServletRequest request,
                               int privileg)
DOCUMENT ME!

Parameters:
request - DOCUMENT ME!
privileg - DOCUMENT ME!
Returns:
DOCUMENT ME!


Copyright © 2002-2006 DbForms. All Rights Reserved.