Class ClientUtils
java.lang.Object
com.inductiveautomation.snap.filedata.ClientUtils
Some utility methods for Snap.
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
getHomeDir
(boolean doCreate) Returns the SnapCode directory in user's home directory.static String
getHostUserName
(String aUrl) Returns the user name for a site/host, if previously entered/recorded.Returns a list of known sites.static String
getPassword
(String aSourceId) Returns the password for (site) URL, if previously entered/recorded.static List<SnapTableView>
getTableViews
(SnapSite aSite) Returns the list of known table views for this site.static Settings
Returns the settings.static String
getUserName
(String aSourceId) Returns the user name for (site) URL, if previously entered/recorded.static void
Saves the settings.static boolean
Sets login info for given URL (if different than what has been previously saved for URL).static void
Sets the access info for given URL to system.
-
Method Details
-
getUserLocalSettings
Returns the settings. -
saveUserLocalSettings
public static void saveUserLocalSettings()Saves the settings. -
getHomeDir
Returns the SnapCode directory in user's home directory. -
getTableViews
Returns the list of known table views for this site. -
setAccess
Sets login info for given URL (if different than what has been previously saved for URL).- Returns:
- Whether login info was different than URL data source.
-
setAccess
Sets the access info for given URL to system. -
getUserName
Returns the user name for (site) URL, if previously entered/recorded. -
getPassword
Returns the password for (site) URL, if previously entered/recorded. -
getHostUserName
Returns the user name for a site/host, if previously entered/recorded. -
getKnownSites
Returns a list of known sites.
-