public class Archive extends Object implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
Archive.ReplaceStrategy |
Modifier and Type | Field and Description |
---|---|
protected Map<String,ArchiveEntryDataholder> |
entries |
protected String |
id |
protected boolean |
includeVCard |
protected Lock |
lock |
protected List<MetaObjectDataholder> |
meta |
protected String |
name |
protected String |
template |
static String |
TEMPLATE_EXISTING |
static String |
TEMPLATE_GIT |
static String |
TEMPLATE_HG |
static String |
TEMPLATE_HTTP |
static String |
TEMPLATE_PLAIN |
Constructor and Description |
---|
Archive() |
Archive(String name) |
Archive(String id,
String name) |
Archive(String id,
String name,
File file,
Lock lock) |
Modifier and Type | Method and Description |
---|---|
de.unirostock.sems.cbarchive.ArchiveEntry |
addArchiveEntry(String fileName,
Path file) |
de.unirostock.sems.cbarchive.ArchiveEntry |
addArchiveEntry(String fileName,
Path file,
Archive.ReplaceStrategy strategy) |
void |
close() |
long |
countArchiveEntries() |
de.unirostock.sems.cbarchive.CombineArchive |
getArchive() |
File |
getArchiveFile() |
Map<String,ArchiveEntryDataholder> |
getEntries() |
ArchiveEntryDataholder |
getEntryById(String id) |
String |
getId() |
String |
getName() |
String |
getTemplate() |
boolean |
isIncludeVCard() |
void |
packAndClose() |
void |
setArchiveFile(File file,
Lock lock) |
void |
setId(String id) |
void |
setIncludeVCard(boolean includeVCard) |
void |
setName(String name) |
void |
setTemplate(String template) |
public static final String TEMPLATE_PLAIN
public static final String TEMPLATE_HG
public static final String TEMPLATE_GIT
public static final String TEMPLATE_HTTP
public static final String TEMPLATE_EXISTING
protected String template
protected boolean includeVCard
protected String id
protected String name
protected Map<String,ArchiveEntryDataholder> entries
protected List<MetaObjectDataholder> meta
protected Lock lock
public Archive(String id, String name, File file, Lock lock) throws CombineArchiveWebException
CombineArchiveWebException
public Archive()
public Archive(String name)
public String getId()
public void setId(String id)
public String getName()
public void setName(String name)
public Map<String,ArchiveEntryDataholder> getEntries()
public String getTemplate()
public void setTemplate(String template)
public boolean isIncludeVCard()
public void setIncludeVCard(boolean includeVCard)
public void setArchiveFile(File file, Lock lock) throws CombineArchiveWebException
CombineArchiveWebException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void packAndClose() throws IOException, TransformerException
IOException
TransformerException
public File getArchiveFile()
public de.unirostock.sems.cbarchive.CombineArchive getArchive()
public long countArchiveEntries()
public de.unirostock.sems.cbarchive.ArchiveEntry addArchiveEntry(String fileName, Path file) throws CombineArchiveWebException, IOException
public ArchiveEntryDataholder getEntryById(String id)
public de.unirostock.sems.cbarchive.ArchiveEntry addArchiveEntry(String fileName, Path file, Archive.ReplaceStrategy strategy) throws CombineArchiveWebException, IOException
Copyright © 2018 SEMS project @ University of Rostock. All rights reserved.