|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.gui.controlx.list.AbstractListModel info.magnolia.cms.gui.controlx.search.AbstractSearchableListModel info.magnolia.cms.gui.controlx.search.RepositorySearchListModel
public class RepositorySearchListModel
Nested Class Summary |
---|
Nested classes/interfaces inherited from class info.magnolia.cms.gui.controlx.list.AbstractListModel |
---|
AbstractListModel.ListComparator |
Field Summary | |
---|---|
protected SearchQuery |
query
search query to be used by sub implementation |
Fields inherited from class info.magnolia.cms.gui.controlx.list.AbstractListModel |
---|
ASCENDING, DESCENDING, groupBy, groupByOrder, sortBy, sortByOrder |
Constructor Summary | |
---|---|
RepositorySearchListModel(String repositoryId)
default constructor |
Method Summary | |
---|---|
protected String |
buildQuery()
Returns the jcr query statement used by the model. |
String |
getNodeType()
get select node type, query will be executed only on these if set |
SearchQuery |
getQuery()
get query |
protected QueryBuilder |
getQueryBuilder()
|
String |
getRepositoryId()
get repository Id |
protected Collection |
getResult()
Creates the jcr query and executes it. |
protected Collection |
getResult(info.magnolia.cms.core.search.QueryResult result)
Gets the items from the query (possibility to post filter) |
protected info.magnolia.cms.core.search.QueryResult |
getResult(String statement)
Executes the query statement and returns the QueryResult. |
String |
getResultNodeType()
|
String |
getSearchPath()
get jcr path, under which search will be executed |
String |
getWorkspaceId()
get workspace Id |
protected String |
resolveId(int index,
Object value)
Returns the uuid of the node |
void |
setNodeType(String selectNodeType)
set select node type value, query will be executed only on these if set |
void |
setQuery(SearchQuery query)
set Query |
void |
setRepositoryId(String repositoryId)
set repository id |
void |
setResultNodeType(String resultNodeType)
|
void |
setSearchPath(String searchPath)
set jcr path, under which search will be executed |
void |
setWorkspaceId(String workspaceId)
set workspace Id |
Methods inherited from class info.magnolia.cms.gui.controlx.list.AbstractListModel |
---|
createIterator, doSort, getGroupBy, getGroupByOrder, getListModelIterator, getSortBy, getSortByOrder, getValueProvider, iterator, newComparator, setGroupBy, setGroupBy, setSortBy, setSortBy, setValueProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface info.magnolia.cms.gui.controlx.list.ListModel |
---|
getGroupBy, getGroupByOrder, getListModelIterator, getSortBy, getSortByOrder, iterator, setGroupBy, setGroupBy, setSortBy, setSortBy |
Field Detail |
---|
protected SearchQuery query
Constructor Detail |
---|
public RepositorySearchListModel(String repositoryId)
Method Detail |
---|
protected String buildQuery()
protected QueryBuilder getQueryBuilder()
protected info.magnolia.cms.core.search.QueryResult getResult(String statement) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
javax.jcr.query.InvalidQueryException
javax.jcr.RepositoryException
protected Collection getResult() throws Exception
getResult
in class AbstractListModel
Exception
protected Collection getResult(info.magnolia.cms.core.search.QueryResult result)
protected String resolveId(int index, Object value)
resolveId
in class AbstractListModel
public String getRepositoryId()
public void setRepositoryId(String repositoryId)
repositoryId
- public String getWorkspaceId()
public void setWorkspaceId(String workspaceId)
workspaceId
- public String getNodeType()
public void setNodeType(String selectNodeType)
nodeType
- public String getSearchPath()
public void setSearchPath(String searchPath)
searchPath
- public void setQuery(SearchQuery query)
setQuery
in interface SearchableListModel
setQuery
in class AbstractSearchableListModel
query
- public SearchQuery getQuery()
getQuery
in interface SearchableListModel
getQuery
in class AbstractSearchableListModel
public void setResultNodeType(String resultNodeType)
public String getResultNodeType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |