Bees v0.5.0 API

bees.core.security
Class FilePermission

java.lang.Object
  |
  +--bees.core.security.Permission
        |
        +--bees.core.security.FilePermission
All Implemented Interfaces:
java.lang.Cloneable, edu.utah.janosvm.sys.CrossTeamCloneable, PermissionTypes

public class FilePermission
extends Permission

FilePermission extends the standard Permission class to support file specific actions.


Field Summary
static int CREATE
          Action determining whether or not a file can be created.
static int DELETE
          Action determining whether or not a file can be deleted.
static int LIST
          Action determining whether or not a file is included in a directory listing.
 
Fields inherited from class bees.core.security.Permission
APPEND, EXECUTE, READ, WRITE
 
Fields inherited from interface bees.core.security.PermissionTypes
PERMISSION_BASIC, PERMISSION_CLASSES, PERMISSION_COUNT, PERMISSION_ENUMERATION, PERMISSION_FILE, PERMISSION_FLOAT, PERMISSION_INTEGER, PERMISSION_IP_ADDRESS, PERMISSION_MAX, PERMISSION_MAX_FLOAT, PERMISSION_MAX_INTEGER, PERMISSION_MIN, PERMISSION_MIN_FLOAT, PERMISSION_MIN_INTEGER, PERMISSION_NULL, PERMISSION_RANGE
 
Constructor Summary
FilePermission()
          Construct an empty FilePermission.
FilePermission(java.lang.String name, java.lang.String actions)
          Construct a FilePermission with the given values.
 
Method Summary
 java.lang.String getAction()
           
 int getTypeID()
           
 java.lang.String toString()
           
 
Methods inherited from class bees.core.security.Permission
bound, clone, equals, getActionMask, getName, grant, implies, instantiate, instantiate, marshal, marshalledLength, nameImplies, orActionMask, revoke, toBytes, unmarshal, updateHash
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LIST

public static final int LIST
Action determining whether or not a file is included in a directory listing.

CREATE

public static final int CREATE
Action determining whether or not a file can be created.

DELETE

public static final int DELETE
Action determining whether or not a file can be deleted.
Constructor Detail

FilePermission

public FilePermission(java.lang.String name,
                      java.lang.String actions)
Construct a FilePermission with the given values.
Parameters:
name - The name of the permission.
actions - The actions granted by this permission.

FilePermission

public FilePermission()
Construct an empty FilePermission.
Method Detail

getTypeID

public int getTypeID()
Overrides:
getTypeID in class Permission
See Also:
Permission.getTypeID()

getAction

public java.lang.String getAction()
Overrides:
getAction in class Permission
See Also:
Permission.getAction()

toString

public java.lang.String toString()
Overrides:
toString in class Permission
See Also:
Object.toString()

Bees v0.5.0 API

This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/