public interface ObjectPreviewService
| Modifier and Type | Field and Description |
|---|---|
static String |
PREFERRED_PREVIEW_SUFFIX |
| Modifier and Type | Method and Description |
|---|---|
ObjectPreview |
getPreview(Object data,
Base configuration)
Gets preview for the given object
|
default ObjectPreview |
getPreview(Object data,
Base configuration,
CockpitContext context)
Gets preview for the given object
|
ObjectPreview |
getPreview(String mime)
Gets preview for the given mime
|
default ObjectPreview |
getPreview(String mime,
CockpitContext context)
Gets preview for the given mime
|
static final String PREFERRED_PREVIEW_SUFFIX
ObjectPreview getPreview(String mime)
mime - type for which a default preview URL should be returneddefault ObjectPreview getPreview(String mime, CockpitContext context)
mime - type for which a default preview URL should be returnedcontext - context to resolve the previewObjectPreview getPreview(Object data, Base configuration)
data - object for which preview URL should be returnedconfiguration - Base configuration for the typedefault ObjectPreview getPreview(Object data, Base configuration, CockpitContext context)
data - object for which preview URL should be returnedconfiguration - Base configuration for the typecontext - context to resolve the previewCopyright © 2018. All rights reserved.