P
- type of ParameterProvider's parameterpublic abstract class AbstractContentBasedCachingStrategy<P> extends Object implements CachingStrategy<P>
Content
based CachingStrategy
/ies.Constructor and Description |
---|
AbstractContentBasedCachingStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
getCachePath(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider)
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) |
protected abstract String |
getPathOf(P param) |
protected abstract String |
getWorkspaceName(P param) |
boolean |
shouldRegenerate(info.magnolia.cms.core.NodeData cachedBinary,
ParameterProvider<P> parameterProvider)
The default implementation simply delegates this decision to ParameterProvider.
|
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 © 2015 Magnolia International Ltd.. All rights reserved.