com.ibm.tws.objects.plan
Class WindowsUserInPlanKey

java.lang.Object
  extended bycom.ibm.tws.objects.plan.WindowsUserInPlanKey
All Implemented Interfaces:
java.io.Serializable, TWSKey

public class WindowsUserInPlanKey
extends java.lang.Object
implements TWSKey

This object represents a Windows user in plan external key, including fields used to identify a Windows user in TWS external interfaces. Since a Windows user is identified by its name and by a referenced workstation, this class includes a name attribute and a reference to a WorkstationInPlanKey object, to externally identify the referenced workstation.

See Also:
WindowsUserInPlan, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright
 
Constructor Summary
WindowsUserInPlanKey()
          Constructor for WindowsUserInPlanKey
WindowsUserInPlanKey(java.lang.String winUser, WorkstationInPlanKey wksKey)
          Constructor for WindowsUserInPlanKey
 
Method Summary
 boolean equals(java.lang.Object object)
          Equality operation
 java.lang.String getName()
          This method get the name of windows user.
 WorkstationInPlanKey getWorkstationKey()
          Returns the key of the workstation referenced by this windows user.
 int hashCode()
          Returns a hash code for this WindowsUserInPlan object.
 void setName(java.lang.String string)
          This method set the name of domain.
 void setWorkstationKey(WorkstationInPlanKey key)
          Sets the key of the Workstation referenced by this windows user.
 java.lang.String toString()
          Returns a string representation of this Windows User.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright

Constructor Detail

WindowsUserInPlanKey

public WindowsUserInPlanKey()
Constructor for WindowsUserInPlanKey


WindowsUserInPlanKey

public WindowsUserInPlanKey(java.lang.String winUser,
                            WorkstationInPlanKey wksKey)
Constructor for WindowsUserInPlanKey

Parameters:
winUser - the name of Windows User.
wksKey - the key of the workstation.
Method Detail

getName

public java.lang.String getName()
This method get the name of windows user.

Specified by:
getName in interface TWSKey
Returns:
String the windows user name

setName

public void setName(java.lang.String string)
This method set the name of domain.

Parameters:
string - the windows user name

equals

public boolean equals(java.lang.Object object)
Equality operation

Parameters:
object - The object to be compared
Returns:
boolean True if the objects are equal, false otherwise.

hashCode

public int hashCode()
Returns a hash code for this WindowsUserInPlan object.

Returns:
int The object's hash code

toString

public java.lang.String toString()
Returns a string representation of this Windows User.

Returns:
String A String representing this object

getWorkstationKey

public WorkstationInPlanKey getWorkstationKey()
Returns the key of the workstation referenced by this windows user.

Returns:
The key of the workstation referenced by this windows user.

setWorkstationKey

public void setWorkstationKey(WorkstationInPlanKey key)
Sets the key of the Workstation referenced by this windows user.

Parameters:
key - The key of the Workstation referenced by this windows user.


Copyright © 2005 IBM All Rights Reserved.