|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.accpac.sm.Session
@ThreadSafe public class Session
Represents an authenticated session with the Sage Accpac System Manager.
The caller must call the dispose
method when finished with
the object so that all its resources can be released. The caller must not
call any other method on the object after calling dispose.
Constructor Summary | |
---|---|
Session(ProgramSet programSet,
SharedDataSet sharedDataSet,
java.lang.String userID,
java.lang.String password,
java.lang.String companyID,
java.util.Date sessionDate)
Complete constructor. |
|
Session(java.lang.String userID,
java.lang.String password,
java.lang.String companyID,
java.util.Date sessionDate)
Constructs an instance of the Session class with a default
ProgramSet and SharedDataSet . |
Method Summary | |
---|---|
void |
dispose()
Closes and releases all resources used by the object. |
protected void |
finalize()
overrides the finalize method of object so that the dispose gets called if it hasn't already |
java.lang.String |
getCharacterSetName()
Gets the name of the character set used for the session. |
java.lang.String |
getCompanyID()
Gets the company database ID that the current session is signed on to. |
java.lang.String |
getCompanyName()
Returns the name of the company |
LicenseStatus |
getLicenseStatus(java.lang.String appID,
java.lang.String appVersion)
Gets the license status of the given version of the given application. |
ProgramSet |
getProgramSet()
Get the session's program set |
java.util.Date |
getSessionDate()
Gets the date represented by the program |
SharedDataSet |
getSharedDataSet()
Get the shared data set for this program |
java.lang.String |
getSystemID()
Gets the system database ID that the current session is signed on to. |
static java.lang.String |
getSystemVersion()
get the system version (e.g., "60A") |
java.lang.String |
getUserID()
Gets the Accpac user ID of the program. |
java.lang.String |
getUserLanguage()
Gets the language preference of the current user. |
java.lang.String |
getUserName()
Gets the name of the current user. |
boolean |
isTimecardUser()
check if the current user is a Timecard user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Session(ProgramSet programSet, SharedDataSet sharedDataSet, java.lang.String userID, java.lang.String password, java.lang.String companyID, java.util.Date sessionDate)
public Session(java.lang.String userID, java.lang.String password, java.lang.String companyID, java.util.Date sessionDate)
Session
class with a default
ProgramSet
and SharedDataSet
.
Method Detail |
---|
public void dispose()
public java.lang.String getCharacterSetName()
public java.lang.String getCompanyID()
public final java.lang.String getCompanyName()
public LicenseStatus getLicenseStatus(java.lang.String appID, java.lang.String appVersion)
appID
- ID of the applicationappVersion
- version of the application
public ProgramSet getProgramSet()
public java.util.Date getSessionDate()
public java.lang.String getSystemID()
public SharedDataSet getSharedDataSet()
public static java.lang.String getSystemVersion()
public java.lang.String getUserID()
public java.lang.String getUserLanguage()
public java.lang.String getUserName()
public boolean isTimecardUser()
protected void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |