@Scope(value=CONVERSATION) @Name(value="filterActions") @Install(precedence=10) public class FilterActions extends Object implements Serializable, ResultsProviderFarm
Modifier and Type | Field and Description |
---|---|
static String |
ASSET_LIBRARY_PATH_FIELD_XPATH |
static List<String> |
DAM_DOCUMENT_TYPES |
static String |
DC_COVERAGE_DIRECTORY_TREE |
static String |
DOCTYPE_FIELD_XPATH |
static String |
PATH_FIELD_XPATH |
static String |
QUERY_MODEL_NAME |
static String |
TOPIC_DIRECTORY_TREE |
Constructor and Description |
---|
FilterActions() |
Modifier and Type | Method and Description |
---|---|
void |
clearFilters() |
List<DirectoryTreeNode> |
getCoverageTreeRoots() |
List<SelectItem> |
getDocTypeSelectItems() |
DocumentModel |
getFilterDocument() |
SelectItem |
getFolderSelectedItem() |
PagedDocumentsProvider |
getResultsProvider(String queryModelName)
Makes a new, fresh instance of the named results provider.
|
PagedDocumentsProvider |
getResultsProvider(String queryModelName,
SortInfo sortInfo) |
List<DirectoryTreeNode> |
getTopicTreeRoots() |
List<SelectItem> |
getUserImportSetsSelectItems() |
void |
invalidateProvider() |
boolean |
isFolderToHighlight(DocumentTreeNodeImpl node) |
void |
queryModelChanged(QueryModel qm) |
void |
toggleSelectDocType() |
void |
toggleSelectFolder() |
public static final String DC_COVERAGE_DIRECTORY_TREE
public static final String TOPIC_DIRECTORY_TREE
public static final String QUERY_MODEL_NAME
public static final String DOCTYPE_FIELD_XPATH
public static final String PATH_FIELD_XPATH
public static final String ASSET_LIBRARY_PATH_FIELD_XPATH
public DocumentModel getFilterDocument() throws ClientException
ClientException
@Factory(value="docTypeSelectItems", scope=EVENT) public List<SelectItem> getDocTypeSelectItems() throws ClientException
ClientException
public void toggleSelectDocType() throws ClientException
ClientException
public List<DirectoryTreeNode> getCoverageTreeRoots()
public List<DirectoryTreeNode> getTopicTreeRoots()
@Factory(value="userImportSetsSelectItems", scope=EVENT) public List<SelectItem> getUserImportSetsSelectItems() throws ClientException
ClientException
public SelectItem getFolderSelectedItem() throws ClientException
ClientException
public void toggleSelectFolder() throws ClientException
ClientException
public PagedDocumentsProvider getResultsProvider(String queryModelName) throws ClientException, ResultsProviderFarmUserException
ResultsProviderFarm
getResultsProvider
in interface ResultsProviderFarm
queryModelName
- the name of the ResultsProvider instance to createClientException
ResultsProviderFarmUserException
public PagedDocumentsProvider getResultsProvider(String queryModelName, SortInfo sortInfo) throws ClientException, ResultsProviderFarmUserException
getResultsProvider
in interface ResultsProviderFarm
queryModelName
- the name of the ResultsProvider instance to createsortInfo
- an object containing the sort detailsClientException
ResultsProviderFarmUserException
@Observer(value="queryModelChanged") public void queryModelChanged(QueryModel qm)
@Observer(value={"documentChildrenChanged","folderListChanged"}) public void invalidateProvider()
public void clearFilters() throws ClientException
ClientException
public boolean isFolderToHighlight(DocumentTreeNodeImpl node) throws ClientException
ClientException
Copyright © 2011 Nuxeo SA. All Rights Reserved.