|
eXo JCR :: Ext :: Services 1.16.7-RC01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.ext.organization.JCRUserListAccess
public abstract class JCRUserListAccess
Created by The eXo Platform SAS.
| Field Summary | |
|---|---|
static int |
DEFAULT_PAGE_SIZE
Default value of page size. |
protected javax.jcr.NodeIterator |
iterator
Iterator by children items. |
protected static org.exoplatform.services.log.Log |
LOG
Logger. |
protected JCROrganizationServiceImpl |
service
JCR implementation of OrganizationService. |
protected org.exoplatform.services.organization.UserStatus |
status
Indicates the expected status of the users |
protected UserHandlerImpl |
uHandler
JCR implementation of UserHandler. |
protected Utils |
utils
Utility class. |
| Constructor Summary | |
|---|---|
JCRUserListAccess(JCROrganizationServiceImpl service,
org.exoplatform.services.organization.UserStatus status)
JCRListAccess constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
accept(javax.jcr.Node node)
Tests whether or not the specified node should be included in the node list. |
protected boolean |
canReuseIterator()
Indicates if we able to reuse current iterator. |
protected abstract javax.jcr.NodeIterator |
createIterator(javax.jcr.Session session)
Returns iterator over entities. |
int |
getSize()
|
protected abstract int |
getSize(javax.jcr.Session session)
Determines the count of available users. |
org.exoplatform.services.organization.User[] |
load(int index,
int length)
|
protected abstract Object |
readObject(javax.jcr.Node node)
Reads entity from node. |
protected void |
reuseIterator(javax.jcr.Session session,
int newPosition)
Check if possible to reuse current iterator (which means possibility to fetch next nodes in row). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.exoplatform.services.log.Log LOG
public static final int DEFAULT_PAGE_SIZE
protected final JCROrganizationServiceImpl service
OrganizationService.
protected final UserHandlerImpl uHandler
UserHandler.
protected final Utils utils
protected javax.jcr.NodeIterator iterator
protected final org.exoplatform.services.organization.UserStatus status
| Constructor Detail |
|---|
public JCRUserListAccess(JCROrganizationServiceImpl service,
org.exoplatform.services.organization.UserStatus status)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException| Method Detail |
|---|
public org.exoplatform.services.organization.User[] load(int index,
int length)
throws Exception,
IllegalArgumentException
load in interface org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User>Exception
IllegalArgumentException
public int getSize()
throws Exception
getSize in interface org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User>Exception
protected void reuseIterator(javax.jcr.Session session,
int newPosition)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected boolean canReuseIterator()
protected abstract Object readObject(javax.jcr.Node node)
throws Exception
Exception
protected abstract javax.jcr.NodeIterator createIterator(javax.jcr.Session session)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected abstract int getSize(javax.jcr.Session session)
throws Exception
Exceptionprotected boolean accept(javax.jcr.Node node)
node - The node to be tested
true if and only if node
should be included
|
eXo JCR :: Ext :: Services 1.16.7-RC01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||