public class JcrAssetProvider
extends info.magnolia.dam.api.AbstractAssetProvider
implements info.magnolia.dam.api.PathAwareAssetProvider
AssetProvider
that delivers assets for the "dam" workspace.Modifier and Type | Field and Description |
---|---|
protected static String |
ASCENDING_KEYWORD |
protected static String |
ASSET_JOIN_STATEMENT |
protected static String |
ASSET_RESTRICTION |
protected static String |
ASSET_SELECT_STATEMENT |
protected static String |
ASSET_SELECTOR_NAME |
protected static String |
DESCENDING_KEYWORD |
protected static String |
FOLDER_RESTRICTION |
protected static String |
ORDER_BY |
Constructor and Description |
---|
JcrAssetProvider(info.magnolia.dam.core.config.DamCoreConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
protected String |
buildQueryString(info.magnolia.dam.api.AssetQuery assetQuery)
Returns a JCR_SQL2 query string according to the asset filter.
|
info.magnolia.dam.api.Asset |
getAsset(info.magnolia.dam.api.ItemKey assetKey) |
info.magnolia.dam.api.Asset |
getAsset(String assetPath) |
info.magnolia.dam.api.Folder |
getFolder(info.magnolia.dam.api.ItemKey folderKey) |
info.magnolia.dam.api.Folder |
getFolder(String folderPath) |
info.magnolia.dam.api.Item |
getItem(info.magnolia.dam.api.ItemKey itemKey) |
info.magnolia.dam.api.Item |
getItem(String path) |
String |
getLink(info.magnolia.dam.api.Asset asset) |
info.magnolia.dam.api.Folder |
getRootFolder() |
String |
getRootPath() |
String |
getWorkspaceName() |
Iterator<info.magnolia.dam.api.Item> |
list(info.magnolia.dam.api.AssetQuery assetQuery) |
void |
setRootPath(String rootPath) |
protected EnumSet<info.magnolia.dam.api.AssetProviderCapability> |
setupProviderCapabilities() |
void |
setWorkspaceName(String workspaceName) |
boolean |
supports(Class<? extends info.magnolia.dam.api.metadata.AssetMetadata> metaData) |
protected static final String ASSET_SELECTOR_NAME
protected static final String ASSET_SELECT_STATEMENT
protected static final String ASSET_RESTRICTION
protected static final String FOLDER_RESTRICTION
protected static final String ASSET_JOIN_STATEMENT
protected static final String ORDER_BY
protected static final String ASCENDING_KEYWORD
protected static final String DESCENDING_KEYWORD
public JcrAssetProvider(info.magnolia.dam.core.config.DamCoreConfiguration configuration)
public String getRootPath()
public void setRootPath(String rootPath)
public String getWorkspaceName()
public void setWorkspaceName(String workspaceName)
protected EnumSet<info.magnolia.dam.api.AssetProviderCapability> setupProviderCapabilities()
setupProviderCapabilities
in class info.magnolia.dam.api.AbstractAssetProvider
public boolean supports(Class<? extends info.magnolia.dam.api.metadata.AssetMetadata> metaData)
supports
in interface info.magnolia.dam.api.AssetProvider
public info.magnolia.dam.api.Asset getAsset(info.magnolia.dam.api.ItemKey assetKey) throws info.magnolia.dam.api.AssetProvider.AssetNotFoundException, info.magnolia.dam.api.AssetProvider.IllegalItemKeyException
getAsset
in interface info.magnolia.dam.api.AssetProvider
info.magnolia.dam.api.AssetProvider.AssetNotFoundException
info.magnolia.dam.api.AssetProvider.IllegalItemKeyException
public info.magnolia.dam.api.Asset getAsset(String assetPath) throws info.magnolia.dam.api.PathAwareAssetProvider.PathNotFoundException
getAsset
in interface info.magnolia.dam.api.PathAwareAssetProvider
info.magnolia.dam.api.PathAwareAssetProvider.PathNotFoundException
public info.magnolia.dam.api.Folder getFolder(info.magnolia.dam.api.ItemKey folderKey) throws info.magnolia.dam.api.AssetProvider.AssetNotFoundException, info.magnolia.dam.api.AssetProvider.IllegalItemKeyException
getFolder
in interface info.magnolia.dam.api.AssetProvider
info.magnolia.dam.api.AssetProvider.AssetNotFoundException
info.magnolia.dam.api.AssetProvider.IllegalItemKeyException
public info.magnolia.dam.api.Folder getFolder(String folderPath) throws info.magnolia.dam.api.PathAwareAssetProvider.PathNotFoundException
getFolder
in interface info.magnolia.dam.api.PathAwareAssetProvider
info.magnolia.dam.api.PathAwareAssetProvider.PathNotFoundException
public info.magnolia.dam.api.Item getItem(info.magnolia.dam.api.ItemKey itemKey) throws info.magnolia.dam.api.AssetProvider.AssetNotFoundException, info.magnolia.dam.api.AssetProvider.IllegalItemKeyException
getItem
in interface info.magnolia.dam.api.AssetProvider
info.magnolia.dam.api.AssetProvider.AssetNotFoundException
info.magnolia.dam.api.AssetProvider.IllegalItemKeyException
public info.magnolia.dam.api.Item getItem(String path) throws info.magnolia.dam.api.PathAwareAssetProvider.PathNotFoundException
getItem
in interface info.magnolia.dam.api.PathAwareAssetProvider
info.magnolia.dam.api.PathAwareAssetProvider.PathNotFoundException
public info.magnolia.dam.api.Folder getRootFolder()
getRootFolder
in interface info.magnolia.dam.api.AssetProvider
public Iterator<info.magnolia.dam.api.Item> list(info.magnolia.dam.api.AssetQuery assetQuery)
list
in interface info.magnolia.dam.api.AssetProvider
protected String buildQueryString(info.magnolia.dam.api.AssetQuery assetQuery)
public String getLink(info.magnolia.dam.api.Asset asset)
Copyright © 2017 Magnolia International Ltd.. All rights reserved.