|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.mmbase.module.core.MMTable
|
+--org.mmbase.module.core.MMObjectBuilder
|
+--org.mmbase.module.builders.Images
images holds the images and provides ways to insert, retract and search on them.
| Field Summary | |
protected static java.lang.String |
ImageConvertClass
|
protected Queue |
imageRequestQueue
|
protected java.util.Hashtable |
imageRequestTable
|
protected ImageRequestProcessor[] |
ireqprocessors
|
protected int |
MaxConcurrentRequests
|
protected int |
MaxRequests
|
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
broadcastChanges, className, database, debug, description, descriptions, fields, NODE_MAX_SIZE, nodeCache, obj2type, OBJ2TYPE_MAX_SIZE, oType, replaceCache, searchAge, sortedDBLayout, TEMPNODE_DEFAULT_SIZE, TemporaryNodes, virtual |
| Fields inherited from class org.mmbase.module.core.MMTable |
mmb, tableName |
| Constructor Summary | |
Images()
|
|
| Method Summary | |
boolean |
commit(MMObjectNode node)
Override the MMObjectBuilder commit, to invalidate the Image Cache AFTER a modifation to the image node. |
int |
convertAlias(java.lang.String num)
|
byte[] |
getCachedImage(java.util.Vector params)
Will return null when not in cache, and otherwise a byte [] representing the picture.. |
java.lang.String |
getGUIIndicator(MMObjectNode node)
What should a GUI display for this node. |
java.lang.String |
getGUIIndicator(java.lang.String field,
MMObjectNode node)
What should a GUI display for this node/field combo. |
byte[] |
getImageBytes(scanpage sp,
java.util.Vector params)
Returns a picture wich belongs to the given param line, with caching |
byte[] |
getImageBytes5(scanpage sp,
java.util.Vector params)
Deprecated. glue method until org.mmbase.servlet.servdb is updated |
java.lang.String |
getImageMimeType(java.util.Vector params)
Will return "jpg" as default type, or one of the strings in params, must contain the following "f(type)" where type will be returned |
java.util.Vector |
getList(scanpage sp,
StringTagger tagger,
java.util.StringTokenizer tok)
Obtains a list of string values by performing the provided command and parameters. |
byte[] |
getOriginalImage(java.util.Vector params)
Will return null when something goes wrong otherwise, a byte[] whcih represents the picture |
boolean |
init()
Initializes this builder The property 'mmb' needs to be set for the builder before this method can be called. |
void |
removeNode(MMObjectNode node)
Override the MMObjectBuilder removeNode, to invalidate the Image Cache AFTER a delete-ion of the image node. |
void |
setDefaults(MMObjectNode node)
Sets defaults for a node. |
| Methods inherited from class org.mmbase.module.core.MMTable |
size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static java.lang.String ImageConvertClass
protected int MaxConcurrentRequests
protected int MaxRequests
protected Queue imageRequestQueue
protected java.util.Hashtable imageRequestTable
protected ImageRequestProcessor[] ireqprocessors
| Constructor Detail |
public Images()
| Method Detail |
public boolean init()
MMObjectBuilderinit in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuilderMMObjectBuilder.create()public java.lang.String getGUIIndicator(MMObjectNode node)
MMObjectBuildergetGUIIndicator in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuildernode - The node to displayStringpublic void setDefaults(MMObjectNode node)
MMObjectBuildersetDefaults in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuildernode - The node to set the defaults of.
public java.lang.String getGUIIndicator(java.lang.String field,
MMObjectNode node)
MMObjectBuildergetGUIIndicator in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuildernode - The node to displayfield - the name field of the field to displayString, null if not specifiedpublic java.lang.String getImageMimeType(java.util.Vector params)
params - a Vector of Strings, which could contain the "f(type)" string
public byte[] getImageBytes5(scanpage sp,
java.util.Vector params)
sp - Not needed at this moment,...params - The name/id of the picture, followed by operations, which can be performed on the picture..
public byte[] getImageBytes(scanpage sp,
java.util.Vector params)
sp - Not needed at this moment,...params - The name/id of the picture, followed by operations, which can be performed on the picture..public byte[] getCachedImage(java.util.Vector params)
params - a Vector of Strings, containing the name/id of the picture, followed by operations, which can be performed on the picture..public byte[] getOriginalImage(java.util.Vector params)
params - a Vector of Strings, containing the name/id of the picture, followed by operations, which can be performed on the picture..public int convertAlias(java.lang.String num)
public java.util.Vector getList(scanpage sp,
StringTagger tagger,
java.util.StringTokenizer tok)
throws ParseException
MMObjectBuildergetList in class MMObjectBuilderorg.mmbase.module.core.MMObjectBuildersp - The scanpage (containing http and user info) that calls the functiontagger - a Hashtable of parameters (name-value pairs) for the commandtok - a list of strings that describe the (sub)command to executeVector containing the result values as a Stringpublic boolean commit(MMObjectNode node)
MMObjectBuilder.preCommit(org.mmbase.module.core.MMObjectNode).
Use only to commit changes - for adding node, use MMObjectBuilder.insert(int, java.lang.String).commit in class MMObjectBuildernode - The node to be committedpublic void removeNode(MMObjectNode node)
removeNode in class MMObjectBuildernode - The node to remove.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||