eXo JCR :: Ext :: Services 1.15.11-GA

org.exoplatform.services.jcr.ext.organization
Class UserByQueryJCRUserListAccess

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.organization.JCRUserListAccess
      extended by org.exoplatform.services.jcr.ext.organization.UserByQueryJCRUserListAccess
All Implemented Interfaces:
org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.User>

public class UserByQueryJCRUserListAccess
extends JCRUserListAccess

Created by The eXo Platform SAS.

Version:
$Id: UserByQueryJCRUserListAccess.java 111 2008-11-11 11:11:11Z $
Author:
Anatoliy Bazko

Field Summary
 
Fields inherited from class org.exoplatform.services.jcr.ext.organization.JCRUserListAccess
DEFAULT_PAGE_SIZE, iterator, service, uHandler, utils
 
Constructor Summary
UserByQueryJCRUserListAccess(JCROrganizationServiceImpl service, org.exoplatform.services.organization.Query query)
          UserByQueryJCRUserListAccess constructor.
 
Method Summary
protected  boolean canReuseIterator()
          Indicates if we able to reuse current iterator.
protected  javax.jcr.NodeIterator createIterator(javax.jcr.Session session)
          Returns iterator over entities.
protected  int getSize(javax.jcr.Session session)
          Determines the count of available users.
protected  Object readObject(javax.jcr.Node node)
          Reads entity from node.
 
Methods inherited from class org.exoplatform.services.jcr.ext.organization.JCRUserListAccess
getSize, load, reuseIterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserByQueryJCRUserListAccess

public UserByQueryJCRUserListAccess(JCROrganizationServiceImpl service,
                                    org.exoplatform.services.organization.Query query)
                             throws javax.jcr.RepositoryException
UserByQueryJCRUserListAccess constructor.

Throws:
javax.jcr.RepositoryException
Method Detail

getSize

protected int getSize(javax.jcr.Session session)
               throws Exception
Determines the count of available users.

Specified by:
getSize in class JCRUserListAccess
Throws:
Exception

canReuseIterator

protected boolean canReuseIterator()
Indicates if we able to reuse current iterator. It is not possible to reuse because session is closed in query.

Overrides:
canReuseIterator in class JCRUserListAccess

createIterator

protected javax.jcr.NodeIterator createIterator(javax.jcr.Session session)
                                         throws javax.jcr.RepositoryException
Returns iterator over entities.

Specified by:
createIterator in class JCRUserListAccess
Throws:
javax.jcr.RepositoryException

readObject

protected Object readObject(javax.jcr.Node node)
                     throws Exception
Reads entity from node.

Specified by:
readObject in class JCRUserListAccess
Throws:
Exception

eXo JCR :: Ext :: Services 1.15.11-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.