com.irisel.dummy
Class PermTest

java.lang.Object
  extended by com.irisel.dummy.PermTest

public class PermTest
extends java.lang.Object


Field Summary
static byte PERMTYPE_OTHER
           
static byte PERMTYPE_READ
           
static byte PERMTYPE_WRITE
           
static byte USERTYPE_GROUP
           
static byte USERTYPE_OTHER
           
static byte USERTYPE_OWNER
           
 
Constructor Summary
PermTest()
           
 
Method Summary
static int clearPerm(int perm, int usertype, int permtype)
           
static int getPerm(int usertype, int permtype)
           
static boolean hasPerms(int perm, int usertype, int permtype)
           
static void main(java.lang.String[] args)
           
static int setPerm(int perm, int usertype, int permtype)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USERTYPE_OWNER

public static final byte USERTYPE_OWNER
See Also:
Constant Field Values

USERTYPE_GROUP

public static final byte USERTYPE_GROUP
See Also:
Constant Field Values

USERTYPE_OTHER

public static final byte USERTYPE_OTHER
See Also:
Constant Field Values

PERMTYPE_READ

public static final byte PERMTYPE_READ
See Also:
Constant Field Values

PERMTYPE_WRITE

public static final byte PERMTYPE_WRITE
See Also:
Constant Field Values

PERMTYPE_OTHER

public static final byte PERMTYPE_OTHER
See Also:
Constant Field Values
Constructor Detail

PermTest

public PermTest()
Method Detail

main

public static void main(java.lang.String[] args)

hasPerms

public static boolean hasPerms(int perm,
                               int usertype,
                               int permtype)

setPerm

public static int setPerm(int perm,
                          int usertype,
                          int permtype)

clearPerm

public static int clearPerm(int perm,
                            int usertype,
                            int permtype)

getPerm

public static int getPerm(int usertype,
                          int permtype)