|
||||||||||
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(java.lang.String repositoryId)
default constructor |
Method Summary | |
---|---|
protected java.lang.String |
buildQuery()
Returns the jcr query statement used by the model. |
java.lang.String |
getNodeType()
get select node type, query will be executed only on these if set |
SearchQuery |
getQuery()
get query |
protected QueryBuilder |
getQueryBuilder()
|
java.lang.String |
getRepositoryId()
get repository Id |
protected java.util.Collection |
getResult()
Creates the jcr query and executes it. |
protected java.util.Collection |
getResult(QueryResult result)
Gets the items from the query (possibility to post filter) |
protected QueryResult |
getResult(java.lang.String statement)
Executes the query statement and returns the QueryResult. |
java.lang.String |
getResultNodeType()
|
java.lang.String |
getSearchPath()
get jcr path, under which search will be executed |
java.lang.String |
getWorkspaceId()
get workspace Id |
protected java.lang.String |
resolveId(int index,
java.lang.Object value)
Returns the uuid of the node |
void |
setNodeType(java.lang.String selectNodeType)
set select node type value, query will be executed only on these if set |
void |
setQuery(SearchQuery query)
set Query |
void |
setRepositoryId(java.lang.String repositoryId)
set repository id |
void |
setResultNodeType(java.lang.String resultNodeType)
|
void |
setSearchPath(java.lang.String searchPath)
set jcr path, under which search will be executed |
void |
setWorkspaceId(java.lang.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(java.lang.String repositoryId)
Method Detail |
---|
protected java.lang.String buildQuery()
protected QueryBuilder getQueryBuilder()
protected QueryResult getResult(java.lang.String statement) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
javax.jcr.query.InvalidQueryException
javax.jcr.RepositoryException
protected java.util.Collection getResult() throws java.lang.Exception
getResult
in class AbstractListModel
java.lang.Exception
protected java.util.Collection getResult(QueryResult result)
protected java.lang.String resolveId(int index, java.lang.Object value)
resolveId
in class AbstractListModel
public java.lang.String getRepositoryId()
public void setRepositoryId(java.lang.String repositoryId)
repositoryId
- public java.lang.String getWorkspaceId()
public void setWorkspaceId(java.lang.String workspaceId)
workspaceId
- public java.lang.String getNodeType()
public void setNodeType(java.lang.String selectNodeType)
nodeType
- public java.lang.String getSearchPath()
public void setSearchPath(java.lang.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(java.lang.String resultNodeType)
public java.lang.String getResultNodeType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |