public final class ContentStoreUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static ContentStoreInfo |
findContentStore(ContentStoreService stores,
Class<?> contentEntityClass) |
static ContentStoreInfo |
findContentStore(ContentStoreService stores,
String store) |
static ContentStoreInfo |
findStore(ContentStoreService stores,
String store) |
static InputStream |
getContent(ContentStore<Object,Serializable> store,
Object entity,
List<org.springframework.http.MediaType> mimeTypes,
org.springframework.http.HttpHeaders headers)
Given a store and a collection of mime types this method will iterate the
mime-types returning the first input stream that it can find from the store itself
or, if the store implements Renderable from a rendition.
|
static String |
getSimpleName(ContentStoreInfo info) |
static String |
storePath(ContentStoreInfo info) |
static String |
stripStoreName(Store implementation) |
public static InputStream getContent(ContentStore<Object,Serializable> store, Object entity, List<org.springframework.http.MediaType> mimeTypes, org.springframework.http.HttpHeaders headers)
store - store the store to fetch the content frommimeTypes - the mime types requestedentity - the entity whose content is being fetchedheaders - headers that will be sent back to the clientpublic static ContentStoreInfo findContentStore(ContentStoreService stores, Class<?> contentEntityClass)
public static ContentStoreInfo findContentStore(ContentStoreService stores, String store)
public static ContentStoreInfo findStore(ContentStoreService stores, String store)
public static String storePath(ContentStoreInfo info)
public static String getSimpleName(ContentStoreInfo info)
Copyright © 2018 Paul Warren. All rights reserved.