Bees v0.5.0 API

bees.core.security
Class MinimumIntegerPermission

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

public class MinimumIntegerPermission
extends IntegerPermission

A MinimumIntegerPermission limits a IntegerPermission to a given minimum.


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
MinimumIntegerPermission()
          Construct an empty MinimumIntegerPermission.
MinimumIntegerPermission(java.lang.String name, long value)
          Construct a MinimumIntegerPermission with the given values.
MinimumIntegerPermission(java.lang.String name, java.lang.String actions, long value)
          Construct a MinimumIntegerPermission with the given values.
 
Method Summary
 void bound(Permission perm)
          Bound this permission's actions to the ones available in what.
 int getTypeID()
           
 void grant(Permission perm)
          Grant the actions in "what" to this permission.
 boolean implies(Permission what)
          Test whether this permission implies the given permission.
 void revoke(Permission perm)
          Revoke the actions in "what" from this permission.
 java.lang.String toString()
           
 
Methods inherited from class bees.core.security.IntegerPermission
getValue, marshal, marshalledLength, unmarshal, verify
 
Methods inherited from class bees.core.security.Permission
clone, equals, getAction, getActionMask, getName, instantiate, instantiate, nameImplies, orActionMask, toBytes, updateHash
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MinimumIntegerPermission

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

MinimumIntegerPermission

public MinimumIntegerPermission(java.lang.String name,
                                long value)
Construct a MinimumIntegerPermission with the given values.
Parameters:
name - The name of the permission.
value - The integer minimum.

MinimumIntegerPermission

public MinimumIntegerPermission()
Construct an empty MinimumIntegerPermission.
Method Detail

getTypeID

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

bound

public void bound(Permission perm)
Description copied from class: Permission
Bound this permission's actions to the ones available in what. In other words, the actions available in this permission will be less than or equal to those in "what".
Overrides:
bound in class Permission
See Also:
Permission.bound(Permission)

revoke

public void revoke(Permission perm)
Description copied from class: Permission
Revoke the actions in "what" from this permission.
Overrides:
revoke in class Permission
See Also:
Permission.revoke(Permission)

grant

public void grant(Permission perm)
Description copied from class: Permission
Grant the actions in "what" to this permission.
Overrides:
grant in class Permission
See Also:
Permission.grant(Permission)

implies

public boolean implies(Permission what)
Description copied from class: Permission
Test whether this permission implies the given permission. For example, read/write implies the read permission. Names are case-insensitive.
Overrides:
implies in class Permission
See Also:
Permission.implies(Permission)

toString

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