GNDMS 0.6.0
RESTful verison of GNDMS
Public Types | Static Private Attributes

de.zib.gndms.common.model.common.AccessMask Class Reference

An AccessMask is used to handle access rights for the access types user, group and other. More...

Inherits java::io::Serializable.

List of all members.

Public Types

enum  AccessFlags {
  READABLE = ( 0x4 ), WRITABLE = ( 0x2 ), EXECUTABLE = ( 0x1 ), READWRITE = ( 0x6 ),
  READEXECUT = ( 0X5 ), WRITEEXEC = ( 0X3 ), ALL = ( 0X7 ), NONE = ( 0x0 )
}
 

AccessFlags is an enumeration for the different access types.

More...

Static Private Attributes

static final long serialVersionUID = 3846269515013219026L
 The serialization id.

Detailed Description

An AccessMask is used to handle access rights for the access types user, group and other.

Read, write and execute rights can be set or unset by using a bit mask.

Author:
try ma ik jo rr a zib
Version:
$Id$
See also:
AccessFlags for the representation of a bit mask. User: mjorra, Date: 22.12.2008, Time: 13:13:43

Member Enumeration Documentation

AccessFlags is an enumeration for the different access types.

Its value can be chosen by bit flags. In detail an int value will be interpreted as follows:

 If we have an int x = x1 x2 x3 in binary representation with x element of [0;7]
 then if set to 1 the meaning of the flags are
        x3 = Executable
        x2 = Writable
        x1 = Readable
 
Enumerator:
READABLE 

Read access.

WRITABLE 

Write access.

EXECUTABLE 

Execution access.

READWRITE 

Read and write access.

READEXECUT 

Read and execution access.

WRITEEXEC 

write and execution access.

ALL 

Unrestricted access.

NONE 

No access.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations