public class AccessVector
extends java.util.Vector
getResources()
method of a command for resource level access control.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Constructor and Description |
---|
AccessVector()
This is the default constructor for this class.
|
AccessVector(int initialCapacity)
This is a constructor for this class.
|
AccessVector(java.lang.Object resource)
This is a constructor for this class.
|
AccessVector(java.lang.Object resource,
java.lang.String action)
This is a constructor for this class.
|
AccessVector(java.util.Vector protectables)
This is a constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(java.lang.Object resource)
This method adds a resource to the access vector.
|
void |
addElement(java.lang.Object resource,
java.lang.String action)
This method adds a resource/action pair to the access vector.
|
void |
addElement(java.util.Vector resources)
This method adds a vector of protectable resources to the access vector.
|
add, add, addAll, addAll, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
public static final java.lang.String COPYRIGHT
public AccessVector()
public AccessVector(int initialCapacity)
initialCapacity
- This is the initial capacity.public AccessVector(java.lang.Object resource)
resource
- This is an Object
that represents a protectable resource.public AccessVector(java.lang.Object resource, java.lang.String action)
resource
- This is an Object
that represents a protectable resource.action
- This is a String
object that represents an action to be performed on the resource.public AccessVector(java.util.Vector protectables)
Vector
of protectable resources to the instance.protectables
- This is a Vector
that represents a list of protectable resources.public void addElement(java.lang.Object resource)
addElement
in class java.util.Vector
resource
- This is an Object
that represents a protectable resource.public void addElement(java.lang.Object resource, java.lang.String action)
resource
- This is an Object
that represents a protectable resource.action
- This is a String
object that represents an action to be performed on the resource.public void addElement(java.util.Vector resources)
resources
- This is a Vector
that represents a list of protectable resources.