Bees v0.5.0 API

bees.core.resource
Class FileSystemRoot

java.lang.Object
  |
  +--bees.core.Capability
        |
        +--bees.core.resource.PathSpec
              |
              +--bees.core.resource.FileSystemRoot
All Implemented Interfaces:
CapabilitySpec

public final class FileSystemRoot
extends PathSpec

The FileSystemRoot capability is used to designate a "root" in the local file system.


Fields inherited from class bees.core.Capability
DELETE_PERMISSION, id, INVALID_ID
 
Constructor Summary
FileSystemRoot()
          Construct an empty FileSystemRoot.
 
Method Summary
protected  void fromBytes(byte[] flattened)
          Bind this capability to the given object.
 void revoke()
          Revoke access to the capability.
 Directory root()
          Create a Directory capability, with the default permissions, that refers to the root directory in this "file system".
 Directory root(PermissionSet ps)
          Create a Directory capability that refers to the root directory in this "file system".
 java.lang.String toString()
           
 
Methods inherited from class bees.core.resource.PathSpec
getFactory, specFromBytes, toBytes
 
Methods inherited from class bees.core.Capability
checkPermission, clear, clonePermission, deleteCapability, equals, fromBytes, revokedPermission, revokePermission, revokePermissions, valid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileSystemRoot

public FileSystemRoot()
Construct an empty FileSystemRoot.
Method Detail

fromBytes

protected void fromBytes(byte[] flattened)
                  throws java.lang.Exception
Description copied from class: Capability
Bind this capability to the given object.
Overrides:
fromBytes in class Capability
See Also:
Capability.fromBytes(byte[])

revoke

public void revoke()
Description copied from class: Capability
Revoke access to the capability.
Overrides:
revoke in class PathSpec
See Also:
Capability.revoke()

root

public Directory root(PermissionSet ps)
Create a Directory capability that refers to the root directory in this "file system".
Parameters:
ps - The set of permissions to give the new Directory object.
Returns:
The new Directory capability or null if this capability has been revoked.

root

public Directory root()
Create a Directory capability, with the default permissions, that refers to the root directory in this "file system".
Returns:
The new Directory capability or null if this capability has been revoked.

toString

public java.lang.String toString()
Overrides:
toString in class PathSpec
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/