public abstract class GeneralStorage
extends java.lang.Object
Constructor and Description |
---|
GeneralStorage() |
Modifier and Type | Method and Description |
---|---|
void |
createResultTree(ExtractionResultCollection coll,
javax.swing.tree.DefaultMutableTreeNode root)
Logic to create the InformationTree from ExtractionResultCollection.
|
abstract void |
deleteAllMetadata() |
abstract void |
finalize() |
java.util.HashSet<java.lang.String> |
getAllUsedModules(ExtractionResultCollection collection)
Logic to get the names of all used modules for an Environment, to fill
the GUI ComboBox.
|
static ExtractionResultCollection |
getExtractionResultCollection(java.lang.String f) |
abstract java.lang.String[] |
getRawResults(ExtractionResultCollection coll)
Default method to extract results from a collection, must be implemented
by the specific storage interface
|
ExtractionResultCollection[] |
getResults(ExtractionResultCollection coll)
This method is called by the Extractor, if one part was added to the
profile and only this part was extracted.
|
java.util.ArrayList<java.util.ArrayList<java.lang.String>> |
getResults(ExtractionResultCollection coll,
java.lang.String moduleName)
Logic to get the data to fill the InformationChangeTable.
|
java.lang.String[] |
getResultsHeader(ExtractionResultCollection coll,
java.lang.String moduleName)
Logic to get the header for the InformationChangeTable
|
java.lang.String |
getStringResults(ExtractionResultCollection collection,
java.lang.String moduleName)
Logic to get data for the JSON result display.
|
java.lang.String |
getStringResults(ExtractionResultCollection collection,
java.lang.String moduleName,
java.lang.String extractionDate)
Returns a JSON object as String, that represents the extraction result of
a specific module, at a specific date and for a specific collection.
|
java.util.List<java.lang.String> |
readEventData() |
byte[] |
readExternalData(java.lang.String id) |
void |
save(Part part,
Profile profile) |
void |
save(Profile profile)
This method is called by the Extractor, if all parts of the profile were
extracted.
|
abstract void |
save(java.lang.String collection,
java.lang.String profileUUID,
java.lang.String type,
java.lang.String path) |
void |
storeEventData(byte[] lines) |
java.lang.String |
storeExternalData(byte[] data) |
public abstract java.lang.String[] getRawResults(ExtractionResultCollection coll)
coll
- public abstract void save(java.lang.String collection, java.lang.String profileUUID, java.lang.String type, java.lang.String path) throws java.lang.Exception
java.lang.Exception
public abstract void finalize()
finalize
in class java.lang.Object
public abstract void deleteAllMetadata()
public ExtractionResultCollection[] getResults(ExtractionResultCollection coll)
coll
- Part
or an
Environment
.public void storeEventData(byte[] lines)
public java.util.List<java.lang.String> readEventData()
public java.lang.String storeExternalData(byte[] data)
public byte[] readExternalData(java.lang.String id)
public void save(Part part, Profile profile) throws java.lang.Exception
java.lang.Exception
public void save(Profile profile) throws java.lang.Exception
profile
- com.fasterxml.jackson.core.JsonProcessingException
java.lang.Exception
public void createResultTree(ExtractionResultCollection coll, javax.swing.tree.DefaultMutableTreeNode root)
coll
- root
- public java.lang.String[] getResultsHeader(ExtractionResultCollection coll, java.lang.String moduleName)
coll
- moduleName
- public java.util.HashSet<java.lang.String> getAllUsedModules(ExtractionResultCollection collection)
collection
- public java.lang.String getStringResults(ExtractionResultCollection collection, java.lang.String moduleName)
collection
- moduleName
- public java.lang.String getStringResults(ExtractionResultCollection collection, java.lang.String moduleName, java.lang.String extractionDate)
collection
- moduleName
- extractionDate
- public java.util.ArrayList<java.util.ArrayList<java.lang.String>> getResults(ExtractionResultCollection coll, java.lang.String moduleName)
coll
- moduleName
- public static ExtractionResultCollection getExtractionResultCollection(java.lang.String f) throws java.io.IOException
f
- serialized ExtractionResultCollectionjava.io.IOException