com.tivoli.pd.jadmin
Class PDAclEntryUser

java.lang.Object
  extended by com.tivoli.pd.jutil.PDEnvironmentObject
      extended by com.tivoli.pd.jadmin.PDAclEntry
          extended by com.tivoli.pd.jadmin.PDAclEntryUser
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class PDAclEntryUser
extends PDAclEntry
implements java.lang.Cloneable

Policy Director class for the user ACL entry.

Modes: Local,Remote

See Also:
Serialized Form

Constructor Summary
PDAclEntryUser(PDContext context, java.lang.String userId, java.lang.String permission, PDMessages messages)
          Constructs a PDAclEntryUser object.
 
Method Summary
 java.lang.Object clone()
          Returns a copy of this object.
 boolean equals(java.lang.Object obj)
          Determines whether this PDAclEntryUser is equivalent to the input object.
 java.lang.String getUserId()
          Returns the user Id for this object.
 void setUserId(java.lang.String inUserId)
          Sets the user name for this ACL entry.
 java.lang.String toString()
          Return a String representation of this object.
 
Methods inherited from class com.tivoli.pd.jadmin.PDAclEntry
getPermission, setPermission
 
Methods inherited from class com.tivoli.pd.jutil.PDEnvironmentObject
getContext, setContext
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PDAclEntryUser

public PDAclEntryUser(PDContext context,
                      java.lang.String userId,
                      java.lang.String permission,
                      PDMessages messages)
               throws PDException
Constructs a PDAclEntryUser object.

Parameters:
context - the context for communicating with the Management Server. Cannot be null.
userId - User name. Cannot be NULL.
permission - New permissions for this ACL entry. This is a string consisting of single letter action codes along with action group names. Cannot be NULL.
messages - in/out parameter; empty PDMessages on input; may contain zero or more informational or warning messages on output. Cannot be null.
Throws:
PDException - if an error occurs. This exception may contain error and message codes defined in the product Error Message Reference document.
Method Detail

getUserId

public java.lang.String getUserId()
Returns the user Id for this object.

Returns:
user name for this object.

setUserId

public void setUserId(java.lang.String inUserId)
               throws PDException
Sets the user name for this ACL entry.

Parameters:
inUserId - name of the user. Cannot be NULL.
Throws:
PDException - if an error occurs. This exception may contain error and message codes defined in the product Error Message Reference document.

toString

public java.lang.String toString()
Return a String representation of this object.

Overrides:
toString in class PDAclEntry

clone

public java.lang.Object clone()
Returns a copy of this object.

Overrides:
clone in class PDAclEntry

equals

public boolean equals(java.lang.Object obj)
Determines whether this PDAclEntryUser is equivalent to the input object.

Overrides:
equals in class PDAclEntry