Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.basex.core
Class User

    java.lang.Object
      org.basex.core.User

    public final class User

extends Object

This class contains information on a single user.

Author:
  Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Field Summary
`static byte` | `ADMIN` Admin permission (global).
`static byte` | `CREATE` Create permission (global).
`String` | `name` User name.
`static byte` | `NONE` No permissions.
`int` | `perm` Permission.
`byte[]` | `pw` Password.
`static byte` | `READ` Read permission (local+global).
`static byte` | `WRITE` Write permission (local+global).

Constructor Summary
`User(String n, byte[] p, int r)` Constructor.

Method Summary
`User` | `copy()` Returns a local copy of this user.
`boolean` | `perm(int flag)` Returns if the specified permission is set.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### NONE

    public static final byte NONE

  No permissions.

  See Also:
    Constant Field Values

### READ

    public static final byte READ

  Read permission (local+global).

  See Also:
    Constant Field Values

### WRITE

    public static final byte WRITE

  Write permission (local+global).

  See Also:
    Constant Field Values

### CREATE

    public static final byte CREATE

  Create permission (global).

  See Also:
    Constant Field Values

### ADMIN

    public static final byte ADMIN

  Admin permission (global).

  See Also:
    Constant Field Values

### name

    public final String name

  User name.

### pw

    public byte[] pw

  Password.

### perm

    public int perm

  Permission.

Constructor Detail

### User

    public User(String n,
                byte[] p,
                int r)

  Constructor.

  Parameters:
    `n` - user name
    `p` - password
    `r` - rights

Method Detail

### perm

    public boolean perm(int flag)

  Returns if the specified permission is set.

  Parameters:
    `flag` - flag to be checked
  Returns:
    result of check

### copy

    public User copy()

  Returns a local copy of this user.

  Returns:
    user copy

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD