public abstract class Storage extends Object
| Constructor and Description |
|---|
Storage() |
| Modifier and Type | Method and Description |
|---|---|
Result |
addResult(List<Object> configurations,
Result result)
Store result gathering information from configurations.
|
Result |
addResult(List<Object> configurations,
Result result,
List<Object> attachments)
Store result with attachments gathering information from configurations.
|
Result |
addResult(Object configuration,
Result result)
Store result gathering information from configuration.
|
Result |
addResult(Object configuration,
Result result,
List<Object> attachments)
Store result with attachments gathering information from configuration.
|
Result |
addResult(Result result)
Store result.
|
Result |
addResult(Result result,
List<Object> attachments)
Store result with attachments.
|
Result |
addResult(String projectKey,
Result result)
Store result under given project key.
|
Result |
addResult(String projectKey,
Result result,
List<Object> attachments)
Store result with attachments under given project key.
|
protected abstract Result |
createResult(String projectKey,
Result result,
List<Object> attachments) |
protected abstract void |
deleteResult(Result result) |
protected org.slf4j.Logger |
getLogger() |
static Storage |
newInstance(Object configuration) |
protected void |
prepareResultBeforeCreate(Result result) |
protected Result |
updateResultFromConfigurations(List<Object> configurations,
Result result) |
protected void |
validateResult(Result result) |
public static Storage newInstance(Object configuration) throws StorageException
StorageExceptionpublic Result addResult(Result result) throws StorageException
result - StorageExceptionpublic Result addResult(Result result, List<Object> attachments) throws StorageException
result - attachments - StorageExceptionpublic Result addResult(String projectKey, Result result) throws StorageException
projectKey - result - StorageExceptionpublic Result addResult(Object configuration, Result result) throws StorageException
configuration - result - StorageExceptionpublic Result addResult(Object configuration, Result result, List<Object> attachments) throws StorageException
configuration - result - attachments - StorageExceptionpublic Result addResult(List<Object> configurations, Result result) throws StorageException
configurations - result - StorageExceptionpublic Result addResult(List<Object> configurations, Result result, List<Object> attachments) throws StorageException
configurations - result - attachments - StorageExceptionpublic Result addResult(String projectKey, Result result, List<Object> attachments) throws StorageException
projectKey - result - attachments - StorageExceptionprotected abstract Result createResult(String projectKey, Result result, List<Object> attachments) throws StorageException
StorageExceptionprotected abstract void deleteResult(Result result) throws StorageException
StorageExceptionprotected void prepareResultBeforeCreate(Result result)
protected void validateResult(Result result) throws StorageException
StorageExceptionprotected org.slf4j.Logger getLogger()
Copyright © 2016 Etnetera a.s.. All rights reserved.