com.starla.smb
Class SMBUserInfo

java.lang.Object
  |
  +--com.starla.smb.SMBUserInfo

public final class SMBUserInfo
extends java.lang.Object

SMB user information class

The SMBUserInfo class contains the details of a user account on a remote server.

The SMBAdminSession.getUserInfo () method returns an SMBUserInfo object for the specified remote user.


Field Summary
static int OperAccounts
           
static int OperComm
           
static int OperPrint
          Account operator privileges
static int OperServer
           
static int PrivAdmin
           
static int PrivGuest
          Account privilege levels
static int PrivUser
           
 
Method Summary
 java.util.BitSet getAllowedHours()
          Return the accounts allowed logon times, as a set of 168 bits.
 int getBadPasswordCount()
          Return the bad password count for this user account
 java.lang.String getComment()
          Return the account comment string
 short getCountryCode()
          Return the accounts country code
 int getDiskQuota()
          Return the accounts disk quota
 java.lang.String getFullUserName()
          Return the users full name
 java.lang.String getHomeDirectory()
          Return the users home directory specification
 java.util.Date getLastLogoffDateTime()
          Return the date/time that the user last logged off
 java.util.Date getLastLogonDateTime()
          Return the date/time that the user last logged in
 int getLogonCount()
          Return the number of times that this user has logged on
 java.lang.String getLogonServer()
          Return the logon server used by this account
 java.lang.String getNodeName()
          Return the node name for this user account
 int getOperatorPrivileges()
          Return the accounts operator privileges
 int getPasswordAge()
          Return the age of the current password, in seconds
 short getPrivilegeLevel()
          Return the user privilege level
 java.lang.String getUserComment()
          Return the user comment string
 java.lang.String getUserName()
          Return the user name string
 java.lang.String getWorkstationList()
          Return the allowed workstation list for this account
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PrivGuest

public static final int PrivGuest
Account privilege levels

PrivUser

public static final int PrivUser

PrivAdmin

public static final int PrivAdmin

OperPrint

public static final int OperPrint
Account operator privileges

OperComm

public static final int OperComm

OperServer

public static final int OperServer

OperAccounts

public static final int OperAccounts
Method Detail

getAllowedHours

public final java.util.BitSet getAllowedHours()
Return the accounts allowed logon times, as a set of 168 bits. Each bit represents a one hour slot starting from Sunday 00:00 - 00:59.
Returns:
Account logon allowed times, or null if there are no time restrictions on this account.

getBadPasswordCount

public final int getBadPasswordCount()
Return the bad password count for this user account
Returns:
Bad password count for this user account

getComment

public final java.lang.String getComment()
Return the account comment string
Returns:
Account comment string

getCountryCode

public final short getCountryCode()
Return the accounts country code
Returns:
Country code value

getDiskQuota

public final int getDiskQuota()
Return the accounts disk quota
Returns:
Account disk usage quota, or -1 for no quota

getFullUserName

public final java.lang.String getFullUserName()
Return the users full name
Returns:
Full user name string

getHomeDirectory

public final java.lang.String getHomeDirectory()
Return the users home directory specification
Returns:
Users home directory string

getLastLogoffDateTime

public final java.util.Date getLastLogoffDateTime()
Return the date/time that the user last logged off
Returns:
Last logoff date/time

getLastLogonDateTime

public final java.util.Date getLastLogonDateTime()
Return the date/time that the user last logged in
Returns:
Last logon date/time

getLogonCount

public final int getLogonCount()
Return the number of times that this user has logged on
Returns:
User logon count

getLogonServer

public final java.lang.String getLogonServer()
Return the logon server used by this account
Returns:
Logon server name string

getNodeName

public final java.lang.String getNodeName()
Return the node name for this user account
Returns:
Node name string

getOperatorPrivileges

public final int getOperatorPrivileges()
Return the accounts operator privileges
Returns:
Accounts operator privileges

getPasswordAge

public final int getPasswordAge()
Return the age of the current password, in seconds
Returns:
Password age, in seconds

getPrivilegeLevel

public final short getPrivilegeLevel()
Return the user privilege level
Returns:
User account privilege level

getUserComment

public final java.lang.String getUserComment()
Return the user comment string
Returns:
User comment string

getUserName

public final java.lang.String getUserName()
Return the user name string
Returns:
User name string

getWorkstationList

public final java.lang.String getWorkstationList()
Return the allowed workstation list for this account
Returns:
Workstation list string, as a comma seperated list of up to eight workstation names, or null if there are no such restrictions on this account.