public class ImportConfig
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ImportConfig.AnnotationListValue |
static class |
ImportConfig.BoolValue |
static class |
ImportConfig.DoubleArrayValue |
static class |
ImportConfig.FileValue |
static class |
ImportConfig.IntValue |
static class |
ImportConfig.LongValue |
static class |
ImportConfig.PassValue |
static class |
ImportConfig.StrValue |
static class |
ImportConfig.Value<T>
Container which thread-safely makes a generic configuration value
available, without requiring getters and setters.
|
static class |
ImportConfig.VersionInfo
Keys for fileset version information entries.
|
Constructor and Description |
---|
ImportConfig()
Simplest constructor which use calls
ImportConfig(File) with null. |
ImportConfig(java.io.File configFile)
Calls
ImportConfig(Preferences, IniFileLoader, Properties)
with user preferences, a local PreferenceContext , an
IniFileLoader initialized with the given argument, and
System.getProperties() . |
ImportConfig(java.util.prefs.Preferences prefs,
IniFileLoader ini,
java.util.Properties props)
Complete constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canLogin()
Confirm all information for login is supplied
|
void |
configureDebug(java.lang.String levelString)
Modifies the logging level of everything under the
ome.formats , ome.services.blitz ,
ome.system and loci packages hierarchically. |
OMEROMetadataStoreClient |
createStore()
Create and return a new OMEROMetadataStoreClient
|
void |
fillVersionInfo(java.util.List<omero.model.NamedValue> versionInfo)
Note useful version information that can be extracted from this system,
as provenance that is useful for debugging.
|
java.lang.String |
getAppTitle() |
java.lang.String |
getBioFormatsVersion() |
boolean |
getCustomImageNaming() |
int |
getDebugLevel() |
java.lang.String |
getFeedbackUrl() |
boolean |
getForceFileArchiveOn() |
java.lang.String |
getForumUrl() |
java.lang.String |
getHomeUrl() |
java.lang.String |
getIniVersionNumber() |
java.lang.String |
getLogFile() |
int |
getNumOfDirectories() |
java.lang.String |
getOmeroVersion() |
boolean |
getStaticDisableHistory() |
ImportTarget |
getTarget() |
java.lang.String |
getTokenUrl() |
java.awt.Rectangle |
getUIBounds() |
java.lang.String |
getUploaderUrl() |
boolean |
getUseQuaqua() |
boolean |
getUserDisableHistory() |
boolean |
getUserFullPath()
Deprecated.
|
java.lang.String |
getUserSettingsDirectory() |
java.lang.String |
getVersionNumber() |
boolean |
isUpgradeNeeded()
Check online to see if this is the current version
|
void |
loadAll()
Loads all the values for which it makes sense to have a preferences values.
|
void |
loadGui()
Loads gui specific values for which it makes sense to have a preferences values.
|
java.util.Map<java.lang.String,java.lang.String> |
map() |
protected <T> void |
prompt(ImportConfig.Value<T> value,
java.lang.String prompt,
boolean hide)
Build prompt
|
void |
requestFromUser()
if can't log in request needed information
|
void |
saveAll() |
void |
saveGui()
Saves gui specific values for which it makes sense to have a preferences values.
|
void |
setCustomImageNaming(boolean b) |
void |
setDebugLevel(int level) |
void |
setNumOfDirectories(int i) |
void |
setUIBounds(java.awt.Rectangle bounds) |
void |
setUseQuaqua(boolean b) |
void |
setUserDisableHistory(boolean b) |
void |
setUserFullPath(boolean b)
Deprecated.
|
void |
setVersionNumber(java.lang.String s) |
protected java.util.List<ImportConfig.Value<?>> |
values() |
public static final java.lang.String SERVER_NAME_SEPARATOR
public static final java.lang.String READERS_KEY
System.getProperty(String)
. Should be the path of
a readers.txt file.public final ImportConfig.StrValue agent
public final ImportConfig.StrValue hostname
public final ImportConfig.StrValue username
public final ImportConfig.StrValue password
public final ImportConfig.IntValue port
public final ImportConfig.LongValue savedProject
public final ImportConfig.LongValue savedDataset
public final ImportConfig.LongValue savedScreen
public final ImportConfig.StrValue sessionKey
public final ImportConfig.LongValue group
public final ImportConfig.BoolValue doThumbnails
public final ImportConfig.BoolValue noStatsInfo
public final ImportConfig.StrValue email
public final ImportConfig.StrValue userSpecifiedName
public final ImportConfig.StrValue userSpecifiedDescription
@Deprecated public final ImportConfig.StrValue targetClass
@Deprecated public final ImportConfig.LongValue targetId
public final ImportConfig.StrValue target
public final ImportConfig.BoolValue debug
public final ImportConfig.BoolValue contOnError
public final ImportConfig.BoolValue sendReport
public final ImportConfig.BoolValue sendFiles
public final ImportConfig.BoolValue sendLogFile
public final ImportConfig.IntValue parallelUpload
public final ImportConfig.IntValue parallelFileset
public final ImportConfig.StrValue qaBaseURL
public final ImportConfig.BoolValue checkUpgrade
public final ImportConfig.BoolValue useCustomImageNaming
@Deprecated public final ImportConfig.BoolValue useFullPath
public final ImportConfig.IntValue numOfDirectories
public final ImportConfig.FileValue savedDirectory
public final ImportConfig.StrValue readersPath
public final ImportConfig.StrValue checksumAlgorithm
public final ImportConfig.BoolValue encryptedConnection
public final ImportConfig.BoolValue autoClose
public final ImportConfig.AnnotationListValue annotations
public final ImportConfig.DoubleArrayValue userPixels
public static final java.lang.String DEFAULT_QABASEURL
public ImportConfig()
ImportConfig(File)
with null.public ImportConfig(java.io.File configFile)
ImportConfig(Preferences, IniFileLoader, Properties)
with user preferences, a local PreferenceContext
, an
IniFileLoader
initialized with the given argument, and
System.getProperties()
.configFile
- Can be null.public ImportConfig(java.util.prefs.Preferences prefs, IniFileLoader ini, java.util.Properties props)
prefs
- user and system preference and configuration dataini
- loads importer.ini
or other specified fileprops
- a Java properties object overriding other sources of preferences and configuration datapublic java.lang.String getBioFormatsVersion()
public java.lang.String getOmeroVersion()
public void fillVersionInfo(java.util.List<omero.model.NamedValue> versionInfo)
versionInfo
- the map into which version information is to be addedpublic void configureDebug(java.lang.String levelString)
ome.formats
, ome.services.blitz
,
ome.system
and loci
packages hierarchically.levelString
- the level to set or, if null
, then the
initial debug level is used as before having been changed.public OMEROMetadataStoreClient createStore() throws java.lang.Exception
java.lang.Exception
- if the creation failedpublic boolean isUpgradeNeeded()
public boolean canLogin()
public java.lang.String getLogFile()
public java.lang.String getHomeUrl()
public java.lang.String getForumUrl()
public java.lang.String getAppTitle()
public boolean getForceFileArchiveOn()
public boolean getStaticDisableHistory()
public boolean getUserDisableHistory()
public void setUserDisableHistory(boolean b)
b
- - true if Quaqua should be usedpublic java.lang.String getVersionNumber()
public void setVersionNumber(java.lang.String s)
public java.lang.String getIniVersionNumber()
public java.lang.String getUserSettingsDirectory()
public boolean getUseQuaqua()
public void setUseQuaqua(boolean b)
b
- - true if Quaqua should be usedpublic void setDebugLevel(int level)
level
- - default debug levelpublic int getDebugLevel()
public java.awt.Rectangle getUIBounds()
public void setUIBounds(java.awt.Rectangle bounds)
bounds
- - set UI bounds for application windowpublic java.lang.String getFeedbackUrl()
public java.lang.String getTokenUrl()
public java.lang.String getUploaderUrl()
@Deprecated public boolean getUserFullPath()
@Deprecated public void setUserFullPath(boolean b)
b
- ini user full pathpublic boolean getCustomImageNaming()
public void setCustomImageNaming(boolean b)
b
- custom image namingpublic int getNumOfDirectories()
public void setNumOfDirectories(int i)
i
- number of directoriesprotected <T> void prompt(ImportConfig.Value<T> value, java.lang.String prompt, boolean hide)
T
- the kind of value contained by the "value" argumentvalue
- the valueprompt
- the prompthide
- use *
s for characterspublic void requestFromUser()
protected java.util.List<ImportConfig.Value<?>> values()
public java.util.Map<java.lang.String,java.lang.String> map()
public void loadGui()
saveAll()
public void saveGui()
saveAll()
public void loadAll()
saveAll()
public void saveAll()
loadAll()
public ImportTarget getTarget()
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.