com.ibm.commerce.accesscontrol

Class AccessVector

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


    public class AccessVector
    extends java.util.Vector
    This class defines the object returned by the getResources() method of a command for resource level access control.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT 
    • Constructor Summary

      Constructors 
      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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.util.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
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream
    • Constructor Detail

      • AccessVector

        public AccessVector()
        This is the default constructor for this class. It calls the constructor from the superclass with a parameter of 4 to construct an instance of this class with an initial capacity of 4.
      • AccessVector

        public AccessVector(int initialCapacity)
        This is a constructor for this class. It calls the constructor from the superclass. It constructs an instance of this class with a specified initial capacity.
        Parameters:
        initialCapacity - This is the initial capacity.
      • AccessVector

        public AccessVector(java.lang.Object resource)
        This is a constructor for this class. It calls the constructor from the superclass with a parameter of 1 to construct an instance of this class with an initial capacity of 1. It then adds one resource to the instance.
        Parameters:
        resource - This is an Object that represents a protectable resource.
      • AccessVector

        public AccessVector(java.lang.Object resource,
                            java.lang.String action)
        This is a constructor for this class. It calls the constructor from the superclass with a parameter of 1 to construct an instance of this class with an initial capacity of 1. It then adds one resource and one action to be performed on that resource to the instance.
        Parameters:
        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.
      • AccessVector

        public AccessVector(java.util.Vector protectables)
        This is a constructor for this class. It calls the constructor from the superclass with a parameter of 1 to construct an instance of this class with an initial capacity of 1. It then adds a Vector of protectable resources to the instance.
        Parameters:
        protectables - This is a Vector that represents a list of protectable resources.
    • Method Detail

      • addElement

        public void addElement(java.lang.Object resource)
        This method adds a resource to the access vector.
        Overrides:
        addElement in class java.util.Vector
        Parameters:
        resource - This is an Object that represents a protectable resource.
      • addElement

        public void addElement(java.lang.Object resource,
                               java.lang.String action)
        This method adds a resource/action pair to the access vector.
        Parameters:
        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.
      • addElement

        public void addElement(java.util.Vector resources)
        This method adds a vector of protectable resources to the access vector.
        Parameters:
        resources - This is a Vector that represents a list of protectable resources.