Index: BaseSecurityEntry.java =================================================================== RCS file: /cvs/jetspeed/src/java/org/apache/jetspeed/om/registry/base/BaseSecurityEntry.java,v retrieving revision 1.2 retrieving revision 1.5 diff -c -u -r1.2 -r1.5 --- BaseSecurityEntry.java 1 Apr 2003 18:41:56 -0000 1.2 +++ BaseSecurityEntry.java 30 Jul 2003 10:41:29 -0000 1.5 @@ -55,6 +55,7 @@ package org.apache.jetspeed.om.registry.base; // Java imports +import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.Map; @@ -69,13 +70,58 @@ * Interface for manipulatin the Security Entry on the registry entries * * @author Paul Spencer - * @version $Id: BaseSecurityEntry.java,v 1.2 2003/04/01 18:41:56 ilya Exp $ + * @version $Id: BaseSecurityEntry.java,v 1.5 2003/07/30 10:41:29 leah Exp $ */ public class BaseSecurityEntry extends BaseRegistryEntry implements SecurityEntry, java.io.Serializable { - + /** + * + * @author leah + * + * To change the template for this generated type comment go to + * Window>Preferences>Java>Code Generation>Code and Comments + */ + class PrivateVector extends Vector { + /** + * @param initialCapacity + * @param capacityIncrement + */ + public PrivateVector(int initialCapacity, int capacityIncrement) { + super(initialCapacity, capacityIncrement); + } + + /** + * @param initialCapacity + */ + public PrivateVector(int initialCapacity) { + super(initialCapacity); + } + + /** + * + */ + public PrivateVector() { + super(); + } + + /** + * @param c + */ + public PrivateVector(Collection c) { + super(c); + } + + /* (non-Javadoc) + * @see java.util.Collection#add(java.lang.Object) + */ + public synchronized boolean add(Object o) { + boolean ret = super.add(o); + buildAccessMap(); + return ret; + } + } /** Holds value of property accesses. */ - private Vector accesses = new Vector(); + private PrivateVector accesses = new PrivateVector(); private transient Map accessMap = null; @@ -152,7 +198,7 @@ */ public void setAccesses(Vector accesses) { - this.accesses = accesses; + this.accesses = new PrivateVector(accesses); } /**