|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.accpac.sm.SharedDataSet
@ThreadSafe public class SharedDataSet
The SharedDataSet
class implements ISharedDataSet
Nested Class Summary | |
---|---|
static class |
SharedDataSet.PasswordStatus
The possible statuses that can be returned when processing passwords (e.g. |
Constructor Summary | |
---|---|
SharedDataSet()
Provides access to the default or single shared data set. |
|
SharedDataSet(java.lang.String directory)
Provides access to the shared data set in the specified shared data directory. |
Method Summary | |
---|---|
SharedDataSet.PasswordStatus |
changePassword(java.lang.String userID,
java.lang.String oldPassword,
java.lang.String newPassword)
attempts to change the password for the given user |
SharedDataSet.PasswordStatus |
checkValidLogin(java.lang.String userID)
Check the user name, returning the status |
SharedDataSet.PasswordStatus |
checkValidLogin(java.lang.String userID,
java.lang.String password)
Check the user name and password, returning the status |
java.lang.String |
getDirectory()
Gets the file-system directory name for this directory. |
Organizations |
getOrganizations()
Gets a list of organizations set up in the system. |
java.lang.String |
getSysOrg(java.lang.String company)
Gets the system org ID of the given company |
boolean |
isSecurityEnabled(java.lang.String orgID)
Is the security enabled for the given OrgID? |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SharedDataSet()
public SharedDataSet(java.lang.String directory)
directory
- the directory where the shared data is
java.lang.NullPointerException
- if the argument is a null reference
java.lang.IllegalArgumentException
- if the directory is not a valid shared data directory including
not having the correct form or if the file system permissions
etc. do not permit enough access to the directory at this time.Method Detail |
---|
public SharedDataSet.PasswordStatus changePassword(java.lang.String userID, java.lang.String oldPassword, java.lang.String newPassword)
changePassword
in interface ISharedDataSet
userID
- the ID of the useroldPassword
- the old password for the usernewPassword
- the new password for the user
public SharedDataSet.PasswordStatus checkValidLogin(java.lang.String userID)
checkValidLogin
in interface ISharedDataSet
userID
- the ID of the user
SharedDataSet.PasswordStatus
indicating the result. Note that there
are several that reflect success.public SharedDataSet.PasswordStatus checkValidLogin(java.lang.String userID, java.lang.String password)
checkValidLogin
in interface ISharedDataSet
userID
- the ID of the userpassword
- the password for the user
SharedDataSet.PasswordStatus
indicating the result. Note that there
are several that reflect success.public java.lang.String getDirectory()
getDirectory
in interface ISharedDataSet
public Organizations getOrganizations()
getOrganizations
in interface ISharedDataSet
Organizations
collectionpublic java.lang.String getSysOrg(java.lang.String company)
getSysOrg
in interface ISharedDataSet
company
- company org ID
public final boolean isSecurityEnabled(java.lang.String orgID)
isSecurityEnabled
in interface ISharedDataSet
orgID
- Organization ID (either Company or System)
true
if security is enabledpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |