axis_examplecompt_changesinfo-opsversion-2.00version-3.01version-3.02
Last change
on this file since 1d913e13 was
8780cbec,
checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago
|
ABAC sources from Cobham
|
-
Property mode set to
100644
|
File size:
447 bytes
|
Rev | Line | |
---|
[8780cbec] | 1 | package edu.stanford.peer.rbtm.engine; |
---|
| 2 | |
---|
| 3 | import edu.stanford.peer.rbtm.credential.*; |
---|
| 4 | import edu.stanford.peer.rbtm.util.*; |
---|
| 5 | |
---|
| 6 | /** |
---|
| 7 | * A simple predicate to fail only on role expressions which are roles. |
---|
| 8 | */ |
---|
| 9 | public class Simp implements Predicate { |
---|
| 10 | |
---|
| 11 | /** apply the predicate to determine if a role expression isn't a role */ |
---|
| 12 | public boolean test(EntityExpression obj) { |
---|
| 13 | if(obj instanceof Role) { |
---|
| 14 | return false; |
---|
| 15 | } |
---|
| 16 | return true; |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.