P
- type of ParameterProvider's parameterAbstractNodeBasedCachingStrategy
@Deprecated public abstract class AbstractContentBasedCachingStrategy<P> extends Object implements CachingStrategy<P>
Content
based CachingStrategy
/ies.Constructor and Description |
---|
AbstractContentBasedCachingStrategy()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getCachePath(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider)
Deprecated.
Returns a unique path pertinent to the given generator and parameter to use for storing
the generated image.
|
protected abstract info.magnolia.cms.core.Content |
getContent(P param)
Deprecated.
|
protected abstract String |
getPathOf(P param)
Deprecated.
|
protected abstract String |
getWorkspaceName(P param)
Deprecated.
|
boolean |
shouldRegenerate(info.magnolia.cms.core.NodeData cachedBinary,
ParameterProvider<P> parameterProvider)
Deprecated.
The default implementation simply delegates this decision to ParameterProvider.
|
public AbstractContentBasedCachingStrategy()
public String getCachePath(ImageGenerator<ParameterProvider<P>> generator, ParameterProvider<P> parameterProvider)
CachingStrategy
getCachePath
in interface CachingStrategy<P>
public boolean shouldRegenerate(info.magnolia.cms.core.NodeData cachedBinary, ParameterProvider<P> parameterProvider)
shouldRegenerate
in interface CachingStrategy<P>
protected abstract info.magnolia.cms.core.Content getContent(P param)
Copyright © 2016 Magnolia International Ltd.. All rights reserved.