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.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using channel.getProperties
or
channel.getProperty
.
propertiesChange
in interface JPropertiesListener
properties
- the properties which have been submitted to changepublic void initFromProperties()
Copyright © 2001-2022 Jalios SA. All Rights Reserved.