|
|||||||||
| 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
AbstractImages holds the images and provides ways to insert, retrieve and search them.
| Nested Class Summary | |
protected static class |
AbstractImages.CKeyCache
Cache with 'ckey' keys. |
| 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 | |
AbstractImages()
|
|
| Method Summary | |
protected java.lang.Object |
executeFunction(MMObjectNode node,
java.lang.String function,
java.util.List args)
Every image of course has a format and a mimetype. |
protected java.lang.String |
getAssociation()
This functions should return a string identifying where it is for. |
protected java.lang.String |
getDefaultPath()
If no servlet path can be found via the association (if the servlet did not 'associate' itself with something, like servdb), then the getServletPath function will fall back to this. |
protected abstract java.lang.String |
getGUIIndicatorWithAlt(MMObjectNode node,
java.lang.String title,
Parameters a)
An image's gui-indicator is of course some <img src>, but it depends on what kind of image (cached, original) what excactly it must be. |
abstract byte[] |
getImageBytes(java.util.List params)
Returns an image which belongs to the given parameter set. |
protected abstract java.lang.String |
getImageFormat(MMObjectNode node)
Returns the format of the image. |
java.lang.String |
getImageMimeType(MMObjectNode node)
Determine the MIME type of this image node, baseImagd on the image format. |
protected java.lang.String |
getSGUIIndicator(MMObjectNode node,
Parameters a)
'Servlet' builders need a way to transform security to the servlet, in the gui functions, so they have to implement the 'SGUIIndicators' |
protected java.lang.String |
getSGUIIndicatorForNode(MMObjectNode node,
Parameters a)
Returns GUI Indicator for node |
| 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 AbstractImages()
| Method Detail |
protected java.lang.String getAssociation()
AbstractServletBuilder
getAssociation in class AbstractServletBuilderprotected java.lang.String getDefaultPath()
AbstractServletBuilder
getDefaultPath in class AbstractServletBuilder
protected abstract java.lang.String getGUIIndicatorWithAlt(MMObjectNode node,
java.lang.String title,
Parameters a)
protected java.lang.String getSGUIIndicatorForNode(MMObjectNode node,
Parameters a)
protected java.lang.String getSGUIIndicator(MMObjectNode node,
Parameters a)
AbstractServletBuilder
getSGUIIndicator in class AbstractServletBuilderprotected abstract java.lang.String getImageFormat(MMObjectNode node)
public java.lang.String getImageMimeType(MMObjectNode node)
public abstract byte[] getImageBytes(java.util.List params)
params - A list of parameters, containign at least the id of the image, possibly followed by operations
null if something went wrong
protected java.lang.Object executeFunction(MMObjectNode node,
java.lang.String function,
java.util.List args)
executeFunction in class AbstractServletBuilder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||