|
|||||||||
| 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.Attachments
This builder can be used for 'attachments' builders. That is builders which have a 'handle' field and are associated with the 'attachments servlet.
| 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 | |
Attachments()
|
|
| Method Summary | |
protected void |
checkHandle(MMObjectNode node)
If mimetype is not filled on storage in the database, then we can try to do smart things. |
boolean |
commit(MMObjectNode node)
Commit changes to this node to the database. |
protected java.lang.Object |
executeFunction(MMObjectNode node,
java.lang.String function,
java.util.List args)
Implements 'mimetype' function (Very simply for attachments, because they have the field). |
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 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' |
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). |
boolean |
process(scanpage sp,
java.util.StringTokenizer command,
java.util.Hashtable cmds,
java.util.Hashtable vars)
this method will be invoked while uploading the file. |
protected boolean |
setEditFileField(EditState ed,
java.lang.String fieldname,
java.util.Hashtable cmds,
scanpage sp)
|
| 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 Attachments()
| Method Detail |
protected java.lang.String getAssociation()
AbstractServletBuilder
getAssociation in class AbstractServletBuilderprotected java.lang.String getDefaultPath()
AbstractServletBuilder
getDefaultPath in class AbstractServletBuilder
public boolean process(scanpage sp,
java.util.StringTokenizer command,
java.util.Hashtable cmds,
java.util.Hashtable vars)
process in class MMObjectBuildersp - The scanpage (containing http and user info) that calls the functioncommand - a list of strings that describe the (sub)command to execute (the portion after ' PRC-CMD-BUILDER')cmds - the commands (PRC-CMD) that are iurrently being processed, including the current command.vars - variables (PRC-VAR) thatw ere set to be used during processing. the variable 'EDITSTATE' accesses the
EditState object (if applicable).
String
protected java.lang.String getSGUIIndicator(MMObjectNode node,
Parameters a)
AbstractServletBuilder
getSGUIIndicator in class AbstractServletBuilder
protected boolean setEditFileField(EditState ed,
java.lang.String fieldname,
java.util.Hashtable cmds,
scanpage sp)
protected void checkHandle(MMObjectNode node)
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.public 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 MMObjectBuildernode - The node to be committed
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 | ||||||||