com.ibm.commerce.accesscontrol
Class AccessVector

java.lang.Object
  java.util.AbstractCollection
      java.util.AbstractList
          java.util.Vector
              com.ibm.commerce.accesscontrol.AccessVector
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class AccessVector
extends java.util.Vector

AccessVector is the object returned by a getResources() method of a command for resource level access control.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
Fields inherited from class java.util.AbstractList
modCount
Constructor Summary
AccessVector()
Construct an AccessVector with an initial capacity of 4.
AccessVector(int initialCapacity)
Construct an AccessVector with the specified initial capacity.
AccessVector(java.lang.Object resource)
Construct a AccessVector with just one resource.
AccessVector(java.lang.Object resource, java.lang.String action)
Construct a AccessVector with a resource and the action to be performed on the resource.
AccessVector(java.util.Vector protectables)
Construct a AccessVector with a vector of protectable resources.
Method Summary
void addElement(java.lang.Object resource)
Add a resource to the access vector.
void addElement(java.lang.Object resource, java.lang.String action)
Add a resource action pair to the access vector.
void addElement(java.util.Vector resources)
Add a vector of protectable resources to the access vector.
Methods inherited from class java.util.Vector
add, add, addAll, addAll, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

AccessVector

public AccessVector()
Construct an AccessVector with an initial capacity of 4.

AccessVector

public AccessVector(int initialCapacity)
Construct an AccessVector with the specified initial capacity.
Parameters:
initialCapacity - the initial capacity.

AccessVector

public AccessVector(java.lang.Object resource)
Construct a AccessVector with just one resource.
Parameters:
resource - Object - a protectable resource

AccessVector

public AccessVector(java.lang.Object resource,
                    java.lang.String action)
Construct a AccessVector with a resource and the action to be performed on the resource.
Parameters:
resource - Object - a protectable resource
action - String - an action to be performed on the resource

AccessVector

public AccessVector(java.util.Vector protectables)
Construct a AccessVector with a vector of protectable resources.
Method Detail

addElement

public void addElement(java.lang.Object resource)
Add a resource to the access vector.
Parameters:
resource - Object - a protectable resource

addElement

public void addElement(java.lang.Object resource,
                       java.lang.String action)
Add a resource action pair to the access vector.
Parameters:
resource - Vector - a protectable resource
action - String - an action to be performed on the resource

addElement

public void addElement(java.util.Vector resources)
Add a vector of protectable resources to the access vector.

Feedback