Class ClientUtils
java.lang.Object
com.inductiveautomation.snap.filedata.ClientUtils
Some utility methods for Snap.
- 
Method SummaryModifier and TypeMethodDescriptionstatic FilegetHomeDir(boolean doCreate) Returns the SnapCode directory in user's home directory.static StringgetHostUserName(String aUrl) Returns the user name for a site/host, if previously entered/recorded.Returns a list of known sites.static StringgetPassword(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 SettingsReturns the settings.static StringgetUserName(String aSourceId) Returns the user name for (site) URL, if previously entered/recorded.static voidSaves the settings.static booleanSets login info for given URL (if different than what has been previously saved for URL).static voidSets the access info for given URL to system.
- 
Method Details- 
getUserLocalSettingsReturns the settings.
- 
saveUserLocalSettingspublic static void saveUserLocalSettings()Saves the settings.
- 
getHomeDirReturns the SnapCode directory in user's home directory.
- 
getTableViewsReturns the list of known table views for this site.
- 
setAccessSets 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.
 
- 
setAccessSets the access info for given URL to system.
- 
getUserNameReturns the user name for (site) URL, if previously entered/recorded.
- 
getPasswordReturns the password for (site) URL, if previously entered/recorded.
- 
getHostUserNameReturns the user name for a site/host, if previously entered/recorded.
- 
getKnownSitesReturns a list of known sites.
 
-