public class ThumbnailPolicyManager extends AbstractPolicyManager<ThumbnailPolicyFilter> implements JPropertiesListener
REVISION
Modifier and Type | Method and Description |
---|---|
boolean |
createThumbnail(FileDocument doc,
java.io.File dest,
ImageFormat format,
int maxWidth,
int maxHeight,
java.lang.String background,
boolean square) |
boolean |
createThumbnail(java.io.File src,
java.io.File dest,
ImageFormat format,
int maxWidth,
int maxHeight,
java.lang.String background,
boolean square) |
boolean |
createThumbnail(java.net.URL url,
java.io.File dest,
ImageFormat format,
int maxWidth,
int maxHeight,
java.lang.String background,
boolean square) |
static ThumbnailPolicyManager |
getInstance() |
protected java.lang.String |
getStatusXmlTagName() |
void |
initFromProperties() |
boolean |
isValidImageSize(java.io.File imgFile,
long width,
long height,
boolean jcms) |
void |
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk.
|
boolean |
supportsThumbnail(FileDocument doc,
boolean jcms) |
addPolicyFilter, getPolicyFilters, getPolicyFiltersMap, handleException, removePolicyFilter, replacePolicyFilter
public static final ThumbnailPolicyManager getInstance()
protected java.lang.String getStatusXmlTagName()
getStatusXmlTagName
in class AbstractPolicyManager<ThumbnailPolicyFilter>
public boolean createThumbnail(java.io.File src, java.io.File dest, ImageFormat format, int maxWidth, int maxHeight, java.lang.String background, boolean square)
public boolean isValidImageSize(java.io.File imgFile, long width, long height, boolean jcms)
public boolean supportsThumbnail(FileDocument doc, boolean jcms)
public boolean createThumbnail(FileDocument doc, java.io.File dest, ImageFormat format, int maxWidth, int maxHeight, java.lang.String background, boolean square)
public boolean createThumbnail(java.net.URL url, java.io.File dest, ImageFormat format, int maxWidth, int maxHeight, java.lang.String background, boolean square)
public void propertiesChange(JProperties properties)
JPropertiesListener
You cannot alter the value received in parameters.
propertiesChange
in interface JPropertiesListener
properties
- the properties which have been modified (may not contain all JCMS properties)public void initFromProperties()
Copyright © 2001-2021 Jalios SA. All Rights Reserved.