/**
  * Indicates whether the specified permission is implied by this {@code
  * UnresolvedPermission}. {@code UnresolvedPermission} objects imply nothing
  * since nothing is known about them yet.
  * <p/>
  * Before actual implication checking, this method tries to resolve
  * UnresolvedPermissions (if any) against the passed instance. Successfully
  * resolved permissions (if any) are taken into account during further
  * processing.
  *
  * @param permission
  *            the permission to check.
  * @return always {@code false}
  */
 public override bool implies(Permission permission)
 {
     return(false);
 }
        private bool readOnly; // = false;

        /*
         * Adds the specified {@code Permission} to this collection.
         *
         * @param permission
         *            the {@code Permission} to add.
         * @throws IllegalStateException
         *             if the collection is read only.
         */
        public abstract void add(Permission permission);
 /*
  * Indicates whether the specified permission is implied by this {@code
  * PermissionCollection}.
  *
  * @param permission
  *            the permission to check.
  * @return {@code true} if the given permission is implied by the
  *         permissions in this collection, {@code false} otherwise.
  */
 public abstract bool implies(Permission permission);
Beispiel #4
0
 /**
  * Indicates whether the argument permission is implied by the receiver.
  * {@code AllPermission} objects imply all other permissions.
  *
  * @return boolean {@code true} if the argument permission is implied by the
  *         receiver, and {@code false} if it is not.
  * @param permission
  *            the permission to check.
  */
 public override bool implies(Permission permission)
 {
     return(all != null);
 }