public final class CumulusSession
extends java.lang.Object
CumulusSession
object maintains a session with the Cumulus server. It can be seen as a client to a Cumulus database.Constructor and Description |
---|
CumulusSession()
Creates a new session.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
boolean |
getHasFeature(Feature feature)
Check whether a given feature is available.
|
int |
getLanguageID()
Returns the language used for this session.
|
ModuleJsonPreferences |
getModuleConfigurationData(java.lang.String moduleID)
Return the shared module preferences for the given module ID.
|
Preferences |
getPreferences()
Returns the session's preferences.
|
UserContext |
getUserContext()
Returns the user context object.
|
int |
hashCode() |
boolean |
isRemoteSession()
Returns whether this session is bound to a remote server.
|
MultiCategoryItemCollection |
newMultiCategoryItemCollection()
Returns a new empty
MultiCategoryItemCollection (Single User Edition only). |
MultiRecordItemCollection |
newMultiRecordItemCollection()
Returns a new empty
MultiRecordItemCollection (Single User Edition only). |
Catalog |
openCatalog(java.io.File catalogFile)
Returns a new empty
Catalog (Single User Edition only). |
void |
setLanguageID(int languageID)
Sets the language used for this session.
|
public boolean isRemoteSession()
public void setLanguageID(int languageID)
languageID
- the language ID for the session. The value is one of the language constants. Possible
values are defined in the LanguageManager
.public int getLanguageID()
Layout
object. You can get the default language for newly created CumulusSession
using Cumulus.getLanguageID()
. Possible
values are defined in the LanguageManager
.public Preferences getPreferences()
public UserContext getUserContext()
public boolean getHasFeature(Feature feature)
feature
- the feature to check. Use one of the constants of the Feature
enum.true
if the feature is available, false
otherwise.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public MultiRecordItemCollection newMultiRecordItemCollection()
MultiRecordItemCollection
(Single User Edition only).MultiRecordItemCollection
.public MultiCategoryItemCollection newMultiCategoryItemCollection()
MultiCategoryItemCollection
(Single User Edition only).MultiCategoryItemCollection
.public Catalog openCatalog(java.io.File catalogFile)
Catalog
(Single User Edition only).catalogFile
- the Cumulus catalog file to open.Catalog
or null.public ModuleJsonPreferences getModuleConfigurationData(java.lang.String moduleID)
moduleID
- the module ID to get the preferences forwww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.