GNDMS 0.6.0
RESTful verison of GNDMS
Public Member Functions | Private Attributes | Static Private Attributes

de.zib.gndms.model.common.types.FilePermissions Class Reference

The FilePermissions class is used to control access rights for a file. More...

Inherits java::io::Serializable.

List of all members.

Public Member Functions

 FilePermissions (String owner, String group, String accessMask)
String getUser ()
void setUser (String user)
String getGroup ()
void setGroup (String group)
AccessMask getAccessMask ()
void setAccessMask (AccessMask accessMask)
String toString ()
 Returns a String in format.

Private Attributes

String user
String group
AccessMask accessMask

Static Private Attributes

static final long serialVersionUID = 6117137011878526291L

Detailed Description

The FilePermissions class is used to control access rights for a file.

An instance corresponds to one user and one file. It contains the AccessMask, describing the concrete access rights, the name of the user and the name of the group, the user belongs to.

See also:
AccessMask
Author:
try ma ik jo rr a zib
Version:
$Id$

User: mjorra, Date: 22.12.2008, Time: 13:12:37


Member Function Documentation

String de.zib.gndms.model.common.types.FilePermissions.toString ( )

Returns a String in format.

      FilePermissions{user='$user', group='$group', acesssMask=$accessMask}
 where
      $user is the username
      $group is the groupname
      $accessmask is the accessMask in decimal representation
 
Returns:
a String showing the username, groupname and access mask
                             {
        return "FilePermissions{" +
            "user='" + user + '\'' +
            ", group='" + group + '\'' +
            ", accessMask=" + accessMask +
            '}';
    }

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