org.apache.portals.graffito.store.impl.ojb
Class OjbSecureArrayList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by org.apache.portals.graffito.store.impl.ojb.OjbSecureArrayList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess, org.apache.ojb.broker.ManageableCollection

public class OjbSecureArrayList
extends java.util.ArrayList
implements org.apache.ojb.broker.ManageableCollection

This class is used by GraffitoOJBStore (ojb implementation) in order to filter objects in function of the permission setting.

Version:
$Id: OjbSecureArrayList.java,v 1.1 2004/12/22 20:37:00 christophe Exp $
Author:
Christophe Lombart
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Fields inherited from interface org.apache.ojb.broker.ManageableCollection
serialVersionUID
 
Constructor Summary
OjbSecureArrayList()
           
 
Method Summary
 void afterStore(org.apache.ojb.broker.PersistenceBroker broker)
           
 void ojbAdd(java.lang.Object object)
           
 void ojbAddAll(org.apache.ojb.broker.ManageableCollection otherCollection)
           
 java.util.Iterator ojbIterator()
           
static void setCmsAccessController(CmsAccessController controller)
          Initialise the CmsAccessController
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

OjbSecureArrayList

public OjbSecureArrayList()
Method Detail

setCmsAccessController

public static void setCmsAccessController(CmsAccessController controller)
Initialise the CmsAccessController

Parameters:
controller - The new CmsAccessController to set

ojbAdd

public void ojbAdd(java.lang.Object object)
Specified by:
ojbAdd in interface org.apache.ojb.broker.ManageableCollection
See Also:
ManageableCollection.ojbAdd(java.lang.Object)

ojbAddAll

public void ojbAddAll(org.apache.ojb.broker.ManageableCollection otherCollection)
Specified by:
ojbAddAll in interface org.apache.ojb.broker.ManageableCollection
See Also:
ManageableCollection.ojbAddAll(org.apache.ojb.broker.ManageableCollection)

afterStore

public void afterStore(org.apache.ojb.broker.PersistenceBroker broker)
                throws org.apache.ojb.broker.PersistenceBrokerException
Specified by:
afterStore in interface org.apache.ojb.broker.ManageableCollection
Throws:
org.apache.ojb.broker.PersistenceBrokerException
See Also:
ManageableCollection.afterStore(org.apache.ojb.broker.PersistenceBroker)

ojbIterator

public java.util.Iterator ojbIterator()
Specified by:
ojbIterator in interface org.apache.ojb.broker.ManageableCollection
See Also:
ManageableCollection.ojbIterator()


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.