|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.tws.objects.model.WindowsUser
This class maintains information about Windows users. Since it has no header, it wraps directly a WindowsUserKey object, which in turn references a FlowTargetKey as part of the Windows user key.
The following syntax validation constraints must be met on WindowsUser objects:
name | Always required |
Blank spaces not allowed | |
Not longer than 47 characters (15 for domain, 31 for user) | |
workstationKey | Must reference an existing workstation |
password | Not longer than 31 bytes |
Null if current password must not be changed |
Also notice that Windows users defined on non-Windows workstations are ignored at job execution time.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary | |
---|---|
WindowsUser()
Creates an empty WindowsUser. |
|
WindowsUser(Identifier windowsUserId)
Creates a WindowsUser with the specified identifier. |
|
WindowsUser(Identifier windowsUserId,
WindowsUserKey windowsUserKey)
Creates a WindowsUser with the specified identifier and key. |
|
WindowsUser(WindowsUserKey windowsUserKey)
Creates a WindowsUser with the specified key. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Returns true if all fields of this WindowsUser object are equal to those of the given one. |
Identifier |
getId()
Returns the windows user identifier. |
WindowsUserKey |
getKey()
Returns the WindowsUserKey wrapped by this WindowsUser object. |
LockData |
getLockData()
Returns the windows user lock data. |
ModifyData |
getModifyData()
Returns the windows user modification data. |
java.lang.String |
getName()
Returns the windows user name. |
TWSHeader |
getObjectHeader()
Returns this object, which also acts as a TWS header. |
TWSKey |
getObjectKey()
Returns the windows user key as a TWS key. |
byte[] |
getPassword()
Returns the windows user password. |
Identifier |
getWorkstationId()
Returns the identifier of the workstation referenced by this windows user. |
FlowTargetKey |
getWorkstationKey()
Returns the key of the workstation referenced by this windows user. |
int |
hashCode()
Returns a hash code for this WindowsUser object. |
boolean |
isPasswordEncrypted()
Returns true if the current windows user password is encrypted. |
void |
setId(Identifier identifier)
Sets the windows user identifier. |
void |
setKey(WindowsUserKey windowsUserKey)
Sets the WindowsUserKey to be wrapped by this WindowsUser object. |
void |
setLockData(LockData data)
Sets the windows user lock data. |
void |
setModifyData(ModifyData data)
Sets the windows user modification data. |
void |
setName(java.lang.String value)
Sets the windows user name. |
void |
setPassword(byte[] value)
Sets the windows user password. |
void |
setPassword(byte[] value,
boolean isEncrypted)
Sets the windows user password. |
void |
setWorkstationId(Identifier identifier)
Sets the identifier of the workstation referenced by this windows user. |
void |
setWorkstationKey(FlowTargetKey wksKey)
Sets the key of the workstation referenced by this windows user. |
java.lang.String |
toString()
Returns a string representation of this WindowsUser object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public WindowsUser()
public WindowsUser(Identifier windowsUserId)
windowsUserId
- The windows user identifier.public WindowsUser(WindowsUserKey windowsUserKey)
windowsUserKey
- The windows user key.public WindowsUser(Identifier windowsUserId, WindowsUserKey windowsUserKey)
windowsUserId
- The windows user identifier.windowsUserKey
- The windows user key.Method Detail |
public Identifier getId()
getId
in interface TWSObject
public TWSKey getObjectKey()
getObjectKey
in interface TWSObject
public TWSHeader getObjectHeader()
getObjectHeader
in interface TWSObject
public WindowsUserKey getKey()
public java.lang.String getName()
getName
in interface TWSObject
public FlowTargetKey getWorkstationKey()
public byte[] getPassword()
public boolean isPasswordEncrypted()
public Identifier getWorkstationId()
public ModifyData getModifyData()
getModifyData
in interface TWSObject
public LockData getLockData()
getLockData
in interface TWSObject
public void setId(Identifier identifier)
identifier
- The windows user identifier.public void setKey(WindowsUserKey windowsUserKey)
windowsUserKey
- The WindowsUserKey to be wrapped by this WindowsUser object.public void setName(java.lang.String value)
value
- The windows user name.public void setWorkstationKey(FlowTargetKey wksKey)
wksKey
- The key of the workstation referenced by this windows user.public void setPassword(byte[] value)
value
- The windows user password (not encrypted).public void setPassword(byte[] value, boolean isEncrypted)
value
- The windows user password.isEncrypted
- True if the specified password is encrypted.public void setWorkstationId(Identifier identifier)
identifier
- The identifier of the workstation referenced by this windows user.public void setModifyData(ModifyData data)
data
- A ModifyData object.public void setLockData(LockData data)
data
- A LockData object.public boolean equals(java.lang.Object object)
object
- The object to be compared with this one.
public int hashCode()
public java.lang.String toString()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |