info.magnolia.dam.api
Interface PathAwareAssetProvider


public interface PathAwareAssetProvider

Expose specific operations for AssetProviders which are aware of paths. (eg JCR, CMIS, File system, ...) Not all provider need/want to implement these features. The term "path" here is to be taken with a pinch of salt. It might be a single name, or it can be a "relative" path, if this provider serves assets from a subsection of its underlying data source.

See Also:
AssetProviderCapability.hierarchical, AssetProvider

Nested Class Summary
static class PathAwareAssetProvider.PathNotFoundException
          Thrown when no Item can be found at the given path.
 
Method Summary
 Asset getAsset(String assetPath)
           
 Folder getFolder(String folderPath)
           
 Item getItem(String path)
           
 

Method Detail

getItem

Item getItem(String path)
             throws PathAwareAssetProvider.PathNotFoundException
Throws:
IllegalArgumentException - if the path does not correspond to an Item of the Folder or Asset type.
PathAwareAssetProvider.PathNotFoundException

getAsset

Asset getAsset(String assetPath)
               throws PathAwareAssetProvider.PathNotFoundException
Throws:
IllegalArgumentException - if the path does not correspond to an Item of the Asset type.
PathAwareAssetProvider.PathNotFoundException

getFolder

Folder getFolder(String folderPath)
                 throws PathAwareAssetProvider.PathNotFoundException
Throws:
IllegalArgumentException - if the path does not correspond to an Item of the Folder type.
PathAwareAssetProvider.PathNotFoundException


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.