|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.query.AbstractCannedQueryFactory
public abstract class AbstractCannedQueryFactory
Basic services for CannedQueryFactory
implementations.
Constructor Summary | |
---|---|
AbstractCannedQueryFactory()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Registers the instance |
CannedQuery |
getCannedQuery(java.lang.Object parameterBean,
int skipResults,
int pageSize,
java.lang.String queryExecutionId)
Retrieve an instance of a CannedQuery based on limited parameters. |
protected java.lang.String |
getQueryExecutionId(CannedQueryParameters parameters)
Helper method to construct a unique query execution ID based on the instance of the factory and the parameters provided. |
void |
setBeanName(java.lang.String name)
Set the name with which to register |
void |
setRegistry(NamedObjectRegistry registry)
Set the registry with which to register |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.query.CannedQueryFactory |
---|
getCannedQuery |
Constructor Detail |
---|
public AbstractCannedQueryFactory()
Method Detail |
---|
public void setBeanName(java.lang.String name)
register
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
name
- the name of the beanpublic void setRegistry(NamedObjectRegistry registry)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
protected java.lang.String getQueryExecutionId(CannedQueryParameters parameters)
parameters
- the query parameters
public CannedQuery getCannedQuery(java.lang.Object parameterBean, int skipResults, int pageSize, java.lang.String queryExecutionId)
CannedQuery
based on limited parameters.
getCannedQuery
in interface CannedQueryFactory
parameterBean
- the values that the query will be based on or null
if not relevant to the queryskipResults
- results to skip before pagepageSize
- the size of page - ie. max items (if skipResults = 0)queryExecutionId
- ID of a previously-executed query to be used during follow-up
page requests - null if not available
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |