|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.tws.objects.plan.WindowsUserInPlan
This class maintains information about Windows users. Since it has no header, it wraps directly a WindowsUserInPlanKey object, which in turn references a WorkstationInPlanKey as part of the Windows user key.
The following syntax validation constraints must be met on WindowsUserInPlan objects:
name | The name of an existing Windows User. |
workstationKey | Reference to an existing workstation |
password | Not longer than 31 bytes |
Null if current password must not be changed |
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary | |
---|---|
WindowsUserInPlan()
Creates an empty WindowsUser. |
|
WindowsUserInPlan(Identifier windowsUserId)
Creates a WindowsUser with the specified identifier. |
|
WindowsUserInPlan(Identifier windowsUserId,
WindowsUserInPlanKey windowsUserKey)
Creates a WindowsUser with the specified Identifier and key. |
|
WindowsUserInPlan(WindowsUserInPlanKey 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. |
WindowsUserInPlanKey |
getKey()
Returns the WindowsUserInPlanKey wrapped by this WindowsUserInPlan object. |
LockData |
getLockData()
Return the LockData of the object. |
ModifyData |
getModifyData()
Return the ModifyData of the object. |
java.lang.String |
getName()
Returns the windows user name. |
TWSHeader |
getObjectHeader()
Return the object header. |
TWSKey |
getObjectKey()
Returns the object key. |
byte[] |
getPassword()
Returns the windows user password. |
Identifier |
getWorkstationId()
Returns the Identifier of the workstation referenced by this windows user. |
WorkstationInPlanKey |
getWorkstationKey()
Gets the Workstation Key |
int |
hashCode()
Returns a hash code for this WindowsUserInPlan object. |
boolean |
isPasswordEncrypted()
Returns true if the current windows user password is encrypted. |
void |
setId(Identifier identifier)
Sets the windows user Identifier. |
void |
setKey(WindowsUserInPlanKey windowsUserKey)
Sets the WindowsUserKey to be wrapped by this WindowsUser object. |
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(WorkstationInPlanKey key)
Sets the workstation key. |
java.lang.String |
toString()
Returns a string representation of this WindowsUserInPlan. |
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 WindowsUserInPlan()
public WindowsUserInPlan(Identifier windowsUserId)
windowsUserId
- The windows Use Identifierpublic WindowsUserInPlan(WindowsUserInPlanKey windowsUserKey)
windowsUserKey
- The windows user key.public WindowsUserInPlan(Identifier windowsUserId, WindowsUserInPlanKey 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
TWSHeader.getObjectKey()
public WindowsUserInPlanKey getKey()
public java.lang.String getName()
getName
in interface TWSObject
public byte[] getPassword()
public boolean isPasswordEncrypted()
public Identifier getWorkstationId()
public void setId(Identifier identifier)
identifier
- The wndows user Identifier.public void setKey(WindowsUserInPlanKey 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 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 boolean equals(java.lang.Object object)
object
- The object to be compared with this one.
public int hashCode()
public java.lang.String toString()
public TWSHeader getObjectHeader()
getObjectHeader
in interface TWSObject
TWSObject.getObjectHeader()
public ModifyData getModifyData()
getModifyData
in interface TWSObject
TWSObject.getModifyData()
public LockData getLockData()
getLockData
in interface TWSObject
TWSObject.getLockData()
public WorkstationInPlanKey getWorkstationKey()
public void setWorkstationKey(WorkstationInPlanKey key)
key
- the key that must be set.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |