org.exoplatform.forum.common.jcr
Class JCRListAccess<E>

java.lang.Object
  extended by org.exoplatform.forum.common.jcr.JCRListAccess<E>
All Implemented Interfaces:
org.exoplatform.commons.utils.ListAccess<E>

public abstract class JCRListAccess<E>
extends Object
implements org.exoplatform.commons.utils.ListAccess<E>

Basis for JCR-based list access. Acquires and releases system sessions on default workspace.

Version:
$Revision$
Author:
Patrice Lamarque

Field Summary
protected  SessionManager manager
           
 
Constructor Summary
JCRListAccess(SessionManager manager)
           
 
Method Summary
 int getSize()
           
protected abstract  int getSize(javax.jcr.Session session)
           
 E[] load(int index, int length)
           
protected abstract  E[] load(javax.jcr.Session session, int index, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected SessionManager manager
Constructor Detail

JCRListAccess

public JCRListAccess(SessionManager manager)
Method Detail

load

public E[] load(int index,
                int length)
         throws Exception,
                IllegalArgumentException
Specified by:
load in interface org.exoplatform.commons.utils.ListAccess<E>
Throws:
Exception
IllegalArgumentException

getSize

public int getSize()
            throws Exception
Specified by:
getSize in interface org.exoplatform.commons.utils.ListAccess<E>
Throws:
Exception

load

protected abstract E[] load(javax.jcr.Session session,
                            int index,
                            int length)
                     throws Exception,
                            IllegalArgumentException
Throws:
Exception
IllegalArgumentException

getSize

protected abstract int getSize(javax.jcr.Session session)
                        throws Exception
Throws:
Exception


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.