org.exoplatform.forum.common.jcr
Class JCRListAccess<E>
java.lang.Object
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
|
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 |
manager
protected SessionManager manager
JCRListAccess
public JCRListAccess(SessionManager manager)
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 © 2013 eXo Platform SAS. All Rights Reserved.