public class AttachmentExportMarshal extends ExportFileMarshal
Modifier and Type | Class and Description |
---|---|
static class |
AttachmentExportMarshal.FileExportable
Simple file wrapper compatible ExportMarshal
|
ExportMarshal.Progress
contentType, context, exportedUIDs, filename, iconId, isCancelled, mimeType
progress
sort
Constructor and Description |
---|
AttachmentExportMarshal(android.content.Context context)
Builds a Marshall capable of exporting Attachments as a zip file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(HierarchyListItem item)
Allow only attachments
|
boolean |
filterGroup(MapGroup group)
Default implementation filters on the "Layer Outlines" group
|
boolean |
filterItem(MapItem item)
Default implementation filters non-Exportable and then
defers to the
ExportFilters |
boolean |
filterListItemImpl(HierarchyListItem item)
Allow only attachments
|
boolean |
filterOverlay(MapOverlay overlay)
Default implementation display 4 top level affiliations
|
protected void |
finalizeMarshal()
Finalize the export, e.g.
|
java.io.File |
getFile()
Get marshal target
|
java.lang.Class<?> |
getTargetClass()
Target class this implementation exports to
|
protected boolean |
marshal(Exportable export)
Export the specified data
|
void |
postMarshal()
Will be invoked on UI thread, upon successful export
|
cancelMarshal, execute, getContentType, getExtension, getIconId, getMIMEType, marshal, send3rdParty, sendFile, sendFTP, sendFTP, timestamp, toString
addFilter, beginMarshal, getFilters, hasProgress, setProgress
acceptEntry, isDefaultFilter
public AttachmentExportMarshal(android.content.Context context)
context
- the context used to look up resources and icons.public java.io.File getFile()
ExportFileMarshal
getFile
in class ExportFileMarshal
protected boolean marshal(Exportable export) throws java.io.IOException, FormatNotSupportedException
ExportFileMarshal
marshal
in class ExportFileMarshal
FormatNotSupportedException
java.io.IOException
public java.lang.Class<?> getTargetClass()
ExportMarshal
getTargetClass
in class ExportMarshal
protected void finalizeMarshal() throws java.io.IOException
ExportMarshal
finalizeMarshal
in class ExportMarshal
java.io.IOException
public void postMarshal()
ExportMarshal
postMarshal
in class ExportFileMarshal
public boolean accept(HierarchyListItem item)
accept
in class ExportMarshal
item
- Item to run filter onpublic boolean filterGroup(MapGroup group)
ExportMarshal
filterGroup
in class ExportMarshal
public boolean filterItem(MapItem item)
ExportMarshal
ExportFilters
filterItem
in class ExportMarshal
public boolean filterListItemImpl(HierarchyListItem item)
filterListItemImpl
in class ExportFileMarshal
public boolean filterOverlay(MapOverlay overlay)
ExportMarshal
filterOverlay
in class ExportMarshal