|
|||||||||
| 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
Some builders are associated with a servlet. Think of images and attachments. There is some common functionality for those kind of builders, which is collected here.
| Field Summary | |
static Parameter[] |
FORMAT_PARAMETERS
|
static Parameter[] |
GUI_PARAMETERS
Can be used to construct a List for executeFunction argument (new Parameters(GUI_ARGUMENTS)) |
static Parameter[] |
MIMETYPE_PARAMETERS
|
static Parameter[] |
SERVLETPATH_PARAMETERS
|
protected boolean |
usesBridgeServlet
If this builder is association with a bridge servlet. |
| 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 | |
AbstractServletBuilder()
|
|
| Method Summary | |
protected java.lang.Object |
executeFunction(MMObjectNode node,
java.lang.String function,
java.util.List args)
Overrides the executeFunction of MMObjectBuilder with a function to get the servletpath associated with this builder. |
protected abstract java.lang.String |
getAssociation()
This functions should return a string identifying where it is for. |
protected abstract 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. |
java.lang.String |
getGUIIndicator(MMObjectNode node)
This is final, because getSGUIIndicator has to be overridden in stead |
java.lang.String |
getGUIIndicator(java.lang.String field,
MMObjectNode node)
This is final, because getSGUIIndicator has to be overridden in stead |
Parameter[] |
getParameterDefinition(java.lang.String function)
perhaps we need something like this |
protected java.lang.String |
getServletPath()
|
protected java.lang.String |
getServletPath(java.lang.String root)
Get a servlet path. |
protected abstract 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 |
getSuperGUIIndicator(java.lang.String field,
MMObjectNode node)
Gets the GUI indicator of the super class of this class, to avoid circular references in descendants, which will occur if they want to call super.getGUIIndicator(). |
| 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 |
| Field Detail |
public static final Parameter[] GUI_PARAMETERS
public static final Parameter[] SERVLETPATH_PARAMETERS
public static final Parameter[] FORMAT_PARAMETERS
public static final Parameter[] MIMETYPE_PARAMETERS
protected boolean usesBridgeServlet
| Constructor Detail |
public AbstractServletBuilder()
| Method Detail |
protected abstract java.lang.String getAssociation()
protected abstract java.lang.String getDefaultPath()
protected java.lang.String getServletPath(java.lang.String root)
root - The path to the application's root.protected java.lang.String getServletPath()
protected abstract java.lang.String getSGUIIndicator(MMObjectNode node,
Parameters a)
protected final java.lang.String getSuperGUIIndicator(java.lang.String field,
MMObjectNode node)
public final java.lang.String getGUIIndicator(MMObjectNode node)
getGUIIndicator in class MMObjectBuildernode - The node to display
String
public final java.lang.String getGUIIndicator(java.lang.String field,
MMObjectNode node)
getGUIIndicator in class MMObjectBuildernode - The node to displayfield - the name field of the field to display
String, null if not specifiedpublic Parameter[] getParameterDefinition(java.lang.String function)
getParameterDefinition in class MMObjectBuilder
protected java.lang.Object executeFunction(MMObjectNode node,
java.lang.String function,
java.util.List args)
executeFunction in class MMObjectBuilderMMObjectBuilder.executeFunction(org.mmbase.module.core.MMObjectNode, java.lang.String, java.util.List)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||