com.oakgrovesystems.reactor.processMediation
Class ACL

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractSet
              |
              +--java.util.HashSet
                    |
                    +--com.oakgrovesystems.reactor.processMediation.ACL
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.io.Serializable, java.util.Set

public class ACL
extends java.util.HashSet
implements java.io.Serializable

The relationships between the Reactor objects and the users of the system are captured using ACLs. Each Reactor object has an ACL.

For example, suppose a Reactor system is configured with two roles: 'owner' and 'assignee'. The 'assignee' role is only associated with the permissions to add or remove a current status or stop Process objects. The 'owner' role is associated with all permissions. In his situation, one can edit the ACL of a particular object to specify which users, groups, and titles have 'owner' permissions and which users, groups, and titles have 'assignee' permissions with respect to that particular object.

See Also:
Serialized Form

Constructor Summary
ACL()
          Creates an ACL that contains no ACEs.
ACL(java.util.Collection c)
          Creates an ACL with the same ACEs as those in the Collection specified.
 
Method Summary
 boolean hasACE(com.oakgrovesystems.reactor.processMediation.ACE ace)
          checks to see if this ACL contains the ACE specified by using ACE.sameAs()
 boolean hasACEIgnoreNull(com.oakgrovesystems.reactor.processMediation.ACE ace)
          checks to see if this ACL contains the ACE specified by using ACE.equalsIgnoreNull()
 boolean remove(java.lang.Object obj)
          Remove an ACE from this ACL.
 boolean sameAs(java.lang.Object o)
          compares to ACLs for content equality
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

ACL

public ACL()
Creates an ACL that contains no ACEs.


ACL

public ACL(java.util.Collection c)
Creates an ACL with the same ACEs as those in the Collection specified.

Parameters:
c - The collection of ACEs to include in this ACL
Method Detail

sameAs

public boolean sameAs(java.lang.Object o)
compares to ACLs for content equality

Parameters:
o - the ACL to compare for content equality
Returns:
true if the ACLs are identical sets of ACEs false otherwise

hasACE

public boolean hasACE(com.oakgrovesystems.reactor.processMediation.ACE ace)
checks to see if this ACL contains the ACE specified by using ACE.sameAs()

Parameters:
ace - the ACE to check for membership in this ACL
Returns:
true if the ACE specified is the same as to one in this ACL. false otherwise

remove

public boolean remove(java.lang.Object obj)
Remove an ACE from this ACL.

Specified by:
remove in interface java.util.Set
Overrides:
remove in class java.util.HashSet
Returns:
true if the ACE is remove, false if it was not found

hasACEIgnoreNull

public boolean hasACEIgnoreNull(com.oakgrovesystems.reactor.processMediation.ACE ace)
checks to see if this ACL contains the ACE specified by using ACE.equalsIgnoreNull()

Parameters:
ace - the ACE to check for membership in this ACL
Returns:
true if the ACE specified is the same as to one in this ACL or if this ACL has no ACEs and the ACE specified is the null ACE (ACE.NULL_ACE). false otherwise.


Copyright (c) 1999-2004 Oak Grove Systems. All Rights Reserved.