Package org.helm.notation2.wsadapter
Class MonomerStoreConfiguration
java.lang.Object
org.helm.notation2.wsadapter.MonomerStoreConfiguration
public class MonomerStoreConfiguration extends Object
Singleton
MonomerStoreConfiguration stores the webservice
configuration, e.g. URI to REST API.- Version:
- $Id$
- Author:
- Marco Lanig
-
Method Summary
Modifier and Type Method Description StringgetExternalAttachmentsPath()StringgetExternalMonomersPath()StringgetExternalNucleotidesPath()static MonomerStoreConfigurationgetInstance()Creates singleton instance ofMonomerStoreConfigurationand returns it.StringgetWebserviceEditorCategorizationFullURL()Returns URL and Path to monomer categorization resource combined.StringgetWebserviceEditorCategorizationPath()Returns path to monomer categorization resource.StringgetWebserviceEditorCategorizationURL()Returns URL without path to monomer categorization resource.StringgetWebserviceMonomersFullURL()Returns URL and Path to monomer resource combined.StringgetWebserviceMonomersPath()Returns path to monomer resource.StringgetWebserviceMonomersPutFullURL()Returns URL and Path to monomer PUT resource combined.StringgetWebserviceMonomersURL()Returns URL without path to monomer resource.StringgetWebserviceNucleotidesFullURL()Returns URL and Path to nucleotide resource combined.StringgetWebserviceNucleotidesPath()Returns path to nucleotide resource.StringgetWebserviceNucleotidesPutFullURL()Returns URL and Path to nucleotide PUT resource combined.StringgetWebserviceNucleotidesURL()Returns URL without path to nucleotide resource.booleanisUpdateAutomatic()Returns whether all webservices should be fetched at all times, or be refreshed manually.booleanisUseExternalAttachments()booleanisUseExternalMonomers()booleanisUseExternalNucleotides()booleanisUseWebservice()Returns whether webservice should be used or not.voidrefresh()Refreshes the configuration using the local properties file.voidsetExternalAttachmentsPath(String externalAttachmentsPath)voidsetUpdateAutomatic(boolean isUpdateAutomatic)Sets whether all webservices should be fetched at all times, or be refreshed manually.voidsetUseExternalAttachments(boolean isUseExternalAttachments)StringtoString()
-
Method Details
-
getInstance
Creates singleton instance ofMonomerStoreConfigurationand returns it.- Returns:
- instance
-
isUseWebservice
public boolean isUseWebservice()Returns whether webservice should be used or not.- Returns:
- true/false
-
isUpdateAutomatic
public boolean isUpdateAutomatic()Returns whether all webservices should be fetched at all times, or be refreshed manually.- Returns:
- true=automatic refresh, false=manual refresh
-
setUpdateAutomatic
public void setUpdateAutomatic(boolean isUpdateAutomatic)Sets whether all webservices should be fetched at all times, or be refreshed manually.- Parameters:
isUpdateAutomatic- true=automatic refresh, false=manual refresh
-
getWebserviceMonomersURL
Returns URL without path to monomer resource.- Returns:
- URL as String
-
getWebserviceMonomersPath
Returns path to monomer resource.- Returns:
- path as String
-
getWebserviceNucleotidesURL
Returns URL without path to nucleotide resource.- Returns:
- URL as string
-
getWebserviceNucleotidesPath
Returns path to nucleotide resource.- Returns:
- path as String
-
getWebserviceMonomersFullURL
Returns URL and Path to monomer resource combined.- Returns:
- full URL as String
-
getWebserviceNucleotidesFullURL
Returns URL and Path to nucleotide resource combined.- Returns:
- full URL as String
-
getWebserviceNucleotidesPutFullURL
Returns URL and Path to nucleotide PUT resource combined.- Returns:
- full URL as String
-
getWebserviceMonomersPutFullURL
Returns URL and Path to monomer PUT resource combined.- Returns:
- full URL as String
-
getWebserviceEditorCategorizationURL
Returns URL without path to monomer categorization resource. It contains the monomer categorization used in the HELMEditor.- Returns:
- URL as string
-
getWebserviceEditorCategorizationPath
Returns path to monomer categorization resource.- Returns:
- path as String
-
getWebserviceEditorCategorizationFullURL
Returns URL and Path to monomer categorization resource combined.- Returns:
- full URL as String
-
isUseExternalMonomers
public boolean isUseExternalMonomers() -
isUseExternalNucleotides
public boolean isUseExternalNucleotides() -
getExternalNucleotidesPath
-
getExternalMonomersPath
-
refresh
public void refresh()Refreshes the configuration using the local properties file. -
toString
-
getExternalAttachmentsPath
-
setExternalAttachmentsPath
-
isUseExternalAttachments
public boolean isUseExternalAttachments() -
setUseExternalAttachments
public void setUseExternalAttachments(boolean isUseExternalAttachments)
-