com.ibm.di.connector.NT4UserMetaDataConnector
Class UserInfo

java.lang.Object
  extended by com.ibm.di.connector.NT4UserMetaDataConnector.UserInfo

public class UserInfo
extends Object

The UserInfo class represents Windows User's data structure and capsulates methods that import and export that data to an Entry object.


Field Summary
static Date ACC_NEVER_EXPIRES
           
static Integer DEFAULT_FLAGS_VALUE
           
static int LOGON_HOURS_ARRAY_LENGTH
           
static String USER_ATTR_ACCOUNT_COMMENT
           
static String USER_ATTR_ACCOUNT_EXP_DATE
           
static String USER_ATTR_APPLICATIONS_PARAMS
           
static String USER_ATTR_AUTH_FLAGS
           
static String USER_ATTR_BAD_PASSWORD_CNT
           
static String USER_ATTR_CODE_PAGE
           
static String USER_ATTR_COUNTRY_CODE
           
static String USER_ATTR_FLAGS
           
static String USER_ATTR_FULL_NAME
           
static String USER_ATTR_GLOBAL_GROUPS
           
static String USER_ATTR_HOME_DIRECTORY
           
static String USER_ATTR_HOME_DIRECTORY_DRIVE
           
static String USER_ATTR_LAST_LOGOFF
           
static String USER_ATTR_LAST_LOGON
           
static String USER_ATTR_LOCAL_GROUPS
           
static String USER_ATTR_LOGON_HOURS
           
static String USER_ATTR_LOGON_SERVER
           
static String USER_ATTR_LOGON_WORKSTATIONS
           
static String USER_ATTR_LOGONS_NUM
           
static String USER_ATTR_MAX_ACC_DISK_SPACE
           
static String USER_ATTR_PASSWORD
           
static String USER_ATTR_PASSWORD_AGE
           
static String USER_ATTR_PASSWORD_EXPIRED
           
static String USER_ATTR_PRIMARY_GROUP
           
static String USER_ATTR_PRIMARY_GROUP_ID
           
static String USER_ATTR_PRIVILEGE_LEVEL
           
static String USER_ATTR_PROFILE_PATH
           
static String USER_ATTR_RELATIVE_USER_ID
           
static String USER_ATTR_SCRIPTH_PATH
           
static String USER_ATTR_UNITS_PER_WEEK
           
static String USER_ATTR_USER_COMMENT
           
static String USER_ATTR_USER_NAME
           
 
Constructor Summary
  UserInfo()
          Default constructor.
protected UserInfo(Entry aUserEntry)
          Constructs the UserInfo object and populates its members with User data from the given Entry parameter.
 
Method Summary
protected  void completeUserData(UserInfo aUserInfo)
          All "null" data members are assigned the values of the corresponding aUserInfo's data members.
protected  void copyDataFromUserEntry(Entry aUserEntry)
          Copies data from a user entry.
protected static void createAndAddUserBasicAttributes(Entry aUserEntry, UserInfo aUserInfo)
          Creates and adds basic Windows user's attributes to the given Entry object.
protected static void createAndAddUserGlobalGroupAttribute(Entry aUserEntry, Vector aGroupNames)
          Creates and adds user's GlobalGroup attribute to the given Entry object.
protected static void createAndAddUserLocalGroupAttribute(Entry aUserEntry, Vector aGroupNames)
          Creates and adds user's LocalGroup attribute to the given Entry object.
 String getAccountComment()
           
 Date getAccountExpDate()
           
 String getApplicationsParams()
           
 Integer getAuthFlags()
           
 Integer getBadPasswordCnt()
           
 Integer getCodePage()
           
 Integer getCountryCode()
           
 Integer getFlags()
           
 String getFullName()
           
 String getHomeDirectory()
           
 String getHomeDirectoryDrive()
           
 Date getLastLogoff()
           
 Date getLastLogon()
           
 byte[] getLogonHours()
           
 String getLogonServer()
           
 Integer getLogonsNum()
           
 String getLogonWorkstations()
           
 Long getMaxAccDiskSpace()
           
 String getPassword()
           
 Long getPasswordAge()
           
 Integer getPasswordExpired()
           
 String getPrimaryGroup()
           
 Integer getPrimaryGroupID()
           
 Integer getPrivilegeLevel()
           
 String getProfilePath()
           
 Integer getRelativeUserID()
           
 String getScriptPath()
           
 Integer getUnitsPerWeek()
           
 String getUserComment()
           
 String getUserName()
           
protected static Vector queryUserSchema()
          Retrieves conntector user entry's structure.
 void setAccountComment(String aAccountComment)
           
 void setAccountExpDate(Date aAccountExpDate)
           
 void setApplicationsParams(String aApplicationsParams)
           
 void setAuthFlags(Integer aAuthFlags)
           
 void setBadPasswordCnt(Integer aBadPasswordCnt)
           
 void setCodePage(Integer aCodePage)
           
 void setCountryCode(Integer aCountryCode)
           
 void setFlags(Integer aFlags)
           
 void setFullName(String aFullName)
           
 void setHomeDirectory(String aHomeDirectory)
           
 void setHomeDirectoryDrive(String aHomeDirectoryDrive)
           
 void setLastLogoff(Date aLastLogoff)
           
 void setLastLogon(Date aLastLogon)
           
 void setLogonHours(byte[] aLogonHours)
           
 void setLogonServer(String aLogonServer)
           
 void setLogonsNum(Integer aLogonsNum)
           
 void setLogonWorkstations(String aLogonWorkstations)
           
 void setMaxAccDiskSpace(Long aMaxAccDiskSpace)
           
 void setPassword(String aPassword)
           
 void setPasswordAge(Long aPasswordAge)
           
 void setPasswordExpired(Integer aPasswordExpired)
           
 void setPrimaryGroup(String aPrimaryGroup)
           
 void setPrimaryGroupID(Integer aPrimaryGroupID)
           
 void setPrivilegeLevel(Integer aPrivilegeLevel)
           
 void setProfilePath(String aProfilePath)
           
 void setRelativeUserID(Integer aRelativeUserID)
           
 void setScriptPath(String aScriptParh)
           
 void setUnitsPerWeek(Integer aUnitsPerWeek)
           
 void setUserComment(String aUserComment)
           
 void setUserName(String aUserName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGON_HOURS_ARRAY_LENGTH

public static final int LOGON_HOURS_ARRAY_LENGTH
See Also:
Constant Field Values

DEFAULT_FLAGS_VALUE

public static final Integer DEFAULT_FLAGS_VALUE

ACC_NEVER_EXPIRES

public static final Date ACC_NEVER_EXPIRES

USER_ATTR_USER_NAME

public static final String USER_ATTR_USER_NAME
See Also:
Constant Field Values

USER_ATTR_ACCOUNT_COMMENT

public static final String USER_ATTR_ACCOUNT_COMMENT
See Also:
Constant Field Values

USER_ATTR_FULL_NAME

public static final String USER_ATTR_FULL_NAME
See Also:
Constant Field Values

USER_ATTR_USER_COMMENT

public static final String USER_ATTR_USER_COMMENT
See Also:
Constant Field Values

USER_ATTR_PASSWORD

public static final String USER_ATTR_PASSWORD
See Also:
Constant Field Values

USER_ATTR_PASSWORD_AGE

public static final String USER_ATTR_PASSWORD_AGE
See Also:
Constant Field Values

USER_ATTR_PRIVILEGE_LEVEL

public static final String USER_ATTR_PRIVILEGE_LEVEL
See Also:
Constant Field Values

USER_ATTR_HOME_DIRECTORY

public static final String USER_ATTR_HOME_DIRECTORY
See Also:
Constant Field Values

USER_ATTR_FLAGS

public static final String USER_ATTR_FLAGS
See Also:
Constant Field Values

USER_ATTR_SCRIPTH_PATH

public static final String USER_ATTR_SCRIPTH_PATH
See Also:
Constant Field Values

USER_ATTR_AUTH_FLAGS

public static final String USER_ATTR_AUTH_FLAGS
See Also:
Constant Field Values

USER_ATTR_APPLICATIONS_PARAMS

public static final String USER_ATTR_APPLICATIONS_PARAMS
See Also:
Constant Field Values

USER_ATTR_LOGON_WORKSTATIONS

public static final String USER_ATTR_LOGON_WORKSTATIONS
See Also:
Constant Field Values

USER_ATTR_LAST_LOGON

public static final String USER_ATTR_LAST_LOGON
See Also:
Constant Field Values

USER_ATTR_LAST_LOGOFF

public static final String USER_ATTR_LAST_LOGOFF
See Also:
Constant Field Values

USER_ATTR_ACCOUNT_EXP_DATE

public static final String USER_ATTR_ACCOUNT_EXP_DATE
See Also:
Constant Field Values

USER_ATTR_MAX_ACC_DISK_SPACE

public static final String USER_ATTR_MAX_ACC_DISK_SPACE
See Also:
Constant Field Values

USER_ATTR_UNITS_PER_WEEK

public static final String USER_ATTR_UNITS_PER_WEEK
See Also:
Constant Field Values

USER_ATTR_LOGON_HOURS

public static final String USER_ATTR_LOGON_HOURS
See Also:
Constant Field Values

USER_ATTR_BAD_PASSWORD_CNT

public static final String USER_ATTR_BAD_PASSWORD_CNT
See Also:
Constant Field Values

USER_ATTR_LOGONS_NUM

public static final String USER_ATTR_LOGONS_NUM
See Also:
Constant Field Values

USER_ATTR_LOGON_SERVER

public static final String USER_ATTR_LOGON_SERVER
See Also:
Constant Field Values

USER_ATTR_COUNTRY_CODE

public static final String USER_ATTR_COUNTRY_CODE
See Also:
Constant Field Values

USER_ATTR_CODE_PAGE

public static final String USER_ATTR_CODE_PAGE
See Also:
Constant Field Values

USER_ATTR_RELATIVE_USER_ID

public static final String USER_ATTR_RELATIVE_USER_ID
See Also:
Constant Field Values

USER_ATTR_PRIMARY_GROUP_ID

public static final String USER_ATTR_PRIMARY_GROUP_ID
See Also:
Constant Field Values

USER_ATTR_PROFILE_PATH

public static final String USER_ATTR_PROFILE_PATH
See Also:
Constant Field Values

USER_ATTR_HOME_DIRECTORY_DRIVE

public static final String USER_ATTR_HOME_DIRECTORY_DRIVE
See Also:
Constant Field Values

USER_ATTR_PASSWORD_EXPIRED

public static final String USER_ATTR_PASSWORD_EXPIRED
See Also:
Constant Field Values

USER_ATTR_LOCAL_GROUPS

public static final String USER_ATTR_LOCAL_GROUPS
See Also:
Constant Field Values

USER_ATTR_GLOBAL_GROUPS

public static final String USER_ATTR_GLOBAL_GROUPS
See Also:
Constant Field Values

USER_ATTR_PRIMARY_GROUP

public static final String USER_ATTR_PRIMARY_GROUP
See Also:
Constant Field Values
Constructor Detail

UserInfo

public UserInfo()
Default constructor.


UserInfo

protected UserInfo(Entry aUserEntry)
Constructs the UserInfo object and populates its members with User data from the given Entry parameter.

Parameters:
aUserEntry - The User Entry object containing data to initialize the new UserInfo object with.
Method Detail

getUserName

public String getUserName()

getAccountComment

public String getAccountComment()

getFullName

public String getFullName()

getUserComment

public String getUserComment()

getPassword

public String getPassword()

getPasswordAge

public Long getPasswordAge()

getPrivilegeLevel

public Integer getPrivilegeLevel()

getHomeDirectory

public String getHomeDirectory()

getFlags

public Integer getFlags()

getScriptPath

public String getScriptPath()

getAuthFlags

public Integer getAuthFlags()

getApplicationsParams

public String getApplicationsParams()

getLogonWorkstations

public String getLogonWorkstations()

getLastLogon

public Date getLastLogon()

getLastLogoff

public Date getLastLogoff()

getAccountExpDate

public Date getAccountExpDate()

getMaxAccDiskSpace

public Long getMaxAccDiskSpace()

getUnitsPerWeek

public Integer getUnitsPerWeek()

getLogonHours

public byte[] getLogonHours()

getBadPasswordCnt

public Integer getBadPasswordCnt()

getLogonsNum

public Integer getLogonsNum()

getLogonServer

public String getLogonServer()

getCountryCode

public Integer getCountryCode()

getCodePage

public Integer getCodePage()

getRelativeUserID

public Integer getRelativeUserID()

getPrimaryGroupID

public Integer getPrimaryGroupID()

getProfilePath

public String getProfilePath()

getHomeDirectoryDrive

public String getHomeDirectoryDrive()

getPasswordExpired

public Integer getPasswordExpired()

getPrimaryGroup

public String getPrimaryGroup()

setUserName

public void setUserName(String aUserName)

setAccountComment

public void setAccountComment(String aAccountComment)

setFullName

public void setFullName(String aFullName)

setUserComment

public void setUserComment(String aUserComment)

setPassword

public void setPassword(String aPassword)

setPasswordAge

public void setPasswordAge(Long aPasswordAge)

setPrivilegeLevel

public void setPrivilegeLevel(Integer aPrivilegeLevel)

setHomeDirectory

public void setHomeDirectory(String aHomeDirectory)

setFlags

public void setFlags(Integer aFlags)

setScriptPath

public void setScriptPath(String aScriptParh)

setAuthFlags

public void setAuthFlags(Integer aAuthFlags)

setApplicationsParams

public void setApplicationsParams(String aApplicationsParams)

setLogonWorkstations

public void setLogonWorkstations(String aLogonWorkstations)

setLastLogon

public void setLastLogon(Date aLastLogon)

setLastLogoff

public void setLastLogoff(Date aLastLogoff)

setAccountExpDate

public void setAccountExpDate(Date aAccountExpDate)

setMaxAccDiskSpace

public void setMaxAccDiskSpace(Long aMaxAccDiskSpace)

setUnitsPerWeek

public void setUnitsPerWeek(Integer aUnitsPerWeek)

setLogonHours

public void setLogonHours(byte[] aLogonHours)

setBadPasswordCnt

public void setBadPasswordCnt(Integer aBadPasswordCnt)

setLogonsNum

public void setLogonsNum(Integer aLogonsNum)

setLogonServer

public void setLogonServer(String aLogonServer)

setCountryCode

public void setCountryCode(Integer aCountryCode)

setCodePage

public void setCodePage(Integer aCodePage)

setRelativeUserID

public void setRelativeUserID(Integer aRelativeUserID)

setPrimaryGroupID

public void setPrimaryGroupID(Integer aPrimaryGroupID)

setProfilePath

public void setProfilePath(String aProfilePath)

setHomeDirectoryDrive

public void setHomeDirectoryDrive(String aHomeDirectoryDrive)

setPasswordExpired

public void setPasswordExpired(Integer aPasswordExpired)

setPrimaryGroup

public void setPrimaryGroup(String aPrimaryGroup)

copyDataFromUserEntry

protected void copyDataFromUserEntry(Entry aUserEntry)
Copies data from a user entry.

Parameters:
aUserEntry - The user entry to copy from.

completeUserData

protected void completeUserData(UserInfo aUserInfo)
All "null" data members are assigned the values of the corresponding aUserInfo's data members.

Parameters:
aUserInfo - The UserInfo instance which data members' data will be copied.

createAndAddUserBasicAttributes

protected static void createAndAddUserBasicAttributes(Entry aUserEntry,
                                                      UserInfo aUserInfo)
Creates and adds basic Windows user's attributes to the given Entry object.

Parameters:
aUserEntry - The entry object that is going to be populated with attributes.
aUserInfo - The UserInfo structure containing user's attributes values.

createAndAddUserLocalGroupAttribute

protected static void createAndAddUserLocalGroupAttribute(Entry aUserEntry,
                                                          Vector aGroupNames)
Creates and adds user's LocalGroup attribute to the given Entry object. The LocalGroup attribute is a Vector of local group names.

Parameters:
aUserEntry - The entry object that the LocalGroup attribute will be added to.
aGroupNames - The vector containing the names of the user's local groups.

createAndAddUserGlobalGroupAttribute

protected static void createAndAddUserGlobalGroupAttribute(Entry aUserEntry,
                                                           Vector aGroupNames)
Creates and adds user's GlobalGroup attribute to the given Entry object. The GlobalGroup attribute is a Vector of global group names.

Parameters:
aUserEntry - The entry object that the GlobalGroup attribute will be added to.
aGroupNames - The vector containing the names of the user's global groups.

queryUserSchema

protected static Vector queryUserSchema()
Retrieves conntector user entry's structure.

Returns:
Vector of elements of type Entry describing each user's attribute structure.