public class Images extends AbstractImages
AbstractImages.CKeyCache| Modifier and Type | Field and Description |
|---|---|
static Parameter[] |
CACHE_PARAMETERS |
static Parameter[] |
CACHEDNODE_PARAMETERS |
protected String |
defaultImageType
Supposed image type if not could be determined (configurable)
|
(package private) static Timer |
deleter |
static Parameter[] |
DIMENSION_PARAMETERS |
(package private) static Map<File,Dimension> |
dimensions |
static Parameter[] |
GUI_PARAMETERS |
static Parameter[] |
HEIGHT_PARAMETERS |
static Parameter[] |
WIDTH_PARAMETERS |
FIELD_FILESIZE, FIELD_HEIGHT, FIELD_ITYPE, FIELD_WIDTH, handleCache, IMAGE_HANDLE_FIELDSexternalUrlField, FIELD_FILENAME, FIELD_HANDLE, FIELD_MIMETYPE, FORMAT_PARAMETERS, legalizeFileName, MIMETYPE_PARAMETERS, PROPERTY_EXTERNAL_URL_FIELD, usesBridgeServletAGE_PARAMETERS, broadCastChanges, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, EVENT_TYPE_LOCAL, EVENT_TYPE_REMOTE, FIELD_NUMBER, FIELD_OBJECT_TYPE, FIELD_OWNER, fields, genericBlobCache, getFunctions, GUI_INDICATOR, guiFunction, infoFunction, internalVersion, nodeCache, oType, pluralNames, searchAge, singularNames, SYSTEM_OWNER, TEMPNODE_DEFAULT_SIZE, temporaryNodes, TMP_FIELD_EXISTS, TMP_FIELD_NUMBER, virtual, WRAP_PARAMETERS, wrapFunctionmaxNodesFromQuery, mmb, storageConnector, tableNamefunctions| Constructor and Description |
|---|
Images() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
commit(MMObjectNode node)
Commit changes to this node to the storage layer.
|
static File |
createTemporaryFile(SerializableInputStream in,
String template) |
protected Object |
executeFunction(MMObjectNode node,
String function,
List<?> args)
The executeFunction of this builder adds the 'cache' function.
|
protected void |
fillImageCacheNode(MMObjectNode image,
MMObjectNode icacheNode,
String template) |
MMObjectNode |
getCachedNode(MMObjectNode node,
String template)
Returns a icache node for given image node and conversion template.
|
String |
getDefaultImageType()
The default image type is used when magic could not determin the type
|
protected Dimension |
getDimension(MMObjectNode node,
String template) |
protected String |
getGuiForNewImage(MMObjectNode node,
String alt,
Parameters args) |
protected String |
getGUIIndicatorWithAlt(MMObjectNode node,
String alt,
Parameters args)
The GUI-indicator of an image-node also needs a res/req object.
|
protected String |
getSGUIIndicatorForNode(MMObjectNode node,
Parameters args)
Returns GUI Indicator for node
|
boolean |
init()
Read configurations (imageConvertClass, maxConcurrentRequest),
checks for 'icaches', inits the request-processor-pool.
|
(package private) void |
invalidateTemplateCacheNumberCache(int number) |
(package private) void |
invalidateTemplateCacheNumberCache(String ckey) |
void |
notify(NodeEvent event) |
void |
removeNode(MMObjectNode node)
Override the MMObjectBuilder removeNode, to invalidate the Image Cache AFTER a deletion of the
image node.
|
void |
shutdown()
clean all acquired resources, because system is shutting down
|
checkHandle, getAssociation, getBlobCache, getDefaultPath, getDimension, getDimensionForEmptyHandle, getFileSize, getHandleFields, getImageFormat, getMimeType, getSGUIIndicator, handleEmpty, storesDimension, storesFileSize, storesImageTypeaddFileName, getBinary, getDefaultFileName, getFileName, getFileName, getGUIIndicator, getGUIIndicator, getServletPath, getServletPath, getSession, getSuperGUIIndicator, insertaddEventListener, addField, addLocalObserver, addRemoteObserver, broadcastChanges, checkAddTmpField, clearBlobCache, create, createAlias, createAlias, createIfNotExists, delete, equals, equals, executeFunction, fieldLocalChanged, getAncestors, getClassName, getConfigFile, getConfigResource, getDataTypeCollector, getDBState, getDBType, getDefaultTeaser, getDefaultUrl, getDescendants, getDescription, getDescription, getDescriptions, getEmptyNode, getField, getFieldNames, getFields, getFields, getFunction, getFunctionParameters, getFunctions, getGUIIndicator, getHTML, getInitParameter, getInitParameters, getInitParameters, getInternalVersion, getList, getLocaleGUIIndicator, getLocaleGUIIndicator, getMachineName, getMaintainer, getNewNode, getNewTmpNode, getNextField, getNextField, getNode, getNode, getNode, getNodeFromCache, getNodeGUIIndicator, getNumber, getObjectType, getObjectValue, getParentBuilder, getPluralName, getPluralName, getPluralNames, getRelations_main, getSearchAge, getShort, getShortedByte, getShortedInputStream, getShortedText, getSingularName, getSingularName, getSingularNames, getSmartPath, getTmpNode, getURLEncode, getValue, getVersion, getWAP, getXMLPath, hasField, hashCode, hashCode, hostname_function, insert, isExtensionOf, isNodeCached, isNull, isVirtual, loadInitParameters, newFunctionInstance, nodeLocalChanged, nodeRemoteChanged, notify, preCommit, process, removeEventListener, removeField, removeLocalObserver, removeRelations, removeRemoteObserver, removeSyncNodes, replace, safeCache, sendFieldChangeSignal, setDefaults, setDescription, setDescriptions, setFields, setInitParameter, setMaintainer, setPluralNames, setSearchAge, setSingularNames, setUniqueValue, setUniqueValue, setValue, setValue, setVersion, setXMLPath, testValidData, toString, toString, update, updateFields, wrapcount, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, sizeaddFunction, createParameters, getFunction, getFunctions, getFunctionValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBinary, getFileNamepublic static final Parameter[] CACHE_PARAMETERS
public static final Parameter[] CACHEDNODE_PARAMETERS
public static final Parameter[] HEIGHT_PARAMETERS
public static final Parameter[] WIDTH_PARAMETERS
public static final Parameter[] DIMENSION_PARAMETERS
public static final Parameter[] GUI_PARAMETERS
protected String defaultImageType
static Timer deleter
public boolean init()
init in class AbstractServletBuilderMMObjectBuilder.create()public void shutdown()
MMObjectBuildershutdown in class MMObjectBuilderprotected Object executeFunction(MMObjectNode node, String function, List<?> args)
executeFunction in class AbstractImagesMMObjectBuilder.executeFunction(org.mmbase.module.core.MMObjectNode, java.lang.String, java.util.List<?>)protected Dimension getDimension(MMObjectNode node, String template)
protected void fillImageCacheNode(MMObjectNode image, MMObjectNode icacheNode, String template)
public MMObjectNode getCachedNode(MMObjectNode node, String template)
public static File createTemporaryFile(SerializableInputStream in, String template) throws IOException
IOExceptionprotected String getGuiForNewImage(MMObjectNode node, String alt, Parameters args) throws IOException
IOExceptionprotected String getGUIIndicatorWithAlt(MMObjectNode node, String alt, Parameters args)
getGUIIndicatorWithAlt in class AbstractImagesprotected String getSGUIIndicatorForNode(MMObjectNode node, Parameters args)
AbstractImagesgetSGUIIndicatorForNode in class AbstractImagespublic String getDefaultImageType()
AbstractImagesgetDefaultImageType in class AbstractImagespublic boolean commit(MMObjectNode node)
MMObjectBuilderMMObjectBuilder.preCommit(org.mmbase.module.core.MMObjectNode).
Use only to commit changes - for adding node, use MMObjectBuilder.insert(int, java.lang.String).commit in class AbstractServletBuildernode - The node to be committedpublic void removeNode(MMObjectNode node)
removeNode in class MMObjectBuildernode - The node to remove.public void notify(NodeEvent event)
notify in interface NodeEventListenernotify in class MMObjectBuilderhere we handle all the backward compatibility stuff.
this method covers for both node and relation events.void invalidateTemplateCacheNumberCache(int number)
void invalidateTemplateCacheNumberCache(String ckey)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}