Package org.craftercms.core.store
Interface ContentStoreAdapter
-
- All Known Implementing Classes:
AbstractCachedContentStoreAdapter,AbstractFileBasedContentStoreAdapter,FileSystemContentStoreAdapter
public interface ContentStoreAdapterAdapter that provides path based access to a repository of some type.- Author:
- Sumer Jabri, Michiel Verkaik, Alfonso Vásquez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContextcreateContext(String id, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles)voiddestroyContext(Context context)booleanexists(Context context, CachingOptions cachingOptions, String path)ContentfindContent(Context context, CachingOptions cachingOptions, String path)ItemfindItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor)List<Item>findItems(Context context, CachingOptions cachingOptions, String path)booleanvalidate(Context context)
-
-
-
Method Detail
-
createContext
Context createContext(String id, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles) throws RootFolderNotFoundException, StoreException, AuthenticationException
-
validate
boolean validate(Context context) throws StoreException, AuthenticationException
-
destroyContext
void destroyContext(Context context) throws StoreException, AuthenticationException
-
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
-
-