|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.core.MMTable
org.mmbase.module.core.MMObjectBuilder
org.mmbase.module.builders.AbstractServletBuilder
org.mmbase.module.builders.AbstractImages
org.mmbase.module.builders.ImageCaches
ImageCaches (aka as 'icaches') is a system-like builder used by builders with the 'Images' class. It contains the converted images.
| Nested Class Summary |
| Nested classes inherited from class org.mmbase.module.builders.AbstractImages |
AbstractImages.CKeyCache |
| Field Summary |
| Fields inherited from class org.mmbase.module.builders.AbstractServletBuilder |
FORMAT_PARAMETERS, GUI_PARAMETERS, MIMETYPE_PARAMETERS, SERVLETPATH_PARAMETERS, usesBridgeServlet |
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
AGE_PARAMETERS, broadcastChanges, database, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, fields, listCache, nodeCache, OBJ2TYPE_MAX_SIZE, oType, REPLACE_CACHE, searchAge, sortedDBLayout, TEMPNODE_DEFAULT_SIZE, TemporaryNodes, virtual |
| Fields inherited from class org.mmbase.module.core.MMTable |
mmb, tableName |
| Constructor Summary | |
ImageCaches()
|
|
| Method Summary | |
protected MMObjectNode |
getCachedNode(java.lang.String ckey)
Given a certain ckey, return the cached image node number, if there is one, otherwise return -1. |
ByteFieldContainer |
getCkeyNode(java.lang.String ckey)
Return a @link{ ByteFieldContainer} containing the bytes and object number for the cached image with a certain ckey, or null, if not cached. |
protected java.lang.String |
getGUIIndicatorWithAlt(MMObjectNode node,
java.lang.String title,
Parameters a)
The GUI indicator of an image can have an alt-text. |
byte[] |
getImageBytes(java.util.List params)
Returns the bytes of a cached image. |
protected java.lang.String |
getImageFormat(MMObjectNode node)
Returns the image format. |
java.lang.String |
getImageMimeType(java.util.List params)
|
protected java.lang.String |
getSGUIIndicatorForNode(MMObjectNode node,
Parameters a)
Returns GUI Indicator for node |
int |
insert(java.lang.String owner,
MMObjectNode node)
Insert a new object (content provided) in the cloud, including an entry for the object alias (if provided). |
protected void |
invalidate(MMObjectNode imageNode)
Invalidate the Image Cache for a specific Node method only accessable on package level, since only Images should call it.. |
boolean |
nodeLocalChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
Called when a local node is changed. |
void |
removeNode(MMObjectNode node)
Override the MMObjectBuilder removeNode, to invalidate the LRU ImageCache, when a node gets deleted. |
| Methods inherited from class org.mmbase.module.builders.AbstractImages |
executeFunction, getAssociation, getDefaultPath, getImageMimeType, getSGUIIndicator |
| Methods inherited from class org.mmbase.module.builders.AbstractServletBuilder |
getGUIIndicator, getGUIIndicator, getParameterDefinition, getServletPath, getServletPath, getSuperGUIIndicator |
| Methods inherited from class org.mmbase.module.core.MMTable |
created, getFullTableName, getTableName, size |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ImageCaches()
| Method Detail |
protected java.lang.String getGUIIndicatorWithAlt(MMObjectNode node,
java.lang.String title,
Parameters a)
getGUIIndicatorWithAlt in class AbstractImages
protected java.lang.String getSGUIIndicatorForNode(MMObjectNode node,
Parameters a)
AbstractImages
getSGUIIndicatorForNode in class AbstractImagesprotected MMObjectNode getCachedNode(java.lang.String ckey)
public byte[] getImageBytes(java.util.List params)
getImageBytes in class AbstractImagesparams - A list of parameters, containign at least the id of the image, possibly followed by operations
null if something went wrongpublic ByteFieldContainer getCkeyNode(java.lang.String ckey)
ckey - teh ckey to search for
protected void invalidate(MMObjectNode imageNode)
public void removeNode(MMObjectNode node)
removeNode in class MMObjectBuildernode - The node to remove.
public boolean nodeLocalChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
MMObjectBuilder
nodeLocalChanged in class MMObjectBuildermachine - Name of the machine that changed the node.number - Number of the changed node as a Stringbuilder - type of the changed nodectype - command type, 'c'=changed, 'd'=deleted', 'r'=relations changed, 'n'=new
trueprotected java.lang.String getImageFormat(MMObjectNode node)
getImageFormat in class AbstractImagespublic java.lang.String getImageMimeType(java.util.List params)
public int insert(java.lang.String owner,
MMObjectNode node)
MMObjectBuilderMMObjectBuilder.preCommit(org.mmbase.module.core.MMObjectNode).
insert in class MMObjectBuilderowner - The administrator creating the nodenode - The object to insert. The object need be of the same type as the current builder.
int value which is the new object's unique number, -1 if the insert failed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||