|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.functions.FunctionProvider
org.mmbase.module.core.MMTable
org.mmbase.module.core.MMObjectBuilder
org.mmbase.module.builders.AbstractServletBuilder
org.mmbase.module.builders.Attachments
org.mmbase.module.builders.ReferredAttachments
public class ReferredAttachments
An attachment builder where, aside from storing the binary data in the database, you can point out a binary resource on another server using an url. Basic support for sucha field is in AbstractServletBuidler. This builder defines a default url field ('url'), has a better GUI function, and determines file size, filename, and mimetype from a referred to file when the url changes.
| Field Summary | |
|---|---|
static String |
DEFAULT_EXTERNAL_URL_FIELD
|
| Fields inherited from class org.mmbase.module.builders.Attachments |
|---|
ATTACHMENTS_HANDLE_FIELDS, FIELD_SIZE |
| Fields inherited from class org.mmbase.module.builders.AbstractServletBuilder |
|---|
externalUrlField, FIELD_FILENAME, FIELD_HANDLE, FIELD_MIMETYPE, FORMAT_PARAMETERS, GUI_PARAMETERS, legalizeFileName, MIMETYPE_PARAMETERS, PROPERTY_EXTERNAL_URL_FIELD, usesBridgeServlet |
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
|---|
AGE_PARAMETERS, broadCastChanges, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, EVENT_TYPE_LOCAL, EVENT_TYPE_REMOTE, FIELD_NUMBER, FIELD_OBJECT_TYPE, FIELD_OWNER, fields, genericBlobCache, getFunctions, GUI_INDICATOR, guiFunction, infoFunction, internalVersion, nodeCache, oType, pluralNames, searchAge, singularNames, SYSTEM_OWNER, TEMPNODE_DEFAULT_SIZE, TMP_FIELD_EXISTS, TMP_FIELD_NUMBER, virtual, WRAP_PARAMETERS, wrapFunction |
| Fields inherited from class org.mmbase.module.core.MMTable |
|---|
maxNodesFromQuery, mmb, storageConnector, tableName |
| Fields inherited from class org.mmbase.util.functions.FunctionProvider |
|---|
functions |
| Constructor Summary | |
|---|---|
ReferredAttachments()
|
|
| 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. |
protected 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' |
boolean |
init()
Sets a default for the 'externalUrlField' property |
| Methods inherited from class org.mmbase.module.builders.Attachments |
|---|
executeFunction, getAssociation, getDefaultPath, getGuiForNewAttachment, getHandleFields |
| Methods inherited from class org.mmbase.module.builders.AbstractServletBuilder |
|---|
addFileName, commit, getBinary, getDefaultFileName, getFileName, getGUIIndicator, getGUIIndicator, getMimeType, getServletPath, getServletPath, getSession, getSuperGUIIndicator, insert |
| Methods inherited from class org.mmbase.module.core.MMTable |
|---|
count, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, size |
| Methods inherited from class org.mmbase.util.functions.FunctionProvider |
|---|
addFunction, createParameters, getFunction, getFunctions, getFunctionValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_EXTERNAL_URL_FIELD
| Constructor Detail |
|---|
public ReferredAttachments()
| Method Detail |
|---|
public boolean init()
init in class AbstractServletBuilderMMObjectBuilder.create()protected void checkHandle(MMObjectNode node)
Attachments
checkHandle in class Attachments
protected String getSGUIIndicator(MMObjectNode node,
Parameters a)
AbstractServletBuilder
getSGUIIndicator in class Attachments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||