Package org.craftercms.core.store
Interface ContentStoreAdapter
- All Known Implementing Classes:
AbstractCachedContentStoreAdapter,AbstractFileBasedContentStoreAdapter,FileSystemContentStoreAdapter
public interface ContentStoreAdapter
Adapter that provides path based access to a repository of some type.
- Author:
- Sumer Jabri, Michiel Verkaik, Alfonso Vásquez
-
Method Summary
Modifier and TypeMethodDescriptioncreateContext(String id, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles, Map<String, String> configurationVariables) voiddestroyContext(Context context) booleanexists(Context context, CachingOptions cachingOptions, String path) findContent(Context context, CachingOptions cachingOptions, String path) findItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) findItems(Context context, CachingOptions cachingOptions, String path) boolean
-
Method Details
-
createContext
Context createContext(String id, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles, Map<String, String> configurationVariables) throws RootFolderNotFoundException, StoreException, AuthenticationException -
validate
-
destroyContext
-
exists
boolean exists(Context context, CachingOptions cachingOptions, String path) throws InvalidContextException, StoreException -
findContent
Content findContent(Context context, CachingOptions cachingOptions, String path) throws InvalidContextException, StoreException -
findItem
Item findItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) throws InvalidContextException, XmlFileParseException, StoreException -
findItems
List<Item> findItems(Context context, CachingOptions cachingOptions, String path) throws InvalidContextException, XmlFileParseException, StoreException
-