kotkabeans
Class KoppeloRights

java.lang.Object
  |
  +--kotkabeans.KoppeloRights

public class KoppeloRights
extends java.lang.Object

implements KoppeloRights object.


Constructor Summary
KoppeloRights()
          Dummy empty constructor.
 
Method Summary
static boolean hasGroupRight(int rightid, int groupid)
          Exceute query to find out if given user group has specified right
static boolean hasPersonRight(int rightid, int personid, int assid)
          Exceute query to find out if given person has specified right in specified assignment
static boolean hasPersonRight(int rightid, int personid, int typeid, int lineid)
          Exceute query to find out if given person has specified right
static boolean hasPersonRightOriginal(int rightid, int personid, int origid)
          Exceute query to find out if given person has specified right
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KoppeloRights

public KoppeloRights()
Dummy empty constructor.

Method Detail

hasPersonRight

public static boolean hasPersonRight(int rightid,
                                     int personid,
                                     int typeid,
                                     int lineid)
Exceute query to find out if given person has specified right

Parameters:
rightid - The right we are interested in
personid - The person we are interested in
typeid - The assignment type we are interested in
lineid - The studyline we are interested in, values <= 0 meaning null

hasPersonRight

public static boolean hasPersonRight(int rightid,
                                     int personid,
                                     int assid)
Exceute query to find out if given person has specified right in specified assignment

Parameters:
rightid - The right we are interested in
personid - The person we are interested in
assid - The assignment we are interested in

hasPersonRightOriginal

public static boolean hasPersonRightOriginal(int rightid,
                                             int personid,
                                             int origid)
Exceute query to find out if given person has specified right

Parameters:
rightid - The right we are interested in
personid - The person we are interested in
origid - The assignment original we are interested in

hasGroupRight

public static boolean hasGroupRight(int rightid,
                                    int groupid)
Exceute query to find out if given user group has specified right

Parameters:
rightid - The right we are interested in
groupid - The user group we are interested in