public abstract class JCRUserListAccess extends Object implements org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User>
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
JCRUserListAccess(JCROrganizationServiceImpl service,
org.exoplatform.services.organization.UserStatus status)
JCRListAccess constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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).
|
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
public JCRUserListAccess(JCROrganizationServiceImpl service, org.exoplatform.services.organization.UserStatus status) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic 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>ExceptionIllegalArgumentExceptionpublic int getSize()
throws Exception
getSize in interface org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User>Exceptionprotected 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
Exceptionprotected abstract javax.jcr.NodeIterator createIterator(javax.jcr.Session session)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected abstract int getSize(javax.jcr.Session session)
throws Exception
Exceptionprotected boolean accept(javax.jcr.Node node)
node - The node to be testedtrue if and only if node
should be includedCopyright © 2014 eXo Platform SAS. All Rights Reserved.