Class ClientUtils
java.lang.Object
com.inductiveautomation.snap.filedata.ClientUtils
Some utility methods for Snap.
- 
Method Summary
Modifier 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
- 
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. 
 -