public class AttachmentExportMarshal extends ExportFileMarshal
| Modifier and Type | Class and Description |
|---|---|
static class |
AttachmentExportMarshal.FileExportable
Simple file wrapper compatible ExportMarshal
|
ExportMarshal.ProgresscontentType, context, exportedUIDs, filename, iconId, isCancelled, mimeTypeprogresssort| 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, toStringaddFilter, beginMarshal, getFilters, hasProgress, setProgressacceptEntry, isDefaultFilterpublic AttachmentExportMarshal(android.content.Context context)
context - the context used to look up resources and icons.public java.io.File getFile()
ExportFileMarshalgetFile in class ExportFileMarshalprotected boolean marshal(Exportable export) throws java.io.IOException, FormatNotSupportedException
ExportFileMarshalmarshal in class ExportFileMarshalFormatNotSupportedExceptionjava.io.IOExceptionpublic java.lang.Class<?> getTargetClass()
ExportMarshalgetTargetClass in class ExportMarshalprotected void finalizeMarshal()
throws java.io.IOException
ExportMarshalfinalizeMarshal in class ExportMarshaljava.io.IOExceptionpublic void postMarshal()
ExportMarshalpostMarshal in class ExportFileMarshalpublic boolean accept(HierarchyListItem item)
accept in class ExportMarshalitem - Item to run filter onpublic boolean filterGroup(MapGroup group)
ExportMarshalfilterGroup in class ExportMarshalpublic boolean filterItem(MapItem item)
ExportMarshalExportFiltersfilterItem in class ExportMarshalpublic boolean filterListItemImpl(HierarchyListItem item)
filterListItemImpl in class ExportFileMarshalpublic boolean filterOverlay(MapOverlay overlay)
ExportMarshalfilterOverlay in class ExportMarshal