|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.formats.importer.ImportConfig
public class ImportConfig
Utility class which configures the Import.
Nested Class Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
ImportConfig()
Simplest constructor which use calls ImportConfig(File) with null. |
|
ImportConfig(File configFile)
Calls ImportConfig#ImportConfig(Preferences, PreferenceContext, IniFileLoader, Properties)
with user preferences, a local PreferenceContext , an
IniFileLoader initialized with the given argument, and
System.getProperties() . |
|
ImportConfig(Preferences prefs,
IniFileLoader ini,
Properties props)
Complete constructor. |
Method Summary | |
---|---|
boolean |
canLogin()
Confirm all information for login is supplied |
void |
configureDebug(org.apache.log4j.Level level)
Modifies the Log4j logging level of everything under the ome.format and loci package hierarchically. |
OMEROMetadataStoreClient |
createStore()
Create and return a new OMEROMetadataStoreClient |
String |
getAppTitle()
|
boolean |
getCustomImageNaming()
|
int |
getDebugLevel()
|
String |
getFeedbackUrl()
|
boolean |
getForceFileArchiveOn()
|
String |
getForumUrl()
|
String |
getHomeUrl()
|
String |
getIniVersionNumber()
|
String |
getLogFile()
|
int |
getNumOfDirectories()
|
List<String> |
getServerList()
|
boolean |
getStaticDisableHistory()
|
boolean |
getStaticDisableUpgradeCheck()
|
String |
getTokenUrl()
|
Rectangle |
getUIBounds()
|
String |
getUploaderUrl()
|
boolean |
getUseQuaqua()
|
boolean |
getUserDisableHistory()
|
boolean |
getUserFullPath()
|
String |
getUserSettingsDirectory()
|
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. |
Map<String,String> |
map()
|
protected void |
prompt(ImportConfig.Value value,
String prompt,
boolean hide)
Build prompt |
void |
removeServer(String server)
|
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(Rectangle bounds)
|
void |
setUseQuaqua(boolean b)
|
void |
setUserDisableHistory(boolean b)
|
void |
setUserFullPath(boolean b)
|
void |
setVersionNumber(String s)
|
void |
updateServerList(String currentServer)
Save the current serverList if the currentServer is not on the list. |
protected List<ImportConfig.Value<?>> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SERVER_NAME_SEPARATOR
public static final 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.StrValue email
public final ImportConfig.StrValue serverList
public final ImportConfig.StrValue imageName
public final ImportConfig.StrValue imageDescription
public final ImportConfig.StrValue plateName
public final ImportConfig.StrValue plateDescription
public final ImportConfig.StrValue targetClass
public final ImportConfig.LongValue targetId
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.BoolValue companionFile
public final ImportConfig.BoolValue archiveImage
public final ImportConfig.BoolValue useCustomImageNaming
public final ImportConfig.BoolValue useFullPath
public final ImportConfig.IntValue numOfDirectories
public final ImportConfig.FileValue savedDirectory
public final ImportConfig.StrValue readersPath
public final ImportConfig.BoolValue encryptedConnection
public final ImportConfig.AnnotationListValue annotations
public final ImportConfig.DoubleArrayValue userPixels
Constructor Detail |
---|
public ImportConfig()
ImportConfig(File)
with null.
public ImportConfig(File configFile)
ImportConfig#ImportConfig(Preferences, PreferenceContext, IniFileLoader, Properties)
with user preferences, a local PreferenceContext
, an
IniFileLoader
initialized with the given argument, and
System.getProperties()
.
configFile
- Can be null.public ImportConfig(Preferences prefs, IniFileLoader ini, Properties props)
prefs
- ctx
- ini
- props
- Method Detail |
---|
public void configureDebug(org.apache.log4j.Level level)
ome.format
and loci
package hierarchically.
level
- if null, then #ini#getDebugLevel()
will be used.public OMEROMetadataStoreClient createStore() throws Exception
Exception
public boolean isUpgradeNeeded()
public boolean canLogin()
public String getLogFile()
public String getHomeUrl()
public String getForumUrl()
public String getAppTitle()
public boolean getStaticDisableUpgradeCheck()
public boolean getForceFileArchiveOn()
public boolean getStaticDisableHistory()
public boolean getUserDisableHistory()
public void setUserDisableHistory(boolean b)
b
- - true if Quaqua should be usedpublic String getVersionNumber()
public void setVersionNumber(String s)
public String getIniVersionNumber()
public 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 Rectangle getUIBounds()
public void setUIBounds(Rectangle bounds)
bounds
- - set UI bounds for application windowpublic String getFeedbackUrl()
public String getTokenUrl()
public String getUploaderUrl()
public boolean getUserFullPath()
public void setUserFullPath(boolean b)
public boolean getCustomImageNaming()
public void setCustomImageNaming(boolean b)
public int getNumOfDirectories()
public void setNumOfDirectories(int i)
public List<String> getServerList()
public void updateServerList(String currentServer)
public void removeServer(String server)
server
- - remove this server from the server listprotected void prompt(ImportConfig.Value value, String prompt, boolean hide)
value
- prompt
- hide
- - use *s for characterspublic void requestFromUser()
protected List<ImportConfig.Value<?>> values()
public Map<String,String> map()
public void loadGui()
saveAll()
public void saveGui()
saveAll()
public void loadAll()
saveAll()
public void saveAll()
loadAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.