public class MonomerStoreConfiguration extends Object
MonomerStoreConfiguration stores the webservice
configuration, e.g. URI to REST API.| Modifier and Type | Method and Description |
|---|---|
String |
getExternalAttachmentsPath() |
String |
getExternalMonomersPath() |
String |
getExternalNucleotidesPath() |
static MonomerStoreConfiguration |
getInstance()
Creates singleton instance of
MonomerStoreConfiguration and returns
it. |
String |
getWebserviceEditorCategorizationFullURL()
Returns URL and Path to monomer categorization resource combined.
|
String |
getWebserviceEditorCategorizationPath()
Returns path to monomer categorization resource.
|
String |
getWebserviceEditorCategorizationURL()
Returns URL without path to monomer categorization resource.
|
String |
getWebserviceMonomersFullURL()
Returns URL and Path to monomer resource combined.
|
String |
getWebserviceMonomersPath()
Returns path to monomer resource.
|
String |
getWebserviceMonomersPutFullURL()
Returns URL and Path to monomer PUT resource combined.
|
String |
getWebserviceMonomersURL()
Returns URL without path to monomer resource.
|
String |
getWebserviceNucleotidesFullURL()
Returns URL and Path to nucleotide resource combined.
|
String |
getWebserviceNucleotidesPath()
Returns path to nucleotide resource.
|
String |
getWebserviceNucleotidesPutFullURL()
Returns URL and Path to nucleotide PUT resource combined.
|
String |
getWebserviceNucleotidesURL()
Returns URL without path to nucleotide resource.
|
boolean |
isUpdateAutomatic()
Returns whether all webservices should be fetched at all times, or be
refreshed manually.
|
boolean |
isUseExternalAttachments() |
boolean |
isUseExternalMonomers() |
boolean |
isUseExternalNucleotides() |
boolean |
isUseWebservice()
Returns whether webservice should be used or not.
|
void |
refresh()
Refreshes the configuration using the local properties file.
|
void |
setExternalAttachmentsPath(String externalAttachmentsPath) |
void |
setUpdateAutomatic(boolean isUpdateAutomatic)
Sets whether all webservices should be fetched at all times, or be
refreshed manually.
|
void |
setUseExternalAttachments(boolean isUseExternalAttachments) |
String |
toString() |
public static MonomerStoreConfiguration getInstance()
MonomerStoreConfiguration and returns
it.public boolean isUseWebservice()
public boolean isUpdateAutomatic()
public void setUpdateAutomatic(boolean isUpdateAutomatic)
isUpdateAutomatic - true=automatic refresh, false=manual refreshpublic String getWebserviceMonomersURL()
public String getWebserviceMonomersPath()
public String getWebserviceNucleotidesURL()
public String getWebserviceNucleotidesPath()
public String getWebserviceMonomersFullURL()
public String getWebserviceNucleotidesFullURL()
public String getWebserviceNucleotidesPutFullURL()
public String getWebserviceMonomersPutFullURL()
public String getWebserviceEditorCategorizationURL()
public String getWebserviceEditorCategorizationPath()
public String getWebserviceEditorCategorizationFullURL()
public boolean isUseExternalMonomers()
public boolean isUseExternalNucleotides()
public String getExternalNucleotidesPath()
public String getExternalMonomersPath()
public void refresh()
public String getExternalAttachmentsPath()
public void setExternalAttachmentsPath(String externalAttachmentsPath)
public boolean isUseExternalAttachments()
public void setUseExternalAttachments(boolean isUseExternalAttachments)
Copyright © 2017. All rights reserved.