public class JcrThumbnailItemIdProvider extends Object implements ThumbnailContainer.IdProvider
ThumbnailContainer.IdProvider
which queries item ids from JCR workspace.for details.
Modifier and Type | Field and Description |
---|---|
protected static String |
WHERE_TEMPLATE_FOR_PATH |
Constructor and Description |
---|
JcrThumbnailItemIdProvider(info.magnolia.ui.vaadin.integration.contentconnector.JcrContentConnectorDefinition definition) |
Modifier and Type | Method and Description |
---|---|
List<?> |
getItemIds() |
protected String |
getMainNodeType()
Hint: could be dropped once this type bases on AbstractJcrContainer as well (BL-153).
|
protected String |
getQueryWhereClauseNodeTypes() |
protected String |
prepareFilterQueryStatement() |
protected String |
prepareOrderQueryStatement() |
protected String |
prepareSelectQueryStatement() |
protected static final String WHERE_TEMPLATE_FOR_PATH
public JcrThumbnailItemIdProvider(info.magnolia.ui.vaadin.integration.contentconnector.JcrContentConnectorDefinition definition)
public List<?> getItemIds()
getItemIds
in interface ThumbnailContainer.IdProvider
protected String getMainNodeType()
protected String prepareSelectQueryStatement()
protected String prepareFilterQueryStatement()
protected String prepareOrderQueryStatement()
protected String getQueryWhereClauseNodeTypes()
hideInList
property is true or they are of type mgnl:folder
. E.g. assuming a node types declaration like the following
... + workbench + nodeTypes + foo * name = nt:foo + bar * name = nt:bar * hideInList = true + baz * name = nt:baz ...this method will return the following string
[jcr:primaryType] = 'nt:foo' or [jcr:primaryType] = 'baz'
. This will eventually be used to restrict the node types to be searched for
in list and search views, i.e. select * from [nt:base] where ([jcr:primaryType] = 'nt:foo' or [jcr:primaryType] = 'baz')
.Copyright © 2015 Magnolia International Ltd.. All rights reserved.