|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.NT4UserMetaDataConnector.UserInfo
public class UserInfo
The UserInfo class represents Windows User's data structure and encapsulates methods that import and export that data to an Entry object.
Field Summary | |
---|---|
static Date |
ACC_NEVER_EXPIRES
"-1000" milliseconds presents "-1" second which is the "account never expires" value |
static Integer |
DEFAULT_FLAGS_VALUE
the following bits are set: UF_SCRIPT, UF_DONT_EXPIRE_PASSWD, UF_NORMAL_ACCOUNT |
static int |
LOGON_HOURS_ARRAY_LENGTH
The size of the array for the log on hours. |
static String |
USER_ATTR_ACCOUNT_COMMENT
User entry attribute's name |
static String |
USER_ATTR_ACCOUNT_EXP_DATE
User entry attribute's name |
static String |
USER_ATTR_APPLICATIONS_PARAMS
User entry attribute's name |
static String |
USER_ATTR_AUTH_FLAGS
User entry attribute's name |
static String |
USER_ATTR_BAD_PASSWORD_CNT
User entry attribute's name |
static String |
USER_ATTR_CODE_PAGE
User entry attribute's name |
static String |
USER_ATTR_COUNTRY_CODE
User entry attribute's name |
static String |
USER_ATTR_FLAGS
User entry attribute's name |
static String |
USER_ATTR_FULL_NAME
User entry attribute's name |
static String |
USER_ATTR_GLOBAL_GROUPS
User entry attribute's name |
static String |
USER_ATTR_HOME_DIRECTORY
User entry attribute's name |
static String |
USER_ATTR_HOME_DIRECTORY_DRIVE
User entry attribute's name |
static String |
USER_ATTR_LAST_LOGOFF
User entry attribute's name |
static String |
USER_ATTR_LAST_LOGON
User entry attribute's name |
static String |
USER_ATTR_LOCAL_GROUPS
User entry attribute's name |
static String |
USER_ATTR_LOGON_HOURS
User entry attribute's name |
static String |
USER_ATTR_LOGON_SERVER
User entry attribute's name |
static String |
USER_ATTR_LOGON_WORKSTATIONS
User entry attribute's name |
static String |
USER_ATTR_LOGONS_NUM
User entry attribute's name |
static String |
USER_ATTR_MAX_ACC_DISK_SPACE
User entry attribute's name |
static String |
USER_ATTR_PASSWORD
User entry attribute's name |
static String |
USER_ATTR_PASSWORD_AGE
User entry attribute's name |
static String |
USER_ATTR_PASSWORD_EXPIRED
User entry attribute's name |
static String |
USER_ATTR_PRIMARY_GROUP
User entry attribute's name |
static String |
USER_ATTR_PRIMARY_GROUP_ID
User entry attribute's name |
static String |
USER_ATTR_PRIVILEGE_LEVEL
User entry attribute's name |
static String |
USER_ATTR_PROFILE_PATH
User entry attribute's name |
static String |
USER_ATTR_RELATIVE_USER_ID
User entry attribute's name |
static String |
USER_ATTR_SCRIPTH_PATH
User entry attribute's name |
static String |
USER_ATTR_UNITS_PER_WEEK
User entry attribute's name |
static String |
USER_ATTR_USER_COMMENT
User entry attribute's name |
static String |
USER_ATTR_USER_NAME
User entry attribute's 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()
Retrieves user defined value for the field |
Date |
getAccountExpDate()
Retrieves user defined value for the field |
String |
getApplicationsParams()
Retrieves user defined value for the field |
Integer |
getAuthFlags()
Retrieves user defined value for the field |
Integer |
getBadPasswordCnt()
Retrieves user defined value for the field |
Integer |
getCodePage()
Retrieves user defined value for the field |
Integer |
getCountryCode()
Retrieves user defined value for the field |
Integer |
getFlags()
Retrieves user defined value for the field |
String |
getFullName()
Retrieves user defined value for the field |
String |
getHomeDirectory()
Retrieves user defined value for the field |
String |
getHomeDirectoryDrive()
Retrieves user defined value for the field |
Date |
getLastLogoff()
Retrieves user defined value for the field |
Date |
getLastLogon()
Retrieves user defined value for the field |
byte[] |
getLogonHours()
Retrieves user defined value for the field |
String |
getLogonServer()
Retrieves user defined value for the field |
Integer |
getLogonsNum()
Retrieves user defined value for the field |
String |
getLogonWorkstations()
Retrieves user defined value for the field |
Long |
getMaxAccDiskSpace()
Retrieves user defined value for the field |
String |
getPassword()
Retrieves user defined value for the field |
Long |
getPasswordAge()
Retrieves user defined value for the field |
Integer |
getPasswordExpired()
Retrieves user defined value for the field |
String |
getPrimaryGroup()
Retrieves user defined value for the field |
Integer |
getPrimaryGroupID()
Retrieves user defined value for the field |
Integer |
getPrivilegeLevel()
Retrieves user defined value for the field |
String |
getProfilePath()
Retrieves user defined value for the field |
Integer |
getRelativeUserID()
Retrieves user defined value for the field |
String |
getScriptPath()
Retrieves user defined value for the field |
Integer |
getUnitsPerWeek()
Retrieves user defined value for the field |
String |
getUserComment()
Retrieves user defined value for the field |
String |
getUserName()
Retrieves user defined value for the field |
protected static Vector |
queryUserSchema()
Retrieves connector user entry's structure. |
void |
setAccountComment(String aAccountComment)
Sets user defined value for the field |
void |
setAccountExpDate(Date aAccountExpDate)
Sets user defined value for the field |
void |
setApplicationsParams(String aApplicationsParams)
Sets user defined value for the field |
void |
setAuthFlags(Integer aAuthFlags)
Sets user defined value for the field |
void |
setBadPasswordCnt(Integer aBadPasswordCnt)
Sets user defined value for the field |
void |
setCodePage(Integer aCodePage)
Sets user defined value for the field |
void |
setCountryCode(Integer aCountryCode)
Sets user defined value for the field |
void |
setFlags(Integer aFlags)
Sets user defined value for the field |
void |
setFullName(String aFullName)
Sets user defined value for the field |
void |
setHomeDirectory(String aHomeDirectory)
Sets user defined value for the field |
void |
setHomeDirectoryDrive(String aHomeDirectoryDrive)
Sets user defined value for the field |
void |
setLastLogoff(Date aLastLogoff)
Sets user defined value for the field |
void |
setLastLogon(Date aLastLogon)
Sets user defined value for the field |
void |
setLogonHours(byte[] aLogonHours)
Sets user defined value for the field |
void |
setLogonServer(String aLogonServer)
Sets user defined value for the field |
void |
setLogonsNum(Integer aLogonsNum)
Sets user defined value for the field |
void |
setLogonWorkstations(String aLogonWorkstations)
Sets user defined value for the field |
void |
setMaxAccDiskSpace(Long aMaxAccDiskSpace)
Sets user defined value for the field |
void |
setPassword(String aPassword)
Sets user defined value for the field |
void |
setPasswordAge(Long aPasswordAge)
Sets user defined value for the field |
void |
setPasswordExpired(Integer aPasswordExpired)
Sets user defined value for the field |
void |
setPrimaryGroup(String aPrimaryGroup)
Sets user defined value for the field |
void |
setPrimaryGroupID(Integer aPrimaryGroupID)
Sets user defined value for the field |
void |
setPrivilegeLevel(Integer aPrivilegeLevel)
Sets user defined value for the field |
void |
setProfilePath(String aProfilePath)
Sets user defined value for the field |
void |
setRelativeUserID(Integer aRelativeUserID)
Sets user defined value for the field |
void |
setScriptPath(String aScriptParh)
Sets user defined value for the field |
void |
setUnitsPerWeek(Integer aUnitsPerWeek)
Sets user defined value for the field |
void |
setUserComment(String aUserComment)
Sets user defined value for the field |
void |
setUserName(String aUserName)
Sets user defined value for the field |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LOGON_HOURS_ARRAY_LENGTH
public static final Integer DEFAULT_FLAGS_VALUE
public static final Date ACC_NEVER_EXPIRES
public static final String USER_ATTR_USER_NAME
public static final String USER_ATTR_ACCOUNT_COMMENT
public static final String USER_ATTR_FULL_NAME
public static final String USER_ATTR_USER_COMMENT
public static final String USER_ATTR_PASSWORD
public static final String USER_ATTR_PASSWORD_AGE
public static final String USER_ATTR_PRIVILEGE_LEVEL
public static final String USER_ATTR_HOME_DIRECTORY
public static final String USER_ATTR_FLAGS
public static final String USER_ATTR_SCRIPTH_PATH
public static final String USER_ATTR_AUTH_FLAGS
public static final String USER_ATTR_APPLICATIONS_PARAMS
public static final String USER_ATTR_LOGON_WORKSTATIONS
public static final String USER_ATTR_LAST_LOGON
public static final String USER_ATTR_LAST_LOGOFF
public static final String USER_ATTR_ACCOUNT_EXP_DATE
public static final String USER_ATTR_MAX_ACC_DISK_SPACE
public static final String USER_ATTR_UNITS_PER_WEEK
public static final String USER_ATTR_LOGON_HOURS
public static final String USER_ATTR_BAD_PASSWORD_CNT
public static final String USER_ATTR_LOGONS_NUM
public static final String USER_ATTR_LOGON_SERVER
public static final String USER_ATTR_COUNTRY_CODE
public static final String USER_ATTR_CODE_PAGE
public static final String USER_ATTR_RELATIVE_USER_ID
public static final String USER_ATTR_PRIMARY_GROUP_ID
public static final String USER_ATTR_PROFILE_PATH
public static final String USER_ATTR_HOME_DIRECTORY_DRIVE
public static final String USER_ATTR_PASSWORD_EXPIRED
public static final String USER_ATTR_LOCAL_GROUPS
public static final String USER_ATTR_GLOBAL_GROUPS
public static final String USER_ATTR_PRIMARY_GROUP
Constructor Detail |
---|
public UserInfo()
protected UserInfo(Entry aUserEntry)
aUserEntry
- The User Entry object containing data to initialize the new
UserInfo object with.Method Detail |
---|
public String getUserName()
public String getAccountComment()
public String getFullName()
public String getUserComment()
public String getPassword()
public Long getPasswordAge()
public Integer getPrivilegeLevel()
public String getHomeDirectory()
public Integer getFlags()
public String getScriptPath()
public Integer getAuthFlags()
public String getApplicationsParams()
public String getLogonWorkstations()
public Date getLastLogon()
public Date getLastLogoff()
public Date getAccountExpDate()
public Long getMaxAccDiskSpace()
public Integer getUnitsPerWeek()
public byte[] getLogonHours()
public Integer getBadPasswordCnt()
public Integer getLogonsNum()
public String getLogonServer()
public Integer getCountryCode()
public Integer getCodePage()
public Integer getRelativeUserID()
public Integer getPrimaryGroupID()
public String getProfilePath()
public String getHomeDirectoryDrive()
public Integer getPasswordExpired()
public String getPrimaryGroup()
public void setUserName(String aUserName)
aUserName
- Stringpublic void setAccountComment(String aAccountComment)
aAccountComment
- Stringpublic void setFullName(String aFullName)
aFullName
- Stringpublic void setUserComment(String aUserComment)
aUserComment
- Stringpublic void setPassword(String aPassword)
aPassword
- Stringpublic void setPasswordAge(Long aPasswordAge)
aPasswordAge
- Longpublic void setPrivilegeLevel(Integer aPrivilegeLevel)
aPrivilegeLevel
- Integerpublic void setHomeDirectory(String aHomeDirectory)
aHomeDirectory
- Stringpublic void setFlags(Integer aFlags)
aFlags
- Integerpublic void setScriptPath(String aScriptParh)
aScriptParh
- Stringpublic void setAuthFlags(Integer aAuthFlags)
aAuthFlags
- Integerpublic void setApplicationsParams(String aApplicationsParams)
aApplicationsParams
- Stringpublic void setLogonWorkstations(String aLogonWorkstations)
aLogonWorkstations
- Stringpublic void setLastLogon(Date aLastLogon)
aLastLogon
- Datepublic void setLastLogoff(Date aLastLogoff)
aLastLogoff
- Datepublic void setAccountExpDate(Date aAccountExpDate)
aAccountExpDate
- Datepublic void setMaxAccDiskSpace(Long aMaxAccDiskSpace)
aMaxAccDiskSpace
- Longpublic void setUnitsPerWeek(Integer aUnitsPerWeek)
aUnitsPerWeek
- Integerpublic void setLogonHours(byte[] aLogonHours)
aLogonHours
- byte[]
public void setBadPasswordCnt(Integer aBadPasswordCnt)
aBadPasswordCnt
- Integerpublic void setLogonsNum(Integer aLogonsNum)
aLogonsNum
- Integerpublic void setLogonServer(String aLogonServer)
aLogonServer
- Stringpublic void setCountryCode(Integer aCountryCode)
aCountryCode
- Integerpublic void setCodePage(Integer aCodePage)
aCodePage
- Integerpublic void setRelativeUserID(Integer aRelativeUserID)
aRelativeUserID
- Integerpublic void setPrimaryGroupID(Integer aPrimaryGroupID)
aPrimaryGroupID
- Integerpublic void setProfilePath(String aProfilePath)
aProfilePath
- Stringpublic void setHomeDirectoryDrive(String aHomeDirectoryDrive)
aHomeDirectoryDrive
- Stringpublic void setPasswordExpired(Integer aPasswordExpired)
aPasswordExpired
- Integerpublic void setPrimaryGroup(String aPrimaryGroup)
aPrimaryGroup
- Stringprotected void copyDataFromUserEntry(Entry aUserEntry)
aUserEntry
- The user entry to copy from.protected void completeUserData(UserInfo aUserInfo)
aUserInfo
- The UserInfo instance which data members' data will be copied.protected static void createAndAddUserBasicAttributes(Entry aUserEntry, UserInfo aUserInfo)
aUserEntry
- The entry object that is going to be populated with
attributes.aUserInfo
- The UserInfo structure containing user's attributes values.protected static void createAndAddUserLocalGroupAttribute(Entry aUserEntry, Vector aGroupNames)
aUserEntry
- The entry object that the LocalGroup attribute will be added
to.aGroupNames
- The vector containing the names of the user's local groups.protected static void createAndAddUserGlobalGroupAttribute(Entry aUserEntry, Vector aGroupNames)
aUserEntry
- The entry object that the GlobalGroup attribute will be added
to.aGroupNames
- The vector containing the names of the user's global groups.protected static Vector queryUserSchema()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |