public class EntityIndexBeanProvider extends AbstractIndexBeanProvider
AbstractIndexBeanProvider.DetectMissingBeansAction
GenericService.StartCommand, GenericService.StopCommand
CLASS_VERSION
mLogger, state
Constructor and Description |
---|
EntityIndexBeanProvider() |
Modifier and Type | Method and Description |
---|---|
protected AbstractIndexBeanProvider.DetectMissingBeansAction |
createMissingBeansAction(Timestamp pModifiedAfter) |
List<IndexBean> |
getBeans(Head pFrom,
boolean pAscending,
int pCount,
boolean pInsertAsTail)
Retrieves a number of
beans from the given position
in a specified order. |
List<IndexBean> |
getBeans(Timestamp pFrom,
boolean pAscending,
int pCount)
Retrieves a number of
beans from the given timestamp
in a specified order. |
protected List<IndexBean> |
getBeans(Timestamp pFromTimestamp,
int pFromID,
String pSelector,
boolean pAscending,
int pCount,
boolean pInsertAsTail) |
neo.xredsys.content.entity.EntityManager |
getEntityManager() |
IndexBean.IndexBeanType |
getIndexBeanType()
Returns type of
IndexBean which is provided by the IndexBeanProvider. |
void |
setEntityManager(neo.xredsys.content.entity.EntityManager pEntityManager) |
protected void |
startService()
Is called by
AbstractNurseryService.doStartService() when the NurseryService is being started. |
getACLManager, getContentManager, getMissingBeans, getMissingBeans, setACLManager, setContentManager, stopService
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBeans
public neo.xredsys.content.entity.EntityManager getEntityManager()
public void setEntityManager(neo.xredsys.content.entity.EntityManager pEntityManager)
protected void startService() throws Exception
AbstractNurseryService
Is called by AbstractNurseryService.doStartService()
when the NurseryService
is being started. Exceptions thrown by this
method are logged by AbstractNurseryService.doStartService()
.
Subclasses must implement this method to bootstrap the service.
startService
in class AbstractIndexBeanProvider
Exception
- when something goes wrong during startup. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.IllegalArgumentException
- when the configuration of the service
is invalid. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.IllegalStateException
- when this service is in the wrong state for startup. Used to signal to AbstractNurseryService.doStartService()
that it is OK to try to starting
this service
later. GenericService.isServiceRunning()
returns false
and GenericService.isServiceIdle()
returns true
.AbstractNurseryService.doStartService()
public List<IndexBean> getBeans(Timestamp pFrom, boolean pAscending, int pCount)
IndexBeanProvider
beans
from the given timestamp
in a specified order.public List<IndexBean> getBeans(Head pFrom, boolean pAscending, int pCount, boolean pInsertAsTail)
IndexBeanProvider
beans
from the given position
in a specified order.pFrom
- - the to fetch the beans
from.
For backwards compatibility, the Head must contain both the objectID and the last modified
timestamp of the head item.pAscending
- - the order of the returned beans
.pCount
- - the number of objects to be returned.pInsertAsTail
- - true if the beans should be inserted as tail entriesbeans
in the specified order.protected List<IndexBean> getBeans(Timestamp pFromTimestamp, int pFromID, String pSelector, boolean pAscending, int pCount, boolean pInsertAsTail)
public IndexBean.IndexBeanType getIndexBeanType()
IndexBeanProvider
IndexBean
which is provided by the IndexBeanProvider.protected AbstractIndexBeanProvider.DetectMissingBeansAction createMissingBeansAction(Timestamp pModifiedAfter)
createMissingBeansAction
in class AbstractIndexBeanProvider
© 1998- 2021 Escenic AS