ContentViewActions instead@Scope(value=CONVERSATION) @Name(value="queryModelActions") @Deprecated public class QueryModelActionsBean extends Object implements QueryModelActions, Serializable
| Constructor and Description |
|---|
QueryModelActionsBean()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Deprecated.
|
QueryModel |
get(String queryModelName)
Deprecated.
Obtain a scoped instance of QueryModel.
|
PagedDocumentsProvider |
getResultsProvider(String queryModelName)
Deprecated.
Makes a new, fresh instance of the named results provider.
|
PagedDocumentsProvider |
getResultsProvider(String queryModelName,
SortInfo sortInfo)
Deprecated.
|
boolean |
isInitialized()
Deprecated.
|
boolean |
isPersisted(String queryModelName)
Deprecated.
Tell if the DocumentModel behind the specified QueryModel has been
persisted in Nuxeo Core.
|
QueryModel |
load(String queryModelName,
DocumentRef ref)
Deprecated.
Load a stateful QueryModel from the specified DocumentRef.
|
QueryModel |
persist(String queryModelName,
String parentPath,
String name)
Deprecated.
Save the specified stateful QueryModel.
|
QueryModel |
persist(String queryModelName,
String parentPath,
String name,
boolean saveSession)
Deprecated.
Save the specified stateful QueryModel.
|
void |
queryModelChanged(QueryModel qm)
Deprecated.
Observer on Seam event to perform some necessary invalidations
|
void |
reset(String queryModelName)
Deprecated.
Reset the specified QueryModel.
|
public boolean isInitialized()
isInitialized in interface QueryModelActionspublic QueryModel get(String queryModelName) throws ClientException
QueryModelActionsget in interface QueryModelActionsClientExceptionpublic PagedDocumentsProvider getResultsProvider(String queryModelName) throws ClientException, ResultsProviderFarmUserException
ResultsProviderFarmgetResultsProvider in interface ResultsProviderFarmqueryModelName - the name of the ResultsProvider instance to createClientExceptionResultsProviderFarmUserExceptionpublic PagedDocumentsProvider getResultsProvider(String queryModelName, SortInfo sortInfo) throws ClientException, ResultsProviderFarmUserException
getResultsProvider in interface ResultsProviderFarmqueryModelName - the name of the ResultsProvider instance to createsortInfo - an object containing the sort detailsClientExceptionResultsProviderFarmUserException@Observer(value="queryModelChanged") public void queryModelChanged(QueryModel qm)
QueryModelActionsqueryModelChanged in interface QueryModelActionsqm - the query model that's been changedpublic void reset(String queryModelName) throws ClientException
QueryModelActionsStart over with a fresh, transient DocumentModel instance.
reset in interface QueryModelActionsClientExceptionpublic void destroy()
public boolean isPersisted(String queryModelName) throws ClientException
QueryModelActionsisPersisted in interface QueryModelActionsqueryModelName - The query model nameClientExceptionpublic QueryModel load(String queryModelName, DocumentRef ref) throws ClientException
QueryModelActionsThe queryModelChanged event is thrown, meaning in particular that
ResultsProviderCache invalidation is performed.
load in interface QueryModelActionsClientException - if qm is not stateful, document could not be retrieved.public QueryModel persist(String queryModelName, String parentPath, String name) throws ClientException
QueryModelActionsThis is equivalent to the other signature, with saveSession set to True
persist in interface QueryModelActionsparentPath - The path of parent folder to save intoname - The local name to use.ClientException - forwarding from the Core, stateless QueryModel,
if QueryModel has already been persistedpublic QueryModel persist(String queryModelName, String parentPath, String name, boolean saveSession) throws ClientException
QueryModelActions
The DocumentModel instance that backs the QueryModel is saved
in the CoreSession available in Seam's context. Necessary updates
are performed. The returned QueryModel instance is identical to the
one obtained by a subsequent call to get.
Further document operations, e.g., modifications, for this QueryModel
can be done on the DocumentModel instance directly, but CoreSession methods
returning a new DocumentModel instance must be followed by a call to
load and dependent objects (page providers, etc.) must be updated
as well.
It is not possible to call again this method on the same QueryModel, to
avoid consistency problems at the DocumentModel level. Therefore
If one wants to save a QueryModel, then change and eventually save it to
a different target in Nuxeo Core, one must call the
reset method before performing the changes.
persist in interface QueryModelActionsparentPath - The path of parent folder to save intoname - The local name to use.saveSession - if true, the Core Session is savedClientException - forwarding from the Core, stateless QueryModel,
if QueryModel has already been persistedCopyright © 2012 Nuxeo SA. All Rights Reserved.